/* =========================================================
   MAMA ABIGAIL SMART CLINIC
   Premium Responsive Hospital Website
   Designed by McOwino
   ========================================================= */


/* =========================================================
   1. ROOT VARIABLES
   ========================================================= */

:root {
    --primary: #087f73;
    --primary-dark: #05665d;
    --primary-light: #e7f7f4;

    --secondary: #0b6075;
    --accent: #16b8a6;

    --dark: #102a43;
    --dark-2: #173f5f;

    --text: #526579;
    --muted: #7b8b9a;

    --white: #ffffff;
    --light: #f5f9fb;
    --light-2: #edf5f7;

    --border: #dce9ed;

    --shadow-sm:
        0 5px 20px rgba(16, 42, 67, 0.07);

    --shadow:
        0 15px 45px rgba(16, 42, 67, 0.10);

    --shadow-lg:
        0 25px 70px rgba(16, 42, 67, 0.15);

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;

    --transition: all 0.3s ease;
}


/* =========================================================
   2. RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #f1f5f7;
}

body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}


/* =========================================================
   3. GLOBAL
   ========================================================= */

section {
    position: relative;
}

.topbar,
.navbar,
.hero-content,
.about,
.services,
.why,
.departments,
.facilities,
.testimonials,
.appointment,
.contact,
.footer-grid {
    width: min(1180px, 92%);
    margin-inline: auto;
}

h1,
h2,
h3,
h4 {
    color: var(--dark);
    line-height: 1.25;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.7rem);
}

section > h2 {
    text-align: center;
    margin-bottom: 45px;
    position: relative;
}

section > h2::after {
    content: "";
    width: 55px;
    height: 4px;
    background: var(--accent);
    display: block;
    border-radius: 10px;
    margin: 15px auto 0;
}


/* =========================================================
   4. TOP BAR
   ========================================================= */

.topbar {
    width: 100%;
    max-width: none;

    padding: 8px 4%;

    background:
        linear-gradient(
            100deg,
            var(--primary-dark),
            var(--secondary)
        );

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;

    font-size: 12px;
}

.topbar div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.topbar i {
    color: #7ff3e6;
}


/* =========================================================
   5. NAVIGATION
   ========================================================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(220, 233, 237, 0.8);

    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.04);
}

.navbar {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 21px;
    font-weight: 800;

    color: var(--primary);

    white-space: nowrap;
}

.logo i {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    background: var(--primary-light);
    color: var(--primary);

    border-radius: 50%;

    font-size: 21px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 27px;
}

.nav-links a {
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;

    position: relative;

    transition: var(--transition);
}

.nav-links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;

    width: 43px;
    height: 43px;

    border-radius: 12px;

    background: var(--primary-light);
    color: var(--primary);

    place-items: center;

    font-size: 20px;

    cursor: pointer;
}


/* =========================================================
   6. BUTTONS
   ========================================================= */

.btn,
.btn-outline {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 23px;

    border-radius: 50px;

    font-size: 13px;
    font-weight: 600;

    transition: var(--transition);
}

.btn {
    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--primary)
        );

    color: white;

    box-shadow:
        0 8px 20px rgba(8, 127, 115, 0.20);

    border: none;
}

.btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 13px 30px rgba(8, 127, 115, 0.28);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.7);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}


/* =========================================================
   7. HERO
   ========================================================= */

.hero {
    min-height: 650px;

    display: flex;
    align-items: center;

    background-image:
        url("../images/hero.jpg");

    background-size: cover;
    background-position: center;

    isolation: isolate;
}

.hero .overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 39, 57, 0.92) 0%,
            rgba(3, 57, 72, 0.78) 42%,
            rgba(3, 57, 72, 0.20) 100%
        );

    z-index: -1;
}

.hero-content {
    color: white;
    padding-block: 100px;
}

.hero-content > p:first-child {
    color: #70eee1;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 12px;
}

.hero h1 {
    color: white;

    font-size: clamp(3rem, 6vw, 5.3rem);

    max-width: 720px;

    letter-spacing: -2px;

    margin-bottom: 20px;
}

.hero-content > p:nth-of-type(2) {
    max-width: 590px;

    color: rgba(255,255,255,0.88);

    font-size: 16px;

    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 13px;
}


/* =========================================================
   8. QUICK INFORMATION
   ========================================================= */

.quick-info {
    width: min(1120px, 90%);

    margin: -65px auto 0;

    position: relative;
    z-index: 5;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    background: white;

    border-radius: var(--radius);

    box-shadow: var(--shadow-lg);

    overflow: hidden;
}

