/* =========================================================
   CAREPOINT CLINIC — PREMIUM HEALTHCARE WEBSITE
========================================================= */

:root {
    --green-dark: #163b35;
    --green: #24584e;
    --green-light: #3f7669;

    --cream: #f7f4ed;
    --cream-light: #fcfbf8;
    --cream-dark: #e9e4d8;

    --white: #ffffff;

    --text-dark: #18312d;
    --text: #53625e;
    --text-light: #7b8783;

    --border: #e3e7e3;

    --shadow: 0 18px 45px rgba(24, 49, 45, 0.08);

    --radius: 18px;
    --transition: 0.3s ease;
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text-dark);
    background: var(--cream-light);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}


/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3,
h4 {
    line-height: 1.15;
    color: var(--text-dark);
}

h1,
h2 {
    font-family: "Playfair Display", serif;
}

h1 {
    font-size: clamp(3.2rem, 6vw, 5.7rem);
    font-weight: 600;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 600;
}

h3 {
    font-size: 1.35rem;
}

p {
    color: var(--text);
}

.section-label {
    display: inline-block;
    margin-bottom: 18px;

    color: var(--green);
    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.18em;
}


/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 1000;

    background: rgba(252, 251, 248, 0.94);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid transparent;

    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 8px 30px rgba(24, 49, 45, 0.08);
    border-bottom-color: var(--border);
}

.nav-container {
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================
   LOGO
========================= */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    background: var(--green-dark);
    color: white;

    border-radius: 12px;

    font-size: 1.3rem;
    font-weight: 700;
}

.logo strong {
    display: block;

    font-family: "Playfair Display", serif;
    font-size: 1.35rem;

    line-height: 1;
}

.logo small {
    display: block;

    margin-top: 3px;

    font-size: 0.55rem;
    letter-spacing: 0.22em;

    color: var(--green);
    font-weight: 700;
}


/* =========================
   NAVIGATION
========================= */

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav > a {
    position: relative;

    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;

    transition: var(--transition);
}

.nav > a:not(.nav-button)::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--green);

    transition: var(--transition);
}

.nav > a:hover {
    color: var(--green-dark);
}

.nav > a:hover::after {
    width: 100%;
}

.nav-button {
    padding: 12px 20px;

    background: var(--green-dark);
    color: white !important;

    border-radius: 30px;

    transition: var(--transition);
}

.nav-button:hover {
    background: var(--green);
    transform: translateY(-2px);
}

.menu-button {
    display: none;

    border: none;
    background: transparent;

    font-size: 1.7rem;
    color: var(--green-dark);
}


/* =========================================================
   HERO — FULL BACKGROUND IMAGE
========================================================= */

.hero {
    position: relative;

    min-height: 760px;

    padding: 145px 0 90px;

    display: flex;
    align-items: center;

    /*
       FULL HERO IMAGE
    */
    background-image:
        linear-gradient(
            90deg,
            rgba(252, 251, 248, 0.97) 0%,
            rgba(252, 251, 248, 0.92) 28%,
            rgba(252, 251, 248, 0.62) 48%,
            rgba(252, 251, 248, 0.12) 75%,
            rgba(252, 251, 248, 0.02) 100%
        ),
        url("images/hero.jpg");

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;
}


/* Hero content */

.hero-grid {
    position: relative;

    z-index: 2;

    display: block;
}

.hero-content {
    max-width: 650px;
}


/* =========================
   HERO TEXT
========================= */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 14px;

    background: rgba(233, 241, 237, 0.95);

    color: var(--green);

    border-radius: 30px;

    font-size: 0.75rem;
    font-weight: 700;

    margin-bottom: 25px;

    box-shadow: 0 5px 20px rgba(22, 59, 53, 0.06);
}

.hero h1 {
    max-width: 650px;

    color: var(--green-dark);

    text-shadow:
        0 2px 10px rgba(255, 255, 255, 0.45);
}

.hero h1 span {
    display: block;

    color: var(--green);
}

.hero-content > p {
    max-width: 560px;

    margin: 28px 0 35px;

    font-size: 1.05rem;

    line-height: 1.8;

    color: #304d47;

    font-weight: 500;

    text-shadow:
        0 1px 5px rgba(255, 255, 255, 0.7);
}


/* =========================
   HERO BUTTONS
========================= */

.hero-buttons {
    display: flex;
    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 15px 24px;

    border-radius: 40px;

    font-size: 0.9rem;

    font-weight: 700;

    transition: var(--transition);
}

