/* ============================================================
   Tradewind Wholesale: beach goods wholesale for South Texas
   Design system + page styles
   ============================================================ */

:root {
  /* Palette: warm sand, Gulf teal, sunset coral */
  --sand:        #f4ecdd;
  --sand-deep:   #ece0c9;
  --paper:       #fbf6ec;
  --ink:         #16303a;   /* deep teal-navy, primary text */
  --ink-soft:    #4a5f66;
  --teal:        #0f7c86;   /* Gulf water */
  --teal-deep:   #0a5a63;
  --coral:       #e85d3d;   /* sunset */
  --coral-deep:  #c9482c;
  --sun:         #f4b23c;   /* midday sun */
  --foam:        #d7e7e0;
  --foam-deep:   #b9d4cb;
  --line:        #d9ccb2;   /* hairline on sand */
  --white:       #ffffff;

  --surface:     var(--paper);
  --bg:          var(--sand);
  --text:        var(--ink);
  --text-soft:   var(--ink-soft);
  --border:      var(--line);
  --accent:      var(--coral);

  --shadow-sm: 0 1px 2px rgba(22,48,58,.06), 0 2px 8px rgba(22,48,58,.05);
  --shadow-md: 0 4px 14px rgba(22,48,58,.10), 0 12px 32px rgba(22,48,58,.08);
  --shadow-lg: 0 12px 40px rgba(22,48,58,.16);

  --radius:   14px;
  --radius-lg: 24px;
  --maxw: 1180px;
  --gutter: clamp(18px, 5vw, 56px);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step0:  clamp(1rem, .96rem + .2vw, 1.08rem);
  --step1:  clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step2:  clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem);
  --step3:  clamp(2.3rem, 1.7rem + 2.9vw, 4rem);
  --step4:  clamp(3rem, 1.9rem + 5.4vw, 6.4rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sand:      #12222a;
    --sand-deep: #0d1b21;
    --paper:     #16292f;
    --ink:       #f0e8d8;
    --ink-soft:  #a9bcbf;
    --foam:      #163a3c;
    --foam-deep: #1e4d4d;
    --line:      #294248;
    --white:     #1c3138;
    --surface:   #16292f;
    --bg:        #0f1e24;
    --text:      #f0e8d8;
    --text-soft: #a9bcbf;
    --border:    #294248;
    --shadow-md: 0 6px 20px rgba(0,0,0,.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step0);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  /* subtle paper grain for tactile warmth (shows through transparent sections) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* nicer line breaks in headings and body copy */
h1, h2, h3 { text-wrap: balance; }
p, .lead { text-wrap: pretty; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--text);
  margin: 0 0 .4em;
  font-optical-sizing: auto;
}

p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.wrap-wide { width: min(100% - var(--gutter) * 2, 1360px); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--coral);
  display: inline-block;
}

