/* ============================================================================
   DESIGN v2 — layered ON TOP of styles.css (base design system stays intact)
   Adds: ocean elements, redesigned outcomes, FAQ filters, collapse, refinements
   ==========================================================================*/

/* ---------- Ocean wave dividers ---------- */
.wave-divider{display:block;width:100%;height:auto;line-height:0}
.wave-divider svg{display:block;width:100%;height:clamp(38px,6vw,80px)}
.wave-flip{transform:rotate(180deg)}

/* soft water gradient grounds */
.bg-tide{background:linear-gradient(180deg,#eef7fb 0%,var(--paper) 60%)}
/* glow at the BOTTOM so the top edge stays solid navy and blends with the wave above */
.bg-deep{background:radial-gradient(120% 130% at 82% 118%,#0d2c4d 0%,var(--navy) 55%)}

/* ---------- Hero refinements (v2) — single column, grounded ---------- */
.hero-v2__inner{max-width:780px}
.hero-v2 h1{font-size:clamp(2rem,1.5rem+2.1vw,3rem);max-width:20ch;text-wrap:balance;letter-spacing:-.02em}
.hero-v2 .hero__sub{font-size:var(--step-1);max-width:54ch;margin-top:1rem}
.hero-v2 .hero__cta{gap:.7rem;margin-top:1.4rem}

/* white button (e.g. thank-you page phone CTA) */
.btn-white{background:#fff;color:var(--navy);border-color:var(--line-strong);box-shadow:var(--shadow-sm)}
.btn-white:hover{background:#fff;border-color:var(--navy);transform:translateY(-2px);box-shadow:var(--shadow-md)}

/* simplified process step copy */
.step__p{color:var(--on-dark-soft);font-size:.95rem;margin-top:.55rem;line-height:1.5}
/* smaller CTA buttons, side by side even on small screens */
.btn-sm{padding:.7rem 1.15rem;font-size:.98rem;min-height:44px}
.hero-v2 .hero__cta{flex-wrap:nowrap}
@media(max-width:420px){.hero-v2 .hero__cta{flex-wrap:wrap}}
.btn-textlink{background:transparent;border-color:transparent;color:var(--navy);padding-inline:.7rem}
.btn-textlink:hover{background:rgba(0,24,53,.05);transform:translateY(-2px)}
.btn-textlink svg{transition:transform .18s var(--ease)}
.btn-textlink:hover svg{transform:translateX(3px)}
.section-dark .btn-textlink{color:#fff}
.section-dark .btn-textlink:hover{background:rgba(255,255,255,.08)}

/* Elfsight badge sits under the dashboard on the right */
.hero-badge{margin-top:1rem;min-height:44px}
.elf-wrap{margin-top:1.2rem}

/* ---------- Redesigned "What We Optimize For" ---------- */
.optimize{position:relative}
.outcomes-grid{display:grid;gap:1rem;grid-template-columns:1fr}
@media(min-width:560px){.outcomes-grid{grid-template-columns:1fr 1fr}}
@media(min-width:960px){.outcomes-grid{grid-template-columns:repeat(4,1fr)}}
.outcome{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:1.5rem 1.3rem 1.4rem;overflow:hidden;box-shadow:var(--shadow-sm);
  transition:transform .22s var(--ease),box-shadow .22s var(--ease)}
.outcome:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
@media (prefers-reduced-motion:reduce){.outcome:hover{transform:none}}
.outcome::after{content:"";position:absolute;left:0;right:0;bottom:0;height:44px;opacity:.5;
  background:radial-gradient(80% 120% at 50% 130%,rgba(0,175,229,.20),transparent 70%)}
.outcome__ico{width:46px;height:46px;border-radius:12px;background:#e4f5fc;color:var(--ocean-ink);
  display:grid;place-items:center;margin-bottom:.9rem}
.outcome__ico svg{width:24px;height:24px}
.outcome h3{font-size:1.1rem;position:relative;z-index:1}
.outcome p{font-size:.92rem;color:var(--ink-soft);margin-top:.35rem;position:relative;z-index:1}
.ignore-strip{margin-top:1.5rem;display:flex;flex-wrap:wrap;align-items:center;gap:.6rem .9rem;
  padding:1rem 1.3rem;border:1px dashed var(--line-strong);border-radius:var(--radius);
  background:rgba(255,255,255,.6);color:var(--ink-soft);font-size:.95rem}
.ignore-strip strong{color:var(--navy);font-weight:700}
.ignore-strip .x{display:inline-flex;align-items:center;gap:.35rem;font-weight:600;color:var(--ink-faint)}
.ignore-strip .x svg{width:15px;height:15px;color:#b45}

/* ---------- Service pillars: Google Ads = core, SEO = complementary ---------- */
.pillar--core{position:relative}
.pillar--core::after{content:"Core service";position:absolute;top:1.1rem;right:1.1rem;
  font-size:.64rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ocean-ink);
  background:#e4f5fc;border:1px solid #bfe6f5;padding:.2rem .5rem;border-radius:999px}
.pillar--soft{background:#fbfdff}
.pillar--soft::after{content:"Complementary";position:absolute;top:1.1rem;right:1.1rem;
  font-size:.64rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--green-deep);
  background:#e7f7ee;border:1px solid #c7ecd6;padding:.2rem .5rem;border-radius:999px}

/* ---------- Collapsible "More clinics" ---------- */
.more-toggle{display:flex;justify-content:center;margin-top:.5rem}
.more-clinics{display:grid;gap:1.1rem;grid-template-columns:1fr;
  overflow:hidden;max-height:0;opacity:0;
  transition:max-height .5s var(--ease),opacity .4s var(--ease),margin .4s var(--ease);margin-top:0}
.more-clinics.open{opacity:1;margin-top:1.6rem}
@media(min-width:640px){.more-clinics{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.more-clinics{grid-template-columns:repeat(3,1fr)}}
.more-toggle .btn svg{transition:transform .25s var(--ease)}
.more-toggle .btn[aria-expanded="true"] svg{transform:rotate(180deg)}
@media (prefers-reduced-motion:reduce){.more-clinics{transition:none}}

/* ---------- FAQ filters ---------- */
.faq-filters{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.4rem}
.faq-pill{font-family:var(--sans);font-weight:700;font-size:.9rem;cursor:pointer;
  padding:.5rem 1rem;border-radius:999px;border:1.5px solid var(--line-strong);background:#fff;color:var(--ink-soft);
  transition:all .18s var(--ease)}
.faq-pill:hover{border-color:var(--navy);color:var(--navy)}
.faq-pill[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.faq__item[hidden]{display:none}

/* ---------- Book: put "book directly" note BESIDE the form ---------- */
.book-aside{align-self:center}
.book-directly{margin-top:1.4rem;padding:1.1rem 1.2rem;border-radius:12px;
  background:rgba(255,255,255,.08);border:1px solid var(--line-dark)}
.book-directly p{color:var(--on-dark);margin:0}
.book-directly .lead{font-size:1rem;color:var(--on-dark)}
.book-directly a{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.book-directly a:hover{color:var(--ocean)}

/* ---------- Team: auto-fit for 5 (Roisin removed) ---------- */
.team-v2{grid-template-columns:1fr}
@media(min-width:560px){.team-v2{grid-template-columns:repeat(2,1fr)}}
@media(min-width:900px){.team-v2{grid-template-columns:repeat(3,1fr)}}

/* ---------- Form: honeypot + send-failure message ---------- */
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.form-sendfail{margin-top:.9rem;padding:.8rem 1rem;border-radius:10px;font-size:.9rem;font-weight:600;
  color:#8a1c1c;background:#fdecec;border:1px solid #f4c2c2}
.form-sendfail a{color:#8a1c1c;font-weight:700}

/* ---------- Client-friendly case-study stats ---------- */
.mini-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:.7rem;margin:1.3rem 0 1rem}
@media(min-width:520px){.mini-stats{grid-template-columns:repeat(3,1fr)}}
.mstat{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:.85rem .85rem}
.mstat__val{display:block;font-family:var(--serif);font-size:1.55rem;font-weight:600;color:var(--navy);
  line-height:1;font-variant-numeric:tabular-nums}
.mstat__delta{display:inline-block;font-size:.72rem;font-weight:700;margin-top:.35rem}
.mstat__delta.up{color:var(--green-deep)}
.mstat__delta.down{color:#b4530b}
.mstat__label{display:block;font-size:.74rem;color:var(--ink-soft);margin-top:.4rem;font-weight:600;line-height:1.25}
.case-card__note{font-size:.9rem;color:var(--ink-soft);margin-top:.3rem;line-height:1.5}
.case-card__note .muted{color:var(--ink-faint);font-style:italic}
.case-period{display:inline-flex;align-items:center;gap:.4rem;font-size:.72rem;font-weight:700;
  letter-spacing:.04em;text-transform:uppercase;color:var(--ocean-ink);background:#e4f5fc;
  border:1px solid #bfe6f5;padding:.2rem .6rem;border-radius:999px;margin-top:.6rem}

/* ---------- Ocean background line motif ---------- */
.has-lines{position:relative;overflow:hidden}
.has-lines > .container{position:relative;z-index:1}
.deco-lines{position:absolute;inset:0;z-index:0;pointer-events:none;color:var(--ocean)}
.deco-lines svg{width:100%;height:100%;opacity:.14}
.deco-lines--soft svg{opacity:.08;color:var(--navy)}
.deco-lines--dark svg{opacity:.20;color:#00AFE5}

/* ---------- Footer logo: real navy logo on a white chip ---------- */
.footer__logo{display:inline-block;background:#fff;padding:.5rem .7rem;border-radius:10px;line-height:0}
.footer__logo img{filter:none;opacity:1;height:30px;width:auto;max-width:none;display:block}

/* ---------- Fix: white cards inside a dark section need dark titles ---------- */
.section-dark .card h3{color:var(--navy)}

/* ---------- Hero real-team photo (right column) ---------- */
.hero-photo{align-self:center}
.hero-photo img{width:100%;height:auto;border-radius:18px;border:1px solid var(--line);
  box-shadow:var(--shadow-lg);background:#e5ecf4}
@media(max-width:899px){.hero-photo{max-width:560px;margin-top:.5rem}}

/* ---------- Reveal (v2 reuses base .reveal) ---------- */
