/* ==========================================================
   ONE DENTAL STUDIO — Main Stylesheet
   ----------------------------------------------------------
   1.  Palette  ← change the 5 colours here to re-theme the site
   2.  Design tokens (derived from the palette — no hex codes below this)
   3.  Reset & base
   4.  Typography & layout utilities
   5.  Buttons, chips, eyebrows
   6.  Top bar & header / navigation
   7.  Image placeholders
   8.  Home: hero, strengths, services bento, split, steps
   9.  Dark band & CTA card
   10. Inner pages: page hero, catalogue, values, team, tables
   11. Accordion (FAQ)
   12. Forms
   13. Contact & map
   14. Gallery (hidden page)
   15. Footer
   16. Motion
   17. Responsive
   ========================================================== */

/* ==========================================================
   1. PALETTE — swap these five values to change the colour set
   ========================================================== */
:root {
  --palette-1: #bf4e30; /* Accent     — buttons, links, emphasis   */
  --palette-2: #c6ccb2; /* Soft       — borders, placeholders      */
  --palette-3: #093824; /* Primary    — headings, dark sections    */
  --palette-4: #e5eafa; /* Tint       — alternate backgrounds      */
  --palette-5: #78fecf; /* Highlight  — small accents on dark      */
}

/* ==========================================================
   2. DESIGN TOKENS — semantic roles mapped from the palette
   ========================================================== */
