/* ===== DERMASPA — Main Stylesheet =====
   The printed flyer, as a website: round photos over a teal wave, group titles in teal pills
   with a disc, services marked with round icon discs that alternate coral and teal, and dashed
   dividers. Typography is the DermaKids website pair (Lexend and Source Sans 3), so the two
   sites read as one family. Design reference: docs/drafts/Inicio/Proposal-02-Flyer. */

:root {
    /* Grounds and shapes, sampled from the flyer */
    --paper: #FAF5EF;
    --white: #FFFFFF;
    --peach: #F1D7BB;
    --tan: #E5C4A3;
    --coral: #EE5F64;
    --teal: #53A5A5;
    --teal-disc: #3A8A8B;      /* the flyer's deeper teal; white icons read on it */
    --dash: #EBCDB3;

    /* Text-safe colors (WCAG AA) */
    --teal-deep: #2F7F80;      /* teal areas that carry white text */
    --teal-ink: #2A6A6A;
    --teal-ink-dark: #1F5555;
    --coral-ink: #BF3A41;
    --coral-ink-dark: #A3313A;
    --ink: #1E3A3D;
    --ink-soft: #4A6366;

    --font-display: 'Lexend', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --gutter: clamp(16px, 4vw, 40px);
    --section-space: clamp(3.5rem, 7vw, 6rem);
    --radius: 28px;
    --lift: 0 2px 4px rgba(30, 58, 61, 0.05), 0 18px 40px rgba(30, 58, 61, 0.10);
    --header-h: 76px;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.1875rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--teal-ink);
    text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--teal-ink); }
a:hover { color: var(--teal-ink-dark); }
:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 3px; }
strong { font-weight: 700; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    left: 12px; top: -100px;
    z-index: 100;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.section { padding-block: var(--section-space); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.section-title { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); }

.dots { position: absolute; pointer-events: none; }
.dot--teal { fill: var(--teal); }
.dot--coral { fill: var(--coral); }
.dot--peach { fill: var(--tan); }
.wave-fill { fill: var(--teal); }
.wave-rim { fill: none; stroke: var(--white); stroke-width: 8; vector-effect: non-scaling-stroke; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    min-height: 50px;
    padding: 0.7rem 1.45rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn--sm { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.9375rem; }
.btn--primary { background: var(--coral-ink); color: var(--white); }
.btn--primary:hover { background: var(--coral-ink-dark); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--teal-ink); border-color: var(--teal-ink); }
.btn--secondary:hover { background: var(--paper); color: var(--teal-ink-dark); }
.btn--light { background: var(--white); color: var(--teal-ink); }
.btn--light:hover { background: var(--paper); color: var(--teal-ink-dark); }
.btn--outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 var(--dash);
    transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--dash), 0 6px 20px rgba(30, 58, 61, 0.06); }
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: var(--header-h);
}
.brand { display: block; flex: none; }
.brand img { height: 38px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.main-nav a {
    display: block;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.975rem;
    text-decoration: none;
    white-space: nowrap;
}
.main-nav a:hover { background: var(--paper); color: var(--teal-ink); }
.main-nav a[aria-current="page"],
.main-nav a.is-active {
    color: var(--teal-ink);
    text-decoration: underline;
    text-decoration-color: var(--coral);
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-link {
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
}
.lang-link:hover { background: var(--paper); color: var(--teal-ink); }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    margin-right: -8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    overflow-y: auto;
    padding: 0.5rem var(--gutter) 2.5rem;
    background: var(--paper);
    border-top: 1px solid var(--dash);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { margin: 0 0 1.75rem; padding: 0; list-style: none; }
.mobile-nav li a {
    display: block;
    padding: 1rem 0;
    border-bottom: 2px dashed var(--dash);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.25rem;
    text-decoration: none;
}
.mobile-nav li a[aria-current="page"],
.mobile-nav li a.is-active { color: var(--teal-ink); }
.mobile-nav .btn { width: 100%; margin-bottom: 0.75rem; }
.mobile-nav .lang-link { display: inline-block; margin-top: 0.75rem; font-size: 1rem; }

@media (max-width: 1080px) {
    .main-nav,
    .header-actions .lang-link,
    .header-actions .btn { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-actions { margin-left: auto; }
}
@media (min-width: 1081px) {
    .mobile-nav { display: none; }
}

/* Floating WhatsApp: only where the header button is hidden */
.wa-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    display: none;
    place-items: center;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--coral-ink);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(30, 58, 61, 0.28);
}
.wa-float:hover { background: var(--coral-ink-dark); color: var(--white); }
.wa-float .icon { width: 30px; height: 30px; }
@media (max-width: 1080px) {
    .wa-float { display: grid; }
    body.nav-open .wa-float { display: none; }
}

/* ===== SHARED FLYER PIECES ===== */
/* Group title: a teal pill with a disc on its left end */
.pill {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 56px;
    margin: 0 0 1.25rem;
    padding-right: 1.25rem;
    border-radius: 999px;
    background: var(--teal-deep);
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
}
.pill__disc {
    display: grid;
    place-items: center;
    flex: none;
    width: 68px; height: 68px;
    margin-block: -6px;
    border: 4px solid var(--white);
    border-radius: 50%;
    color: var(--white);
}
.pill__disc .lotus-glyph { width: 36px; height: 28px; }
.pill__disc--coral { background: var(--coral); }
.pill__disc--teal { background: var(--teal-disc); }

/* Round icon discs, alternating coral and teal */
.svc-disc {
    display: grid;
    place-items: center;
    flex: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    color: var(--white);
}
.svc-disc .icon { width: 25px; height: 25px; }
.svc-disc--sm { width: 44px; height: 44px; }
.svc-disc--sm .icon { width: 22px; height: 22px; }
.svc-disc--coral { background: var(--coral); }
.svc-disc--teal { background: var(--teal-disc); }
.svc-disc--text { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1; }
.svc-disc--text sub { font-size: 0.6em; vertical-align: -0.3em; }

/* Service links with a disc, divided by dashes */
.svc-list { margin: 0; padding: 0; list-style: none; }
.svc-list li + li { border-top: 2px dashed var(--dash); }
.svc-list a,
.svc-grid a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-block: 0.8rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.0625rem;
    line-height: 1.3;
    text-decoration: none;
}
.svc-list a:hover,
.svc-grid a:hover { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 4px; }