.btn-primary {
    background: var(--green-dark);

    color: white;

    box-shadow:
        0 10px 25px rgba(22, 59, 53, 0.18);
}

.btn-primary:hover {
    background: var(--green);

    transform: translateY(-3px);

    box-shadow:
        0 15px 30px rgba(22, 59, 53, 0.22);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.85);

    color: var(--green-dark);

    border: 1px solid #cbd5d0;

    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: white;

    border-color: var(--green);

    transform: translateY(-3px);
}


/* =========================
   HERO STATS
========================= */

.hero-stats {
    display: flex;

    margin-top: 50px;

    gap: 35px;
}

.hero-stats div {
    position: relative;
}

.hero-stats div:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 5px;

    right: -18px;

    width: 1px;

    height: 45px;

    background: rgba(22, 59, 53, 0.2);
}

.hero-stats strong {
    display: block;

    font-family: "Playfair Display", serif;

    font-size: 1.7rem;

    color: var(--green-dark);
}

.hero-stats span {
    display: block;

    margin-top: 3px;

    color: #526863;

    font-size: 0.75rem;

    font-weight: 500;
}


/* =========================================================
   REMOVE THE OLD SMALL HERO IMAGE
========================================================= */

.hero-image {
    display: none;
}


/* =========================
   TRUST BAR
========================= */

.trust-bar {
    background: var(--green-dark);

    padding: 30px 0;
}

.trust-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;
}

.trust-item {
    display: flex;

    align-items: center;

    gap: 13px;

    color: white;
}

.trust-item > span {
    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.1);

    color: #d7eee7;

    font-weight: 700;
}

.trust-item strong {
    display: block;

    color: white;

    font-size: 0.85rem;
}

.trust-item small {
    display: block;

    margin-top: 2px;

    color: #a9c0ba;

    font-size: 0.68rem;
}


/* =========================
   ABOUT
========================= */

.about {
    background: white;
}

.about-grid {
    display: grid;

    grid-template-columns: 0.9fr 1fr;

    gap: 100px;

    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    height: 560px;

    object-fit: cover;

    border-radius: 25px;

    box-shadow: var(--shadow);
}

.experience-card {
    position: absolute;

    right: -35px;

    bottom: 35px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 20px 24px;

    background: var(--green-dark);

    color: white;

    border-radius: 15px;

    box-shadow:
        0 15px 35px rgba(22, 59, 53, 0.2);
}

.experience-card strong {
    font-family: "Playfair Display", serif;

    font-size: 2.2rem;
}

.experience-card span {
    font-size: 0.75rem;

    line-height: 1.3;

    color: #d6e3df;
}

.about-content h2 {
    max-width: 600px;
}

.about-content h2 span,
.section-heading h2 span,
.appointment-content h2 span {
    color: var(--green);
}

.about-content > p {
    margin-top: 22px;

    max-width: 620px;

    font-size: 0.95rem;
}

.about-list {
    margin: 30px 0;
}

.about-list div {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 14px;
}

.about-list span {
    width: 23px;
    height: 23px;

    display: grid;

    place-items: center;

    background: #e5f0eb;

    color: var(--green);

    border-radius: 50%;

    font-size: 0.7rem;

    font-weight: 700;
}

.about-list p {
    font-size: 0.88rem;
}

.text-link {
    display: inline-flex;

    gap: 10px;

    color: var(--green-dark);

    font-weight: 700;

    font-size: 0.85rem;
}

.text-link span {
    transition: var(--transition);
}

.text-link:hover span {
    transform: translateX(5px);
}


/* =========================
   SERVICES
========================= */

.services {
    background: var(--cream);
}

.section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 50px;

    margin-bottom: 55px;
}

.section-heading h2 {
    max-width: 700px;
}

.section-heading > p {
    max-width: 360px;

    font-size: 0.9rem;
}

.section-heading.centered {
    display: block;

    text-align: center;

    max-width: 720px;

    margin-left: auto;

    margin-right: auto;
}

.section-heading.centered p {
    margin: 20px auto 0;
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.service-card {
    padding: 35px;

    background: white;

    border: 1px solid transparent;

    border-radius: var(--radius);

    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-7px);

    border-color: #d4dfda;

    box-shadow: var(--shadow);
}

.service-icon {
    width: 55px;
    height: 55px;

    display: grid;

    place-items: center;

    margin-bottom: 25px;

    background: #e9f1ed;

    color: var(--green);

    border-radius: 15px;

    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.85rem;

    margin-bottom: 25px;
}

