/* =========================
   RESET & BASE
========================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html:focus-within { scroll-behavior: smooth; }
body { min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:where(p, ul, ol) + :where(p, ul, ol) { margin-top: 1rem; }

/* =========================
   THEME
========================= */
:root{
  --brand-700:#236b51;
  --brand-600:#2b7a5c;
  --brand-500:#3a8c6c;
  --brand-400:#5aa184;

  --bg:#ffffff;
  --surface:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;

  --radius-1:.375rem;
  --radius-2:.75rem;
  --radius-3:1.25rem;
  --shadow-1:0 1px 2px rgba(16,24,40,.06),0 1px 3px rgba(16,24,40,.1);
  --shadow-2:0 12px 40px rgba(16,24,40,.12);

  --container-max:1200px;

  --footer-bg:#0b1220;
  --footer-text:#e5e7eb;

  /* placeholder swatches */
  --swatch-blue:#e6f0ff;
  --swatch-blue-b:#9ec2ff;
  --swatch-blue-t:#6b82a8;
}

/* =========================
   TYPOGRAPHY
========================= */
html { font-size: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
               "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 2.5vw + 1rem, 3rem); }
h2 { font-size: clamp(1.5rem, 1.5vw + 0.75rem, 2rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 1vw + 0.5rem, 1.5rem); font-weight: 700; }
p, li { color: var(--muted); }

/* =========================
   UTILITIES
========================= */
.container{ max-width: var(--container-max); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2rem); }
.visually-hidden{ position:absolute !important; clip:rect(1px,1px,1px,1px); clip-path:inset(50%); width:1px; height:1px; overflow:hidden; white-space:nowrap; }
.skip-link{ position:absolute; left:-9999px; }
.skip-link:focus{
  position:fixed; left:1rem; top:1rem; padding:.5rem .75rem; background:#fff;
  border:2px solid var(--brand-600); border-radius:.5rem; z-index:9999;
}

/* =========================
   HEADER + NAV
========================= */
.site-header{
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  box-shadow: 0 .5px 0 rgba(16,24,40,.04);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:1.5rem; padding-block:.55rem; }
.brand{ display:flex; align-items:center; gap:.75rem; line-height:1; }
.brand-logo{ width: 260px; height:auto; }

.primary-nav{ display:block; }
.nav-list{ display:flex; align-items:center; gap:clamp(.75rem, 2.5vw, 2rem); }
.nav-link{
  display:inline-block; padding:.3rem .25rem; font-weight:500; color:var(--muted);
  border-radius:.5rem; transition:color .2s ease, box-shadow .2s ease;
}
.nav-link:hover{ color:var(--text); }
.nav-link[aria-current="page"]{ color:var(--brand-600); text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:6px; font-weight:600; }

/* Hamburger button (stack 3 bars vertically) */
.nav-toggle{
  appearance:none; background:transparent; border:0; padding:.6rem;
  margin-left:auto; width:48px; height:40px; border-radius:12px;
  display:none; align-items:center; justify-content:center;
  flex-direction: column;           /* make the bars stack */
  gap: 6px;                         /* space between bars */
}
.nav-toggle::before,
.nav-toggle .nav-toggle-bar,
.nav-toggle::after{
  content:"";
  display:block;
  width:28px;
  height:2px;
  background:#0f172a;
  border-radius:2px;
}