/* The map, with a soft panel and pin behind it while it loads */
.map-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--lift);
}
.map-frame__pin {
    position: absolute;
    top: 50%; left: 50%;
    width: 52px; height: 52px;
    transform: translate(-50%, -50%);
    color: var(--coral-ink);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== HOME: HERO ===== */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(3.5rem, 7vw, 6rem) clamp(7rem, 11vw, 9.5rem);
    min-height: clamp(600px, 74vh, 760px);
}
.hero__art { position: absolute; inset: 0; z-index: -1; }
.hero__wave { position: absolute; top: 0; right: 0; width: 44%; height: 100%; }
.hero__photo {
    position: absolute;
    top: clamp(28px, 4vw, 56px);
    right: clamp(-150px, -8vw, -40px);
    width: clamp(360px, 44vw, 640px);
    aspect-ratio: 1;
    margin: 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 12px var(--white);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__disc { position: absolute; border-radius: 50%; }
.hero__disc--peach {
    top: clamp(70px, 9vw, 130px);
    right: calc(clamp(-150px, -8vw, -40px) + clamp(360px, 44vw, 640px) - 70px);
    width: clamp(80px, 8vw, 120px);
    aspect-ratio: 1;
    background: var(--peach);
}
.hero__disc--coral {
    bottom: clamp(70px, 10vw, 140px);
    right: calc(clamp(-150px, -8vw, -40px) + clamp(360px, 44vw, 640px) - 120px);
    width: clamp(90px, 9vw, 130px);
    aspect-ratio: 1;
    background: rgba(238, 95, 100, 0.78);
}
.hero__dots { top: 28px; right: calc(clamp(-150px, -8vw, -40px) + clamp(360px, 44vw, 640px) + 10px); width: 190px; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 640px); }
.lotus-line {
    width: 64px;
    height: 50px;
    margin-bottom: 1rem;
    color: transparent;
    stroke: var(--coral);
    stroke-width: 5;
}
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.1vw, 3.75rem); line-height: 1.08; }
.hero__lead {
    max-width: 30em;
    margin: 1.5rem 0 2.25rem;
    font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.375rem);
    color: var(--ink-soft);
}

