/* JBM redesign theme — loaded AFTER style.css (see views/partials/header.ejs).
   To roll the redesign back: remove the theme.css <link> and the Google Fonts
   <link> from header.ejs. Everything here only restyles existing classes or
   adds new ones (.topbar, .rfq-hero, .trust, .help, .seg, .rfq-band). */

:root {
  --brand-cream: #f5f6fb;
  --border: #e3e6f0;
  --ink: #1b2450;
  --muted: #565c78;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
body { font-family: inherit; color: var(--ink); background: var(--brand-cream); }
button, input, select, textarea { font-family: inherit; }
.container { max-width: 1200px; padding: 0 24px; }
.ic { width: 22px; height: 22px; flex: none; display: block; }
.btn .ic { width: 18px; height: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 10px; font-size: 15px; }
.btn:hover { background: #a52513; }
.btn.secondary { border-width: 2px; }
.btn.secondary:hover { background: var(--brand-dark); color: #fff; }
.btn.btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn.btn-line { background: transparent; border: 2px solid var(--brand-dark); color: var(--brand-dark); }
.btn.btn-line:hover { background: var(--brand-dark); color: #fff; }

/* Top bar */
.topbar { background: #141a3a; color: #d3d8f2; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.topbar .t-item { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.topbar .ic { width: 16px; height: 16px; }
.topbar .t-group { display: inline-flex; align-items: center; gap: 6px 24px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; text-decoration: underline; }

/* Header */
.site-header .bar { padding: 12px 24px; max-width: 1200px; gap: 12px 24px; min-height: 78px; }
.brand-logo { height: 48px; max-width: 220px; }
.main-nav { gap: 26px; font-size: 15px; }
.main-nav a { padding: 10px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav a.on { color: #273ba3; border-bottom-color: #273ba3; }
.header-search input { border-radius: 10px 0 0 10px; height: 44px; background: var(--brand-cream); border-color: #d3d8e8; }
.header-search button { background: #273ba3; border-radius: 0 10px 10px 0; font-weight: 600; padding: 0 18px; }
.cta-quote { background: var(--brand-red); display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; min-height: 48px; border-radius: 10px; }
.cta-quote:hover { background: #a52513; }
.cta-quote .ic { width: 18px; height: 18px; }
.cart-badge { min-width: 20px; text-align: center; }

/* Home hero (RFQ-first) */
.rfq-hero { background: var(--brand-dark); color: #fff; }
.rfq-hero .container { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.rfq-hero h1 { font-size: 44px; line-height: 1.1; letter-spacing: -.025em; font-weight: 800; color: #fff; margin: 0 0 20px; }
.rfq-hero .lead { font-size: 18px; line-height: 1.65; color: #d3d8f2; max-width: 540px; margin: 0; }
.rfq-hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; max-width: 560px; }
.hero-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 14.5px; color: #fff; line-height: 1.35; }
.hero-list .ic { width: 20px; height: 20px; color: #ffb8aa; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { background: #fff; border-radius: 16px; padding: 8px 10px 8px; display: block; text-align: center; color: var(--brand-dark); }
.tile img { width: 100%; height: 150px; object-fit: contain; }
.tile span { display: block; font-weight: 700; font-size: 13.5px; margin-top: 2px; }
.tile:hover { box-shadow: 0 12px 28px rgba(0,0,0,.25); transform: translateY(-2px); }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--border); }
.trust .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 30px; padding-bottom: 30px; }
.t-card { display: flex; gap: 14px; align-items: flex-start; }
.t-ico { width: 46px; height: 46px; border-radius: 12px; background: #eceffc; color: #273ba3; display: flex; align-items: center; justify-content: center; flex: none; }
.t-card h3 { font-size: 15.5px; font-weight: 700; margin: 0; }
.t-card p { font-size: 13.5px; color: var(--muted); margin: 2px 0 0; }

/* Sections */
.section { padding: 64px 0; }
.section-title { align-items: flex-end; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 28px; }
.section-title h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.section-title a { color: #273ba3; white-space: nowrap; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-red); margin-bottom: 8px; }

/* Category cards */
.cat-grid { gap: 20px; }
.cat-card { border-radius: 18px; padding: 22px 14px 18px; font-size: 15px; color: var(--brand-dark); }
.cat-card:hover { border-color: #273ba3; color: #273ba3; box-shadow: 0 12px 28px rgba(27,36,80,.12); }
.cat-card img { width: 112px; height: 112px; object-fit: contain; border-radius: 0; }

/* Product cards */
.product-grid { gap: 22px; }
.product-card { border-radius: 18px; }
.product-card:hover { box-shadow: 0 12px 28px rgba(27,36,80,.12); }
.product-card .thumb { background: #fff; padding: 16px; border-bottom: 1px solid #eceef6; }
.product-card .thumb img { object-fit: contain; }
.product-card .price { color: #a82614; }
.pill.active { background: var(--brand-dark); }

/* About strip (home) */
.about-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.about-strip img { width: 100%; border-radius: 22px; border: 1px solid var(--border); }
.about-strip h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin: 0; }
.about-strip p { font-size: 17px; line-height: 1.7; color: #454b68; margin: 18px 0 0; }
.about-strip .btn { margin-top: 28px; }

/* "Can't find what you need?" contact band */
.help { background: #eceffb; border-top: 1px solid var(--border); margin-top: 48px; }
.help-in { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; padding: 44px 0; }
.help-txt h2 { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--brand-dark); }
.help-txt p { margin: 6px 0 0; font-size: 17px; color: #4b5478; }

/* About page extras: who we serve + RFQ band */
.segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.seg { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; }
.seg-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-dark); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.seg h3 { font-size: 18px; margin: 0 0 8px; }
.seg p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.seg .needs { margin-top: auto; padding-top: 14px; border-top: 1px solid #eceef6; font-size: 12.5px; font-weight: 700; color: #273ba3; }
.seg p + .needs { margin-top: 16px; }
.about-extra-tint { background: #eceffb; }
.rfq-band { background: var(--brand-dark); color: #fff; border-radius: 26px; padding: 54px 56px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.rfq-band .kicker { color: #ffb8aa; }
.rfq-band h2 { color: #fff; font-size: 34px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin: 0; }
.rfq-band p { color: #d3d8f2; font-size: 17px; line-height: 1.65; margin: 14px 0 0; max-width: 560px; }
.rfq-band .actions { display: flex; flex-direction: column; gap: 14px; }
.rfq-band .actions .btn { min-height: 54px; font-size: 16px; }
.rfq-24 { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.08); border-radius: 16px; padding: 16px 20px; }
.rfq-24 b { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.rfq-24 span { font-size: 15px; line-height: 1.4; color: #d3d8f2; font-weight: 600; }

/* Footer */
.site-footer { background: #141a3a; color: #c3c9e6; padding: 60px 0 28px; margin-top: 0; }
.site-footer .container { gap: 40px; align-items: flex-start; }
.site-footer h5 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer p { font-size: 14.5px; line-height: 1.7; margin: 0 0 10px; }
.site-footer a:hover { color: #fff; }
.fb-link { display: inline-flex; align-items: center; gap: 10px; }
.fb-link .ic { width: 20px; height: 20px; color: #fff; }
.footer-phones { display: flex; align-items: flex-start; gap: 10px; }
.footer-phones .ic { width: 18px; height: 18px; margin-top: 4px; }
.footer-phones a { display: inline; }
.footer-logo { background: #fff; border-radius: 10px; padding: 8px 12px; display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 40px; width: auto; }
.site-footer .copyright { border-top: 1px solid #2a3260; max-width: 1152px; margin: 40px auto 0; padding-top: 22px; text-align: left; color: #8f97c2; }

@media (max-width: 980px) {
  .rfq-hero .container { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 56px; }
  .rfq-hero h1 { font-size: 42px; }
  .trust .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rfq-band { grid-template-columns: minmax(0, 1fr); padding: 40px 32px; }
  .about-strip { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .section { padding: 48px 0; }
}
@media (max-width: 900px) {
  .main-nav a { border-bottom: 0; }
  .cta-quote { justify-content: center; }
}
@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .tile img { height: 110px; }
  .rfq-hero .container { padding-top: 32px; padding-bottom: 32px; }
  .rfq-hero h1 { font-size: 24px; }
  .rfq-hero .lead { font-size: 16.5px; }
  .hero-list { grid-template-columns: minmax(0, 1fr); }
  .trust .container { grid-template-columns: minmax(0, 1fr); }
  .segs { grid-template-columns: minmax(0, 1fr); }
  .section-title h2 { font-size: 26px; }
  .cat-grid, .product-grid { gap: 12px; }
  .cat-card img { width: 96px; height: 96px; }
  .rfq-band { padding: 32px 22px; border-radius: 20px; }
  .rfq-band h2 { font-size: 26px; }
  .help-in { padding: 32px 0; }
  .help-txt h2 { font-size: 22px; }
  .help-in .btn { width: 100%; }
}

/* Buttons that set their own inline padding (e.g. the product-list search
   button) shouldn't be forced up to the standard 48px height. */
.btn[style*="padding"] { min-height: 0; }


/* Product list: category dropdown (replaces the row of category pills) */
.pl-count { font-size: 14.5px; color: var(--muted); }
.filters-bar { position: relative; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 28px; }
.category-filter { position: static; }
.catbtn-wrap { display: flex; align-items: center; gap: 8px; }
.catbtn { height: 46px; border-radius: 10px; background: var(--brand-dark); color: #fff; border: 0; padding: 0 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; max-width: 320px; }
.catbtn:hover { background: #273ba3; }
.catbtn .ic { width: 18px; height: 18px; flex: none; }
.catbtn .chev { transition: transform .15s; }
.catbtn.open .chev { transform: rotate(180deg); }
.catbtn-label { overflow: hidden; text-overflow: ellipsis; }
.catclear { width: 46px; height: 46px; border-radius: 10px; border: 1px solid #d3d8e8; background: #fff; color: var(--brand-dark); display: flex; align-items: center; justify-content: center; }
.catclear:hover { border-color: var(--brand-red); color: var(--brand-red); }
.catclear .ic { width: 16px; height: 16px; }
.cat-panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 40; width: min(920px, 100%); background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 48px rgba(27,36,80,.18); padding: 22px 24px 24px; max-height: 70vh; overflow-y: auto; }
.cat-panel[hidden] { display: none; }
.cat-panel h3 { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 12px; }
.cat-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 24px; }
.cat-panel a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--brand-dark); line-height: 1.3; }
.cat-panel a:hover, .cat-panel a.on { background: #eceffc; color: #273ba3; }
.pl-form { flex: 1 1 320px; display: flex; gap: 12px; flex-wrap: wrap; min-width: 0; }
.pl-search { flex: 1 1 220px; display: flex; border: 1px solid #d3d8e8; border-radius: 10px; overflow: hidden; background: #fff; min-width: 0; }
.pl-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; height: 44px; font-size: 14.5px; color: var(--brand-dark); outline: none; }
.pl-search:focus-within { border-color: #273ba3; }
.pl-search button { border: 0; background: #273ba3; color: #fff; padding: 0 18px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.pl-search button .ic { width: 18px; height: 18px; }
.pl-sort { height: 46px; border: 1px solid #d3d8e8; border-radius: 10px; background: #fff; padding: 0 12px; font-size: 14px; color: var(--brand-dark); }
@media (max-width: 900px) { .cat-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .filters-bar { flex-direction: row; align-items: stretch; }
  .category-filter, .catbtn-wrap { width: 100%; }
  .catbtn { flex: 1; max-width: none; justify-content: space-between; }
  .pl-form { flex: 1 1 100%; }
  .pl-search { flex: 1 1 100%; }
  .pl-sort { flex: 1 1 100%; }
  .cat-panel { padding: 16px; }
  .cat-panel ul { grid-template-columns: minmax(0, 1fr); }
}