:root {
  /* Surfaces */
  --color-bg:            #ffffff;
  --color-surface:       color-mix(in srgb, var(--palette-4) 45%, #ffffff);
  --color-surface-2:     var(--palette-4);
  --color-surface-soft:  color-mix(in srgb, var(--palette-2) 28%, #ffffff);
  --color-dark:          var(--palette-3);
  --color-dark-2:        color-mix(in srgb, var(--palette-3) 82%, #000000);

  /* Text */
  --color-heading:       var(--palette-3);
  --color-text:          color-mix(in srgb, var(--palette-3) 62%, #2b2b2b);
  --color-muted:         color-mix(in srgb, var(--palette-3) 38%, #7c7c7c);
  --color-on-dark:       #ffffff;
  --color-on-dark-muted: color-mix(in srgb, #ffffff 72%, var(--palette-3));

  /* Brand roles */
  --color-accent:        var(--palette-1);
  --color-accent-hover:  color-mix(in srgb, var(--palette-1) 84%, #000000);
  --color-accent-soft:   color-mix(in srgb, var(--palette-1) 10%, #ffffff);
  --color-primary:       var(--palette-3);
  --color-primary-hover: color-mix(in srgb, var(--palette-3) 85%, #ffffff);
  --color-highlight:     var(--palette-5);
  --color-highlight-soft:color-mix(in srgb, var(--palette-5) 22%, #ffffff);

  /* Lines */
  --color-border:        color-mix(in srgb, var(--palette-2) 55%, #ffffff);
  --color-border-strong: var(--palette-2);
  --color-border-dark:   color-mix(in srgb, #ffffff 14%, var(--palette-3));

  /* Placeholders */
  --color-ph-bg:         color-mix(in srgb, var(--palette-2) 38%, #ffffff);
  --color-ph-stripe:     color-mix(in srgb, var(--palette-2) 55%, #ffffff);
  --color-ph-text:       color-mix(in srgb, var(--palette-3) 55%, var(--palette-2));

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shape & depth */
  --radius-sm:  10px;
  --radius:     18px;
  --radius-lg:  28px;
  --radius-pill: 999px;
  --shadow-sm:  0 1px 2px color-mix(in srgb, var(--palette-3) 8%, transparent);
  --shadow:     0 12px 32px -12px color-mix(in srgb, var(--palette-3) 22%, transparent);
  --shadow-lg:  0 30px 60px -24px color-mix(in srgb, var(--palette-3) 30%, transparent);

  /* Layout */
  --container: 1200px;
  --gutter:    clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h:  76px;
  --ease:      cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================
   3. RESET & BASE
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--color-highlight); color: var(--color-dark); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--color-dark); color: var(--color-on-dark);
  padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ==========================================================
   4. TYPOGRAPHY & LAYOUT UTILITIES
   ========================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 96;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.1rem; line-height: 1.3; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--color-accent); font-weight: 400; }
p { max-width: 68ch; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--color-text); }
.muted { color: var(--color-muted); }
strong { color: var(--color-heading); font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-tint { background: var(--color-surface); }
.section-soft { background: var(--color-surface-soft); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }

.section-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.split {
  max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px 64px;
}
.section-head.split p { justify-self: end; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-accent); font-weight: 700;
  border-bottom: 1.5px solid transparent; transition: border-color .2s, gap .2s;
}
.text-link:hover { border-color: currentColor; gap: 10px; }

/* ==========================================================
   5. BUTTONS, CHIPS, EYEBROWS
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .95rem; line-height: 1; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn i { font-size: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn-accent  { background: var(--color-accent); color: #fff; box-shadow: 0 10px 24px -12px var(--color-accent); }
.btn-accent:hover { background: var(--color-accent-hover); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-ghost   { border-color: var(--color-border-strong); color: var(--color-heading); background: transparent; }
.btn-ghost:hover { border-color: var(--color-heading); }
.btn-light   { background: #fff; color: var(--color-dark); }
.btn-light:hover { background: var(--color-highlight); }
.btn-outline-light { border-color: var(--color-border-dark); color: #fff; }
.btn-outline-light:hover { border-color: var(--color-highlight); color: var(--color-highlight); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-heading);
}
.eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}
.on-dark .eyebrow { color: var(--color-on-dark); }
.on-dark .eyebrow::before { background: var(--color-highlight); box-shadow: 0 0 0 4px color-mix(in srgb, var(--palette-5) 22%, transparent); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--color-surface-2); color: var(--color-heading);
  font-size: .8rem; font-weight: 600;
}
.chip-outline { background: transparent; border: 1px solid var(--color-border-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--color-surface-2); color: var(--color-primary);
  font-size: 1.6rem;
}
.icon-badge.accent { background: var(--color-accent-soft); color: var(--color-accent); }
.icon-badge.dark { background: var(--color-dark); color: var(--color-highlight); }

.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li i {
  flex-shrink: 0; margin-top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem;
  background: var(--color-dark); color: var(--color-highlight);
}

/* ==========================================================
   6. TOP BAR & HEADER / NAVIGATION
   ========================================================== */
.topbar { background: var(--color-dark); color: var(--color-on-dark-muted); font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar i { color: var(--color-highlight); font-size: 1rem; }
.topbar-right { display: flex; gap: 24px; }
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, #ffffff 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 60px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; }
.nav-link {
  position: relative; display: block; padding: 8px 14px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .93rem; color: var(--color-text);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--color-heading); background: var(--color-surface); }
.nav-link.is-active { color: var(--color-heading); background: var(--color-surface-2); }
.nav-cta { padding: 12px 20px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--color-border); position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
  background: var(--color-heading); transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child  { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { top: 21px; transform: rotate(-45deg); }

/* ==========================================================
   7. IMAGE PLACEHOLDERS
   Replace <div class="img-ph"> with <img> when photos are ready.
   ========================================================== */
.img-ph {
  position: relative; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  min-height: 180px; border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, var(--color-ph-stripe) 14px 15px),
    var(--color-ph-bg);
  color: var(--color-ph-text);
}
.img-ph-label { display: grid; justify-items: center; gap: 8px; padding: 16px; font-size: .82rem; font-weight: 600; }
.img-ph-label i { font-size: 2rem; opacity: .8; }
.img-ph.tall   { aspect-ratio: 4 / 5; }
.img-ph.wide   { aspect-ratio: 16 / 10; }
.img-ph.square { aspect-ratio: 1; min-height: 0; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.img-ph.round  { border-radius: 50%; }

/* ==========================================================
   8. HOME
   ========================================================== */
/* --- Hero --- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(2.8rem, 6.2vw, 5rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px 32px; padding-top: 8px; border-top: 1px solid var(--color-border); }
.hero-meta div { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--color-heading); padding-top: 20px; }
.hero-meta i { font-size: 1.3rem; color: var(--color-accent); }

.hero-visual { position: relative; }
.hero-visual .img-ph.main { aspect-ratio: 4 / 4.6; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); }
.hero-visual .img-ph.inset {
  position: absolute; width: 42%; aspect-ratio: 1; left: -10%; bottom: -8%;
  border-radius: var(--radius-lg); border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.float-card {
  position: absolute; right: -4%; top: 12%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  background: var(--color-dark); color: #fff; box-shadow: var(--shadow-lg);
  font-size: .85rem; line-height: 1.35;
}
.float-card i { font-size: 1.6rem; color: var(--color-highlight); }
.float-card strong { color: #fff; display: block; font-size: .95rem; }

/* --- Strengths strip --- */
.strengths { border-block: 1px solid var(--color-border); }
.strengths-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strength { padding: 36px 28px; display: grid; gap: 10px; align-content: start; border-left: 1px solid var(--color-border); }
.strength:first-child { border-left: 0; padding-left: 0; }
.strength-num { font-family: var(--font-display); font-style: italic; color: var(--color-accent); font-size: 1rem; }
.strength h3 { font-size: 1.2rem; }
.strength p { font-size: .92rem; color: var(--color-muted); }

/* --- Services bento --- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento-card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--color-bg); border: 1px solid var(--color-border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  grid-column: span 2;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.bento-card.span-3 { grid-column: span 3; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card p { color: var(--color-muted); font-size: .95rem; }
.bento-card .chips { margin-top: auto; }
.bento-card .arrow {
  position: absolute; top: 28px; right: 28px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.1rem;
  border: 1px solid var(--color-border); color: var(--color-heading);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.bento-card:hover .arrow { background: var(--color-accent); color: #fff; border-color: transparent; transform: rotate(45deg); }
.bento-card.feature { background: var(--color-surface-2); border-color: transparent; }
.bento-card.feature .chip, .bento-card.feature .icon-badge { background: #fff; }
.bento-card.feature-dark { background: var(--color-dark); border-color: transparent; color: var(--color-on-dark-muted); }
.bento-card.feature-dark h3 { color: #fff; }
.bento-card.feature-dark p { color: var(--color-on-dark-muted); }
.bento-card.feature-dark .arrow { border-color: var(--color-border-dark); color: #fff; }
.bento-card.feature-dark .chip { background: color-mix(in srgb, #ffffff 10%, transparent); color: #fff; }

/* --- Split (image + text) --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-copy { display: grid; gap: 24px; }
.split-media { position: relative; }
.split-media .img-ph { aspect-ratio: 5 / 6; border-radius: var(--radius-lg); }
.media-note {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  display: flex; gap: 14px; align-items: center;
  padding: 18px 20px; border-radius: var(--radius);
  background: color-mix(in srgb, #ffffff 92%, transparent); backdrop-filter: blur(8px);
  box-shadow: var(--shadow); font-size: .9rem;
}

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.step { position: relative; display: grid; gap: 14px; align-content: start; padding-top: 72px; }
.step::before {
  counter-increment: step; content: '0' counter(step);
  position: absolute; top: 0; left: 0;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-size: 1.1rem;
  background: var(--color-bg); color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.step::after {
  content: ''; position: absolute; top: 26px; left: 64px; right: -12px;
  border-top: 1.5px dashed var(--color-border-strong);
}
.step:last-child::after { display: none; }
.step p { color: var(--color-muted); font-size: .95rem; }

/* ==========================================================
   9. DARK BAND & CTA CARD
   ========================================================== */
.band-dark {
  position: relative; overflow: hidden;
  background: var(--color-dark); color: var(--color-on-dark-muted);
}
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark h2 em { color: var(--color-highlight); }
.band-dark strong { color: #fff; }
.band-dark::before {
  content: ''; position: absolute; width: 640px; height: 640px; right: -200px; top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--palette-5) 18%, transparent), transparent 65%);
  pointer-events: none;
}
.band-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.band-copy { display: grid; gap: 24px; }

.scanner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.scanner {
  display: flex; align-items: center; gap: 14px;
  padding: 20px; border-radius: var(--radius);
  background: color-mix(in srgb, #ffffff 6%, transparent);
  border: 1px solid var(--color-border-dark);
  transition: border-color .25s, background .25s;
}
.scanner:hover { border-color: var(--color-highlight); background: color-mix(in srgb, #ffffff 9%, transparent); }
.scanner i { font-size: 1.6rem; color: var(--color-highlight); }
.scanner strong { display: block; font-size: 1rem; }
.scanner span { font-size: .82rem; }

.cta-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  padding: clamp(36px, 6vw, 72px); border-radius: var(--radius-lg);
  background: var(--color-surface-2);
}
.cta-card::after {
  content: ''; position: absolute; left: -120px; bottom: -170px; width: 320px; height: 320px;
  border-radius: 50%; border: 48px solid color-mix(in srgb, var(--palette-1) 12%, transparent);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card .btn-row { justify-content: flex-end; }
.cta-copy { display: grid; gap: 16px; }

.hours-list { display: grid; gap: 4px; font-size: .95rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; border-bottom: 1px dashed var(--color-border-strong); }
.hours-list li:last-child { border-bottom: 0; }
.hours-list .closed { color: var(--color-muted); }
.hours-list li.is-today { font-weight: 700; color: var(--color-heading); }
.hours-list li.is-today span:first-child::after { content: ' · Today'; color: var(--color-accent); font-weight: 600; }

/* ==========================================================
   10. INNER PAGES
   ========================================================== */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); position: relative; }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 64px; align-items: end; }
.page-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); }
.page-hero .lead { justify-self: end; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--color-muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--color-accent); }
.page-hero-media { margin-top: clamp(40px, 5vw, 64px); }
.page-hero-media .img-ph { aspect-ratio: 21 / 8; min-height: 0; border-radius: var(--radius-lg); }

/* Category nav (services) */
.cat-nav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: color-mix(in srgb, #ffffff 92%, transparent); backdrop-filter: blur(10px);
  border-block: 1px solid var(--color-border);
}
.cat-nav ul { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; border-radius: var(--radius-pill);
  font-size: .88rem; font-weight: 600; border: 1px solid var(--color-border);
  transition: background .2s, color .2s, border-color .2s;
}
.cat-nav a:hover, .cat-nav a.is-active { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }

.catalogue-block { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 72px); padding-block: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--color-border); }
.catalogue-block:last-child { border-bottom: 0; }
.catalogue-intro { display: grid; gap: 18px; align-content: start; position: sticky; top: calc(var(--header-h) + 90px); align-self: start; }
.catalogue-intro .img-ph { aspect-ratio: 4 / 3; min-height: 0; }
.catalogue-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service-item {
  display: grid; gap: 12px; align-content: start;
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--color-border); background: var(--color-bg);
  transition: border-color .25s, box-shadow .25s;
}
.service-item:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow); }
.service-item h3 { font-size: 1.25rem; }
.service-item p { font-size: .93rem; color: var(--color-muted); }
.service-item .chips { margin-top: 4px; }

/* Material cards */
.material-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.material {
  display: grid; gap: 14px; align-content: start;
  padding: 28px; border-radius: var(--radius);
  background: color-mix(in srgb, #ffffff 6%, transparent);
  border: 1px solid var(--color-border-dark);
}
.material h3 { font-size: 1.3rem; }
.material p { font-size: .92rem; }

/* Value / feature cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  display: grid; gap: 16px; align-content: start;
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--color-bg); border: 1px solid var(--color-border);
}
.card p { color: var(--color-muted); font-size: .95rem; }
.card.tint { background: var(--color-surface); border-color: transparent; }

/* Big statement */
.statement { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.3; color: var(--color-heading); letter-spacing: -0.01em; max-width: 30ch; }
.statement em { color: var(--color-accent); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { display: grid; gap: 16px; }
.team-card .img-ph { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
.team-card h3 { font-size: 1.3rem; }
.team-card span { font-size: .9rem; color: var(--color-accent); font-weight: 600; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--color-border); background: var(--color-bg); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--color-border); }
th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); background: var(--color-surface); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--color-heading); }
td.days { white-space: nowrap; font-weight: 700; color: var(--color-accent); }
.table-note { margin-top: 14px; font-size: .85rem; color: var(--color-muted); }