/* ===== HOME: CONTACT CARD ===== */
.contact-strip { position: relative; z-index: 2; margin-top: clamp(-6rem, -8vw, -4rem); }
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    margin: 0;
    padding: 1.75rem 0.5rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--lift);
    list-style: none;
}
.contact-card li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.25rem clamp(1rem, 2.5vw, 2rem);
}
.contact-card li + li { border-left: 1px solid var(--dash); }
.contact-card p { margin: 0; font-size: 1.0625rem; }
.contact-card a { font-weight: 600; }
.contact-card__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px; height: 46px;
    border-radius: 50%;
    color: var(--white);
}
.contact-card__icon--teal { background: var(--teal-disc); }
.contact-card__icon--coral { background: var(--coral); }
.contact-card__title {
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--teal-ink);
}
.contact-card__title--coral { color: var(--coral-ink); }

/* ===== HOME: WELCOME ===== */
.welcome__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.welcome__text h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); margin-bottom: 1.25rem; }
.welcome__text p { max-width: 32em; }
.welcome__text p:last-child { margin-bottom: 0; color: var(--ink-soft); }

/* Three real clinic photos in circles, like the flyer's round photo */
.bubbles { position: relative; width: min(100%, 520px); aspect-ratio: 520 / 440; justify-self: center; }
.bubble {
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 8px var(--white);
}
.bubble--lg { left: 0; top: 8%; width: 60%; }
.bubble--md { right: 0; top: 0; width: 40%; }
.bubble--sm { right: 8%; bottom: 0; width: 30%; }
.bubble-disc { position: absolute; border-radius: 50%; }
.bubble-disc--teal { left: 52%; bottom: 4%; width: 13%; aspect-ratio: 1; background: var(--teal); }
.bubble-disc--peach { left: 6%; top: 0; width: 9%; aspect-ratio: 1; background: var(--peach); }

/* ===== HOME: SERVICES ===== */
.services { background: var(--white); }
.services .section-title { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
}
.group__desc { min-height: 3.2em; color: var(--ink-soft); font-size: 1.0625rem; }
.group__photo {
    width: min(100%, 240px);
    aspect-ratio: 1;
    margin: 1.5rem auto 0;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 8px var(--paper);
}
.services__more { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; text-align: center; }

/* ===== HOME: WHY ===== */
.why__grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.why__photo,
.person__photo {
    position: relative;
    isolation: isolate;
    width: min(100%, 440px);
    margin: 0;
    justify-self: center;
}
.why__photo::before,
.person__photo::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -14%; right: 18%; top: 34%; bottom: -14%;
    border-radius: 0 0 0 999px;
    background: var(--teal);
}
.why__photo img,
.person__photo img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 10px var(--white);
}
.why__text h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); margin-bottom: 1.25rem; }
.reasons { margin: 0; padding: 0; list-style: none; }
.reasons li { display: flex; gap: 1.1rem; padding-block: 1.1rem; }
.reasons li + li { border-top: 2px dashed var(--dash); }
.reasons h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 0.3rem; color: var(--ink); }
.reasons p { margin: 0; color: var(--ink-soft); }

/* ===== HELP BAND ===== */
.help { padding-block: clamp(1rem, 3vw, 2rem) var(--section-space); }
.help__pill {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    padding: 1.5rem clamp(1.5rem, 3vw, 2.5rem) 1.5rem 1.5rem;
    border-radius: 999px;
    background: var(--teal-deep);
    color: var(--white);
}
.help__disc { width: 104px; height: 104px; margin-block: -10px; }
.help__disc .lotus-glyph { width: 54px; height: 42px; }
.help__text { flex: 1; }
.help h2 { color: var(--white); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-weight: 500; }
.help p { margin: 0.4rem 0 0; font-size: 1.125rem; }
.help__actions { flex: none; }
.help :focus-visible { outline-color: var(--white); }

/* ===== HOME: VISIT ===== */
.visit { background: var(--white); }
.visit .map-frame { background: var(--paper); }
.visit__grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.visit__text h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); margin-bottom: 1rem; }
.visit__address { font-size: 1.25rem; margin-bottom: 1.75rem; }

