/* =========================================================
   ANNAI THERESA HOSPITAL
   SERVICES + DEPARTMENTS
   ========================================================= */

:root {
    --primary: #164f4a;
    --primary-dark: #103d39;
    --primary-light: #2f716b;
    --accent: #cfe5d9;
    --accent-light: #eaf4ef;
    --cream: #ffffff;
    --white: #ffffff;
    --text: #18302d;
    --muted: #667572;
    --border: #dce6e1;

    --shadow-sm: 0 8px 24px rgba(22, 79, 74, 0.08);
    --shadow: 0 20px 50px rgba(22, 79, 74, 0.12);
    --shadow-lg: 0 30px 80px rgba(22, 79, 74, 0.18);

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --container: 1200px;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

button,
a {
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    cursor: pointer;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.main-nav {
    width: min(calc(100% - 48px), var(--container));
    min-height: 82px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* =========================================================
   BRAND
   ========================================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 700;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-family: "Playfair Display", serif;
    font-size: 17px;
    color: var(--primary);
}

.brand-text span {
    margin-top: 4px;
    font-size: 10px;
    color: var(--muted);
}

/* =========================================================
   DESKTOP NAV
   ========================================================= */

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.desktop-nav > a:not(.nav-appointment) {
    position: relative;
    padding: 8px 0;
    color: #42524f;
    font-size: 14px;
    font-weight: 500;
    transition: color .25s ease;
}

.desktop-nav > a:not(.nav-appointment)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .25s ease;
}

.desktop-nav > a:not(.nav-appointment):hover,
.desktop-nav > a.active {
    color: var(--primary);
}

.desktop-nav > a:hover::after,
.desktop-nav > a.active::after {
    width: 100%;
}

.nav-appointment {
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: .25s ease;
}

.nav-appointment:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* =========================================================
   MOBILE MENU
   ========================================================= */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(360px, 88%);
    height: 100vh;
    padding: 24px;
    background: var(--white);
    box-shadow: -20px 0 60px rgba(0,0,0,.15);
    z-index: 2000;
    transition: right .35s ease;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-brand .brand-logo {
    width: 40px;
    height: 40px;
}

.mobile-brand .brand-text strong {
    font-size: 14px;
}

.menu-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--primary);
    font-size: 28px;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 25px;
}

.mobile-links a {
    padding: 14px;
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
}

.mobile-links a:hover,
.mobile-links a.active {
    background: var(--accent-light);
    color: var(--primary);
}

.mobile-appointment {
    margin-top: 12px;
    text-align: center;
    background: var(--primary) !important;
    color: white !important;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   HERO
   ========================================================= */

.services-hero {
    position: relative;

    /* UPDATED:
       Reduced left/right spacing.
       Top/bottom remain 85px. */
    padding: 85px 3.5% 85px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(207,229,217,.7),
            transparent 32%
        ),
        var(--cream);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
    align-items: center;
    gap: 75px;
}

.hero-content {
    max-width: 610px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--primary);
}

/* =========================================================
   UPDATED HERO HEADING
   Reduced slightly to match the lower section headings
   ========================================================= */

.hero-content h1 {
    font-family: "Playfair Display", serif;
    color: var(--primary-dark);

    /* OLD:
       clamp(44px,5vw,72px)

       UPDATED:
       Smaller and visually closer to the lower headings. */
    font-size: clamp(40px,4.5vw,54px);

    line-height: 1.04;
    letter-spacing: -1.5px;
}

.hero-content h1 span {
    color: var(--primary-light);
}

.hero-content p {
    max-width: 570px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: .25s ease;
}

.btn svg {
    width: 17px;
    height: 17px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* =========================================================
   HERO IMAGE
   ========================================================= */

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    height: 560px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: var(--accent-light);
}

.hero-image img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .8s ease;
}

.hero-image-wrapper:hover .hero-image img {
    transform: scale(1.04);
}