/* Method cards (send a case) */
.method {
  display: grid; gap: 18px; align-content: start;
  padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--color-border);
  background: var(--color-bg);
}
.method.featured { background: var(--color-dark); border-color: transparent; color: var(--color-on-dark-muted); }
.method.featured h3 { color: #fff; }
.method.featured .check-list li i { background: var(--color-highlight); color: var(--color-dark); }
.method .tag { justify-self: start; }
.method .btn { justify-self: start; margin-top: 8px; }

.download-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 28px 32px; border-radius: var(--radius-lg);
  background: var(--color-surface-2);
}
.download-card p { font-size: .92rem; }

/* ==========================================================
   11. ACCORDION (FAQ) — native <details>
   ========================================================== */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details {
  border-radius: var(--radius); background: var(--color-bg);
  border: 1px solid var(--color-border); transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--color-border-strong); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 26px; font-weight: 700; color: var(--color-heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--color-surface-2);
  transition: transform .3s var(--ease), background .2s, color .2s;
}
.faq details[open] summary i { transform: rotate(45deg); background: var(--color-accent); color: #fff; }
.faq .faq-body { padding: 0 26px 24px; color: var(--color-muted); }

/* ==========================================================
   12. FORMS
   ========================================================== */
.form-card {
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg);
  background: var(--color-bg); border: 1px solid var(--color-border); box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; color: var(--color-heading); }