.quick-info .card {
    min-height: 130px;

    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    border-right: 1px solid var(--border);

    transition: var(--transition);
}

.quick-info .card:last-child {
    border-right: none;
}

.quick-info .card:hover {
    background: var(--primary-light);
}

.quick-info i {
    color: var(--primary);

    font-size: 26px;

    margin-bottom: 8px;
}

.quick-info h3 {
    font-size: 14px;
}


/* =========================================================
   9. ABOUT
   ========================================================= */

.about {
    padding-block: 110px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 80px;
}

.about-image {
    min-height: 480px;

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            135deg,
            rgba(8,127,115,.08),
            rgba(11,96,117,.10)
        ),
        url("../images/about.jpg");

    background-size: cover;
    background-position: center;

    box-shadow: var(--shadow-lg);

    position: relative;
}

.about-image::after {
    content: "Your Health • Our Priority";

    position: absolute;

    left: 25px;
    bottom: 25px;

    padding: 12px 18px;

    border-radius: 12px;

    background:
        rgba(8, 127, 115, 0.92);

    color: white;

    font-size: 13px;
    font-weight: 600;

    backdrop-filter: blur(10px);
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);

    margin-bottom: 20px;
}

.about-content > p {
    margin-bottom: 30px;
}

.stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.stats > div {
    padding: 18px;

    background: var(--primary-light);

    border-radius: 14px;

    text-align: center;
}

.stats h3 {
    color: var(--primary);
    font-size: 24px;
}

.stats p {
    font-size: 11px;
}


/* =========================================================
   10. SERVICES
   ========================================================= */

.services {
    padding-block: 100px;
}

.services::before {
    content: "";

    position: absolute;

    inset: 0;

    background: var(--light);

    z-index: -1;

    width: 100vw;

    left: 50%;

    transform: translateX(-50%);
}

.grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.service {
    min-height: 150px;

    padding: 25px 20px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    transition: var(--transition);
}

.service:hover {
    transform: translateY(-8px);

    border-color: transparent;

    box-shadow: var(--shadow);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f2fbf9
        );
}

.service i {
    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    border-radius: 16px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 23px;

    margin-bottom: 13px;

    transition: var(--transition);
}

.service:hover i {
    background: var(--primary);
    color: white;

    transform: rotate(5deg);
}

.service h3 {
    font-size: 14px;
}


/* =========================================================
   11. WHY CHOOSE US
   ========================================================= */

.why {
    padding-block: 105px;
}

.why .feature {
    min-height: 200px;

    padding: 35px 25px;

    border-radius: var(--radius);

    border: 1px solid var(--border);

    background: white;

    text-align: center;

    transition: var(--transition);

    position: relative;

    overflow: hidden;
}

.why .feature::before {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    border-radius: 50%;

    background: var(--primary-light);

    top: -40px;
    right: -30px;
}

.feature:hover {
    transform: translateY(-8px);

    box-shadow: var(--shadow);

    border-color: var(--primary-light);
}

.feature i {
    position: relative;

    width: 70px;
    height: 70px;

    display: grid;
    place-items: center;

    margin: 0 auto 20px;

    border-radius: 20px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 28px;
}

.feature h3 {
    font-size: 17px;

    margin-bottom: 8px;
}


/* =========================================================
   12. DEPARTMENTS
   ========================================================= */

.departments {
    padding-block: 100px;
}

.departments::before {
    content: "";

    position: absolute;

    inset: 0;

    width: 100vw;

    left: 50%;

    transform: translateX(-50%);

    background:
        linear-gradient(
            135deg,
            #effaf8,
            #f7fbfc
        );

    z-index: -1;
}

.departments .grid {
    grid-template-columns:
        repeat(4, 1fr);
}

.departments .grid > div {
    padding: 25px;

    background: white;

    border-radius: 14px;

    border: 1px solid var(--border);

    text-align: center;

    font-weight: 600;

    color: var(--dark);

    transition: var(--transition);
}

.departments .grid > div:hover {
    background: var(--primary);

    color: white;

    transform: translateY(-5px);

    box-shadow: var(--shadow);
}


/* =========================================================
   13. FACILITIES
   ========================================================= */

.facilities {
    padding-block: 100px;
}

.facilities .grid {
    grid-template-columns:
        repeat(3, 1fr);
}

.facility {
    padding: 35px 20px;

    min-height: 170px;

    border-radius: var(--radius);

    background: white;

    border: 1px solid var(--border);

    text-align: center;

    transition: var(--transition);
}

.facility:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow);

    border-color: var(--primary-light);
}