.hero-badge {
    position: absolute;
    left: -28px;
    bottom: 35px;
    width: min(270px,80%);
    padding: 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.hero-badge strong {
    display: block;
    color: var(--primary-dark);
    font-family: "Playfair Display", serif;
    font-size: 23px;
}

.hero-badge span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

/* =========================================================
   INTRO
   ========================================================= */

.intro-section {
    padding: 70px 0 25px;
}

.section-heading {
    max-width: 700px;
}

.section-heading.center {
    margin-inline: auto;
    text-align: center;
}

.section-heading .eyebrow {
    margin-bottom: 14px;
}

.section-heading h2 {
    color: var(--primary-dark);
    font-family: "Playfair Display", serif;
    font-size: clamp(34px,4vw,52px);
    line-height: 1.12;
}

.section-heading p {
    margin-top: 15px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

/* =========================================================
   SERVICES
   ========================================================= */

.services-section {
    padding: 40px 0 70px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px;
    margin-top: 45px;
}

.service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.service-image {
    height: 245px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.06);
}

.service-content {
    padding: 25px;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-top: -48px;
    position: relative;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    border: 4px solid white;
}

.service-icon svg {
    width: 21px;
    height: 21px;
}

.service-content h3 {
    margin-top: 18px;
    color: var(--primary-dark);
    font-family: "Playfair Display", serif;
    font-size: 23px;
    line-height: 1.25;
}

.service-content p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.service-link svg {
    width: 15px;
    transition: transform .2s ease;
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* =========================================================
   WHY CHOOSE US
   ========================================================= */

.why-section {
    padding: 70px 0;
    background: var(--accent-light);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.why-image {
    height: 560px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.why-image img {
    height: 100%;
    object-fit: cover;
}

.why-content {
    max-width: 580px;
}

.why-list {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.why-item-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: white;
    color: var(--primary);
}

.why-item-icon svg {
    width: 19px;
}

.why-item h3 {
    color: var(--primary-dark);
    font-size: 16px;
}

.why-item p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

/* =========================================================
   DOCTORS
   ========================================================= */

.doctors-section {
    padding: 70px 0;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 20px;
    margin-top: 45px;
}

.doctor-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.doctor-image {
    height: 330px;
    overflow: hidden;
    background: var(--accent-light);
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .6s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.04);
}

.doctor-content {
    padding: 20px;
}

.doctor-content h3 {
    color: var(--primary-dark);
    font-family: "Playfair Display", serif;
    font-size: 20px;
    line-height: 1.25;
}

.doctor-content p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-section {
    padding: 70px 0;
    background: var(--white);
}

.faq-list {
    width: min(900px, 100%);
    margin: 45px auto 0;
    display: grid;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.faq-item:hover,
.faq-item.open {
    border-color: rgba(22, 79, 74, .25);
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    min-height: 72px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    background: transparent;
    color: var(--primary-dark);
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: var(--primary);
    transition: transform .25s ease;
}

.faq-item.open .faq-question svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .25s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    opacity: 1;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 650px) {

    .faq-list {
        margin-top: 30px;
        gap: 10px;
    }

    .faq-question {
        min-height: 64px;
        padding: 17px 18px;
        font-size: 14px;
        gap: 14px;
    }

    .faq-question svg {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .faq-answer p {
        padding: 0 18px 19px;
        font-size: 13px;
    }
}

/* =========================================================
   CTA
   ========================================================= */

.cta-section {
    padding: 65px 0;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 55px;
    border-radius: var(--radius-lg);
    background: var(--primary-dark);
    color: white;
    box-shadow: var(--shadow-lg);
}

.cta-content {
    max-width: 720px;
}

.cta-box .eyebrow {
    color: var(--accent);
}

.cta-box .eyebrow::before {
    background: var(--accent);
}

.cta-box h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(35px,4vw,50px);
    line-height: 1.1;
}

.cta-box p {
    max-width: 600px;
    margin-top: 12px;
    color: rgba(255,255,255,.75);
    font-size: 14px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.btn-light {
    background: white;
    color: var(--primary);
}

.btn-light:hover {
    transform: translateY(-2px);
}

.btn-cta-outline {
    border: 1px solid rgba(255,255,255,.5);
    color: white;
}

.btn-cta-outline:hover {
    background: rgba(255,255,255,.1);
}

/* =========================================================
   MODAL
   ========================================================= */

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(7,32,29,.65);
    backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .3s ease;
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-box {
    position: relative;
    width: min(600px,100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 42px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(25px) scale(.97);
    transition: .3s ease;
}

.service-modal.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--primary);
    font-size: 25px;
}

.modal-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 15px;
    background: var(--accent-light);
    color: var(--primary);
}

.modal-icon svg {
    width: 25px;
}

.modal-box h2 {
    max-width: 470px;
    color: var(--primary-dark);
    font-family: "Playfair Display", serif;
    font-size: 30px;
    line-height: 1.2;
}

.modal-box > p {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.modal-box ul {
    margin-top: 20px;
    padding-left: 20px;
    color: var(--text);
}

.modal-box li {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: var(--primary-dark);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 50px;
    padding: 55px 0;
}

.footer-brand .brand-logo {
    background: white;
    color: var(--primary);
}

.footer-brand h3 {
    margin-top: 15px;
    font-family: "Playfair Display", serif;
    font-size: 22px;
}

.footer-brand p {
    max-width: 320px;
    margin-top: 12px;
    color: rgba(255,255,255,.65);
    font-size: 13px;
    line-height: 1.7;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-column h4 {
    margin-bottom: 8px;
    color: white;
    font-size: 14px;
}

.footer-column a {
    color: rgba(255,255,255,.65);
    font-size: 13px;
    transition: .2s ease;
}

.footer-column a:hover {
    color: white;
    transform: translateX(3px);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.1);
}

.footer-bottom p {
    color: rgba(255,255,255,.55);
    font-size: 11px;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    z-index: 900;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: .3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    width: 19px;
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity .7s ease,
        transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .desktop-nav {
        gap: 18px;
    }

    .hero-grid {
        gap: 45px;
    }

    .hero-image {
        height: 480px;
    }

    .services-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .doctors-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 850px) {

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 750px;
    }

    .hero-image-wrapper {
        max-width: 700px;
        margin-inline: auto;
        width: 100%;
    }

    .hero-image {
        height: 450px;
    }

    .hero-badge {
        left: 20px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .why-image {
        height: 450px;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 650px) {

    .container,
    .main-nav {
        width: min(calc(100% - 32px),var(--container));
    }

    .services-hero {
        padding: 55px 0 70px;
    }

    .hero-content h1 {
        font-size: 43px;
    }

    .hero-image {
        height: 350px;
        border-radius: 20px;
    }

    .hero-badge {
        position: relative;
        left: 0;
        bottom: auto;
        margin: -25px 15px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 245px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .doctor-image {
        height: 360px;
    }

    .why-image {
        height: 350px;
    }

    .cta-box {
        padding: 35px 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .modal-box {
        padding: 32px 22px;
    }

    .intro-section {
        padding: 50px 0 20px;
    }

    .services-section {
        padding: 30px 0 50px;
    }

    .why-section {
        padding: 50px 0;
    }

    .doctors-section {
        padding: 50px 0;
    }

    .cta-section {
        padding: 45px 0;
    }

    .footer-grid {
        padding: 45px 0;
    }
}

@media (max-width: 450px) {

    .brand-text span {
        display: none;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-image {
        height: 300px;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 3px solid rgba(47,113,107,.35);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   RESPONSIVE - 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .desktop-nav {
        gap: 16px;
    }

    .hero-grid {
        gap: 42px;
    }

    .hero-image {
        height: 455px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .doctors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* =========================================================
   RESPONSIVE - 850px
   ========================================================= */

@media (max-width: 850px) {

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-content {
        max-width: 750px;
    }

    .hero-image-wrapper {
        max-width: 700px;
        width: 100%;
        margin-inline: auto;
    }

    .hero-image {
        height: 410px;
    }

    .hero-badge {
        left: 18px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why-image {
        height: 390px;
    }

    .why-content {
        max-width: 100%;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-search {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* =========================================================
   RESPONSIVE - 650px
   ========================================================= */

@media (max-width: 650px) {

    .container,
    .main-nav {
        width: min(calc(100% - 32px), var(--container));
    }

    .main-nav {
        min-height: 70px;
    }

    .services-hero {
        padding: 40px 0 44px;
    }

    .hero-content h1 {
        font-size: 41px;
    }

    .hero-content p {
        margin-top: 15px;
        font-size: 14px;
    }

    .hero-actions {
        margin-top: 20px;
    }

    .hero-image {
        height: 320px;
        border-radius: 20px;
    }

    .hero-badge {
        position: relative;
        left: 0;
        bottom: auto;
        width: auto;
        margin: -20px 14px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-image {
        height: 220px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .doctor-image {
        height: 310px;
    }

    .intro-section {
        padding: 28px 0 7px;
    }

    .service-tools {
        padding-top: 8px;
    }

    .services-section {
        padding: 16px 0 34px;
    }

    .why-section,
    .doctors-section,
    .faq-section {
        padding: 38px 0;
    }

    .why-image {
        height: 330px;
    }

    .cta-section {
        padding: 32px 0;
    }

    .cta-box {
        padding: 30px 22px;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 38px 0;
    }

    .modal-box {
        padding: 30px 20px;
    }

    .breadcrumb {
        min-height: 40px;
        font-size: 11px;
    }

}

/* =========================================================
   RESPONSIVE - 450px
   ========================================================= */

@media (max-width: 450px) {

    .brand-text span {
        display: none;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-image {
        height: 285px;
    }

    .hero-badge {
        padding: 14px;
    }

    .hero-badge strong {
        font-size: 17px;
    }

    .service-content {
        padding: 19px;
    }

    .service-content h3 {
        font-size: 20px;
    }

    .modal-box h2 {
        font-size: 26px;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 42px;
        height: 42px;
    }

}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-image-wrapper:hover .hero-image img,
    .service-card:hover .service-image img {
        transform: none;
    }

}

/* =========================================================
   FINAL CLIENT UPDATE
   ONLY HERO SIZE + HORIZONTAL SPACING
   ========================================================= */

/*
   These final rules intentionally override only the two
   requested changes so that existing colors, images, icons,
   text, section spacing, cards and other styling remain
   unchanged.
*/

/* ---------------------------------------------------------
   DESKTOP HERO HORIZONTAL SPACING
   Reduced from the previous larger side spacing.
   --------------------------------------------------------- */

.services-hero {
    padding-left: 3.5%;
    padding-right: 3.5%;
}

/* ---------------------------------------------------------
   DESKTOP HERO HEADING
   Reduced to visually match the lower section heading.
   --------------------------------------------------------- */

.hero-content h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(40px, 4.5vw, 54px);
}

/* ---------------------------------------------------------
   TABLET
   Keep the hero heading comfortable without making it
   oversized compared with the lower headings.
   --------------------------------------------------------- */

@media (max-width: 850px) {

    .services-hero {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero-content h1 {
        font-size: clamp(40px, 7vw, 52px);
    }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 650px) {

    .services-hero {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero-content h1 {
        font-size: 40px;
    }
}

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 38px;
    }
}

/* =========================================================
   UNIFIED SPACING + HEADING SYSTEM  (Services & Departments)
   Kept last so it wins over every earlier layout rule.
   Same system as Home / Gynaecology / Contact:
   - Desktop section padding : 46px top/bottom, 5.5% left/right
   - Mobile  (<=768px)       : 24px top/bottom, 5% left/right
   - Adjacent sections therefore sit ~92px apart on desktop
     (previously 140-190px) - no more big empty gaps.
   ========================================================= */

:root {
    --section-py: 46px;
    --section-px: 5.5%;
}

/* Every section owns its own padding; the inner .container adds none */
main .services-hero,
main .intro-section,
main .services-section,
main .why-section,
main .doctors-section,
main .faq-section,
main .cta-section {
    padding: var(--section-py) var(--section-px);
}

main .container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

/* Intro heading + card grid read as ONE block: no gap between them */
main .intro-section {
    padding-bottom: 0;
}

main .services-section {
    padding-top: 0;
}

/* Tighter gaps between a section heading and its content */
main .services-grid,
main .doctors-grid {
    margin-top: 32px;
}

main .faq-list {
    margin-top: 28px;
}

main .hero-grid {
    gap: 60px;
}

/* ---------------------------------------------------------
   HEADINGS  (Playfair Display)
   --------------------------------------------------------- */

/* Hero heading */
main .hero-content h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(40px, 5.3vw, 60px);
}

/* Section headings */
main .section-heading h2,
main .why-content h2,
main .cta-box h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(32px, 4vw, 40px);
}

/* ---------------------------------------------------------
   TABLET + MOBILE  (<=768px)
   --------------------------------------------------------- */

@media (max-width: 768px) {

    :root {
        --section-py: 24px;
        --section-px: 5%;
    }

    main .hero-content h1 {
        font-size: clamp(43px, 9vw, 62px);
    }

    main .hero-grid {
        gap: 32px;
    }

    main .services-grid,
    main .doctors-grid {
        margin-top: 24px;
    }

    main .faq-list {
        margin-top: 22px;
    }
}

@media (max-width: 650px) {

    main .section-heading h2,
    main .why-content h2,
    main .cta-box h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {

    main .hero-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 400px) {

    main .section-heading h2,
    main .why-content h2,
    main .cta-box h2 {
        font-size: 28px;
    }
}
