/* ═══════════════════════════════════════════════════════════════
   DENTRICIAN — main.css v5
   Single source of truth for all layout, spacing, typography.
   Dynamic colours: injected via <style>:root{…}</style> in header.
   ═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  /* Brand colours — overridden by DB values in <style> tag */
  --c0: #00B8A9; /* primary teal        */
  --c1: #009E91; /* teal hover          */
  --c2: #E5F7F6; /* teal light bg       */
  --c3: #E03535; /* accent red          */
  --c4: #C42B2B; /* red hover           */
  --c5: #FDEAEA; /* red light bg        */
  --c6: #0C1B2E; /* navy dark           */
  --c7: #0D1F35; /* charcoal headings   */
  --c8: #3A4A5C; /* body text           */
  --c9: #6B7C8D; /* muted text          */
  --ca: #DDE5EC; /* border              */
  --cb: #F4F6F8; /* surface bg          */
  --cc: #FFFFFF; /* white               */
  --cd: #00D4C8; /* cyan accent         */

  /* These map to the DB colour_vars() output names */
  --clr-primary:    var(--c0);
  --clr-primary-h:  var(--c1);
  --clr-primary-lt: var(--c2);
  --clr-accent:     var(--c3);
  --clr-accent-h:   var(--c4);
  --clr-accent-lt:  var(--c5);
  --clr-navy:       var(--c6);
  --clr-charcoal:   var(--c7);
  --clr-body:       var(--c8);
  --clr-muted:      var(--c9);
  --clr-border:     var(--ca);
  --clr-surface:    var(--cb);
  --clr-white:      var(--cc);
  --clr-cyan:       var(--cd);

  /* Typography */
  --f-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-body: 'DM Sans', system-ui, sans-serif;

  /* Layout — ONE consistent max-width for all containers */
  --mw:     1180px;    /* max content width */
  --gap:    clamp(1.5rem, 4vw, 3rem);  /* horizontal gutters */
  --nav-h:  68px;

  /* Spacing — fluid scale, never jumps */
  --s1: clamp(1rem,   2vw,  1.5rem);   /* tight */
  --s2: clamp(1.5rem, 3vw,  2.5rem);   /* medium */
  --s3: clamp(2.5rem, 5vw,  4rem);     /* section pad */
  --s4: clamp(3.5rem, 6vw,  5.5rem);   /* large section */

  /* Border radius */
  --r1: 5px;
  --r2: 10px;
  --r3: 16px;

  /* Shadows */
  --sh1: 0 1px 4px rgba(12,27,46,.07);
  --sh2: 0 4px 20px rgba(12,27,46,.1);
  --sh3: 0 12px 48px rgba(12,27,46,.14);

  /* Transition */
  --tr: .17s ease;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-body);
  background: var(--clr-white);
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: var(--clr-primary); text-decoration: none; transition: color var(--tr); }
ul   { list-style: none; }
strong { font-weight: 700; color: var(--clr-charcoal); }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 800;
  color: var(--clr-charcoal);
  line-height: 1.1;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw,   2.4rem); }
h3 { font-size: clamp(1rem,   1.8vw,  1.2rem); letter-spacing: -.015em; }
h4 { font-size: .9rem; letter-spacing: -.01em; }
p  { line-height: 1.75; color: var(--clr-body); }

/* ── CORE LAYOUT ────────────────────────────────────────────── */
/*
  Strategy: all containers share --mw and --gap.
  Sections are either:
    .section           — white bg, vertical padding --s4
    .section.surf      — surface bg
    .section.dark      — navy bg
    .section.charcoal  — charcoal bg
  Full-bleed sections use padding instead of nested container
  to avoid the "narrow strip on wide screen" problem.
*/