.facility i {
    font-size: 32px;

    color: var(--primary);

    margin-bottom: 15px;
}

.facility h3 {
    font-size: 15px;
}


/* =========================================================
   14. TESTIMONIALS
   ========================================================= */

.testimonials {
    padding-block: 100px;

    text-align: center;
}

.testimonial {
    max-width: 750px;

    margin: auto;

    padding: 45px;

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            #f2fbf9,
            #ffffff
        );

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);
}

.testimonial p {
    font-size: 18px;

    font-style: italic;

    color: var(--dark);

    margin-bottom: 20px;
}

.testimonial h4 {
    color: var(--primary);

    font-size: 13px;
}


/* =========================================================
   15. APPOINTMENT
   ========================================================= */

.appointment {
    padding-block: 90px;

    padding-inline: 70px;

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            135deg,
            var(--dark),
            #084c61
        );

    box-shadow: var(--shadow-lg);

    margin-bottom: 100px;
}

.appointment h2 {
    color: white;

    text-align: center;

    margin-bottom: 35px;
}

.appointment h2::after {
    background: var(--accent);
}

.appointment form {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}

.appointment input,
.appointment select,
.appointment textarea {
    width: 100%;

    padding: 14px 17px;

    border: 1px solid rgba(255,255,255,.15);

    background: rgba(255,255,255,.10);

    color: white;

    border-radius: 10px;

    outline: none;

    transition: var(--transition);
}

.appointment input::placeholder,
.appointment textarea::placeholder {
    color: rgba(255,255,255,.65);
}

.appointment select {
    color: white;
}

.appointment select option {
    color: var(--dark);
}

.appointment input:focus,
.appointment select:focus,
.appointment textarea:focus {
    border-color: var(--accent);

    background: rgba(255,255,255,.14);
}

.appointment textarea {
    grid-column: 1 / -1;

    min-height: 120px;

    resize: vertical;
}

.appointment button {
    grid-column: 1 / -1;

    justify-self: center;

    min-width: 200px;
}


/* =========================================================
   16. CONTACT
   ========================================================= */

.contact {
    padding-block: 20px 100px;
}

.contact-grid {
    display: grid;

    grid-template-columns: 1fr 1.5fr;

    gap: 25px;

    align-items: stretch;
}

.contact-grid > div:first-child {
    padding: 35px;

    background: var(--primary-light);

    border-radius: var(--radius);
}

.contact-grid p {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 20px;

    font-size: 14px;

    color: var(--dark);
}

.contact-grid p:last-child {
    margin-bottom: 0;
}

.contact-grid i {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    background: white;

    border-radius: 50%;

    color: var(--primary);
}

.map {
    min-height: 280px;

    border-radius: var(--radius);

    background:
        linear-gradient(
            135deg,
            #e9f3f5,
            #dcecef
        );

    display: grid;

    place-items: center;

    color: var(--primary);

    font-weight: 600;

    border: 1px solid var(--border);
}


/* =========================================================
   17. FLOATING WHATSAPP
   ========================================================= */

.whatsapp,
.emergency {
    position: fixed;

    z-index: 999;

    width: 55px;
    height: 55px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color: white;

    box-shadow: var(--shadow-lg);

    transition: var(--transition);
}

.whatsapp {
    right: 22px;
    bottom: 25px;

    background: #20b958;

    font-size: 27px;
}

.emergency {
    right: 22px;
    bottom: 90px;

    background: #d94b4b;

    font-size: 20px;
}

.whatsapp:hover,
.emergency:hover {
    transform: translateY(-5px) scale(1.05);
}


/* =========================================================
   18. FOOTER
   ========================================================= */

footer {
    background:
        linear-gradient(
            135deg,
            #061f31,
            #082f42
        );

    color: rgba(255,255,255,.7);

    padding-top: 65px;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 60px;

    padding-bottom: 50px;
}

.footer-grid h3 {
    color: white;

    font-size: 22px;

    margin-bottom: 8px;
}

.footer-grid h4 {
    color: white;

    font-size: 14px;

    margin-bottom: 15px;
}

.footer-grid p {
    font-size: 13px;
}

.footer-grid a {
    display: block;

    font-size: 13px;

    margin-bottom: 7px;

    transition: var(--transition);
}

.footer-grid a:hover {
    color: #6eece0;

    padding-left: 5px;
}

.copyright {
    width: 100%;

    border-top: 1px solid rgba(255,255,255,.10);

    padding: 20px 5%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    font-size: 11px;
}