/* ===== INNER PAGES: HERO ===== */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.page-hero__art { position: absolute; inset: 0; z-index: -1; }
.page-hero__wave { position: absolute; top: 0; right: 0; width: max(30%, calc(50% - 300px)); height: 100%; }
.page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 4.5rem);
}
.page-hero__text { max-width: 660px; }
.page-hero h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1.08; margin-bottom: 1rem; }
.page-hero .dek {
    max-width: 34em;
    margin: 0;
    font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem);
    color: var(--ink-soft);
}
.page-hero .btn-row,
.page-hero .dek + .btn { margin-top: 2rem; }

.page-hero__media {
    position: relative;
    isolation: isolate;
    width: clamp(240px, 26vw, 360px);
    aspect-ratio: 1;
}
.page-hero__photo {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 0 10px var(--white);
}
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__mark {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--lift);
}
.page-hero__mark .lotus { width: 52%; height: 42%; }
.page-hero .disc { position: absolute; border-radius: 50%; aspect-ratio: 1; }
.page-hero .disc--peach { z-index: -1; top: -2%; left: -12%; width: 26%; background: var(--peach); }
.page-hero .disc--coral { bottom: 2%; left: -6%; width: 22%; background: rgba(238, 95, 100, 0.78); }

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    color: var(--ink-soft);
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; color: var(--tan); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--teal-ink); }

/* ===== SERVICE PAGES ===== */
.service-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    padding-block: clamp(2.5rem, 5vw, 4rem) var(--section-space);
}
.service-main { max-width: 44rem; }
.svc-section + .svc-section { margin-top: 2.75rem; }
.svc-section h2 {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
    font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}
.svc-section p { margin: 0; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0.9rem 0 0.9rem 3.25rem; counter-increment: step; }
.steps li:first-child { padding-top: 0.2rem; }
.steps li + li { border-top: 2px dashed var(--dash); }
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.85rem;
    display: grid;
    place-items: center;
    width: 2.25rem; height: 2.25rem;
    border-radius: 50%;
    background: var(--peach);
    color: var(--teal-ink-dark);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
}
.steps li:first-child::before { top: 0.15rem; }

.check-list { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 0.75rem; }
.check-list .icon { width: 1.2em; height: 1.2em; margin-top: 0.2em; color: var(--teal-ink); stroke-width: 3; }

.benefit-list { margin: 0; padding: 0; list-style: none; }
.benefit-list li { padding-block: 0.85rem; }
.benefit-list li:first-child { padding-top: 0.2rem; }
.benefit-list li + li { border-top: 2px dashed var(--dash); }
.benefit-list strong { color: var(--teal-ink-dark); }

.recovery-note {
    padding: 1.25rem 1.5rem;
    border-left: 5px solid var(--coral);
    border-radius: 0 20px 20px 0;
    background: var(--white);
}

.service-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.book-card {
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--lift);
}
.book-card__lotus { width: 52px; height: 41px; margin-bottom: 1rem; }
.book-card h2 { font-size: 1.375rem; margin-bottom: 0.5rem; }
.book-card p { margin-bottom: 1.25rem; font-size: 1.0625rem; color: var(--ink-soft); }
.book-card p a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.book-card .btn { width: 100%; }
.book-card__link { display: block; margin-top: 1rem; font-size: 1rem; text-align: center; }

.others { padding-bottom: var(--section-space); }
.others h2 {
    margin-bottom: 1rem;
    padding-top: clamp(2.5rem, 5vw, 3.5rem);
    border-top: 2px dashed var(--dash);
    font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}
.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 0 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ===== SERVICES PAGE ===== */
.svc-group {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
.svc-group + .svc-group {
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-top: clamp(3rem, 6vw, 4.5rem);
    border-top: 2px dashed var(--dash);
}
.svc-group .pill { font-size: 1.25rem; }
.svc-group__desc { max-width: 26em; color: var(--ink-soft); }
.svc-group__photo {
    width: min(100%, 250px);
    aspect-ratio: 1;
    margin-top: 1.75rem;
    margin-left: 1rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 8px var(--white);
}
.svc-items { margin: 0; padding: 0; list-style: none; }
.svc-item {
    position: relative;
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding-block: 1.1rem;
}
.svc-item:first-child { padding-top: 0.4rem; }
.svc-item + .svc-item { border-top: 2px dashed var(--dash); }
.svc-item h3 { margin: 0.4rem 0 0.3rem; font-size: 1.25rem; font-weight: 500; }
.svc-item h3 a { color: var(--ink); text-decoration: none; }
.svc-item h3 a::after { content: ""; position: absolute; inset: 0; }
.svc-item:hover h3 a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 4px; }
.svc-item p { margin: 0; color: var(--ink-soft); font-size: 1.0625rem; }

