/* TREATMENT PAGE — SINGLE CSS (full file) */

/* =========================
   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;
}

/* =========================
   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.15rem, 1vw + 0.5rem, 1.35rem); font-weight: 800; }
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;
}
.btn-row{
  display:flex;
  gap:.75rem;
  justify-content:center;
  margin-top:1rem;
  flex-wrap:wrap;
}

/* =========================
   HEADER + NAV (for partial header)
========================= */
.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 */
.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; gap:6px;
}
.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;
}
.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); }

/* =========================
   HERO
========================= */
.ph{
  display:grid; place-items:center; width:100%; height:100%;
  border-radius: var(--radius-3);
  background:#e6f0ff;
  border:2px dashed #9ec2ff;
  color:#6b82a8;
  box-shadow: var(--shadow-2);
}

.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);
}
.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-radius: var(--radius-3);
  border:none;
  background-image: url('../img/Treatmentfirstpageimage.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================
   DROPDOWN (“See all treatments”) — make it feel separate
========================= */
.treatments-menu{
  position: relative;
}

.treatments-menu summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.treatments-menu summary::-webkit-details-marker{ display:none; }

/* Panel */
.treatments-panel{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 14px);
  width: min(980px, 92vw);
  background: #fff;
  border: 1px solid color-mix(in oklab, var(--border) 82%, transparent);
  border-radius: var(--radius-3);
  box-shadow: 0 24px 60px rgba(16,24,40,.18);
  z-index: 50;
  padding: clamp(1rem, 2.2vw, 1.35rem);
}

/* little pointer */
.treatments-menu[open] .treatments-panel::before{
  content:"";
  position:absolute;
  top:-8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background:#fff;
  border-left: 1px solid color-mix(in oklab, var(--border) 82%, transparent);
  border-top: 1px solid color-mix(in oklab, var(--border) 82%, transparent);
}

/* Grid inside */
.treatments-panel-inner{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}
@media (max-width: 1000px){
  .treatments-panel-inner{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .treatments-panel{
    left: 0;
    transform: none;
    width: 92vw;
  }
  .treatments-panel-inner{ grid-template-columns: 1fr; }
}

.tp-title{
  font-size: .98rem;
  color: var(--text);
  font-weight: 800;
  padding-bottom: .55rem;
  margin-bottom: .7rem;
  border-bottom: 2px solid color-mix(in oklab, var(--brand-600) 55%, #fff);
}

.tp-list{
  display:grid;
  gap: .5rem;
}

/* Links in dropdown */
.tp-list a{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  color: color-mix(in oklab, var(--text) 88%, var(--muted));
  padding: .35rem .25rem;
  border-radius: .6rem;
  transition: background-color .15s ease, color .15s ease;
}
.tp-list a::after{
  content:"›";
  color: color-mix(in oklab, var(--muted) 70%, #fff);
  transform: translateY(-.5px);
}
.tp-list a:hover{
  background: color-mix(in oklab, var(--brand-600) 7%, #fff);
  color: var(--text);
}

/* =========================
   “Treatments by category” cards
========================= */
.treatments-by-category{
  padding-block: clamp(2.25rem, 6vw, 4rem);
}
.treatments-by-category h2{ color: var(--text); margin-bottom: .35rem; }
.treatments-by-category p{ margin-bottom: 1.25rem; }

.tbc-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.25rem);
}
@media (max-width: 1100px){
  .tbc-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px){
  .tbc-grid{ grid-template-columns: 1fr; }
}

.tbc-card{
  background:#fff;
  border:1px solid color-mix(in oklab, var(--border) 82%, transparent);
  border-radius: var(--radius-3);
  box-shadow: var(--shadow-2);
  padding: 1.1rem 1.1rem 1rem;
}
.tbc-card h3{
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: .65rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid color-mix(in oklab, var(--brand-600) 55%, #fff);
}

.tbc-card ul{
  display:grid;
  gap:.55rem;
}
.tbc-card a{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.35rem .25rem;
  border-radius:.6rem;
  color: color-mix(in oklab, var(--text) 86%, var(--muted));
  transition: background-color .15s ease, color .15s ease;
}
.tbc-card a::after{
  content:"›";
  color: color-mix(in oklab, var(--muted) 70%, #fff);
  transform: translateY(-.5px);
}
.tbc-card a:hover{
  background: color-mix(in oklab, var(--brand-600) 7%, #fff);
  color: var(--text);
}

/* =========================
   FOOTER (for partial 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); }

.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:.75rem; }
.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 */
@media (max-width:480px){
  .brand-logo{ width:180px; }
}


/* FIX: dropdown was being clipped by the hero */
.hero{
  overflow: visible; /* allow the dropdown to extend outside the hero */
}

/* Make the dropdown scroll if it gets tall */
.treatments-panel{
  z-index: 999;                 /* sit above everything */
  max-height: min(70vh, 560px); /* stop it becoming too tall */
  overflow: auto;               /* enable scrolling inside the panel */
  overscroll-behavior: contain;
}
