:root {
    --ink: #14263d;
    --blue: #4279d4;
    --light: #f3f7fb;
    --cream: #fffdfa;
    --muted: #6d7b8b;
    --line: #dbe4ec;
}


/* ================= RESET ================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Poppins", sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

.container {
    width: min(1160px, calc(100% - 36px));
    margin: auto;
}


/* ================= HEADER ================= */

.header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;

    z-index: 1000;

    background: rgba(255, 253, 250, 0.94);

    backdrop-filter: blur(16px);

    border-bottom: 1px solid var(--line);
}

.nav {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 13px;
    font-weight: 700;
}


.logo-text strong {
    display: block;
}


.logo-text span {
    display: block;

    color: var(--muted);

    font-size: 7px;

    letter-spacing: 0.14em;
}


.logo-circle {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: var(--ink);
    color: white;

    font-family: "Caveat", cursive;

    font-size: 20px;
}


.desktop-nav {
    display: flex;
    align-items: center;

    gap: 20px;
}

.desktop-nav a {
    color: #5d6c7c;

    font-size: 10px;

    transition: color 0.2s;
}

.desktop-nav a:hover {
    color: var(--blue);
}


.nav-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 999px;

    background: var(--blue);
    color: white;

    padding: 12px 19px;

    font-size: 12px;
    font-weight: 600;

    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.nav-button:hover,
.primary-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(66, 121, 212, 0.25);
}


/* ================= MOBILE HAMBURGER ================= */

.mobile-menu-btn {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;

    border: 0;

    background: transparent;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    -webkit-tap-highlight-color: transparent;
}


.mobile-menu-btn span {
    display: block;

    width: 24px;
    height: 2px;

    background: var(--ink);

    border-radius: 10px;

    transition:
        transform 0.25s ease,
        opacity 0.2s ease;
}


.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


.mobile-menu {
    position: absolute;

    top: 76px;
    left: 0;
    right: 0;

    display: none;

    padding: 8px 20px 20px;

    background: rgba(255, 253, 250, 0.98);

    backdrop-filter: blur(16px);

    border-bottom: 1px solid var(--line);

    box-shadow:
        0 15px 30px rgba(20, 38, 61, 0.08);
}


.mobile-menu.open {
    display: block;
}


.mobile-menu a {
    display: block;

    padding: 15px 0;

    color: var(--ink);

    font-size: 13px;

    font-weight: 500;

    border-bottom: 1px solid var(--line);
}


.mobile-menu a:last-child {
    border-bottom: 0;
}


/* ================= HERO ================= */

.hero {
    min-height: 95vh;

    padding-top: 132px;
    padding-bottom: 70px;
}


.hero-grid {
    display: grid;

    grid-template-columns: 1.03fr 0.97fr;

    gap: 58px;

    align-items: center;
}


.eyebrow {
    color: var(--blue);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.17em;
}


.script-heading {
    margin-top: 8px;

    color: var(--blue);

    font-family: "Caveat", cursive;

    font-size: clamp(38px, 4.2vw, 58px);

    line-height: 1;
}


.hero h1 {
    margin: 10px 0 22px;

    font-size: clamp(48px, 6.3vw, 78px);

    line-height: 0.98;

    letter-spacing: -0.055em;

    font-weight: 600;
}


.hero-content p {
    max-width: 560px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.9;
}


.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 26px;
}


.secondary-button,
.booking-outline {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border: 1px solid var(--ink);

    border-radius: 999px;

    font-size: 12px;

    font-weight: 600;

    transition:
        transform 0.2s,
        background 0.2s;
}


.secondary-button:hover {
    transform: translateY(-2px);
}


.hero-image {
    height: 610px;

    position: relative;

    overflow: hidden;
}


.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.rating-card {
    position: absolute;

    left: 18px;
    bottom: 18px;

    background: white;

    padding: 13px 17px;

    box-shadow:
        0 12px 30px rgba(19, 38, 60, 0.15);
}