.section { padding: clamp(56px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--ink);
  --fg-btn: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-body);
  font-weight: 620;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .85em 1.5em;
  border: 1.5px solid var(--bg-btn);
  border-radius: 100px;
  background: var(--bg-btn);
  color: var(--fg-btn);
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s, background .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-coral { --bg-btn: var(--coral); --fg-btn: #fff; border-color: var(--coral); }
.btn-teal  { --bg-btn: var(--teal); --fg-btn: #fff; border-color: var(--teal); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--ink); background: transparent; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: var(--sand);
  font-size: .78rem;
  letter-spacing: .04em;
}
.topbar .wrap-wide {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 7px 0; flex-wrap: wrap;
}
.topbar a { color: var(--sun); text-decoration: none; font-weight: 600; }
.topbar .regions { display: flex; gap: .5rem; align-items: center; opacity: .9; }
.topbar .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap-wide {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand .mark { width: 42px; height: 42px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; line-height: 1; letter-spacing: -.02em; }
.brand-sub { display:block; font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(.85rem, 1.7vw, 1.55rem); }
.nav a { text-decoration: none; font-weight: 550; font-size: .95rem; color: var(--text); position: relative; padding: 4px 0; white-space: nowrap; }
.nav a::after {
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0; background: var(--coral); transition: width .2s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: .7rem; }

.nav-toggle { display: none; background: none; border: 1.5px solid var(--border); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero h1 { font-size: var(--step4); font-weight: 580; }
.hero h1 .swash { color: var(--coral); font-style: italic; font-weight: 500; }
.hero .lead { font-size: var(--step1); color: var(--text-soft); max-width: 30ch; margin-bottom: 1.6rem; font-weight: 380; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2.4rem; }

.hero-stats { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--border); max-width: 560px; }
.stat .num { font-family: var(--font-display); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 600; line-height: 1; color: var(--teal); }
.stat .lbl { font-size: .8rem; color: var(--text-soft); letter-spacing: .02em; margin-top: 6px; max-width: 16ch; }

.hero-art { position: relative; }
.hero-art svg:not(.sun-badge) { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(22,48,58,.14)); }

.sun-badge {
  position: absolute; bottom: -18px; left: -18px;
  width: clamp(84px, 11vw, 116px); height: clamp(84px, 11vw, 116px);
  z-index: 3;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sun-badge { animation: none; } }
.sun-badge text { font-family: var(--font-body); font-size: 11.5px; font-weight: 640; letter-spacing: .16em; fill: var(--ink); }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--coral);
  color: #fff;
  border-block: 3px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 13px 0;
}
.ticker-track { display: inline-flex; align-items: center; gap: 2.2rem; animation: marquee 32s linear infinite; will-change: transform; }
.ticker span { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; font-style: italic; display: inline-flex; align-items: center; gap: 2.2rem; }
.ticker span::after { content: "✺"; font-style: normal; color: var(--sun); font-size: .9em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Section heading ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.sec-head h2 { font-size: var(--step3); max-width: 16ch; }
.sec-head p { color: var(--text-soft); max-width: 42ch; margin: 0; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s, border-color .2s;
  min-height: 210px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.cat-card .cat-icon { position: relative; width: 76px; height: 76px; margin-bottom: auto; }
.cat-card .cat-icon svg { filter: drop-shadow(0 5px 7px rgba(22,48,58,.14)); }
.cat-card .cat-icon::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  width: 62%; height: 9px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(22,48,58,.16), rgba(22,48,58,0) 72%);
}
.cat-card h3 { font-size: 1.28rem; margin: 14px 0 2px; }
.cat-card .count { font-size: .82rem; color: var(--text-soft); }
.cat-card .arrow { position: absolute; top: 20px; right: 20px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; transition: .2s; }
.cat-card:hover .arrow { background: var(--teal); border-color: var(--teal); color: #fff; transform: rotate(-45deg); }
.cat-card .arrow svg { width: 15px; height: 15px; }

/* ---------- Product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 18px; }
.prod-card {
  display: flex; flex-direction: column;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s, border-color .18s;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.prod-thumb {
  position: relative; aspect-ratio: 4/3;
  background: linear-gradient(180deg, var(--foam) 0%, var(--foam) 60%, var(--foam-deep) 60%, var(--foam-deep) 100%);
  display: grid; place-items: center;
  border-bottom: 1.5px solid var(--border); overflow: hidden;
}
/* soft contact shadow so the product sits on the floor band */
.prod-thumb::after {
  content: ""; position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%);
  width: 54%; height: 12px; border-radius: 50%; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(22,48,58,.22), rgba(22,48,58,0) 72%);
}
.prod-thumb .tag { z-index: 2; }
.prod-thumb svg { position: relative; z-index: 1; width: 64%; height: 64%; filter: drop-shadow(0 5px 7px rgba(22,48,58,.16)); }
.tag {
  position: absolute; top: 12px; left: 12px;
  font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--sand); padding: 4px 9px; border-radius: 100px;
}
.tag.best { background: var(--coral); color: #fff; }
.tag.new  { background: var(--sun); color: var(--ink); }
.prod-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.prod-cat { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.prod-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 560; margin: 5px 0 4px; line-height: 1.1; }
.prod-sku { font-size: .72rem; color: var(--text-soft); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.prod-meta { display: flex; gap: 14px; font-size: .78rem; color: var(--text-soft); margin-bottom: 14px; }
.prod-meta b { color: var(--text); font-weight: 650; }
.prod-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price .amt { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--text); }
.price .per { font-size: .72rem; color: var(--text-soft); display:block; }
.add-quote {
  border: 1.5px solid var(--ink); background: transparent; color: var(--text);
  border-radius: 100px; padding: .5em .9em; font-family: var(--font-body); font-weight: 620; font-size: .82rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: .4em; transition: .16s; white-space: nowrap;
}
.add-quote:hover { background: var(--ink); color: var(--sand); }
.add-quote.added { background: var(--teal); border-color: var(--teal); color: #fff; }
.add-quote svg { width: 15px; height: 15px; }

/* catalog "request a quote" link (no cart / no pricing) */
.req-quote {
  display: flex; align-items: center; justify-content: center; gap: .45em;
  width: 100%; margin-top: auto;
  border: 1.5px solid var(--ink); background: transparent; color: var(--text);
  border-radius: 100px; padding: .62em 1em;
  font-family: var(--font-body); font-weight: 620; font-size: .86rem; letter-spacing: .01em;
  text-decoration: none; transition: transform .16s, background .16s, color .16s;
}
.req-quote:hover { background: var(--ink); color: var(--sand); }
.req-quote svg { width: 15px; height: 15px; transition: transform .16s; }
.req-quote:hover svg { transform: translateX(3px); }

/* ---------- Value props ---------- */
.values { background: var(--ink); color: var(--sand); }
.values .eyebrow { color: var(--sun); }
.values .eyebrow::before { background: var(--coral); }
.values h2 { color: var(--sand); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: color-mix(in srgb, var(--sand) 14%, transparent); border-radius: var(--radius-lg); overflow: hidden; margin-top: 8px; }
.value-item { background: var(--ink); padding: 30px; }
.value-item .vnum { font-family: var(--font-display); font-size: .9rem; color: var(--coral); font-weight: 600; }
.value-item h3 { color: var(--sand); font-size: 1.4rem; margin: 10px 0 .4em; }
.value-item p { color: color-mix(in srgb, var(--sand) 78%, transparent); margin: 0; font-size: .92rem; }

/* ---------- Service area / map ---------- */
.area { background: var(--foam); }
.area-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.map-wrap { position: relative; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.map-wrap svg { width: 100%; height: auto; }
.region-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 14px; }
.region-list li { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.region-list li:last-child { border-bottom: none; }
.region-list .pin { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color:#fff; display:grid; place-items:center; font-weight: 700; font-size: .85rem; }
.region-list h4 { font-family: var(--font-body); font-weight: 700; margin: 0 0 2px; font-size: 1rem; }
.region-list p { margin: 0; font-size: .85rem; color: var(--text-soft); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 3px solid var(--ink); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--coral); line-height: 1; display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.22rem; margin-bottom: .3em; }
.step p { color: var(--text-soft); font-size: .9rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(105deg, var(--teal-deep), var(--teal)); color: #fff; border-radius: var(--radius-lg); padding: clamp(34px, 6vw, 68px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: var(--step3); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 46ch; margin: 0 auto 1.6rem; }
.cta-band .btn-coral:hover { box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.cta-band .sun-deco { position: absolute; width: 260px; height: 260px; opacity: .16; }
.cta-band .sun-deco.a { top: -80px; left: -60px; }
.cta-band .sun-deco.b { bottom: -110px; right: -70px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--sand); padding: clamp(48px, 7vw, 84px) 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand-name { color: var(--sand); }
.site-footer p { color: color-mix(in srgb, var(--sand) 74%, transparent); font-size: .9rem; }
.foot-col h4 { font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 1rem; }
.foot-col a { display: block; color: color-mix(in srgb, var(--sand) 82%, transparent); text-decoration: none; padding: 5px 0; font-size: .92rem; }
.foot-col a:hover { color: var(--coral); }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--sand) 18%, transparent); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: color-mix(in srgb, var(--sand) 60%, transparent); }

/* ---------- Products page ---------- */
.page-head { background: var(--ink); color: var(--sand); padding: clamp(44px, 7vw, 84px) 0 clamp(30px,4vw,44px); }
.page-head .eyebrow { color: var(--sun); }
.page-head .eyebrow::before { background: var(--coral); }
.page-head h1 { color: var(--sand); font-size: var(--step3); }
.page-head p { color: color-mix(in srgb, var(--sand) 80%, transparent); max-width: 54ch; margin: 0; }

.filter-bar { position: sticky; top: 71px; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); padding: 14px 0; }
.filter-inner { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip {
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  padding: .5em 1em; border-radius: 100px; font-family: var(--font-body); font-weight: 600; font-size: .84rem; cursor: pointer; transition: .16s;
}
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.search-box { position: relative; display: flex; align-items: center; }
.search-box svg { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--text-soft); pointer-events: none; }
.search-box input {
  font-family: var(--font-body); font-size: .9rem; padding: .62em .9em .62em 2.2em;
  border: 1.5px solid var(--border); border-radius: 100px; background: var(--surface); color: var(--text); width: 220px; transition: .16s;
}
.search-box input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); }

