/* ==========================================================================
   Marbella Surfaces - tile & sanitaryware dealer, demo website
   Register: architectural showroom. White, graphite, teal, warm stone.
   Typography: Archivo (display) + Inter (interface)
   ========================================================================== */

:root {
  --paper: #ffffff;
  --page: #f7f8fa;
  --page-2: #eef1f5;
  --graphite: #0f172a;
  --graphite-2: #1e293b;
  --teal: #0d9488;
  --teal-2: #0f766e;
  --teal-soft: #5eead4;
  --sand: #c8bba8;
  --ink: #0f172a;
  --body: #475569;
  --muted: #697b8f;
  --line: #e2e6ec;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;

  --shell: 1280px;
  --gutter: 24px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 16px 44px -22px rgba(15, 23, 42, 0.3);
  --shadow-lg: 0 30px 70px -30px rgba(15, 23, 42, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 82px; }

body {
  background: var(--page);
  color: var(--body);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; background: var(--page-2); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.14; color: var(--ink); letter-spacing: -0.025em; }

::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 50%; top: -80px; transform: translateX(-50%); z-index: 300; background: var(--teal); color: #fff; padding: 12px 22px; border-radius: 0 0 8px 8px; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 0; }

.eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-2); margin-bottom: 14px; }
.section-title { font-size: clamp(1.8rem, 3.9vw, 2.8rem); margin-bottom: 15px; }
.lede { font-size: 1.01rem; color: var(--muted); max-width: 64ch; }

.section { padding: clamp(56px, 7.5vw, 100px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-bottom: 32px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border: 1px solid var(--graphite); border-radius: var(--r-sm);
  background: var(--graphite); color: #fff;
  font-size: 0.88rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s, transform 0.2s var(--ease), box-shadow 0.25s;
}
.btn:hover { background: var(--graphite-2); transform: translateY(-2px); }
.btn-teal { background: var(--teal); border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-2); border-color: var(--teal-2); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-2); background: transparent; }
.btn-light { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-light:hover { background: #fff; color: var(--graphite); border-color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 0.82rem; }
.btn-lg { padding: 15px 30px; font-size: 0.96rem; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Topbar / header ---------- */

.topbar { background: var(--graphite); color: rgba(255, 255, 255, 0.72); font-size: 0.79rem; padding: 9px 0; }
.topbar .shell { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.topbar b { color: var(--teal-soft); }
.topbar a { color: #fff; font-weight: 500; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--graphite); position: relative; overflow: hidden; flex: none;
}
.logo-mark::before, .logo-mark::after {
  content: ""; position: absolute; background: var(--teal-soft);
}
.logo-mark::before { inset: 6px auto auto 6px; width: 10px; height: 10px; }
.logo-mark::after { inset: auto 6px 6px auto; width: 10px; height: 10px; background: var(--sand); }
.logo .txt { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--ink); line-height: 1.1; letter-spacing: -0.03em; }
.logo .txt small { display: block; font-family: var(--font-ui); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 3px; }
.nav a { padding: 9px 13px; border-radius: var(--r-sm); font-size: 0.89rem; font-weight: 500; color: var(--body); transition: background 0.2s, color 0.2s; }
.nav a:hover { background: var(--page-2); color: var(--ink); }
.header-right { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 17px; height: 2px; background: var(--ink); border-radius: 2px;
  transform: translateX(-50%); transition: transform 0.28s var(--ease), background 0.2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { content: ""; left: 0; transform: translateY(-6px); }
.nav-toggle span::after { content: ""; left: 0; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4.5vw, 56px); align-items: center; padding: clamp(44px, 6vw, 80px) 0; }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); margin-bottom: 18px; }
.hero h1 span { color: var(--teal-2); }
.hero p.lede { margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-points { display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.92rem; }
.hero-points svg { width: 18px; height: 18px; flex: none; color: var(--teal); margin-top: 4px; }

.hero-media { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.hero-stat {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
  border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; gap: 20px;
}
.hero-stat b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); line-height: 1; }
.hero-stat span { font-size: 0.72rem; color: var(--muted); }

/* ---------- USP strip ---------- */

.usp { background: var(--graphite); color: rgba(255, 255, 255, 0.74); }
.usp ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.usp li { padding: 24px 22px; border-right: 1px solid rgba(255, 255, 255, 0.1); display: flex; gap: 13px; align-items: flex-start; }
.usp li:last-child { border-right: 0; }
.usp svg { width: 22px; height: 22px; flex: none; color: var(--teal-soft); }
.usp strong { display: block; font-family: var(--font-display); font-size: 0.98rem; color: #fff; }
.usp span { font-size: 0.82rem; line-height: 1.5; }

/* ---------- Visualiser ---------- */

.viz { background: var(--paper); }
.viz-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.viz-stage { position: relative; background: var(--page-2); min-height: 360px; }
.viz-stage img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s var(--ease); }
.viz-stage img.is-active { opacity: 1; }
.viz-caption {
  position: absolute; left: 16px; bottom: 16px; z-index: 3;
  background: rgba(15, 23, 42, 0.78); backdrop-filter: blur(8px); color: #fff;
  padding: 12px 18px; border-radius: var(--r);
}
.viz-caption strong { display: block; font-family: var(--font-display); font-size: 1.04rem; }
.viz-caption span { font-size: 0.78rem; opacity: 0.78; }

.viz-panel { padding: clamp(24px, 3.4vw, 36px); background: var(--paper); }
.viz-panel h3 { font-size: 1.26rem; margin-bottom: 8px; }
.viz-panel > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.swatch {
  border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
  padding: 9px; cursor: pointer; text-align: left; transition: border-color 0.22s, transform 0.22s var(--ease);
}
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14); }
.swatch i { display: block; height: 44px; border-radius: 5px; margin-bottom: 8px; }
.swatch b { display: block; font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.swatch small { font-size: 0.72rem; color: var(--muted); }
.viz-spec { display: grid; gap: 8px; font-size: 0.88rem; margin-bottom: 22px; }
.viz-spec div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px dashed var(--line); }
.viz-spec dt { color: var(--muted); }
.viz-spec dd { color: var(--ink); font-weight: 600; }