.rating-card strong {
    display: block;

    font-size: 22px;
}


.rating-card span {
    display: block;

    color: var(--muted);

    font-size: 9px;
}


/* ================= GENERAL SECTIONS ================= */

section {
    padding: 100px 0;
}


.section-light {
    background: var(--light);

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}


.section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;

    margin-bottom: 42px;
}


.section-heading h2 {
    margin: 10px 0 0;

    font-size: clamp(44px, 5.2vw, 66px);

    line-height: 0.98;

    letter-spacing: -0.055em;

    font-weight: 600;
}


.section-heading p {
    max-width: 480px;

    margin: 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.8;
}


/* ================= SERVICES ================= */

.services-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    border-top: 1px solid var(--line);
}


.service {
    display: grid;

    grid-template-columns: 34px 1fr 16px;

    gap: 12px;

    padding: 28px 16px;

    border-bottom: 1px solid var(--line);
}


.service:nth-child(odd) {
    border-right: 1px solid var(--line);
}


.service-number {
    color: #8794a2;

    font-size: 10px;
}


.service h3 {
    margin: 0 0 7px;

    font-size: 15px;
}


.service p {
    margin: 0;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.65;
}


/* ================= DOCTOR ================= */

.doctor-grid {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 72px;

    align-items: center;
}


.doctor-image {
    height: 590px;

    overflow: hidden;
}


.doctor-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.doctor-content h2 {
    margin: 10px 0 20px;

    font-size: 62px;

    line-height: 0.98;

    letter-spacing: -0.055em;
}


.doctor-content p {
    color: var(--muted);

    font-size: 14px;

    line-height: 1.85;
}


.doctor-stats {
    display: flex;

    gap: 40px;

    margin-top: 28px;
}


.doctor-stats strong {
    display: block;

    font-size: 28px;
}


.doctor-stats span {
    display: block;

    color: var(--muted);

    font-size: 10px;
}


/* ================= GALLERY ================= */

.gallery {
    display: grid;

    grid-template-columns:
        1.15fr
        0.9fr
        0.9fr;

    grid-template-rows:
        255px
        255px;

    gap: 12px;
}


.gallery > div {
    overflow: hidden;
}


.gallery-large {
    grid-row: span 2;
}


.gallery img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s;
}


.gallery img:hover {
    transform: scale(1.025);
}


/* ================= MAP ================= */

.location-section {
    background: var(--cream);
}


.map-wrapper {
    width: 100%;
    height: 500px;

    overflow: hidden;

    border: 1px solid var(--line);

    background: #e9eef3;

    box-shadow:
        0 15px 40px rgba(20, 38, 61, 0.08);
}


.map-wrapper iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


.map-info {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding-top: 25px;
}


.map-address {
    max-width: 700px;
}


.map-address strong {
    display: block;

    margin-bottom: 6px;

    font-size: 13px;
}


.map-address span {
    display: block;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.7;
}


.map-actions {
    display: flex;

    flex-shrink: 0;

    align-items: center;

    gap: 10px;
}


/* ================= REVIEWS ================= */

.reviews-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 13px;
}


.review-card {
    min-height: 215px;

    padding: 26px;

    background: white;

    border: 1px solid var(--line);
}


.stars {
    color: #b48a3c;

    letter-spacing: 3px;
}


.review-card p {
    font-size: 13px;

    line-height: 1.8;
}


.review-card small {
    color: var(--muted);

    font-size: 10px;
}


/* ================= BOOKING ================= */

.booking {
    background: var(--ink);

    color: white;
}


.booking-grid {
    display: grid;

    grid-template-columns:
        1fr
        0.9fr;

    gap: 70px;
}


.booking h2 {
    margin: 10px 0 18px;

    font-size: 62px;

    line-height: 0.98;

    letter-spacing: -0.055em;
}


.booking p {
    color: #bdc8d7;

    font-size: 13px;

    line-height: 1.85;
}


