/* =========================================================
   Karibu Med India — Static one-page site
   Palette: deep teal + warm terracotta + ivory
   Fonts: Cormorant Garamond (display) + Manrope (UI/body)
   ========================================================= */

:root {
    --ivory: #f6f1e8;
    --paper: #fbf8f1;
    --ink: #0f1c1c;
    --ink-soft: #2a3a3a;
    --muted: #6b7575;
    --teal: #0d3b3a;
    --teal-deep: #082525;
    --teal-soft: #1a5a57;
    --terracotta: #c75b3c;
    --terracotta-deep: #a8442a;
    --gold: #d9a441;
    --line: #e6dfd1;
    --shadow-sm: 0 1px 2px rgba(15, 28, 28, 0.06);
    --shadow-md: 0 12px 32px -12px rgba(15, 28, 28, 0.18);
    --shadow-lg: 0 30px 80px -30px rgba(15, 28, 28, 0.35);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --t: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Hide React mount root – we use static markup outside it */
#root { display: none !important; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--t); }
a:hover { color: var(--terracotta); }

::selection { background: var(--terracotta); color: var(--ivory); }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
.display {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: clamp(2.5rem, 5.5vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.01em;
    color: var(--teal-deep);
    margin: 0 0 24px;
}
.display em {
    font-style: italic;
    color: var(--terracotta);
    font-weight: 500;
}
.h-display {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.005em;
    color: var(--teal-deep);
    margin: 0 0 18px;
}
.h-display--light { color: var(--ivory); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--teal-soft);
    margin-bottom: 18px;
}
.eyebrow--light { color: var(--gold); }

.lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--ink-soft);
    max-width: 56ch;
    margin: 0 0 28px;
}
.lead--light { color: rgba(246, 241, 232, 0.85); }
.muted { color: var(--muted); max-width: 56ch; }
.microcopy { color: var(--muted); font-size: 13px; margin-top: 32px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .25s var(--t), background-color .25s var(--t), color .25s var(--t), border-color .25s var(--t), box-shadow .25s var(--t);
    white-space: nowrap;
}
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn--primary {
    background: var(--terracotta);
    color: var(--ivory);
    box-shadow: 0 10px 24px -10px rgba(199, 91, 60, 0.6);
}
.btn--primary:hover {
    background: var(--terracotta-deep);
    color: var(--ivory);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(199, 91, 60, 0.7);
}
.btn--ghost {
    background: transparent;
    color: var(--teal-deep);
    border-color: var(--teal-deep);
}
.btn--ghost:hover { background: var(--teal-deep); color: var(--ivory); transform: translateY(-2px); }
.btn--ghost-light {
    background: transparent;
    color: var(--ivory);
    border-color: rgba(246, 241, 232, 0.4);
}
.btn--ghost-light:hover { background: rgba(246, 241, 232, 0.12); color: var(--ivory); }
.btn--light {
    background: var(--ivory);
    color: var(--teal-deep);
}
.btn--light:hover { background: #fff; color: var(--teal-deep); transform: translateY(-2px); }
.btn--whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.6);
}
.btn--whatsapp:hover { background: #1fb957; color: #fff; transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 248, 241, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--teal-deep);
}
.brand:hover { color: var(--terracotta); }
.brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--teal-soft);
    color: var(--ivory);
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: 22px;
    box-shadow: inset 0 0 0 1px rgba(217, 164, 65, 0.3);
}
.brand__text span { color: var(--terracotta); font-style: italic; font-weight: 500; }
.brand--light { color: var(--ivory); }
.brand--light .brand__text span { color: var(--gold); }

.nav__links {
    display: flex;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
}
.nav__links a { position: relative; }
.nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: var(--terracotta);
    transition: width .25s var(--t);
}
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--teal-deep);
    border-radius: 2px;
    transition: transform .3s var(--t), opacity .3s var(--t);
}
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(60% 50% at 80% 10%, rgba(199, 91, 60, 0.10), transparent 60%),
        radial-gradient(50% 60% at 5% 90%, rgba(13, 59, 58, 0.08), transparent 60%);
    z-index: 0;
}
.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}
.hero__text { min-width: 0; }
.hero__ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hero__trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.hero__trust strong {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 2.3rem;
    color: var(--teal-deep);
    line-height: 1;
    margin-bottom: 6px;
}
.hero__trust span { font-size: 13px; color: var(--muted); }

