/* ═════════════════════════════════════════════════════════════════════
   ARDAK HEALTH — mobile ear care, Stoke-on-Trent
   Static customer site. No build step, no framework. Mobile-first.
   Palette sampled from the client's own logo (dark teal + sage + a
   warm gold estimated by eye from the ring gradient — see FACTS.md).
   Animations are CSS-only (transitions + one keyframe fade), gated by
   prefers-reduced-motion — no JS animation library, per house rule.
   ═════════════════════════════════════════════════════════════════════ */

:root {
  --teal-950: #12211d;   /* deepest — nav/footer bg */
  --teal-800: #1c332e;   /* primary brand teal */
  --teal-600: #3c5c56;   /* mid teal — secondary buttons, links */
  --teal-500: #4f716a;
  --sage-300: #9fb2a1;   /* sage accent */
  --sage-200: #cdd8cb;   /* light sage — card borders */
  --sage-100: #e7ede4;   /* pale sage panel bg */
  --cream-50: #faf8f2;   /* page background */
  --cream-0:  #ffffff;
  --gold-500: #b6975e;   /* estimated accent from the logo's ring gradient */
  --ink: #1b2622;        /* body text */
  --ink-muted: #55635c;
  --line: #dfe6dc;
  --wa-green: #1c7d55;   /* WhatsApp CTA — close to brand teal, not the WhatsApp trademark green. 5.1:1 vs white text (WCAG AA) */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 10px 30px -14px rgba(18, 33, 29, 0.28);
  --shadow-btn: 0 10px 22px -10px rgba(28, 51, 46, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* the off-canvas .nav-panel sits translateX(100%) past the
                          viewport edge; without this the document itself grows
                          to its right edge even though body also hides overflow */
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--cream-50);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* room for the sticky mobile call/WhatsApp bar */
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  color: var(--teal-950);
  line-height: 1.15;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
img, picture, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
::selection { background: var(--sage-300); color: var(--teal-950); }

:focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 300;
  background: var(--teal-800); color: #fff;
  padding: 0.7rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 600; transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.nav.scrolled { box-shadow: 0 6px 20px -14px rgba(18, 33, 29, 0.35); }
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0.6rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; }
.brand img { height: 40px; width: 40px; border-radius: 50%; }
.brand-name {
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif; font-weight: 600;
  font-size: 1.05rem; letter-spacing: 0.02em; color: var(--teal-950);
}
.brand-name span { color: var(--teal-600); font-weight: 400; }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--teal-950); margin: 0 auto; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 110;
  width: min(82vw, 320px);
  background: var(--cream-0);
  border-left: 1px solid var(--line);
  padding: 5.5rem 1.5rem 2rem;
  display: flex; flex-direction: column; gap: 0.2rem;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
}
.nav.open .nav-panel { transform: translateX(0); }
.nav-panel a {
  display: flex; align-items: center; min-height: 48px;
  font-weight: 500; font-size: 1.02rem; color: var(--teal-950);
  border-bottom: 1px solid var(--line);
}
.nav-panel a[aria-current="page"] { color: var(--teal-600); font-weight: 700; }
.nav-panel .nav-cta {
  margin-top: 1rem; justify-content: center; border: 0; border-radius: 999px;
  background: var(--wa-green); color: #fff; min-height: 48px; font-weight: 600;
}
.nav-scrim {
  position: fixed; inset: 0; z-index: 105;
  background: rgba(18, 33, 29, 0.45); opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nav-scrim.show { opacity: 1; }
.nav-scrim[hidden] { display: none; }
body.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  .burger { display: none; }
  .nav-scrim { display: none !important; }
  .nav-panel {
    position: static; width: auto; transform: none; background: none;
    border: 0; padding: 0; flex-direction: row; align-items: center; gap: clamp(1.1rem, 2vw, 1.9rem);
  }
  .nav-panel a { border-bottom: 0; min-height: 44px; font-size: 0.95rem; }
  .nav-panel .nav-cta { margin-top: 0; padding: 0 1.3rem; }
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(2.4rem, 6vw, 4.5rem) 0 clamp(2.6rem, 6vw, 4rem);
  background: linear-gradient(180deg, var(--sage-100) 0%, var(--cream-50) 78%);
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 1rem;
}
.hero-eyebrow .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.2rem); max-width: 18ch; margin: 0 auto; }
.hero .lede {
  max-width: 46ch; margin: 1rem auto 0; color: var(--ink-muted); font-size: clamp(1rem, 2vw, 1.15rem);
}
.hero-actions {
  margin-top: 1.9rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
}
.hero-logo {
  width: 96px; height: 96px; margin: 0 auto 1.4rem;
  border-radius: 50%; overflow: hidden; display: block;
}
.hero-logo img { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 50px; padding: 0 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.975); }
.btn-wa { background: var(--wa-green); color: #fff; box-shadow: var(--shadow-btn); }
@media (hover: hover) { .btn-wa:hover { box-shadow: 0 14px 28px -12px rgba(31, 138, 95, 0.5); } }
.btn-outline { background: transparent; color: var(--teal-950); border-color: var(--teal-800); }
@media (hover: hover) { .btn-outline:hover { background: var(--teal-800); color: #fff; } }
.btn-ghost { background: var(--cream-0); color: var(--teal-950); border-color: var(--line); }
.btn svg { width: 19px; height: 19px; flex: none; }

/* ── SECTIONS / CARDS ────────────────────────────────────────────── */
section { padding: clamp(2.6rem, 6vw, 4.2rem) 0; }
.section-head { max-width: 60ch; margin: 0 auto 2rem; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.section-head p { color: var(--ink-muted); margin-top: 0.6rem; }
.section-alt { background: var(--cream-0); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--teal-950); color: var(--sage-200); }
.section-dark h2, .section-dark h3 { color: #fff; }

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--cream-0); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-card);
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { color: var(--ink-muted); font-size: 0.97rem; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--sage-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem;
}
.card .icon svg { width: 24px; height: 24px; color: var(--teal-700, var(--teal-600)); }
.card-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.9rem; font-weight: 600; color: var(--teal-600); }

/* ── EMPTY PHOTO SLOT (no stock imagery — honest placeholder) ──────── */
.photo-slot {
  border: 1.5px dashed var(--sage-300); border-radius: var(--radius);
  background: var(--sage-100);
  min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; text-align: center; padding: 2rem 1.2rem; color: var(--teal-600);
}
.photo-slot svg { width: 34px; height: 34px; opacity: 0.7; }
.photo-slot span { font-size: 0.92rem; font-weight: 600; }
.photo-slot small { color: var(--ink-muted); font-weight: 400; }

/* ── CREDENTIAL STRIP ────────────────────────────────────────────── */
.credential-strip {
  border: 1px solid var(--sage-200); background: var(--sage-100);
  border-radius: var(--radius); padding: 1.3rem 1.5rem;
  display: flex; align-items: flex-start; gap: 0.9rem; max-width: 44rem; margin: 0 auto;
}
.credential-strip svg { width: 24px; height: 24px; flex: none; color: var(--teal-600); margin-top: 0.15rem; }
.credential-strip p { font-size: 0.97rem; color: var(--teal-950); }
.credential-strip strong { font-weight: 700; }

/* ── METHOD LIST (ear wax removal page) ─────────────────────────── */
.method {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  background: var(--cream-0); box-shadow: var(--shadow-card);
}
.method h3 { display: flex; align-items: center; gap: 0.7rem; font-size: 1.25rem; }
.method .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--teal-800); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: Georgia, 'Times New Roman', serif; font-size: 0.95rem; flex: none;
}
.method p { margin-top: 0.7rem; color: var(--ink-muted); }