.booking-outline {
    color: white;

    border-color: white;
}


.clinic-details {
    display: grid;

    gap: 18px;

    margin-top: 32px;
}


.clinic-details strong {
    display: block;

    font-size: 11px;
}


.clinic-details span {
    display: block;

    max-width: 600px;

    margin-top: 4px;

    color: #bdc8d7;

    font-size: 11px;

    line-height: 1.65;
}


.appointment-form {
    padding: 30px;

    background: var(--cream);

    color: var(--ink);
}


.appointment-form h3 {
    margin: 0 0 16px;

    font-size: 25px;
}


.appointment-form label {
    display: block;

    margin: 13px 0 6px;

    color: #596878;

    font-size: 10px;

    font-weight: 700;
}


.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    width: 100%;

    padding: 12px;

    background: white;

    border: 1px solid #d6e0e8;

    outline: none;

    font-size: 12px;
}


.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
    border-color: var(--blue);
}


.appointment-form textarea {
    min-height: 85px;

    resize: vertical;
}


.submit-button {
    width: 100%;

    margin-top: 14px;

    padding: 13px;

    border: none;

    border-radius: 999px;

    background: var(--blue);

    color: white;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}


.submit-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(66, 121, 212, 0.25);
}


/* ================= FOOTER ================= */

footer {
    background: #0b1828;

    color: #aab5c2;

    font-size: 10px;

    padding: 24px 0;
}


.footer-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;
}


/* ================= TABLET ================= */

@media (max-width: 1000px) {

    .desktop-nav {
        gap: 12px;
    }

    .desktop-nav a {
        font-size: 9px;
    }

    .nav-button {
        padding: 10px 14px;
        font-size: 10px;
    }

}


/* ================= MOBILE ================= */

@media (max-width: 850px) {

    .desktop-nav,
    .nav-button {
        display: none;
    }


    .mobile-menu-btn {
        display: flex;
    }


    .hero-grid,
    .doctor-grid,
    .booking-grid {
        grid-template-columns: 1fr;
    }


    .hero {
        padding-top: 115px;
    }


    .hero-image {
        height: 470px;
    }


    .section-heading {
        display: block;
    }


    .section-heading p {
        margin-top: 25px;
    }


    .services-grid {
        grid-template-columns: 1fr;
    }


    .service:nth-child(odd) {
        border-right: none;
    }


    .doctor-image {
        height: 500px;
    }


    .doctor-content h2,
    .booking h2 {
        font-size: 50px;
    }


    .reviews-grid {
        grid-template-columns: 1fr;
    }


    .gallery {
        grid-template-columns: 1fr 1fr;

        grid-template-rows:
            230px
            210px
            210px;
    }


    .gallery-large {
        grid-row: auto;
    }


    .map-info {
        align-items: flex-start;

        flex-direction: column;
    }


    .map-actions {
        width: 100%;

        flex-wrap: wrap;
    }

}


/* ================= SMALL MOBILE ================= */

@media (max-width: 520px) {

    .container {
        width: calc(100% - 26px);
    }


    .logo-wrap {
        font-size: 12px;
    }


    .logo-text span {
        font-size: 6px;
    }


    .logo-circle {
        width: 40px;
        height: 40px;

        font-size: 18px;
    }


    .hero h1 {
        font-size: 50px;
    }


    .hero-image {
        height: 390px;
    }


    .gallery {
        grid-template-columns: 1fr;

        grid-template-rows:
            280px
            220px
            220px
            220px;
    }


    .doctor-stats {
        gap: 20px;

        flex-wrap: wrap;
    }


    .map-wrapper {
        height: 400px;
    }


    .map-actions {
        flex-direction: column;

        align-items: stretch;
    }


    .map-actions a {
        width: 100%;
    }


    .footer-inner {
        display: block;
    }


    .footer-inner span {
        display: block;

        margin: 5px 0;
    }

}