:root {
    --surface: #f6f8fb;
    --surface-alt: #ffffff;
    --text: #10232f;
    --text-soft: #4e6574;
    --brand: #028c7f;
    --brand-strong: #01695f;
    --line: #dce6ee;
    --hero-a: #dbf7f4;
    --hero-b: #bdeae4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text);
    background: var(--surface);
}

h1,
h2,
h3,
.logo-text,
.eyebrow {
    font-family: 'Sora', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.top-strip {
    background: color-mix(in srgb, var(--brand) 20%, #111 80%);
    color: #f4faff;
    font-size: 0.84rem;
}

.strip-content {
    min-height: 2.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 25;
    backdrop-filter: blur(8px);
    background: color-mix(in srgb, var(--surface-alt) 88%, transparent 12%);
    border-bottom: 1px solid var(--line);
}

.header-row {
    min-height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.7rem;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
   
}

.logo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.logo-text {
    font-size: clamp(0.92rem, 2.1vw, 1.2rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--brand-strong);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.desktop-nav a {
    font-weight: 600;
    color: var(--text-soft);
}

.desktop-nav a:hover {
    color: var(--brand-strong);
}

.menu-toggle {
    display: none;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    background: #fff;
    padding: 0.45rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--brand-strong);
    margin: 4px 0;
}

.mobile-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 340px);
    z-index: 40;
    background: #fff;
    transform: translateX(-102%);
    transition: transform 0.3s ease;
    border-right: 1px solid var(--line);
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-head {
    height: 4.2rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 1.3rem;
    background: linear-gradient(120deg, var(--brand), var(--brand-strong));
}

.drawer-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.drawer-links {
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
}

.drawer-links a {
    padding: 0.8rem 0.7rem;
    border-radius: 0.6rem;
    font-weight: 600;
}

.drawer-links a:hover {
    background: color-mix(in srgb, var(--brand) 12%, white 88%);
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    z-index: 35;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, var(--hero-a), var(--hero-b));
    border-bottom: 1px solid var(--line);
}

.hero::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    right: -120px;
    top: -180px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 25%, transparent 75%);
}

.hero .container {
    position: relative;
    z-index: 1;
    padding: clamp(2.8rem, 8vw, 5.4rem) 0;
}

.eyebrow {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-strong);
}

.hero h1 {
    margin: 0.45rem 0 0.7rem;
    font-size: clamp(1.8rem, 5.5vw, 3rem);
    line-height: 1.1;
}

.hero p {
    max-width: 680px;
    color: var(--text-soft);
    font-size: clamp(1rem, 2vw, 1.13rem);
}

.cta {
    margin-top: 1rem;
    display: inline-block;
    background: linear-gradient(140deg, var(--brand), var(--brand-strong));
    color: #fff;
    padding: 0.72rem 1.1rem;
    border-radius: 0.72rem;
    font-weight: 700;
}

.section {
    padding: clamp(2.1rem, 6vw, 4rem) 0;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2.3rem);
    color: var(--brand-strong);
}

.section-head p {
    margin-top: 0.45rem;
    color: var(--text-soft);
}

.card-grid {
    margin-top: 1.2rem;
    display: grid;
    gap: 1rem;
}

.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.service-card,
.doctor-card,
.contact-form {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 0.95rem;
    padding: 1rem;
    box-shadow: 0 12px 25px -20px rgba(0, 0, 0, 0.45);
}

.feature-card h3,
.service-card h3,
.doctor-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.feature-card p,
.service-card p,
.doctor-card p {
    margin: 0.5rem 0 0;
    color: var(--text-soft);
}

.doctor-photo {
    height: 220px;
    border-radius: 0.8rem;
    margin-bottom: 0.85rem;
    background-size: cover;
    background-position: center;
}

.doctor-1 {
    background-image: linear-gradient(to top, rgba(5, 16, 30, 0.4), rgba(5, 16, 30, 0.1)), url('https://images.unsplash.com/photo-1612349317150-e413f6a5b16d?auto=format&fit=crop&w=800&q=80');
}