/* ---------- Catalogue ---------- */

.filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 28px; }
.filter-group { display: grid; gap: 7px; }
.filter-group label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.filter-group select {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); font-size: 0.9rem; min-width: 160px;
}
.filter-count { margin-left: auto; font-size: 0.88rem; color: var(--muted); }
.filter-count b { color: var(--ink); }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.tile:hover { border-color: var(--teal); transform: translateY(-5px); box-shadow: var(--shadow); }
.tile.is-hidden { display: none; }
.tile-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--page-2); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.07); }
.tile-chip {
  position: absolute; top: 10px; left: 10px;
  background: rgba(15, 23, 42, 0.8); color: #fff; backdrop-filter: blur(6px);
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.tile-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.tile-body h3 { font-size: 1rem; margin-bottom: 3px; }
.tile-body .meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }
.tile-body .rate { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.tile-body .rate span { font-size: 0.74rem; font-weight: 500; color: var(--muted); }
.tile-body .btn { margin-top: auto; width: 100%; }

/* ---------- Bath ---------- */

.bath { background: var(--page-2); }
.bath-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.bath-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.bath-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.bath-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bath-body { padding: 18px 18px 20px; }
.bath-body h3 { font-size: 1.04rem; margin-bottom: 4px; }
.bath-body .meta { font-size: 0.78rem; color: var(--teal-2); font-weight: 600; margin-bottom: 10px; }
.bath-body p { font-size: 0.87rem; margin-bottom: 12px; }
.bath-body .rate { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* ---------- Calculator ---------- */

.calc-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.calc-in { padding: clamp(24px, 3.6vw, 40px); }
.calc-in h3 { font-size: 1.26rem; margin-bottom: 7px; }
.calc-in > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; }
.calc-out { padding: clamp(24px, 3.6vw, 40px); background: var(--graphite); color: rgba(255, 255, 255, 0.76); }
.calc-out h3 { color: #fff; font-size: 1.2rem; margin-bottom: 20px; }
.calc-res { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.12); border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
.calc-res div { background: var(--graphite-2); padding: 18px 16px; }
.calc-res b { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.85rem); color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-res b.accent { color: var(--teal-soft); }
.calc-res span { font-size: 0.76rem; color: rgba(255, 255, 255, 0.6); }
.calc-lines { display: grid; gap: 8px; font-size: 0.87rem; margin-bottom: 18px; }
.calc-lines div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px dashed rgba(255, 255, 255, 0.15); }
.calc-lines dt { color: rgba(255, 255, 255, 0.64); }
.calc-lines dd { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-note { font-size: 0.76rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- Brands ---------- */

.brands { background: var(--paper); border-block: 1px solid var(--line); padding: 44px 0; }
.brands ul { display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 52px); align-items: center; justify-content: center; margin-top: 22px; }
.brands li { font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 2vw, 1.3rem); color: var(--ink); opacity: 0.38; letter-spacing: -0.02em; transition: opacity 0.25s; }
.brands li:hover { opacity: 0.85; }

/* ---------- Showroom ---------- */

.showroom { background: var(--graphite); color: rgba(255, 255, 255, 0.76); }
.showroom h2, .showroom h3 { color: #fff; }
.showroom .lede { color: rgba(255, 255, 255, 0.7); }
.zone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.zone { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r); overflow: hidden; background: var(--graphite-2); }
.zone img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.zone-body { padding: 20px; }
.zone h3 { font-size: 1.06rem; margin-bottom: 7px; }
.zone p { font-size: 0.88rem; }

/* ---------- Quote form ---------- */

.quote { background: var(--paper); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--page); font-size: 0.94rem; transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: var(--paper); box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-status { display: none; padding: 13px 16px; border-radius: var(--r-sm); background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: 0.9rem; }
.form-status.is-visible { display: block; }

.help { display: grid; gap: 14px; }
.help li { display: flex; gap: 13px; align-items: flex-start; padding: 18px 20px; background: var(--page); border: 1px solid var(--line); border-radius: var(--r); }
.help svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 3px; }
.help strong { display: block; font-family: var(--font-display); font-size: 0.99rem; color: var(--ink); }
.help span { font-size: 0.88rem; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color 0.25s; }
.faq-item[open] { border-color: var(--teal); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.28s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq-item .answer { padding: 0 22px 20px; font-size: 0.93rem; }
.faq-item .answer p + p { margin-top: 10px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--graphite); color: rgba(255, 255, 255, 0.6); padding: clamp(44px, 6vw, 72px) 0 26px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-grid p { font-size: 0.89rem; margin-top: 14px; max-width: 38ch; }
.footer-grid h4 { font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-soft); margin-bottom: 14px; }
.footer-grid ul { display: grid; gap: 9px; }
.footer-grid ul a { font-size: 0.89rem; transition: color 0.2s; }
.footer-grid ul a:hover { color: #fff; }
.footer-grid .logo .txt { color: #fff; }
.footer-grid .logo .txt small { color: rgba(255, 255, 255, 0.5); }
.footer-base { padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.79rem; }
.footer-base a { color: var(--teal-soft); }

.demo-ribbon { background: var(--teal); color: #fff; text-align: center; font-size: 0.74rem; font-weight: 600; padding: 9px var(--gutter); }
.demo-ribbon a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid, .viz-card, .calc-card, .quote-grid { grid-template-columns: 1fr; }
  .viz-stage { min-height: 300px; aspect-ratio: 16 / 10; }
  .nav {
    position: fixed; inset: 72px 0 auto; z-index: 80;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 20px;
    transform: translateY(-130%); transition: transform 0.38s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 13px 14px; }
  .nav-toggle { display: block; }
  .header-right .btn:not(.btn-sm) { display: none; }
  .usp li { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile-body { padding: 12px; }
  .tile-body h3 { font-size: 0.9rem; }
  .calc-res { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: 1fr; }
  .hero-stat { position: static; margin-top: 12px; box-shadow: none; border: 1px solid var(--line); }
  .filter-group select { min-width: 0; width: 100%; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-count { grid-column: 1 / -1; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   Mobile header overflow fix
   The header bar only has room for the logo and the menu toggle on a phone,
   so every call-to-action is hidden there and re-rendered inside the menu.
   ========================================================================== */

.nav a.nav-cta { display: none; }

.header-inner { min-width: 0; }
.logo { min-width: 0; }

@media (max-width: 1000px) {
  /* --- Mobile header: CTA moves into the menu panel --- */
  .header-right .btn { display: none !important; }
  .nav a.nav-cta {
    display: block;
    margin-top: 14px;
    padding: 14px 20px;
    text-align: center;
    border-radius: var(--r-sm);
    background: var(--teal);
    border: 1px solid var(--teal);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
  }

  /* The sticky header uses backdrop-filter, which makes it the containing
     block for this fixed panel. translateY() therefore measures from the
     header, not the viewport, so the slide alone cannot be trusted to push the
     menu off screen - hide it explicitly as well. */
  .nav {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.25s var(--ease),
                visibility 0.25s var(--ease);
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}