.compare { background: var(--white); }
.compare__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.compare__head h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); margin-bottom: 1rem; }
.compare__head p { margin: 0; color: var(--ink-soft); }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 1.0625rem; }
.compare-table th,
.compare-table td { padding: 1rem 1.1rem; text-align: left; vertical-align: top; }
.compare-table thead th {
    padding-block: 0.9rem;
    background: var(--teal-deep);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
}
.compare-table thead th:first-child { border-radius: 999px 0 0 999px; padding-left: 1.5rem; }
.compare-table thead th:last-child { border-radius: 0 999px 999px 0; }
.compare-table tbody th { padding-left: 1.5rem; font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; }
.compare-table tbody tr + tr > * { border-top: 2px dashed var(--dash); }
.compare-table tbody th a { color: var(--teal-ink); }

.summary {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius);
    background: var(--paper);
}
.summary h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
.summary-list { margin: 0 0 1.75rem; padding: 0; list-style: none; }
.summary-list li { position: relative; padding: 0.8rem 0 0.8rem 1.75rem; }
.summary-list li + li { border-top: 2px dashed var(--dash); }
.summary-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 1.35rem;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--coral);
}
.summary-list li:nth-child(2)::before { background: var(--teal); }
.summary__a { font-family: var(--font-display); font-weight: 500; white-space: nowrap; }

/* ===== TEAM PAGE ===== */
.team-list { display: grid; gap: clamp(3.5rem, 7vw, 6rem); }
.person {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.person--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.person--flip .person__photo { order: 2; }
.person__photo { width: min(100%, 380px); }
.person--flip .person__photo::before { left: 18%; right: -14%; border-radius: 0 0 999px 0; background: var(--peach); }
.person__text h2 { margin-bottom: 0.4rem; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem); }
.person__role { margin-bottom: 1.25rem; font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; color: var(--coral-ink); }
.person__text p { max-width: 38em; }
.person__text .btn { margin-top: 0.5rem; }

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
.contact-block { display: flex; gap: 1.1rem; padding-block: 1.6rem; }
.contact-block:first-child { padding-top: 0; }
.contact-block + .contact-block { border-top: 2px dashed var(--dash); }
.contact-block h2 { margin: 0.35rem 0 0.6rem; font-size: 1.375rem; }
.contact-block p { margin-bottom: 1rem; }
.contact-block p:last-child { margin-bottom: 0; }
.contact-block__phone { font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; line-height: 1.2; }
.contact-block__phone a { color: var(--ink); text-decoration: none; }
.contact-block__phone a:hover { color: var(--teal-ink); text-decoration: underline; }
.map-frame--tall { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 5 / 6; }

/* ===== 404 ===== */
.not-found h2 { margin-bottom: 0.5rem; font-size: 1.75rem; }