.doctor-2 {
    background-image: linear-gradient(to top, rgba(5, 16, 30, 0.4), rgba(5, 16, 30, 0.1)), url('https://images.unsplash.com/photo-1559839734-2b71ea197ec2?auto=format&fit=crop&w=800&q=80');
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.gallery-tile {
    min-height: 180px;
    border-radius: 0.95rem;
    border: 1px solid var(--line);
    background-size: cover;
    background-position: center;
}

.g1 { background-image: url('https://images.unsplash.com/photo-1581056771107-24ca5f033842?auto=format&fit=crop&w=900&q=80'); }
.g2 { background-image: url('https://images.unsplash.com/photo-1516549655169-df83a0774514?auto=format&fit=crop&w=900&q=80'); }
.g3 { background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=900&q=80'); }
.g4 { background-image: url('https://images.unsplash.com/photo-1579154204601-01588f351e67?auto=format&fit=crop&w=900&q=80'); }
.g5 { background-image: url('https://images.unsplash.com/photo-1504813184591-01572f98c85f?auto=format&fit=crop&w=900&q=80'); }
.g6 { background-image: url('https://images.unsplash.com/photo-1624727828489-a1e03b79bba8?auto=format&fit=crop&w=900&q=80'); }

.contact-form {
    display: grid;
    gap: 0.7rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    width: 100%;
    border-radius: 0.6rem;
    border: 1px solid var(--line);
    padding: 0.65rem;
    font: inherit;
}

.contact-form button {
    border: 0;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--brand-strong));
}

.site-footer {
    margin-top: 2rem;
    color: #e6f3fa;
    background: linear-gradient(145deg, color-mix(in srgb, var(--brand-strong) 72%, #0a1e2d 28%), color-mix(in srgb, var(--brand) 68%, #0a1e2d 32%));
}

.footer-grid {
    padding: 2rem 0 1.2rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.4fr 1fr 1.2fr;
}

.site-footer h3 {
    margin: 0 0 0.7rem;
    color: #fff;
}

.site-footer p,
.site-footer a {
    margin: 0.35rem 0;
    color: #d2e9f6;
    display: block;
}

.social-inline {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.social-inline a,
.floating-social a {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: #fff;
    font-weight: 700;
}

.social-inline a { background: color-mix(in srgb, var(--brand) 65%, #0b2232 35%); }

.copyright {
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 0.85rem 0 1rem;
    font-size: 0.9rem;
}

.floating-social {
    position: fixed;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: grid;
    gap: 0.45rem;
}

.fb { background: #1877f2; }
.ig { background: linear-gradient(140deg, #f58529, #dd2a7b, #8134af); }
.wa { background: #25d366; }

.theme-home {
    --surface: #f2f8ff;
    --surface-alt: #ffffff;
    --text: #152332;
    --text-soft: #4a647a;
    --brand: #0f7ac4;
    --brand-strong: #0b4f8c;
    --line: #d2e5f5;
    --hero-a: #d9efff;
    --hero-b: #bfe3ff;
}

.theme-about {
    --surface: #f6f9f4;
    --surface-alt: #ffffff;
    --text: #1c3124;
    --text-soft: #566d5e;
    --brand: #2d9b59;
    --brand-strong: #206b3e;
    --line: #d6ebd8;
    --hero-a: #d9f6dd;
    --hero-b: #b8ecc5;
}

.theme-services {
    --surface: #fff8f1;
    --surface-alt: #ffffff;
    --text: #372619;
    --text-soft: #7a5d45;
    --brand: #e06c19;
    --brand-strong: #a84a0b;
    --line: #f1decf;
    --hero-a: #ffe4c8;
    --hero-b: #ffd2ad;
}

.theme-gallery {
    --surface: #f7f4ff;
    --surface-alt: #ffffff;
    --text: #27203b;
    --text-soft: #625982;
    --brand: #6750b5;
    --brand-strong: #47327e;
    --line: #dfd9f5;
    --hero-a: #e5ddff;
    --hero-b: #d1c6ff;
}

.theme-contact {
    --surface: #f1fbf7;
    --surface-alt: #ffffff;
    --text: #173227;
    --text-soft: #4d7165;
    --brand: #1ca879;
    --brand-strong: #0e7150;
    --line: #ceeee3;
    --hero-a: #d6f8ea;
    --hero-b: #b4eed8;
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-block;
    }

    .cols-2,
    .cols-3,
    .gallery-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .floating-social {
        top: auto;
        bottom: 5.6rem;
        transform: none;
    }

    .strip-content {
        font-size: 0.75rem;
        flex-direction: column;
        justify-content: center;
        padding: 0.3rem 0;
    }
}