/* ── NOTE / CALLOUT ──────────────────────────────────────────────── */
.note {
  border-left: 3px solid var(--gold-500); background: var(--sage-100);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.2rem;
  font-size: 0.94rem; color: var(--teal-950);
}

/* ── CTA BAND ────────────────────────────────────────────────────── */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.1rem); max-width: 24ch; margin: 0 auto; }
.cta-band p { color: var(--sage-200); margin: 0.8rem auto 1.6rem; max-width: 44ch; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
.foot {
  background: var(--teal-950); color: var(--sage-200); padding: 2.6rem 0 1.6rem;
}
.foot-inner { display: grid; gap: 1.8rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .foot-inner { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.foot-brand img { height: 36px; width: 36px; border-radius: 50%; }
.foot-brand span { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; color: #fff; font-size: 1.05rem; }
.foot p { font-size: 0.92rem; color: var(--sage-200); max-width: 34ch; }
.foot h3 { color: #fff; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.8rem; }
.foot-links { display: flex; flex-direction: column; gap: 0.55rem; }
.foot-links a { color: var(--sage-200); font-size: 0.94rem; }
@media (hover: hover) { .foot-links a:hover { color: #fff; } }
.foot-bottom {
  max-width: var(--container); margin: 2rem auto 0; padding: 1.2rem 1.25rem 0; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem; color: rgba(205, 216, 203, 0.75);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
}

/* ── STICKY MOBILE CALL/WHATSAPP BAR ────────────────────────────── */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(250, 248, 242, 0.96);
  backdrop-filter: blur(14px) saturate(1.1);
  border-top: 1px solid var(--line);
}
.callbar-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; min-height: 48px; border-radius: 999px;
  font-weight: 600; font-size: 0.96rem; transition: transform 0.2s var(--ease);
}
.callbar-btn:active { transform: scale(0.97); }
.callbar-btn svg { width: 19px; height: 19px; }
.cb-wa { background: var(--wa-green); color: #fff; box-shadow: var(--shadow-btn); }
.cb-call { background: var(--cream-0); color: var(--teal-950); border: 1px solid var(--line); }
@media (min-width: 900px) { .callbar { display: none; } }

/* ── SCROLL REVEAL (CSS-driven, JS only toggles the class) ──────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Gentle attention pulse on the hero WhatsApp button only — CSS keyframe, GPU-composited (transform/opacity only) */
@keyframes gentle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 138, 95, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(31, 138, 95, 0); }
}
.hero-actions .btn-wa { animation: gentle-pulse 2.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero-actions .btn-wa { animation: none; }
}

/* ── BREADCRUMB ──────────────────────────────────────────────────── */
.breadcrumb {
  padding: 0.9rem 0 0;
  font-size: 0.86rem; color: var(--ink-muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.breadcrumb a { color: var(--teal-600); font-weight: 600; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--sage-300); }
.breadcrumb li[aria-current="page"] { color: var(--ink-muted); }

/* ── RELATED LINKS ROW ───────────────────────────────────────────── */
.related-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.6rem; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream-0); padding: 1.1rem 1.3rem; margin-bottom: 0.8rem;
}
.faq-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.faq-item p { color: var(--ink-muted); font-size: 0.95rem; }

/* ── UTILITIES ───────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