/* ===== FOOTER ===== */
.site-footer { background: var(--teal-deep); color: var(--white); font-size: 1.0625rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
    gap: 2.5rem clamp(2rem, 4vw, 3rem);
    padding-block: clamp(3rem, 6vw, 4rem) clamp(2.5rem, 5vw, 3rem);
}
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { max-width: 16em; margin: 1rem 0 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; }
.site-footer h2 { margin-bottom: 0.9rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; color: var(--white); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--white); text-underline-offset: 3px; }
.site-footer nav a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-thickness: 2px; }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-contact li { display: flex; gap: 0.75rem; margin-bottom: 0.9rem; }
.footer-contact .icon { margin-top: 0.2em; }
.footer-contact a { white-space: nowrap; }
.footer-bar { background: var(--teal-ink-dark); }
.footer-bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 2rem; padding-block: 1.1rem; }
.footer-bar p { margin: 0; font-size: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
    .hero__dots { display: none; }
    .help__pill { flex-wrap: wrap; border-radius: 40px; }
    .help__actions { width: 100%; padding-left: calc(104px + clamp(1rem, 3vw, 2rem)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    .groups { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
    .group__desc { min-height: 0; }
    .group__photo { display: none; }

    .service-layout { grid-template-columns: 1fr; }
    .service-aside { position: static; }
    .book-card { max-width: 32rem; }

    .svc-group { grid-template-columns: 1fr; gap: 1.5rem; }
    .svc-group__photo { display: none; }

    .contact-grid { grid-template-columns: 1fr; }
    .map-frame--tall { position: relative; top: auto; aspect-ratio: 4 / 3; }

    /* The comparison table becomes one card per treatment */
    .compare-table thead {
        position: absolute;
        width: 1px; height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
    .compare-table,
    .compare-table tbody,
    .compare-table tr,
    .compare-table th,
    .compare-table td { display: block; }
    .compare-table tbody tr {
        margin-bottom: 1rem;
        padding: 1.25rem 1.4rem 0.75rem;
        border-radius: 24px;
        background: var(--paper);
    }
    .compare-table tbody tr + tr > * { border-top: 0; }
    .compare-table tbody th { padding: 0 0 0.6rem; font-size: 1.25rem; }
    .compare-table td {
        display: grid;
        grid-template-columns: 9.5rem minmax(0, 1fr);
        gap: 1rem;
        padding: 0.65rem 0;
        border-top: 2px dashed var(--dash);
    }
    .compare-table td::before {
        content: attr(data-label);
        font-family: var(--font-display);
        font-weight: 500;
        font-size: 0.975rem;
        color: var(--teal-ink);
    }
}

@media (max-width: 860px) {
    /* Home hero: the photo circle moves below the text, still bleeding off the right edge */
    .hero { display: flex; flex-direction: column; padding-bottom: 0; min-height: 0; }
    .hero__art { position: relative; inset: auto; height: 400px; margin-top: 2rem; order: 2; }
    .hero__wave { width: 80%; }
    .hero__photo { top: 0; right: -60px; width: 360px; }
    .hero__disc--peach { top: 10px; right: 270px; width: 72px; }
    .hero__disc--coral { bottom: 20px; right: 240px; width: 84px; }
    .contact-strip { margin-top: -3rem; }

    .contact-card { grid-template-columns: 1fr; padding: 0.75rem 0; }
    .contact-card li { padding: 1rem 1.25rem; }
    .contact-card li + li { border-left: 0; border-top: 2px dashed var(--dash); }

    .welcome__grid,
    .why__grid,
    .visit__grid { grid-template-columns: 1fr; }
    .why__photo { width: min(80%, 340px); }

    .help__pill { flex-direction: column; align-items: flex-start; padding: 1.5rem; border-radius: 32px; }
    .help__disc { width: 80px; height: 80px; margin: 0; }
    .help__disc .lotus-glyph { width: 42px; height: 33px; }
    .help__actions { padding-left: 0; }

    /* Inner hero: photo pages show the circle below the text; plain pages keep a slim wave */
    .page-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .page-hero__media { width: min(64vw, 260px); justify-self: end; margin-right: 4px; }
    .page-hero--photo .page-hero__wave { top: auto; bottom: 0; width: 78%; height: min(46%, 300px); }
    .page-hero:not(.page-hero--photo) .page-hero__media { display: none; }
    .page-hero:not(.page-hero--photo) .page-hero__wave { width: 14%; }
    .page-hero:not(.page-hero--photo) .page-hero__text { padding-right: 12%; }

    .person,
    .person--flip { grid-template-columns: 1fr; gap: 2.5rem; }
    .person--flip .person__photo { order: 0; }
    .person__photo { width: min(78%, 320px); }
}

@media (max-width: 640px) {
    body { font-size: 1.125rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .compare-table td { grid-template-columns: 1fr; gap: 0.15rem; }
    .summary__a { white-space: normal; }
}

@media (max-width: 480px) {
    .brand img { height: 32px; }
    .hero .btn-row .btn,
    .page-hero .btn,
    .help__actions .btn,
    .contact-block .btn { width: 100%; }
    .hero__art { height: 330px; }
    .hero__photo { width: 300px; right: -50px; }
    .hero__disc--peach { right: 220px; }
    .hero__disc--coral { right: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
    .site-header, .mobile-nav, .wa-float, .service-aside, .others, .help, .page-hero__art, .page-hero__media, .hero__art, .map-frame { display: none !important; }
    .service-layout, .page-hero__grid { display: block; }
    .site-footer { background: none; color: var(--ink); }
    .site-footer a { color: var(--ink); }
    .footer-bar { background: none; }
    body { font-size: 12pt; background: none; }
}