.result-count { font-size: .85rem; color: var(--text-soft); margin: 24px 0 18px; }
.empty { text-align: center; padding: 60px 20px; color: var(--text-soft); }

/* ---------- Quote drawer ---------- */
.quote-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 80;
  background: var(--coral); color: #fff; border: none; border-radius: 100px;
  padding: .9em 1.3em; font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow-lg); cursor: pointer; display: inline-flex; align-items: center; gap: .55em;
  transition: transform .18s;
}
.quote-fab:hover { transform: translateY(-3px); }
.quote-fab .badge { background: #fff; color: var(--coral); border-radius: 100px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: .78rem; padding: 0 6px; }
.quote-fab[hidden] { display: none; }

.drawer-overlay { position: fixed; inset: 0; background: rgba(22,48,58,.5); backdrop-filter: blur(3px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 92vw); z-index: 91;
  background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .3s cubic-bezier(.3,.8,.3,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 22px; border-bottom: 1.5px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { font-size: 1.5rem; margin: 0; }
.drawer-close { background: none; border: 1.5px solid var(--border); border-radius: 10px; padding: 7px; cursor: pointer; color: var(--text); display: grid; place-items: center; }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-body { padding: 12px 22px; overflow-y: auto; flex: 1; }
.q-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.q-item .q-thumb { width: 54px; height: 54px; border-radius: 10px; background: var(--foam); flex: none; display: grid; place-items: center; }
.q-item .q-thumb svg { width: 60%; height: 60%; }
.q-item .q-info { flex: 1; min-width: 0; }
.q-item .q-name { font-weight: 650; font-size: .95rem; line-height: 1.2; }
.q-item .q-sku { font-size: .72rem; color: var(--text-soft); }
.q-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 100px; overflow: hidden; margin-top: 8px; }
.q-qty button { border: none; background: transparent; width: 28px; height: 28px; cursor: pointer; font-size: 1.1rem; color: var(--text); line-height: 1; }
.q-qty button:hover { background: var(--foam); }
.q-qty span { min-width: 34px; text-align: center; font-weight: 650; font-size: .85rem; font-variant-numeric: tabular-nums; }
.q-remove { background: none; border: none; color: var(--text-soft); cursor: pointer; font-size: .78rem; text-decoration: underline; padding: 0; align-self: flex-start; }
.drawer-foot { padding: 20px 22px; border-top: 1.5px solid var(--border); background: var(--bg); }
.drawer-foot .est { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: .9rem; }
.drawer-foot .est.total { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: 8px 0 16px; }
.drawer-foot .btn { width: 100%; justify-content: center; }
.drawer-empty { text-align: center; color: var(--text-soft); padding: 50px 20px; }
.drawer-note { font-size: .74rem; color: var(--text-soft); margin-top: 12px; text-align: center; }

/* ---------- Contact / quote form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 640; font-size: .84rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: .95rem; padding: .75em .9em;
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 16%, transparent); }
.field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card { background: var(--ink); color: var(--sand); border-radius: var(--radius-lg); padding: clamp(26px,4vw,40px); }
.contact-card h3 { color: var(--sand); }
.contact-card .cline { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--sand) 16%, transparent); }
.contact-card .cline:last-child { border: none; }
.contact-card .cline svg { width: 22px; height: 22px; color: var(--sun); flex: none; }
.contact-card a { color: var(--sand); text-decoration: none; }
.contact-card a:hover { color: var(--coral); }
.form-note { padding: 14px; border-radius: 12px; background: var(--foam); font-size: .84rem; color: var(--text); margin-top: 8px; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .area-grid, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 1120px) {
  .nav { gap: 1.1rem; }
  .nav a { font-size: .9rem; }
  .nav-cta .btn { padding: .72em 1.1em; font-size: .86rem; }
}
@media (max-width: 880px) {
  .nav, .nav-cta .btn-ghost, .nav-cta .btn-coral { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px var(--gutter);
  }
  .site-header.open .nav a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .filter-bar { top: 63px; }
  .topbar .regions { display: none; }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .search-box input { width: 100%; }
  .search-box { flex: 1; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .cookie { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie .cookie-actions .btn { width: 100%; }
  /* keep header controls on screen on small phones */
  .site-header .wrap-wide { gap: .35rem; }
  .brand { gap: .45rem; }
  .brand .mark { width: 30px; height: 30px; }
  .brand-name { font-size: .96rem; }
  .brand-sub { display: none; }
  .nav-cta { gap: .3rem; }
  .icon-btn { width: 38px; height: 38px; }
  .icon-btn svg { width: 18px; height: 18px; }
  .nav-toggle { padding: 7px; }
  .to-top { bottom: 16px; right: 16px; }
}
@media (max-width: 560px) {
  /* logo mark alone anchors the brand; frees room for the controls */
  .brand-name { display: none; }
  .brand .mark { width: 40px; height: 40px; }
}

/* ============================================================
   Enhancements: theme toggle, search, loader, progress,
   back-to-top, cookie, FAQ, copy, floating, print
   ============================================================ */

/* --- scroll progress bar --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--coral), var(--sun));
  transition: width .1s linear;
}

/* --- preloader --- */
.preloader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--bg);
  animation: preload-out .5s ease 1.1s forwards;
}
.preloader.done { animation: none; opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes preload-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.preloader .loader-mark { width: 60px; height: 60px; animation: bob 1.1s ease-in-out infinite; }
.preloader .loader-ring {
  width: 40px; height: 40px; margin: 16px auto 0;
  border: 3px solid var(--border); border-top-color: var(--coral); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .preloader { animation-delay: .2s; }
  .preloader .loader-mark, .preloader .loader-ring { animation: none; }
}

/* --- header scrolled shadow --- */
.site-header.scrolled { box-shadow: 0 4px 20px rgba(22,48,58,.10); }

/* --- icon buttons (search / theme) --- */
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border: 1.5px solid var(--border); border-radius: 12px; background: transparent;
  color: var(--text); cursor: pointer; transition: transform .16s, border-color .16s, background .16s;
}
.icon-btn:hover { border-color: var(--ink); background: color-mix(in srgb, var(--text) 7%, transparent); transform: translateY(-1px); }
.icon-btn:active { transform: translateY(0); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

/* --- search overlay --- */
.search-overlay {
  position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-start; justify-content: center;
  padding: 11vh 18px 20px; background: rgba(22,48,58,.55); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-panel {
  width: min(600px, 100%); background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(-12px); transition: transform .2s;
}
.search-overlay.open .search-panel { transform: none; }
.search-in { display: flex; align-items: center; gap: 10px; padding: 15px 16px; border-bottom: 1.5px solid var(--border); }
.search-in > svg { width: 20px; height: 20px; color: var(--text-soft); flex: none; }
.search-in input { flex: 1; border: none; background: transparent; font-family: var(--font-body); font-size: 1.05rem; color: var(--text); min-width: 0; }
.search-in input:focus { outline: none; }
.search-close { width: 34px; height: 34px; }
.search-results { max-height: 52vh; overflow-y: auto; padding: 6px; }
.search-results a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.search-results a:hover, .search-results a.active { background: var(--foam); }
.search-results .r-thumb { width: 42px; height: 42px; border-radius: 8px; background: var(--foam); display: grid; place-items: center; flex: none; }
.search-results .r-thumb svg { width: 66%; height: 66%; }
.search-results .r-name { font-weight: 650; font-size: .95rem; line-height: 1.15; }
.search-results .r-sku { font-size: .72rem; color: var(--text-soft); }
.search-empty { padding: 26px; text-align: center; color: var(--text-soft); font-size: .9rem; }
.search-empty a { color: var(--teal); }
.search-hint { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: .72rem; color: var(--text-soft); }
.search-hint kbd { font-family: ui-monospace, monospace; background: var(--bg); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }

/* --- back to top --- */
.to-top {
  position: fixed; bottom: 22px; right: 22px; z-index: 80;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--ink); color: var(--sand); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, background .2s, visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--coral); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

/* --- cookie banner --- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 560px; margin-inline: auto;
  background: var(--ink); color: var(--sand); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-lg);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  transform: translateY(180%); transition: transform .4s cubic-bezier(.2,.8,.3,1);
}
.cookie.show { transform: none; }
.cookie p { margin: 0; flex: 1; min-width: 220px; font-size: .84rem; color: color-mix(in srgb, var(--sand) 82%, transparent); }
.cookie a { color: var(--sun); }
.cookie-actions { display: flex; gap: 8px; }

/* --- FAQ accordion --- */
.faq-list { display: grid; gap: 12px; max-width: 840px; }
.faq-item { border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item[open] { border-color: var(--teal); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-size: 1.14rem; font-weight: 560; transition: color .16s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal); }
.faq-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; transition: transform .2s, background .2s, border-color .2s, color .2s; }
.faq-icon svg { width: 15px; height: 15px; }
.faq-item[open] .faq-icon { background: var(--teal); border-color: var(--teal); color: #fff; transform: rotate(135deg); }
.faq-body { padding: 0 22px 20px; color: var(--text-soft); font-size: .95rem; max-width: 68ch; }
.faq-item[open] .faq-body { animation: faqIn .25s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .faq-item[open] .faq-body { animation: none; } }

/* --- copy buttons --- */
.copy-btn {
  margin-left: auto; border: none; background: transparent; color: inherit; cursor: pointer;
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  opacity: .7; transition: opacity .16s, background .16s, color .16s;
}
.copy-btn:hover { opacity: 1; background: color-mix(in srgb, var(--sand) 16%, transparent); }
.copy-btn.copied { color: var(--sun); opacity: 1; }
.copy-btn svg { width: 16px; height: 16px; }

/* --- floating content --- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-art svg:not(.sun-badge) { animation: float 6s ease-in-out infinite; }
.cta-band .sun-deco { animation: float 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero-art svg:not(.sun-badge), .cta-band .sun-deco, .ticker-track { animation: none; }
}

/* --- print stylesheet --- */
@media print {
  .topbar, .site-header, .ticker, .to-top, .cookie, .search-overlay, .scroll-progress,
  .preloader, .cta-band, .site-footer, .nav-toggle, .hero-actions, .filter-bar,
  .sun-badge, .hero-art, .quote-fab { display: none !important; }
  * { box-shadow: none !important; text-shadow: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  body { background-image: none !important; }
  .section, .section-tight { padding: 14px 0 !important; }
  h1, h2, h3 { color: #000 !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .prod-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
  .prod-card, .cat-card, .faq-item { break-inside: avoid; border: 1px solid #bbb !important; background: #fff !important; }
  .prod-thumb { background: #f4f4f4 !important; }
  .req-quote { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .faq-item .faq-body { display: block !important; }
}

/* ============================================================
   Real product photos (from catalog-product-images/)
   ============================================================ */
/* photo thumbnails: flex + max-size so the WHOLE image shows at any aspect ratio */
.prod-thumb.photo {
  background: #fff; display: flex; align-items: center; justify-content: center;
  padding: 14px; cursor: pointer; border: 0; border-bottom: 1.5px solid var(--border);
  width: 100%; font: inherit; color: inherit; overflow: hidden;
}
.prod-thumb.photo::after { content: none; }
.prod-photo { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .25s ease; }
.prod-thumb.photo:hover .prod-photo { transform: scale(1.04); }
.zoom-cue {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 82%, transparent); color: var(--sand);
  display: grid; place-items: center; opacity: 0; transform: translateY(4px); transition: .18s;
}
.prod-thumb.photo:hover .zoom-cue, .prod-thumb.photo:focus-visible .zoom-cue { opacity: 1; transform: none; }
.zoom-cue svg { width: 15px; height: 15px; }

.cat-card .cat-icon {
  width: 88px; height: 88px; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; padding: 8px;
}
.cat-card .cat-icon::after { content: none; }
.cat-card .cat-icon img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

.search-results .r-thumb { background: #fff; }
.r-photo { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }

/* ---------- Product detail modal ---------- */
.product-modal { position: fixed; inset: 0; z-index: 160; display: flex; align-items: center; justify-content: center; padding: 5vh 18px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.product-modal.open { opacity: 1; pointer-events: auto; }
.pm-overlay { position: absolute; inset: 0; background: rgba(22,48,58,.6); backdrop-filter: blur(4px); }
.pm-panel { position: relative; z-index: 1; width: min(920px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border: 1.5px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.1fr 1fr; transform: translateY(14px); transition: transform .2s; }
.product-modal.open .pm-panel { transform: none; }
.pm-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.pm-media { background: #fff; display: flex; align-items: center; justify-content: center; padding: 28px; border-right: 1.5px solid var(--border); }
.pm-media a { display: block; line-height: 0; }
.pm-img { max-width: 100%; max-height: 64vh; width: auto; height: auto; object-fit: contain; }
.pm-info { padding: clamp(22px, 3vw, 38px); }
.pm-cat { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.pm-name { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); margin: 6px 0 18px; }
.pm-specs { margin: 0 0 18px; display: grid; gap: 0; }
.pm-specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.pm-specs dt { color: var(--text-soft); margin: 0; }
.pm-specs dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.pm-desc { color: var(--text-soft); font-size: .95rem; }
.pm-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.pm-full { font-size: .85rem; color: var(--teal); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: .4em; }
.pm-full:hover { text-decoration: underline; }
.pm-full svg { width: 15px; height: 15px; }
@media (max-width: 720px) {
  .pm-panel { grid-template-columns: 1fr; }
  .pm-media { border-right: none; border-bottom: 1.5px solid var(--border); padding: 20px; }
  .pm-img { max-height: 42vh; }
}

/* ============================================================
   Brand logo (real logo files in assets/logo/)
   Horizontal lockup in header/footer, icon on small screens,
   light/dark variants swapped automatically.
   ============================================================ */
.brand { gap: 0; }
.brand .logo { display: none; width: auto; }
.brand .logo-h { height: 34px; }
.brand .logo-i { height: 40px; }
/* default + system light: horizontal (light) */
.brand .logo-h.logo-light { display: block; }
/* dark theme: swap to the reverse (sand) horizontal */
:root[data-theme="dark"] .brand .logo-h.logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-h.logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-h.logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-h.logo-dark { display: block; }
}
/* footer sits on the dark ink bar, always the reverse mark */
.site-footer .brand .logo-foot { display: block; height: 32px; width: auto; }
/* small screens: swap the horizontal lockup for the icon badge */
@media (max-width: 430px) {
  .brand .logo-h { display: none !important; }
  .brand .logo-i.logo-light { display: block; }
  :root[data-theme="dark"] .brand .logo-i.logo-light { display: none; }
  :root[data-theme="dark"] .brand .logo-i.logo-dark { display: block; }
}
@media (max-width: 430px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-i.logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-i.logo-dark { display: block; }
}

/* ---- added: quote form spam trap + error note ---- */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-error { background: color-mix(in srgb, var(--coral) 16%, transparent); }