.hero__visual {
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: 640px;
}
.hero__photo {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(8, 37, 37, 0.2));
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__chip {
    position: absolute;
    background: var(--paper);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    border: 1px solid var(--line);
    animation: float 6s ease-in-out infinite;
}
.hero__chip i { color: var(--terracotta); font-size: 22px; }
.hero__chip strong { display: block; color: var(--teal-deep); font-weight: 700; }
.hero__chip span { color: var(--muted); }
.hero__chip--1 { top: 8%; left: -32px; }
.hero__chip--2 { bottom: 14%; right: -28px; animation-delay: 1.5s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------- Trust strip ---------- */
.strip {
    background: var(--teal-deep);
    color: var(--ivory);
    padding: 22px 0;
}
.strip__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
}
.strip__row > div { display: flex; align-items: center; gap: 10px; }
.strip__row i { color: var(--gold); font-size: 18px; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section--alt { background: var(--ivory); border-block: 1px solid var(--line); }
.section--dark {
    background: var(--teal-deep);
    color: var(--ivory);
    position: relative;
    overflow: hidden;
}
.section--dark::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 164, 65, 0.10), transparent 70%);
    top: -200px;
    right: -150px;
}
.section__head { max-width: 720px; margin-bottom: 60px; }

/* ---------- Why grid ---------- */
.why__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}
.why__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.feature {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: transform .3s var(--t), box-shadow .3s var(--t);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--terracotta); }
.feature i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(199, 91, 60, 0.10);
    color: var(--terracotta);
    font-size: 20px;
    margin-bottom: 18px;
}
.feature h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    margin: 0 0 8px;
    color: var(--teal-deep);
}
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* ---------- Treatments ---------- */
.treatments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform .35s var(--t), box-shadow .35s var(--t);
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s var(--t);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--terracotta);
    margin-bottom: 12px;
}
.card h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.55rem;
    margin: 0 0 8px;
    color: var(--teal-deep);
    line-height: 1.2;
}
.card p { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; flex: 1; }
.price {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(13, 59, 58, 0.06);
    color: var(--teal-deep);
    font-size: 13px;
    align-self: flex-start;
}
.price strong { font-size: 16px; font-weight: 700; }

/* ---------- Journey ---------- */
.journey {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    counter-reset: step;
    position: relative;
}
.journey::before {
    content: "";
    position: absolute;
    top: 36px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--terracotta) 0 8px, transparent 8px 14px);
    opacity: 0.4;
    z-index: 0;
}
.journey__step {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 26px 22px;
    position: relative;
    z-index: 1;
    transition: transform .3s var(--t), box-shadow .3s var(--t);
}
.journey__step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
    display: inline-block;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    color: var(--terracotta);
    margin-bottom: 12px;
    font-weight: 600;
}
.journey__step h4 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
    color: var(--teal-deep);
    margin: 0 0 6px;
}
.journey__step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Hospitals ---------- */
.hospitals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    position: relative;
    z-index: 1;
}
.hospital {
    background: rgba(246, 241, 232, 0.05);
    border: 1px solid rgba(246, 241, 232, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: transform .3s var(--t), background-color .3s var(--t), border-color .3s var(--t);
}
.hospital:hover { transform: translateY(-4px); background: rgba(246, 241, 232, 0.10); border-color: var(--gold); }
.hospital i {
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 14px;
    display: block;
}
.hospital span {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
    margin-bottom: 4px;
}
.hospital small { color: rgba(246, 241, 232, 0.6); font-size: 12.5px; }

/* ---------- Testimonials ---------- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.quote {
    margin: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 32px 28px 24px;
    position: relative;
    transition: transform .3s var(--t), box-shadow .3s var(--t);
}
.quote::before {
    content: "“";
    position: absolute;
    top: -10px;
    left: 22px;
    font-family: "Cormorant Garamond", serif;
    font-size: 5rem;
    color: var(--terracotta);
    line-height: 1;
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote blockquote {
    margin: 0 0 22px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    line-height: 1.45;
    color: var(--ink);
    font-style: italic;
}
.quote figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.quote figcaption img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.quote figcaption strong { display: block; color: var(--teal-deep); font-size: 14.5px; }
.quote figcaption span { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- FAQ ---------- */
.faq__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 80px;
    align-items: start;
}
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0;
    transition: border-color .25s var(--t), box-shadow .25s var(--t);
}
.faq__item[open] { border-color: var(--terracotta); box-shadow: var(--shadow-sm); }
.faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 26px;
    font-weight: 600;
    color: var(--teal-deep);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+";
    font-size: 22px;
    color: var(--terracotta);
    transition: transform .25s var(--t);
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p {
    margin: 0;
    padding: 0 26px 22px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.65;
}
.faq__item p a { color: var(--terracotta); border-bottom: 1px solid currentColor; }