@media (max-width:900px){
  .nav-toggle{ display:inline-flex; }
  .primary-nav{
    position:fixed; inset:56px 0 auto 0; background:#fff; border-top:1px solid var(--border);
    transform:translateY(-110%); opacity:0; pointer-events:none; transition:transform .25s ease, opacity .25s ease;
  }
  body.nav-open .primary-nav{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-list{ flex-direction:column; align-items:flex-start; gap:0; padding:.5rem clamp(1rem, 3vw, 2rem); }
  .nav-link{ width:100%; padding:.9rem 0; display:block; }
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.875rem 1.25rem; font-weight:600; border-radius:999px; border:1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .05s ease;
  text-align:center;
}
.btn-primary{ background:var(--brand-600); color:#fff; box-shadow:var(--shadow-1); }
.btn-primary:hover{ background:color-mix(in oklab, var(--brand-600) 85%, black); }
.btn-primary:active{ transform:translateY(1px); }
.btn-outline{
  background:#fff; color:var(--brand-600);
  border:1px solid color-mix(in oklab, var(--brand-600) 70%, #fff);
  box-shadow:var(--shadow-1);
}
.btn-outline:hover{ background:color-mix(in oklab, var(--brand-600) 6%, #fff); }

/* =========================
   PLACEHOLDER / IMAGE PANELS
========================= */
.ph{
  display:grid; place-items:center; width:100%; height:100%;
  border-radius: var(--radius-3);
  background: var(--swatch-blue);
  border:2px dashed var(--swatch-blue-b);
  color: var(--swatch-blue-t);
  box-shadow: var(--shadow-2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ph-hero{
  position:absolute; left:50%; transform: translateX(-50%);
  top: clamp(36px, 5vh, 72px);
  width: min(92%, var(--container-max));
  height: clamp(260px, 38vh, 420px);
  border:none; /* we set real image so no dashed border */
}

/* =========================
   HERO
========================= */
.hero{ position:relative; min-height: clamp(520px, 60vh, 680px); display:grid; place-items:center; overflow:hidden; }
.hero .hero-inner{ position:relative; z-index:1; text-align:center; max-width:48rem; padding-block: clamp(3rem, 8vw, 6rem); padding-inline: clamp(1rem, 4vw, 2rem); }

/* =========================
   FEATURES
========================= */
.features{ position:relative; z-index:5; margin-top:clamp(-5rem, -8vw, -2rem); margin-bottom:clamp(2rem, 4vw, 4rem); }
.feature-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:clamp(1rem, 2.5vw, 1.5rem); }

/* new: image at the top of each card */
.feature-card{
  background:var(--surface);
  border:1px solid color-mix(in oklab, var(--border) 80%, transparent);
  border-radius:var(--radius-3);
  padding:clamp(1rem, 2.5vw, 1.5rem);
  box-shadow:var(--shadow-2);
  transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover{ transform:translateY(-2px); box-shadow:0 10px 30px rgba(16,24,40,.16); }

.feature-media{
  overflow:hidden;
  border-radius:calc(var(--radius-3) - .25rem);
  margin-bottom:.85rem;
  box-shadow:var(--shadow-1);
}
.feature-media img{
  width:100%;
  height:clamp(140px, 22vw, 180px);
  object-fit:cover;
  display:block;
}

.feature-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:12px; margin-bottom:1rem;
  background:color-mix(in oklab, var(--brand-600) 12%, #fff);
  color:var(--brand-600); font-size:1.25rem; box-shadow:var(--shadow-1);
}
.feature-title{ margin-top:.25rem; margin-bottom:.5rem; color:var(--text); }

/* =========================
   TREATMENTS
========================= */
.treatment{ padding-block:clamp(2rem, 6vw, 4rem); }
.treatment-grid{ display:grid; grid-template-columns:1.05fr 1fr; gap:clamp(1rem, 3vw, 2.5rem); align-items:center; }
.treatment-media .ph{ width:100%; aspect-ratio:4/3; min-height:420px; border-radius:var(--radius-3); border:none; }
.treatment-copy h2{ margin-bottom:.75rem; color:var(--text); }
.treatment-copy p + p{ margin-top:.75rem; }
.treatment-copy .btn{ margin-top:1rem; }
@media (max-width:900px){
  .treatment-grid{ grid-template-columns:1fr; }
  .treatment-media{ order:-1; margin-bottom:1rem; }
  .treatment-media .ph{ min-height:260px; }
}

/* =========================
   CTA
========================= */
.cta-banner{ position:relative; padding-block:clamp(2.5rem, 6vw, 4rem); }
.cta-grid{ display:grid; align-items:center; grid-template-columns:minmax(240px, 340px) 1fr; gap:clamp(1rem, 3vw, 2rem); }
.cta-figure .ph{ width:100%; aspect-ratio:4/3; border-radius:var(--radius-3); border:none; }
.cta-card{ background:#fff; border-radius:var(--radius-3); box-shadow:var(--shadow-2); padding:clamp(1rem, 2.5vw, 1.5rem); }
.cta-card h2{ margin-bottom:.5rem; color:var(--text); }
.cta-card p{ margin-bottom:1rem; }
@media (max-width:900px){ .cta-grid{ grid-template-columns:1fr; } }

/* =========================
   FOOTER
========================= */
.site-footer{ background:var(--footer-bg); color:var(--footer-text); }
.footer-grid{ display:grid; gap:clamp(1rem, 2.5vw, 2rem); grid-template-columns: repeat(4, 1fr); padding-block: clamp(2rem, 4vw, 3rem); }
.footer-col{ min-width:0; }
.footer-head{ color:#fff; font-size:1.05rem; margin-bottom:.75rem; }
.footer-brand{ font-weight:800; letter-spacing:-.02em; font-size:1.25rem; margin-bottom:.25rem; }
.footer-strong{ color:#fff; } .footer-accent{ color:var(--brand-400); }
.footer-note{ color:color-mix(in oklab, #fff 70%, #000); margin:.25rem 0 .5rem; }

/* GPhC badge styles */
.gphc-wrap{ margin:.25rem 0 1rem; }
.gphc-badge{ width: 240px; max-width:100%; height:auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.08)); }

.social-row{ display:flex; gap:.6rem; margin-top:.5rem; }
.social{
  --icon-size: 22px;
  display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:12px;
  background:rgba(255,255,255,.04); color:color-mix(in oklab, #fff 92%, #000);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: background-color .2s ease, box-shadow .2s ease, transform .06s ease;
}
.social:hover{ background:rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 0 0 3px rgba(255,255,255,.06); }
.social:active{ transform: translateY(1px); }
.social .icon{ width:var(--icon-size); height:var(--icon-size); display:block; }

.footer-links{ display:grid; gap:.5rem; }
.footer-links a{ color:color-mix(in oklab, #fff 85%, #000); }
.footer-links a:hover{ text-decoration:underline; }

.footer-bar{ border-top:1px solid rgba(255,255,255,.08); padding-block:.85rem; color:color-mix(in oklab, #fff 70%, #000); font-size:.925rem; }
@media (max-width:1024px){ .footer-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width:640px){ .footer-grid{ grid-template-columns: 1fr; } }

/* Small-phone polish (optional) */
@media (max-width:480px){
  .brand-logo{ width:180px; }
  .hero{ min-height:480px; }
  .feature-grid{ grid-template-columns:1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}