.wrap {
  width: 100%;
  max-width: var(--mw);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.section {
  padding-block: var(--s4);
}
.section.surf     { background: var(--clr-surface); }
.section.dark     { background: var(--clr-navy); }
.section.charcoal { background: var(--clr-charcoal); }

/* ── EYEBROW LABEL ──────────────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--f-head);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--clr-primary);
  margin-bottom: .8rem;
}
.label::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.label.accent    { color: var(--clr-accent); }
.label.accent::before { background: var(--clr-accent); }
.label.dim   { color: rgba(255,255,255,.45); }
.label.dim::before   { background: rgba(255,255,255,.3); }
.label.c { display: flex; justify-content: center; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-family: var(--f-head);
  font-size: .83rem;
  font-weight: 700;
  padding: .72rem 1.55rem;
  border-radius: var(--r1);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--tr);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.btn-primary:hover { background: var(--clr-primary-h); border-color: var(--clr-primary-h); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,184,169,.3); color: #fff; }
.btn-accent  { background: var(--clr-accent); color: #fff; border-color: var(--clr-accent); }
.btn-accent:hover  { background: var(--clr-accent-h); border-color: var(--clr-accent-h); transform: translateY(-1px); color: #fff; }
.btn-ghost   { background: transparent; color: var(--clr-charcoal); border-color: var(--clr-border); }
.btn-ghost:hover   { border-color: var(--clr-primary); color: var(--clr-primary); background: var(--clr-primary-lt); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); color: #fff; }
.btn-white   { background: #fff; color: var(--clr-charcoal); border-color: #fff; }
.btn-white:hover   { background: var(--clr-surface); }
.btn-lg { padding: .88rem 1.9rem; font-size: .9rem; }
.btn-sm { padding: .45rem .9rem;  font-size: .75rem; }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--tr);
}
nav.scrolled { box-shadow: 0 2px 20px rgba(12,27,46,.1); }

.nav-inner {
  height: 100%;
  max-width: calc(var(--mw) + var(--gap) * 2);
  margin-inline: auto;
  padding-inline: var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: var(--f-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--clr-charcoal);
  letter-spacing: -.04em;
  flex-shrink: 0;
}
.logo span { color: var(--clr-primary); }

.nav-menu { display: flex; align-items: center; gap: .02rem; }
.nav-menu a {
  font-family: var(--f-head);
  font-size: .74rem;
  font-weight: 600;
  color: var(--clr-muted);
  padding: .38rem .55rem;
  border-radius: var(--r1);
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--clr-charcoal); background: var(--clr-surface); }

.nav-portal {
  border: 1.5px solid var(--clr-border) !important;
  margin-left: .3rem;
}
.nav-portal:hover { border-color: var(--clr-primary) !important; color: var(--clr-primary) !important; }

.nav-cta {
  background: var(--clr-accent) !important;
  color: #fff !important;
  padding: .4rem .95rem !important;
  border-radius: var(--r1) !important;
  margin-left: .5rem;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--clr-accent-h) !important; color: #fff !important; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--clr-charcoal);
  border-radius: 2px;
  transition: all .22s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mob-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--clr-white);
  z-index: 899;
  flex-direction: column;
  padding: 1.5rem var(--gap) 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.4,0,.2,1);
}
.mob-drawer.open { display: flex; transform: translateX(0); }
.mob-drawer a {
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-charcoal);
  padding: .85rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.mob-drawer .mob-portal { color: var(--clr-primary) !important; }
.mob-cta-wrap { margin-top: 1.5rem; }

/* ═══════════════════════════════════════════════════════════════
   HERO — Full viewport, two-column on desktop
   ═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 36%;
  background: var(--clr-navy);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 90% at 75% 40%, rgba(0,184,169,.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 55% at 10% 85%, rgba(0,212,200,.07) 0%, transparent 55%),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: auto, auto, 52px 52px, 52px 52px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Left padding tracks the container edge so text aligns with rest of page */
  padding: calc(var(--nav-h) + var(--s3)) var(--gap) var(--s3)
           max(var(--gap), calc((100vw - var(--mw)) / 2 + var(--gap)));
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(0,184,169,.13);
  border: 1px solid rgba(0,184,169,.22);
  border-radius: 100px;
  padding: .32rem .85rem .32rem .45rem;
  margin-bottom: 1.8rem;
  width: fit-content;
}
.hero-pill-dot {
  width: 7px; height: 7px;
  background: var(--clr-primary);
  border-radius: 50%;
  animation: blink 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
.hero-pill span {
  font-family: var(--f-head);
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-primary);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero h1 { color: #fff; margin-bottom: 1.3rem; }
.hero h1 .hl { color: var(--clr-cyan); display: block; }
.hero-desc { font-size: .97rem; color: rgba(255,255,255,.5); max-width: 460px; line-height: 1.82; margin-bottom: 2.2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.8rem; }
.hero-kpis {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-kpi { display: flex; flex-direction: column; gap: .1rem; }
.hero-kpi-v { font-family: var(--f-head); font-size: 1.05rem; font-weight: 800; color: var(--clr-primary); }
.hero-kpi-l { font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.28); }

/* Hero image column */
.hero-img {
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,.15);
  border-left: 1px solid rgba(255,255,255,.06);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.hero-img-ph {
  width: 100%; height: 100%; min-height: 400px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .55rem; color: rgba(255,255,255,.2); font-family: var(--f-head); font-size: .75rem; text-align: center; padding: 2rem;
}
.hero-img-ph code { color: var(--clr-primary); font-size: .68rem; }

.hero-badge {
  position: absolute; bottom: 2rem; left: -1.2rem;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-radius: var(--r2);
  padding: .85rem 1.1rem;
  display: flex; align-items: center; gap: .8rem;
  box-shadow: var(--sh3);
  min-width: 190px;
}
.hb-icon { width: 36px; height: 36px; background: var(--clr-primary-lt); border-radius: var(--r1); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.hb-label { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--clr-muted); font-family: var(--f-head); }
.hb-val   { font-family: var(--f-head); font-size: .83rem; font-weight: 700; color: var(--clr-charcoal); margin-top: .1rem; }

/* ── TRUST RIBBON ─────────────────────────────────────────── */
.ribbon { background: var(--clr-charcoal); }
.ribbon-inner {
  max-width: calc(var(--mw) + var(--gap) * 2);
  margin-inline: auto;
  padding: .8rem var(--gap);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
}
.ribbon-lbl { font-family: var(--f-head); font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.2); white-space: nowrap; flex-shrink: 0; }
.ribbon-dots { display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none; }
.ribbon-dots::-webkit-scrollbar { display: none; }
.ribbon-dot-item { display: flex; align-items: center; gap: .42rem; font-family: var(--f-head); font-size: .68rem; font-weight: 700; color: rgba(255,255,255,.42); white-space: nowrap; }
.ribbon-dot-item::before { content: ''; width: 4px; height: 4px; background: var(--clr-primary); border-radius: 50%; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   PROBLEM / SOLUTION — full-bleed split panels
   Key: padding is set so content aligns with --mw container
   ═══════════════════════════════════════════════════════════════ */
.ps-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
/* Each panel carries its own padding — left panel tracks right edge of mw,
   right panel tracks left edge of mw, so on any screen width
   the text is always inside the max-width box */
.ps-dark {
  background: var(--clr-charcoal);
  padding: var(--s4)
           var(--gap)
           var(--s4)
           max(var(--gap), calc((100vw - var(--mw)) / 2 + var(--gap)));
}
.ps-light {
  background: var(--clr-surface);
  padding: var(--s4)
           max(var(--gap), calc((100vw - var(--mw)) / 2 + var(--gap)))
           var(--s4)
           var(--gap);
}
.ps-dark h2  { color: #fff; margin-bottom: .9rem; }
.ps-dark > p { color: rgba(255,255,255,.42); font-size: .9rem; line-height: 1.78; margin-bottom: 1.8rem; }

.pain-list { display: flex; flex-direction: column; gap: .85rem; }
.pain-item { display: flex; gap: .85rem; padding: .9rem 1rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: var(--r2); }
.pain-ico { width: 34px; height: 34px; background: rgba(255,255,255,.07); border-radius: var(--r1); display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.pain-item h4 { font-family: var(--f-head); font-size: .84rem; font-weight: 700; color: rgba(255,255,255,.8); margin-bottom: .18rem; }
.pain-item p  { font-size: .78rem; color: rgba(255,255,255,.32); line-height: 1.6; }

.ps-light h2  { margin-bottom: .9rem; }
.ps-light > p { font-size: .9rem; color: var(--clr-muted); line-height: 1.78; margin-bottom: 1.6rem; }

.sol-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.8rem; }
.sol-item { display: flex; gap: .75rem; align-items: flex-start; padding: .62rem .88rem; background: #fff; border: 1px solid var(--clr-border); border-radius: var(--r1); font-size: .83rem; line-height: 1.5; transition: border-color var(--tr); }
.sol-item:hover { border-color: var(--clr-primary); }
.sol-tick { width: 17px; height: 17px; background: var(--clr-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .14rem; }
.sol-tick::after { content: ''; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }

/* ═══════════════════════════════════════════════════════════════
   GRID SYSTEMS — semantic, fully responsive
   ═══════════════════════════════════════════════════════════════ */

/* 3-col → 2-col @ 900px → 1-col @ 580px */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* 2-col → 1-col @ 700px */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }

/* Auto-fit with a min width — tiles gracefully on any screen */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.4rem; }

/* Content + image split — switches to image-on-top stacked on tablet */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.split-2.flip { direction: rtl; }
.split-2.flip > * { direction: ltr; }

/* Wide split: 3fr content + 2fr image */
.split-wide { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }

/* 2-col text + checklist */
.split-check { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }

/* Section intro: label + title on left, content on right */
.intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 5rem); align-items: start; margin-bottom: var(--s3); }

/* ── WHY CARDS ─────────────────────────────────────────────── */
.why-card { text-align: center; padding: 1.8rem 1.4rem; background: #fff; border: 1px solid var(--clr-border); border-radius: var(--r3); transition: border-color var(--tr), box-shadow var(--tr); }
.why-card:hover { border-color: var(--clr-primary); box-shadow: var(--sh2); }
.why-icon { width: 54px; height: 54px; background: var(--clr-primary-lt); border-radius: var(--r2); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin: 0 auto 1rem; }
.why-card h3 { margin-bottom: .45rem; }
.why-card p  { font-size: .82rem; color: var(--clr-muted); line-height: 1.65; }

/* ── SERVICE CARDS ─────────────────────────────────────────── */
.svc-card { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--r3); overflow: hidden; transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--sh3); border-color: var(--clr-primary); }
.svc-card-head { padding: 1.4rem 1.4rem 0; display: flex; align-items: flex-start; gap: .9rem; }
.svc-icon { width: 46px; height: 46px; background: var(--clr-primary-lt); border-radius: var(--r2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.svc-card-head h3 { font-size: .97rem; margin-bottom: .22rem; }
.svc-card-head p  { font-size: .78rem; color: var(--clr-muted); line-height: 1.55; }
.svc-body { padding: 1rem 1.4rem 1.4rem; }
.svc-list { display: flex; flex-direction: column; margin-bottom: .9rem; }
.svc-list li { font-size: .79rem; color: var(--clr-body); padding: .32rem 0 .32rem .8rem; border-bottom: 1px solid var(--clr-border); position: relative; line-height: 1.5; }
.svc-list li:last-child { border-bottom: none; }
.svc-list li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; background: var(--clr-primary); border-radius: 50%; }
.svc-list li.urgent { color: var(--clr-accent); font-weight: 600; }
.svc-list li.urgent::before { background: var(--clr-accent); }
.tag-row { display: flex; flex-wrap: wrap; gap: .3rem; }
.tag { font-family: var(--f-head); font-size: .57rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .17rem .5rem; border-radius: 100px; }
.tag-blue { background: var(--clr-primary-lt); color: var(--clr-primary-h); }
.tag-gold { background: #fff7e6; color: #92400e; }

/* ── INFO CARDS ────────────────────────────────────────────── */
.info-card { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--r3); padding: 1.6rem; border-top: 3px solid var(--clr-primary); transition: transform var(--tr), box-shadow var(--tr); }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--sh2); }
.info-card.at  { border-top-color: var(--clr-accent); }
.info-card.dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
.ic-icon { font-size: 1.5rem; margin-bottom: .8rem; }
.info-card h3 { font-size: .94rem; margin-bottom: .4rem; }
.info-card p  { font-size: .81rem; color: var(--clr-muted); line-height: 1.65; }
.info-card.dark h3 { color: #fff; }
.info-card.dark p  { color: rgba(255,255,255,.42); }

/* ── IMAGE FRAME ───────────────────────────────────────────── */
/*
  Images always fill their frame.
  On desktop: 4/3 ratio
  On tablet:  16/8 landscape banner (less tall, better proportion when stacked)
  On mobile:  16/9
*/
.img-frame {
  border-radius: var(--r3);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--clr-surface);
  border: 1px dashed var(--clr-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  color: var(--clr-muted);
  font-family: var(--f-head);
  font-size: .76rem;
  width: 100%;
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-frame code { font-size: .66rem; color: var(--clr-primary); }

/* ── ABOUT ─────────────────────────────────────────────────── */
.about-img { border-radius: var(--r3); overflow: hidden; aspect-ratio: 16 / 10; background: var(--clr-surface); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.stat-box { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--r2); padding: 1.1rem 1.2rem; text-align: center; }
.stat-box.t { background: var(--clr-primary); border-color: var(--clr-primary); }
.stat-box.n { background: var(--clr-navy);    border-color: var(--clr-navy); }
.stat-n { font-family: var(--f-head); font-size: 1.5rem; font-weight: 800; color: var(--clr-charcoal); letter-spacing: -.03em; line-height: 1; margin-bottom: .22rem; }
.stat-box.t .stat-n, .stat-box.n .stat-n { color: #fff; }
.stat-l { font-size: .63rem; color: var(--clr-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-family: var(--f-head); }
.stat-box.t .stat-l, .stat-box.n .stat-l { color: rgba(255,255,255,.52); }

/* ── CARE PLANS ────────────────────────────────────────────── */
.plan-card { border: 1.5px solid var(--clr-border); border-radius: var(--r3); overflow: hidden; background: #fff; transition: transform var(--tr), box-shadow var(--tr); }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--sh3); }
.plan-card.feat { border-color: var(--clr-primary); border-width: 2px; position: relative; }
.plan-card.feat::before { content: 'Most Popular'; position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: var(--clr-primary); color: #fff; font-family: var(--f-head); font-size: .57rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: .28rem .9rem; border-radius: 0 0 var(--r1) var(--r1); white-space: nowrap; }
.plan-head { padding: 1.7rem 1.4rem .9rem; }
.plan-card.feat .plan-head { padding-top: 2.3rem; }
.plan-tier { font-family: var(--f-head); font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--clr-primary); display: block; margin-bottom: .4rem; }
.plan-head h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.plan-head p  { font-size: .8rem; color: var(--clr-muted); line-height: 1.6; }
.plan-body { padding: 0 1.4rem 1.4rem; }
.plan-list { display: flex; flex-direction: column; border-top: 1px solid var(--clr-border); padding-top: 1rem; margin-bottom: 1.2rem; }
.plan-list li { font-size: .8rem; color: var(--clr-body); padding: .26rem 0 .26rem 1.1rem; position: relative; }
.plan-list li::before { content: '✓'; position: absolute; left: 0; color: var(--clr-primary); font-weight: 800; font-size: .74rem; }
.plan-list li strong { color: var(--clr-charcoal); }
.plan-btn { display: block; text-align: center; background: var(--clr-primary); color: #fff; font-family: var(--f-head); font-size: .82rem; font-weight: 700; padding: .8rem; border-radius: var(--r1); text-decoration: none; transition: background var(--tr), transform var(--tr); }
.plan-btn:hover { background: var(--clr-primary-h); transform: translateY(-1px); color: #fff; }
.plan-card.feat .plan-btn { background: var(--clr-accent); }
.plan-card.feat .plan-btn:hover { background: var(--clr-accent-h); }

/* ── TESTIMONIALS ──────────────────────────────────────────── */
.testi-card { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--r3); padding: 1.6rem; border-top: 3px solid var(--clr-primary); transition: box-shadow var(--tr); }
.testi-card:hover { box-shadow: var(--sh2); }
.testi-stars { color: #f59e0b; font-size: .82rem; letter-spacing: .1em; margin-bottom: .8rem; }
.testi-q { font-size: .85rem; color: var(--clr-body); line-height: 1.75; font-style: italic; margin-bottom: 1.1rem; padding-left: 1rem; border-left: 3px solid var(--clr-primary-lt); }
.testi-name { font-family: var(--f-head); font-size: .8rem; font-weight: 700; color: var(--clr-charcoal); }
.testi-role { font-size: .72rem; color: var(--clr-muted); margin-top: .1rem; }

/* ── CTA BANNER ────────────────────────────────────────────── */
.cta-banner { background: var(--clr-accent); padding: var(--s3) 0; }
.cta-row { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.cta-row h2 { color: #fff; margin-bottom: .45rem; }
.cta-row p  { color: rgba(255,255,255,.7); font-size: .9rem; }
.cta-btns   { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* ── BRANDS ────────────────────────────────────────────────── */
.brands-bar { background: var(--clr-surface); border-top: 1px solid var(--clr-border); border-bottom: 1px solid var(--clr-border); }
.brands-row { padding: 1.2rem var(--gap); max-width: calc(var(--mw) + var(--gap) * 2); margin-inline: auto; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.brands-lbl { font-family: var(--f-head); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--clr-muted); white-space: nowrap; flex-shrink: 0; padding-right: 1.5rem; border-right: 1px solid var(--clr-border); }
.brand-logos { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; flex: 1; }
.brand-logo { height: 26px; width: auto; max-width: 100px; object-fit: contain; filter: grayscale(1); opacity: .4; transition: opacity var(--tr), filter var(--tr); }
.brand-logo:hover { filter: none; opacity: 1; }
.brand-txt { font-family: var(--f-head); font-size: .76rem; font-weight: 700; color: var(--clr-muted); }
.brand-other { font-size: .72rem; color: var(--clr-muted); font-style: italic; }

/* ── CONTACT ───────────────────────────────────────────────── */
.contact-split { display: grid; grid-template-columns: 2fr 3fr; }
.ct-info {
  background: var(--clr-navy);
  padding: var(--s4)
           var(--gap)
           var(--s4)
           max(var(--gap), calc((100vw - var(--mw)) / 2 + var(--gap)));
}
@media (min-width: 1600px) {
  .ct-info  { padding-left: calc((100vw - var(--mw)) / 2 + var(--gap)); }
  .ct-form  { padding-right: calc((100vw - var(--mw)) / 2 + var(--gap)); }
  .ps-dark  { padding-left: calc((100vw - var(--mw)) / 2 + var(--gap)); }
  .ps-light { padding-right: calc((100vw - var(--mw)) / 2 + var(--gap)); }
}
.ct-info h2 { color: #fff; margin-bottom: .8rem; }
.ct-info > p { color: rgba(255,255,255,.44); font-size: .9rem; line-height: 1.78; margin-bottom: 1.8rem; }
.ct-dets { display: flex; flex-direction: column; gap: 1rem; }
.ct-row  { display: flex; gap: .8rem; align-items: flex-start; }
.ct-icon { width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: var(--r1); display: flex; align-items: center; justify-content: center; font-size: .88rem; flex-shrink: 0; }
.ct-lbl  { font-family: var(--f-head); font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.26); margin-bottom: .16rem; }
.ct-val  { font-size: .84rem; color: rgba(255,255,255,.7); line-height: 1.5; }
.ct-val a { color: var(--clr-primary); }
.ct-val a:hover { color: var(--clr-cyan); }
.emg-box { margin-top: 1.8rem; background: rgba(224,53,53,.12); border: 1px solid rgba(224,53,53,.25); border-radius: var(--r2); padding: 1rem 1.2rem; }
.emg-lbl { font-family: var(--f-head); font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--clr-accent); margin-bottom: .35rem; }
.emg-box p { font-size: .81rem; color: rgba(255,255,255,.52); line-height: 1.65; }
.emg-box a { color: var(--clr-accent); font-weight: 700; }

.ct-form {
  background: var(--clr-surface);
  padding: var(--s4)
           max(var(--gap), calc((100vw - var(--mw)) / 2 + var(--gap)))
           var(--s4)
           var(--gap);
}
.ct-form h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: .35rem; }
.form-sub { font-size: .86rem; color: var(--clr-muted); margin-bottom: 1.7rem; line-height: 1.6; }

/* ── FORM FIELDS ───────────────────────────────────────────── */
.fg { margin-bottom: .9rem; }
.fg label { display: block; font-family: var(--f-head); font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--clr-charcoal); margin-bottom: .32rem; }
.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: .75rem .95rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r1);
  font-family: var(--f-body);
  font-size: .88rem;
  color: var(--clr-body);
  background: #fff;
  outline: none;
  transition: border-color var(--tr), box-shadow var(--tr);
  appearance: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(0,184,169,.11);
}
.fg textarea { resize: vertical; min-height: 100px; }
.fg-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.hp-field { display: none !important; }
.form-ok  { background: var(--clr-primary-lt); color: var(--clr-primary-h); border: 1px solid rgba(0,184,169,.2); border-radius: var(--r1); padding: .8rem .95rem; font-size: .85rem; font-weight: 600; margin-bottom: .9rem; }
.form-err { background: var(--clr-accent-lt);  color: var(--clr-accent-h);  border: 1px solid rgba(224,53,53,.2);  border-radius: var(--r1); padding: .8rem .95rem; font-size: .85rem; font-weight: 600; margin-bottom: .9rem; }
.btn-submit { width: 100%; background: var(--clr-accent); color: #fff; border: none; padding: .92rem; border-radius: var(--r1); font-family: var(--f-head); font-size: .88rem; font-weight: 700; cursor: pointer; transition: background var(--tr), transform var(--tr); margin-top: .35rem; }
.btn-submit:hover { background: var(--clr-accent-h); transform: translateY(-1px); }

/* ── INLINE SURVEY ─────────────────────────────────────────── */
.isv { background: var(--clr-navy); padding: var(--s3) 0; }
.isv-inner { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.isv h2 { color: #fff; margin-bottom: .7rem; }
.isv > div > p { color: rgba(255,255,255,.46); font-size: .88rem; line-height: 1.78; }
.isv-bullets { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.isv-bullet  { display: flex; align-items: center; gap: .7rem; font-size: .82rem; color: rgba(255,255,255,.5); }
.isv-b-ico   { width: 28px; height: 28px; background: rgba(0,184,169,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.isv-form    { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r3); padding: 1.6rem; }
.isv-title   { font-family: var(--f-head); font-size: .86rem; font-weight: 700; color: #fff; margin-bottom: 1.1rem; }
.isv-fg      { margin-bottom: .75rem; }
.isv-fg label { display: block; font-family: var(--f-head); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.45); margin-bottom: .28rem; }
.isv-fg input,
.isv-fg select {
  width: 100%;
  padding: .68rem .85rem;
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: var(--r1);
  font-family: var(--f-body);
  font-size: .86rem;
  color: #fff;
  background: rgba(255,255,255,.07);
  outline: none;
  appearance: none;
  transition: border-color var(--tr);
}
.isv-fg input::placeholder { color: rgba(255,255,255,.28); }
.isv-fg input:focus, .isv-fg select:focus { border-color: var(--clr-primary); }
.isv-fg select option { background: var(--clr-charcoal); color: #fff; }
.isv-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.isv-submit { width: 100%; background: var(--clr-accent); color: #fff; border: none; padding: .84rem; border-radius: var(--r1); font-family: var(--f-head); font-size: .86rem; font-weight: 700; cursor: pointer; margin-top: .35rem; transition: background var(--tr), transform var(--tr); }
.isv-submit:hover { background: var(--clr-accent-h); transform: translateY(-1px); }

/* ── PAGE HERO (inner pages) ────────────────────────────────── */
.page-hero {
  background: var(--clr-navy);
  padding: calc(var(--nav-h) + var(--s3)) 0 var(--s3);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 100% at 95% 50%, rgba(0,184,169,.09) 0%, transparent 60%),
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
.page-hero-in { position: relative; z-index: 2; max-width: 660px; }
.breadcrumb { display: flex; align-items: center; gap: .42rem; font-family: var(--f-head); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.27); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--clr-primary); }
.breadcrumb span { color: rgba(255,255,255,.14); }
.page-hero h1 { color: #fff; margin-bottom: .8rem; }
.page-hero-in > p { font-size: .97rem; color: rgba(255,255,255,.46); max-width: 580px; line-height: 1.78; }

/* ── SECTION INTRO BLOCK ─────────────────────────────────────── */
.section-intro { max-width: 580px; margin-bottom: var(--s2); }
.section-intro.c { max-width: 560px; margin-inline: auto; text-align: center; }
.section-intro.c .label { justify-content: center; }
.section-intro h2 { margin-bottom: .6rem; }
.section-intro p  { font-size: .9rem; color: var(--clr-muted); line-height: 1.78; margin-top: .5rem; }

/* ── CHECK LIST ─────────────────────────────────────────────── */
.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.chk { display: flex; gap: .52rem; align-items: flex-start; font-size: .81rem; color: var(--clr-body); line-height: 1.5; }
.chk::before { content: '✓'; color: var(--clr-primary); font-weight: 800; flex-shrink: 0; margin-top: .05rem; font-size: .74rem; }
.chk.w  { color: rgba(255,255,255,.65); }
.chk.w::before { color: var(--clr-primary); }

/* ── SPEC TABLE ─────────────────────────────────────────────── */
.spec-table { width: 100%; border-collapse: collapse; border-radius: var(--r2); overflow: hidden; border: 1px solid var(--clr-border); margin-top: 1.2rem; }
.spec-table th { background: var(--clr-charcoal); color: #fff; padding: .66rem .95rem; text-align: left; font-family: var(--f-head); font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.spec-table td { padding: .66rem .95rem; border-bottom: 1px solid var(--clr-border); font-size: .82rem; }
.spec-table tr:nth-child(even) td { background: var(--clr-surface); }
.spec-table tr:last-child td { border-bottom: none; }

/* ── PROCESS TIMELINE ───────────────────────────────────────── */
.process-tl { position: relative; padding-left: 3rem; }
.process-tl::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--clr-primary), var(--clr-accent)); border-radius: 2px; }
.pt { position: relative; margin-bottom: 2rem; }
.pt:last-child { margin-bottom: 0; }
.pt-n { position: absolute; left: -3rem; top: 0; width: 32px; height: 32px; background: var(--clr-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-size: .75rem; font-weight: 800; color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--clr-primary); }
.pt.a .pt-n { background: var(--clr-accent); box-shadow: 0 0 0 2px var(--clr-accent); }
.pt h3 { font-size: .94rem; margin-bottom: .38rem; }
.pt p  { font-size: .81rem; color: var(--clr-muted); line-height: 1.7; }
.pt ul { margin-top: .5rem; display: flex; flex-direction: column; gap: .3rem; }
.pt ul li { font-size: .79rem; color: var(--clr-body); display: flex; gap: .42rem; }
.pt ul li::before { content: '→'; color: var(--clr-primary); font-weight: 700; flex-shrink: 0; }

/* ── COMPLIANCE REGS ────────────────────────────────────────── */
.reg-item { border-left: 3px solid var(--clr-primary); padding: .85rem 1.05rem; background: var(--clr-surface); border-radius: 0 var(--r1) var(--r1) 0; margin-bottom: .8rem; }
.reg-item h4 { font-family: var(--f-head); font-size: .72rem; font-weight: 800; color: var(--clr-charcoal); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.reg-item p  { font-size: .8rem; color: var(--clr-muted); line-height: 1.65; }

/* ── CLIENT PORTAL ──────────────────────────────────────────── */
.portal-wrap { min-height: 100vh; background: var(--clr-surface); }
.portal-inner { max-width: 1000px; margin: 0 auto; padding: 2.5rem var(--gap); }
.portal-hdr { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--r3); padding: 1.5rem 1.8rem; margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; }
.rec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r3); overflow: hidden; border: 1px solid var(--clr-border); }
.rec-table th { background: var(--clr-charcoal); color: #fff; padding: .8rem 1rem; text-align: left; font-family: var(--f-head); font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.rec-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--clr-border); font-size: .81rem; vertical-align: middle; }
.rec-table tr:last-child td { border-bottom: none; }
.rec-table tr:hover td { background: var(--clr-surface); }
.ref-b   { font-family: monospace; font-size: .73rem; background: var(--clr-primary-lt); color: var(--clr-charcoal); font-weight: 700; padding: .18rem .52rem; border-radius: var(--r1); }
.type-b  { font-family: var(--f-head); font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .18rem .55rem; border-radius: 100px; }
.tb-s { background: var(--clr-primary-lt); color: var(--clr-primary-h); }
.tb-i { background: #fef3c7; color: #92400e; }
.tb-v { background: #f3e8ff; color: #6b21a8; }
.tb-e { background: var(--clr-accent-lt); color: var(--clr-accent-h); }
.tb-o { background: var(--clr-surface); color: var(--clr-muted); }
.pdf-btn { display: inline-flex; align-items: center; gap: .32rem; background: var(--clr-accent); color: #fff; padding: .26rem .7rem; border-radius: var(--r1); font-size: .71rem; font-weight: 700; font-family: var(--f-head); text-decoration: none; transition: background var(--tr); }
.pdf-btn:hover { background: var(--clr-accent-h); color: #fff; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer-main { background: var(--clr-navy); padding: var(--s4) 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: var(--s3); }
.ft-brand p { font-size: .79rem; color: rgba(255,255,255,.28); line-height: 1.75; max-width: 260px; margin-top: .8rem; }
.ft-links { margin-top: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.ft-links a { font-size: .79rem; color: rgba(255,255,255,.42); transition: color var(--tr); }
.ft-links a:hover { color: var(--clr-primary); }
.ft-links span { font-size: .75rem; color: rgba(255,255,255,.2); }
.ft-col h5 { font-family: var(--f-head); font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.2); margin-bottom: .85rem; }
.ft-col ul { display: flex; flex-direction: column; gap: .48rem; }
.ft-col a { font-size: .79rem; color: rgba(255,255,255,.32); transition: color var(--tr); }
.ft-col a:hover { color: rgba(255,255,255,.75); }
.footer-bot { border-top: 1px solid rgba(255,255,255,.07); padding: 1.3rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; }
.footer-bot p, .footer-bot a { font-size: .67rem; color: rgba(255,255,255,.18); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET ≤ 1080px
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  /* Nav */
  .nav-menu  { display: none; }
  .hamburger { display: flex; }

  /* Hero: image becomes subtle background, not hidden */
  .hero { grid-template-columns: 1fr; }
  .hero-img {
    position: absolute;
    inset: 0;
    opacity: .12;
    z-index: 0;
    border-left: none;
  }
  .hero-img img { opacity: 1; }
  .hero-content {
    padding: calc(var(--nav-h) + var(--s2)) var(--gap) var(--s3);
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
  }
  .hero-badge { display: none; }
  .hero-desc  { max-width: 100%; }

  /* Pain split → single column */
  .ps-split { grid-template-columns: 1fr; }
  .ps-dark, .ps-light { padding-inline: var(--gap); }

  /* Contact → single column */
  .contact-split { grid-template-columns: 1fr; }
  .ct-info, .ct-form { padding-inline: var(--gap); }

  /* All primary grids */
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split-2 { grid-template-columns: 1fr; gap: var(--s2); }
  .split-2.flip { direction: ltr; }
  .split-wide { grid-template-columns: 1fr; gap: var(--s2); }
  .split-check { grid-template-columns: 1fr; gap: var(--s2); }
  .intro-split { grid-template-columns: 1fr; gap: var(--s2); }

  /* Image frame: wider but shorter when stacked */
  .img-frame { aspect-ratio: 16 / 7; }

  /* Services — 2-col stays, don't collapse yet */
  /* Process 2-col → stack */
  .process-cols { grid-template-columns: 1fr !important; }

  /* About */
  .about-split { grid-template-columns: 1fr !important; gap: var(--s2) !important; }

  /* Plans */
  .plans-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }

  /* Inline survey → stack */
  .isv-inner { grid-template-columns: 1fr; gap: var(--s2); }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE ≤ 680px
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  /* Typography scale down */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }

  /* All grids → single column */
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .chk-grid { grid-template-columns: 1fr; }
  .fg-2 { grid-template-columns: 1fr; }
  .isv-row { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .cta-row { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; }
  .cta-btns .btn { width: 100%; justify-content: center; }

  /* Hero tweaks */
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-kpis { gap: 1.2rem; }

  /* Image */
  .img-frame { aspect-ratio: 16 / 9; }

  /* Brands */
  .brands-lbl { display: none; }
  .brand-logos { gap: 1.2rem; }

  /* Ribbon */
  .ribbon-lbl { display: none; }
  .ribbon-dots { gap: 1.1rem; }

  /* Records table — hide less important cols on small screens */
  .rec-table th:nth-child(5), .rec-table td:nth-child(5) { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — NARROW ≤ 420px
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 420px) {
  :root { --gap: 1rem; }
  h1 { font-size: 1.85rem; }
}

/* ── PLANS GRID RESPONSIVE (inline grid on care-plans.php) ── */
.plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
@media(max-width:1080px){ .plans-grid{grid-template-columns:1fr 1fr} }
@media(max-width:680px) { .plans-grid{grid-template-columns:1fr} }

/* ── PROCESS 2-COL RESPONSIVE ── */
.process-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
@media(max-width:1080px){ .process-cols{grid-template-columns:1fr} }

/* ── PLANS GRID — definitive responsive rules ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 900px)  { .plans-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px)  { .plans-grid { grid-template-columns: 1fr; } }

/* ── PROCESS COLS ── */
.process-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px)  { .process-cols { grid-template-columns: 1fr; } }

/* ── BRANDS — responsive wrap ── */
.brands-bar { background: var(--clr-surface); border-top: 1px solid var(--clr-border); border-bottom: 1px solid var(--clr-border); padding: 1.1rem 0; }
.brands-row { max-width: calc(var(--mw) + var(--gap) * 2); margin-inline: auto; padding-inline: var(--gap); display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.brands-lbl { font-family: var(--f-head); font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--clr-muted); white-space: nowrap; padding-right: 1.2rem; border-right: 1px solid var(--clr-border); flex-shrink: 0; }
.brand-logos { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; flex: 1; }
.brand-logo { height: 28px; width: auto; max-width: 110px; object-fit: contain; filter: grayscale(100%); opacity: .4; transition: opacity var(--tr), filter var(--tr); }
.brand-logo:hover { filter: none; opacity: 1; }
.brand-txt   { font-family: var(--f-head); font-size: .75rem; font-weight: 700; color: var(--clr-muted); white-space: nowrap; }
.brand-other { font-size: .72rem; color: var(--clr-muted); font-style: italic; white-space: nowrap; }
@media (max-width: 680px) {
  .brands-lbl  { display: none; }
  .brands-row  { justify-content: center; }
  .brand-logos { gap: 1.2rem; justify-content: center; }
  .brand-logo  { height: 22px; max-width: 80px; }
}

/* ── GRID-2 services stays 2col until 580px ── */
@media (max-width: 580px) { .grid-2 { grid-template-columns: 1fr; } }
/* But why-grid (3col) goes 2col at 900px, 1col at 580px */
@media (max-width: 900px)  { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px)  { .grid-3 { grid-template-columns: 1fr; } }
/* ── CTA BTNS alias (compatibility) ── */
.cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
@media(max-width:680px){ .cta-btns{flex-direction:column;width:100%} .cta-btns .btn{width:100%;justify-content:center} }