/* ---------- CTA ---------- */
.cta {
    background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 60%, var(--teal-soft) 100%);
    color: var(--ivory);
    padding: clamp(70px, 9vw, 110px) 0;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(217, 164, 65, 0.12), transparent 70%);
    border-radius: 50%;
    top: -300px;
    right: -200px;
}
.cta__inner { position: relative; z-index: 1; max-width: 880px; }
.cta__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 36px 0 32px;
}
.cta__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: rgba(246, 241, 232, 0.85);
    font-size: 14px;
}
.cta__bullets i { color: var(--gold); margin-right: 8px; }

/* ---------- Footer ---------- */
.footer {
    background: var(--teal-deep);
    color: rgba(246, 241, 232, 0.75);
    padding: 70px 0 30px;
    border-top: 1px solid rgba(246, 241, 232, 0.08);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer__tag { margin-top: 14px; font-size: 14px; line-height: 1.6; max-width: 32ch; }
.footer h5 {
    color: var(--ivory);
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a:hover { color: var(--gold); }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 26px;
    border-top: 1px solid rgba(246, 241, 232, 0.08);
    font-size: 12.5px;
    color: rgba(246, 241, 232, 0.5);
}

/* ---------- Floating WA ---------- */
.floating-wa {
    position: fixed;
    bottom: 22px;
    left: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 26px;
    box-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.55);
    z-index: 100;
    transition: transform .25s var(--t);
    animation: pulse 2.4s ease-in-out infinite;
}
.floating-wa:hover { transform: scale(1.08); color: #fff; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.55), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.55), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--t), transform .8s var(--t);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; gap: 48px; }
    .hero__visual { max-width: 520px; margin: 0 auto; aspect-ratio: 5 / 4; }
    .why__grid, .faq__grid { grid-template-columns: 1fr; gap: 48px; }
    .why__features { grid-template-columns: 1fr 1fr; }
    .treatments, .testimonials { grid-template-columns: 1fr 1fr; }
    .journey { grid-template-columns: repeat(3, 1fr); }
    .journey::before { display: none; }
    .hospitals { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .strip__row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav__cta { display: none; }
    .nav__toggle { display: flex; }
    .nav__links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 0px 24px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s var(--t), padding .3s var(--t);
    }
    .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav__links a:last-child { border-bottom: 0; }
    .nav.open .nav__links { max-height: 500px; }
    .hero__chip { padding: 10px 14px; font-size: 12px; }
    .hero__chip--1 { left: -10px; top: 4%; }
    .hero__chip--2 { right: -8px; bottom: 8%; }
    .hero__trust { grid-template-columns: 1fr 1fr; gap: 18px; }
    .why__features { grid-template-columns: 1fr; }
    .treatments, .testimonials, .journey, .hospitals { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .strip__row { grid-template-columns: 1fr; gap: 14px; }
    .section__head { margin-bottom: 40px; }
    .floating-wa { width: 50px; height: 50px; font-size: 22px; }
}
@media (max-width: 479px) {
    .hero__visual{display:nonr}
}