/* =========================================================
   19. ANIMATIONS
   ========================================================= */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.hero-content {
    animation: fadeUp 1s ease both;
}

.service,
.feature,
.facility {
    animation: fadeUp .7s ease both;
}


/* =========================================================
   20. TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .navbar {
        width: 94%;
    }

    .nav-links {
        gap: 15px;
    }

    .navbar > .btn {
        display: none;
    }

    .grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .about {
        gap: 40px;
    }

    .hero h1 {
        font-size: 4rem;
    }

}


/* =========================================================
   21. MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 800px) {

    .topbar {
        gap: 15px;

        justify-content: space-around;

        padding-inline: 3%;

        font-size: 10px;
    }

    .topbar div:nth-child(3) {
        display: none;
    }

    .menu-btn {
        display: grid;

        margin-left: auto;
    }

    .nav-links {
        position: absolute;

        top: 78px;
        left: 3%;

        width: 94%;

        padding: 20px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        background: white;

        border-radius: 15px;

        box-shadow: var(--shadow-lg);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition: var(--transition);
    }

    .nav-links.active {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }

    .nav-links li {
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;

        padding: 13px 8px;
    }

    .nav-links a::after {
        display: none;
    }

    .grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .quick-info {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .quick-info .card:nth-child(2) {
        border-right: none;
    }

    .quick-info .card:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .about {
        grid-template-columns: 1fr;

        padding-block: 80px;
    }

    .about-image {
        min-height: 400px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   22. SMALL MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .topbar {
        display: none;
    }

    .navbar {
        min-height: 70px;
    }

    .nav-links {
        top: 70px;
    }

    .logo {
        font-size: 17px;
    }

    .logo i {
        width: 38px;
        height: 38px;

        font-size: 18px;
    }

    .hero {
        min-height: 590px;

        background-position: 60% center;
    }

    .hero .overlay {
        background:
            linear-gradient(
                90deg,
                rgba(3,39,57,.94),
                rgba(3,57,72,.68)
            );
    }

    .hero-content {
        padding-block: 70px;
    }

    .hero h1 {
        font-size: 2.8rem;

        letter-spacing: -1px;
    }

    .hero-content > p:nth-of-type(2) {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-outline {
        width: 100%;
    }

    .quick-info {
        margin-top: -40px;

        grid-template-columns:
            repeat(2, 1fr);
    }

    .quick-info .card {
        min-height: 115px;

        padding: 15px 8px;
    }

    .quick-info h3 {
        font-size: 11px;
    }

    .quick-info i {
        font-size: 22px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .departments .grid,
    .facilities .grid {
        grid-template-columns: 1fr;
    }

    .about {
        padding-block: 70px;
    }

    .about-image {
        min-height: 330px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .services,
    .why,
    .departments,
    .facilities,
    .testimonials {
        padding-block: 75px;
    }

    .testimonial {
        padding: 30px 20px;
    }

    .testimonial p {
        font-size: 15px;
    }

    .appointment {
        width: 94%;

        padding: 55px 20px;

        margin-bottom: 70px;
    }

    .appointment form {
        grid-template-columns: 1fr;
    }

    .appointment textarea,
    .appointment button {
        grid-column: auto;
    }

    .appointment button {
        width: 100%;
    }

    .contact {
        padding-bottom: 70px;
    }

    .contact-grid > div:first-child {
        padding: 25px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 30px;

        padding-bottom: 35px;
    }

    .copyright {
        flex-direction: column;

        text-align: center;

        padding-block: 18px;
    }

    .whatsapp,
    .emergency {
        width: 48px;
        height: 48px;

        right: 15px;
    }

    .whatsapp {
        bottom: 15px;
    }

    .emergency {
        bottom: 72px;
    }

}


/* =========================================================
   23. ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 3px solid rgba(22, 184, 166, 0.4);

    outline-offset: 3px;
}


/* =========================================================
   24. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}




/* Department Icon Styling */

.department i{
    width:70px;
    height:70px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 18px;

    background:linear-gradient(135deg,#e7f7f4,#c8f0ea);
    color:#087f73;

    border-radius:20px;
    font-size:28px;

    box-shadow:0 10px 25px rgba(8,127,115,.15);
    transition:all .35s ease;
}

.department:hover i{
    background:linear-gradient(135deg,#087f73,#05665d);
    color:#fff;
    transform:translateY(-4px) scale(1.08);
    box-shadow:0 18px 35px rgba(8,127,115,.3);
}

@media (max-width:560px){
    .department i{
        width:60px;
        height:60px;
        font-size:24px;
        border-radius:18px;
    }
}