.field label .req { color: var(--color-accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border); background: var(--color-surface);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary); background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--palette-3) 10%, transparent);
}
.field .hint { font-size: .8rem; color: var(--color-muted); }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.form-foot p { font-size: .82rem; color: var(--color-muted); }
.hidden-field { position: absolute; left: -9999px; }

/* ==========================================================
   13. CONTACT & MAP
   ========================================================== */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-row {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius); background: var(--color-surface);
}
.info-row h3 { font-size: 1.1rem; margin-bottom: 4px; }
.info-row p, .info-row a { font-size: .95rem; }
.info-row a:hover { color: var(--color-accent); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); min-height: 420px; background: var(--color-ph-bg); }
.map-frame iframe { width: 100%; height: 420px; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ==========================================================
   14. GALLERY (hidden page)
   ========================================================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-border); font-weight: 600; font-size: .9rem;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--color-heading); }
.filter-btn.is-active { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { display: grid; gap: 12px; }
.gallery-item .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gallery-item .img-ph { aspect-ratio: 1; min-height: 0; border-radius: var(--radius-sm); }
.gallery-item .pair .img-ph:first-child { border-radius: var(--radius) var(--radius-sm) var(--radius-sm) var(--radius); }
.gallery-item .pair .img-ph:last-child  { border-radius: var(--radius-sm) var(--radius) var(--radius) var(--radius-sm); }
.gallery-item h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.gallery-item.is-hidden { display: none; }

/* Thank-you page */
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.thanks .icon-badge { width: 80px; height: 80px; font-size: 2.4rem; border-radius: 24px; margin-inline: auto; }
.thanks-inner { display: grid; gap: 20px; justify-items: center; }

/* ==========================================================
   15. FOOTER
   ========================================================== */
.site-footer { background: var(--color-dark); color: var(--color-on-dark-muted); padding-top: clamp(64px, 8vw, 96px); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-brand { display: grid; gap: 20px; align-content: start; }
.footer-brand .brand { justify-self: start; padding: 14px 20px; border-radius: var(--radius); background: #fff; }
.footer-brand .brand-logo { height: 60px; }
.footer-brand p { max-width: 34ch; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { transition: color .2s, padding .2s; }
.footer-links a:hover { color: var(--color-highlight); padding-left: 4px; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact div, .footer-contact a { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--color-highlight); font-size: 1.15rem; margin-top: 2px; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 24px; border-top: 1px solid var(--color-border-dark); font-size: .82rem;
}
.footer-wordmark {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(4rem, 15vw, 13rem); line-height: .8; letter-spacing: -0.04em;
  color: color-mix(in srgb, #ffffff 7%, var(--palette-3));
  white-space: nowrap; overflow: hidden; user-select: none; padding-top: 8px;
}

/* ==========================================================
   16. MOTION
   ========================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================
   17. RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
  .main-nav { gap: 16px; }
  .nav-link { padding: 8px 10px; }
  .material-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalogue-block { grid-template-columns: 1fr; }
  .catalogue-intro { position: static; grid-template-columns: 1fr 1fr; align-items: center; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .site-header .brand-logo { height: 50px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 20px var(--gutter) 28px;
    background: #fff; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .nav-link { padding: 14px 12px; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav-cta { justify-content: center; padding: 16px; }

  .hero-grid, .split, .band-grid, .contact-grid, .cta-card, .page-hero-grid, .section-head.split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .page-hero .lead, .section-head.split p { justify-self: start; }
  .cta-card .btn-row { justify-content: flex-start; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }
  .strength { border-left: 0; border-top: 1px solid var(--color-border); padding-left: 0; }
  .strength:nth-child(-n+2) { border-top: 0; }
  .strength:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--color-border); }
  .bento-card, .bento-card.span-3, .bento-card.span-4 { grid-column: span 3; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step:nth-child(2)::after { display: none; }
  .card-grid, .team-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .topbar-inner > span:first-child { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-right { gap: 16px; }
  .hero-visual .img-ph.inset { left: -4%; }
  .page-hero-media .img-ph { aspect-ratio: 4 / 3; }
  .float-card { right: 0; }
  .strengths-grid, .bento, .steps, .card-grid, .card-grid.cols-2, .card-grid.cols-4,
  .team-grid, .gallery-grid, .material-grid, .catalogue-items, .form-grid, .scanner-grid, .footer-grid { grid-template-columns: 1fr; }
  .strength, .strength:nth-child(even) { padding-left: 0; border-left: 0; }
  .strength:nth-child(2) { border-top: 1px solid var(--color-border); }
  .bento-card, .bento-card.span-3, .bento-card.span-4 { grid-column: auto; }
  .step::after { display: none; }
  .catalogue-intro { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; }
  .download-card .btn { justify-self: start; }
  .btn-row .btn { flex: 1 1 auto; }
  th, td { padding: 14px 16px; }
}