.service-card a {
    color: var(--green);

    font-size: 0.8rem;

    font-weight: 700;
}


/* =========================
   DOCTORS
========================= */

.doctors {
    background: white;
}

.doctors-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.doctor-card {
    overflow: hidden;

    background: var(--cream-light);

    border-radius: var(--radius);

    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow);
}

.doctor-image {
    height: 380px;

    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.04);
}

.doctor-info {
    padding: 25px;
}

.doctor-info > span {
    color: var(--green);

    font-size: 0.65rem;

    font-weight: 700;

    letter-spacing: 0.12em;
}

.doctor-info h3 {
    margin: 7px 0 5px;

    font-family: "Playfair Display", serif;

    font-size: 1.45rem;
}

.doctor-info > p {
    font-size: 0.78rem;
}

.doctor-meta {
    margin-top: 18px;

    padding-top: 15px;

    border-top: 1px solid var(--border);

    font-size: 0.72rem;

    color: var(--text-light);
}


/* =========================
   REVIEWS
========================= */

.reviews {
    background: var(--cream);
}

.reviews-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.review-card {
    padding: 35px;

    background: white;

    border-radius: var(--radius);

    box-shadow:
        0 5px 20px rgba(24, 49, 45, 0.03);
}

.stars {
    color: #c69a48;

    letter-spacing: 3px;

    font-size: 0.85rem;

    margin-bottom: 22px;
}

.review-card > p {
    font-family: "Playfair Display", serif;

    color: var(--text-dark);

    font-size: 1.05rem;

    line-height: 1.7;

    margin-bottom: 30px;
}

.review-author {
    display: flex;

    align-items: center;

    gap: 12px;
}

.author-avatar {
    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    background: var(--green-dark);

    color: white;

    border-radius: 50%;

    font-weight: 700;
}

.review-author strong {
    display: block;

    font-size: 0.8rem;
}

.review-author span {
    display: block;

    margin-top: 2px;

    color: var(--text-light);

    font-size: 0.65rem;
}


/* =========================
   APPOINTMENT
========================= */

.appointment {
    background: var(--green-dark);
}

.appointment-grid {
    display: grid;

    grid-template-columns: 0.8fr 1fr;

    gap: 90px;

    align-items: center;
}

.appointment-content .section-label {
    color: #a7d2c7;
}

.appointment-content h2 {
    color: white;
}

.appointment-content h2 span {
    color: #9ccabe;
}

.appointment-content > p {
    margin-top: 25px;

    max-width: 500px;

    color: #b8cbc6;

    font-size: 0.95rem;
}

.appointment-points {
    margin-top: 30px;
}

.appointment-points div {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 15px;
}

.appointment-points span {
    width: 24px;
    height: 24px;

    display: grid;

    place-items: center;

    background: rgba(255, 255, 255, 0.12);

    color: #c5e4db;

    border-radius: 50%;

    font-size: 0.7rem;
}

.appointment-points p {
    color: #d3dfdc;

    font-size: 0.8rem;
}


/* =========================
   APPOINTMENT FORM
========================= */

.appointment-form-wrapper {
    padding: 40px;

    background: white;

    border-radius: 22px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.15);
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--text-dark);

    font-size: 0.75rem;

    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 13px 15px;

    background: #fafbf9;

    border: 1px solid var(--border);

    border-radius: 10px;

    outline: none;

    color: var(--text-dark);

    font-size: 0.82rem;

    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);

    background: white;

    box-shadow:
        0 0 0 3px rgba(36, 88, 78, 0.08);
}

.form-button {
    width: 100%;

    border: none;
}

.form-note {
    margin-top: 13px;

    text-align: center;

    color: var(--text-light);

    font-size: 0.65rem;
}


/* =========================
   CONTACT
========================= */

.contact {
    background: white;
}

.contact-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.contact-card {
    padding: 35px;

    text-align: center;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow);
}

.contact-icon {
    width: 55px;
    height: 55px;

    display: grid;

    place-items: center;

    margin: 0 auto 20px;

    background: #e9f1ed;

    border-radius: 50%;

    font-size: 1.2rem;
}

.contact-card h3 {
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 0.85rem;
}

.contact-card small {
    display: block;

    margin-top: 10px;

    color: var(--text-light);

    font-size: 0.68rem;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #102f2a;

    color: white;
}

.footer-grid {
    display: grid;

    grid-template-columns: 1.5fr 1fr 1fr 1fr;

    gap: 50px;

    padding: 75px 0;
}

.footer .logo strong {
    color: white;
}

.footer .logo small {
    color: #9fc6bb;
}

.footer-brand > p {
    max-width: 280px;

    margin-top: 20px;

    color: #a7bbb6;

    font-size: 0.8rem;
}

.footer-links h4 {
    margin-bottom: 18px;

    color: white;

    font-size: 0.8rem;
}

.footer-links a {
    display: block;

    margin-bottom: 11px;

    color: #a7bbb6;

    font-size: 0.75rem;

    transition: var(--transition);
}

.footer-links a:hover {
    color: white;

    transform: translateX(3px);
}

.footer-links p {
    margin-bottom: 18px;

    color: #a7bbb6;

    font-size: 0.75rem;
}

.footer-button {
    color: #b9ddd3 !important;

    font-weight: 700;
}

.footer-bottom {
    padding: 20px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom .container {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.footer-bottom p {
    color: #829b95;

    font-size: 0.65rem;
}


/* =========================
   REVEAL ANIMATION
========================= */

.reveal {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.active {
    opacity: 1;

    transform: translateY(0);
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .nav {
        gap: 17px;
    }

    .hero {
        min-height: 720px;

        background-position: 58% center;
    }

    .about-grid {
        gap: 60px;
    }

    .appointment-grid {
        gap: 50px;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}


/* =========================
   MOBILE NAV + TABLET
========================= */

@media (max-width: 850px) {

    .nav {
        position: absolute;

        top: 82px;
        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        align-items: flex-start;

        gap: 0;

        padding: 20px;

        background: rgba(252, 251, 248, 0.98);

        border-top: 1px solid var(--border);

        box-shadow:
            0 15px 30px rgba(24, 49, 45, 0.08);
    }

    .nav.active {
        display: flex;
    }

    .nav > a {
        width: 100%;

        padding: 13px 5px;
    }

    .nav-button {
        text-align: center;

        margin-top: 10px;
    }

    .menu-button {
        display: block;
    }

    .hero {
        min-height: 720px;

        padding-top: 130px;

        background-position: 62% center;
    }

    .hero-content {
        max-width: 600px;

        text-align: center;

        margin: 0 auto;
    }

    .hero-content > p {
        margin-left: auto;

        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-grid,
    .appointment-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 600px;

        width: 90%;

        margin: auto;

        order: 2;
    }

    .about-content {
        order: 1;
    }

    .services-grid,
    .doctors-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .appointment-content {
        text-align: center;
    }

    .appointment-content > p {
        margin-left: auto;

        margin-right: auto;
    }

    .appointment-points {
        display: inline-block;

        text-align: left;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .container {
        width: 90%;
    }

    .section {
        padding: 75px 0;
    }

    .nav-container {
        height: 72px;
    }

    .nav {
        top: 72px;
    }

    .hero {
        min-height: 760px;

        padding-top: 120px;

        /*
           Keeps the people visible on mobile
        */
        background-position: 65% center;

        /*
           Stronger overlay for mobile readability
        */
        background-image:
            linear-gradient(
                90deg,
                rgba(252, 251, 248, 0.94),
                rgba(252, 251, 248, 0.70)
            ),
            url("images/hero.jpg");
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.4rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-stats {
        gap: 18px;

        flex-wrap: wrap;
    }

    .hero-stats div:not(:last-child)::after {
        right: -10px;
    }

    .trust-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .about-image {
        width: 100%;
    }

    .about-image img {
        height: 450px;
    }

    .experience-card {
        right: 15px;

        bottom: 20px;

        padding: 15px 18px;
    }

    .section-heading {
        display: block;

        text-align: center;
    }

    .section-heading > p {
        margin: 20px auto 0;
    }

    .services-grid,
    .doctors-grid,
    .reviews-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .review-card,
    .contact-card {
        padding: 28px;
    }

    .doctor-image {
        height: 420px;
    }

    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .appointment-form-wrapper {
        padding: 25px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 55px 0;
    }

    .footer-bottom .container {
        flex-direction: column;

        text-align: center;
    }
}


/* =========================
   EXTRA SMALL DEVICES
========================= */

@media (max-width: 400px) {

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.1rem;
    }

    .hero {
        min-height: 780px;

        background-position: 67% center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 12px;
    }

    .hero-stats strong {
        font-size: 1.4rem;
    }
}