/* main.css — common/global styles: reset, variables, header, buttons, hero,
   footer, copyright, mobile menu, homepage cards, and the shared page-header
   (.services-page-header) used by both services.php and contact.php.
   Load this file on EVERY page, before the page-specific stylesheet. */

/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Albert Sans", Arial, Helvetica, sans-serif;
    color: #083e55;
    background: #fff;
    line-height: 1.5;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --navy: #073e55;
    --green: #4c8c2b;
    --green-dark: #39701e;
    --teal: #087d78;

    --light-blue: #eef8fa;
    --light-green: #f1f8ed;

    --white: #ffffff;

    --radius: 8px;

    --page-width: 1500px;
}


/* =========================================================
   HEADER - STICKY + COMPACT
========================================================= */

.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;

    box-shadow: 0 2px 12px rgba(7, 62, 85, 0.08);
}

.header-container {
    max-width: var(--page-width);
    margin: auto;

    min-height: 75px;
    padding: 8px 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo img {
    width: 240px;
    max-width: 100%;
}

.header-right {
    flex: 1;
}

/* Location text */
.header-contact {
    display: flex;
    justify-content: flex-end;
    gap: 20px;

    font-size: 12px;
    margin-bottom: 5px;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;

    font-weight: 600;
    font-size: 14px;
}

.main-nav a:not(.btn) {
    position: relative;
}

.main-nav a:not(.btn)::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--teal);
    transition: width .25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Smaller appointment button inside navbar */
.nav-appointment {
    min-height: 40px;
    padding: 8px 18px;
    font-size: 14px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    min-height: 48px;

    padding: 11px 25px;

    border-radius: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: white;
    background: var(--green);
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-outline {
    border: 2px solid var(--green);
    color: var(--navy);
    background: transparent;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    height: 525px;
    min-height: 525px;

    display: flex;
    align-items: stretch;

    background: #eef8fa;

    /* Prevent image from exceeding hero */
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    padding: 55px clamp(30px, 5vw, 85px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 64%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;
}

.hero::after {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 32%;

    width: 40%;

    z-index: 1;

    background: linear-gradient(to right,

            #eef8fa 0%,

            rgba(238, 248, 250, 0.98) 15%,

            rgba(238, 248, 250, 0.88) 30%,

            rgba(238, 248, 250, 0.65) 50%,

            rgba(238, 248, 250, 0.35) 70%,

            rgba(238, 248, 250, 0.12) 85%,

            transparent 100%);

    pointer-events: none;
}

.eyebrow {
    color: var(--green);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(45px, 4.2vw, 72px);
    line-height: .98;

    max-width: 680px;

    margin-bottom: 20px;
}

.hero-description {
    max-width: 620px;

    font-size: 20px;

    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    margin-bottom: 35px;
}

.hero-image {
    min-height: 525px;
}

.hero-image img {
    height: 100%;
    object-fit: cover;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 620px;
    gap: 20px;

    text-align: center;
}

.feature {
    display: flex;
    flex-direction: column;
}

.feature-icon {
    font-size: 30px;
    color: var(--teal);
}

.feature small {
    font-size: 13px;
}

/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section {
    padding: 20px;
}

.custom-card {
    background: var(--light-blue);
    overflow: hidden;
}

.custom-card h2 {
    font-size: clamp(28px, 2vw, 32px);
    line-height: 1.05;

    margin-bottom: 20px;
}


/* =========================================================
   MAIN GRID
========================================================= */

.main-grid {
    /* max-width: var(--page-width); */
    margin: auto;
    display: grid;

    grid-template-columns:
        minmax(300px, 1fr) minmax(500px, 1.4fr);

    gap: 18px;
}


/* SERVICES */

.services-card {
    padding: 35px;
    text-align: center;
}

.services-card .eyebrow {
    text-align: left;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    gap: 10px;

    margin: 30px 0;
}

.service-item {
    min-height: 120px;

    padding: 15px 8px;

    background: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    font-size: 14px;
    font-weight: 600;

    border-radius: var(--radius);
}

.service-item span {
    color: var(--teal);
    font-size: 30px;
}

/* =========================================================
   SHARED PAGE HEADER (used by services.php & contact.php hero)
========================================================= */

/* =========================================================
   SERVICES PAGE
========================================================= */

.services-page-header {
    /* max-width: var(--page-width); */
    margin: auto;

    padding: 65px 60px 55px;

    text-align: center;

    background: var(--light-blue);
}

.services-page-header h1 {
    max-width: 900px;
    margin: 0 auto 20px;

    font-size: clamp(38px, 4vw, 60px);
    line-height: 1.05;

    color: var(--navy);
}

.services-page-header>p:last-child {
    max-width: 750px;
    margin: auto;

    font-size: 18px;
    line-height: 1.7;
}


/* ABOUT */

.about-card {
    display: grid;
    grid-template-columns: 55% 45%;
}

.about-content {
    padding: 35px;
}

.about-content>p:not(.eyebrow) {
    margin-bottom: 15px;
}

.about-image img {
    height: 100%;
    object-fit: cover;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 15px;

    text-align: center;

    margin: 30px 0;
}

.about-features div {
    font-size: 28px;
}

.about-features span {
    display: block;

    margin-top: 5px;

    font-size: 13px;
    font-weight: 600;
}


/* PATIENT LINKS */

.patient-card {
    padding: 35px;
}

.patient-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.patient-links a {
    background: #dff2ee;

    padding: 12px 15px;

    border-radius: 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 14px;
    font-weight: 600;

    transition: transform .2s ease;
}

.patient-links a:hover {
    transform: translateX(4px);
}

.patient-links a:nth-child(3) {
    background: #fff3cd;
}

.patient-note {
    margin-top: 20px;

    color: var(--green);

    text-align: right;

    font-style: italic;
}

/* =========================================================
   SECONDARY GRID
========================================================= */

.section-secondary {
    padding-top: 0;
}

.secondary-grid {
    margin: auto;
    display: grid;
    grid-template-columns:
        minmax(400px, 1fr) minmax(400px, 1fr);
    gap: 18px;
}


/* TEAM */

.team-card {
    display: grid;
    grid-template-columns: 40% 60%;
}

.team-content {
    padding: 35px;
}

.team-content p:not(.eyebrow) {
    margin-bottom: 25px;
}

.team-card img {
    height: 100%;
    object-fit: cover;
}


/* TESTIMONIAL */

.testimonial-card {
    padding: 35px;
    overflow: hidden;
}

.testimonial-card blockquote {
    background: #fff;
    padding: 25px;
    margin: 25px 0 15px;
    border-radius: var(--radius);
    line-height: 1.7;
}

/* IMPORTANT: hide inactive testimonials */
.testimonial-card .carousel-item {
    display: none;
}

.testimonial-card .carousel-item.active {
    display: block;
}

/* Testimonial content */
.testimonial-content {
    min-height: 180px;
}

/* Navigation */
.testimonial-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 25px;
}

/* Arrow buttons */
.testimonial-arrow {
    width: 24px;
    height: 24px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    color: var(--teal);

    border: 1px solid var(--teal);
    border-radius: 50%;

    cursor: pointer;
}

.testimonial-arrow:hover {
    background: var(--teal);
    color: #fff;
}

/* Dots */
.testimonial-dots.carousel-indicators {
    position: static;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.testimonial-dots.carousel-indicators button {
    width: 7px;
    height: 7px;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 50%;

    background: #ccc;
    opacity: 1;
}

.testimonial-dots.carousel-indicators button.active {
    background: var(--teal);
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    max-width: var(--page-width);

    margin: auto;

    padding: 25px 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: 250px 1fr 300px;

    align-items: center;

    gap: 30px;
}

.footer-logo {
    max-width: 200px;
}

.footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 25px;

    font-size: 13px;
}

.footer-message {
    color: var(--green);

    text-align: right;

    font-style: italic;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 15px;

    border-top: 1px solid #ddd;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    font-size: 11px;
}

.footer-bottom div {
    display: flex;
    gap: 20px;
}


/* =========================================================
   Copyright
========================================================= */
#copyrights {
    padding: calc(var(--cnvs-content-padding) * 0.5) 0;
    background-color: var(--cnvs-contrast-300);
    font-size: var(--cnvs-copyrights-font-size);
    line-height: var(--cnvs-line-height-content);
}

#copyrights i.footer-icon {
    position: relative;
    top: 1px;
    font-size: var(--cnvs-copyrights-font-size);
    width: var(--cnvs-copyrights-font-size);
    text-align: center;
    margin-right: 3px;
}

#copyrights .text-end a:last-child {
    margin-right: 0;
}

.copyright-links {
    margin-top: 0.5rem;
    color: var(--cnvs-copyrights-link-color);
}

.copyright-links a {
    display: inline-block;
    margin: 0 0.25rem;
    color: var(--cnvs-copyrights-link-color);
    border-bottom: 1px dotted var(--cnvs-copyrights-link-color);
}

.copyright-links a:hover {
    opacity: 0.91;
}

.copyright-links a:first-child {
    margin-left: 0;
}

.copyrights-menu {
    margin-bottom: 10px;
}

.copyrights-menu a {
    font-size: var(--cnvs-copyrights-font-size);
    margin: 0 10px;
    border-bottom: 0 !important;
}

.copyrights-menu a:first-child {
    margin-left: 0;
}


.copyright--txt {
    font-size: 0.75rem;
}

.copyright--txt-design {
    font-size: 0.75rem;
}

/* =========================================================
   MOBILE MENU
========================================================= */

.menu-toggle {
    display: none;

    background: transparent;
    border: 0;

    color: var(--navy);

    font-size: 30px;

    cursor: pointer;
}


/* =========================================================
   SHARED PAGE HEADER - MOBILE (.services-page-header)
========================================================= */

@media (max-width: 767px) {
    .services-page-header {
        padding: 45px 22px 40px;
        text-align: left;
    }

    .services-page-header h1 {
        font-size: clamp(36px, 10vw, 46px);
    }

    .services-page-header>p:last-child {
        font-size: 16px;
    }
}

/* =========================================================
   TABLET
   768px - 1100px
========================================================= */

@media (max-width: 1100px) {
    .header-container {
        min-height: 70px;
        padding: 8px 25px;
    }

    .logo img {
        width: 220px;
    }

    .header-contact {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        z-index: 1001;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        flex-direction: column;
        z-index: 1000;
    }


    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 12px 0;
    }

    .header-container {
        position: relative;
    }

    .main-nav.open {
        display: flex;
    }


    .nav-appointment {
        margin-top: 10px;
    }

    /* HERO */

    .hero {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        padding: 45px 30px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }


    /* MAIN */

    .main-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-card {
        grid-column: span 2;
    }

    .patient-card {
        grid-column: span 1;
    }


    /* SECONDARY */

    .secondary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-card {
        grid-column: span 2;
    }

    .contact-card {
        grid-column: span 1;
    }


    /* FOOTER */

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: auto;
    }

    .footer-message {
        text-align: center;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .header-container {
        min-height: 65px;
        padding: 7px 18px;
    }

    .logo img {
        width: 190px;
    }

    .main-nav {
        top: 65px;
    }

    .menu-toggle {
        font-size: 26px;
    }

    /* HERO */

    .hero {
        display: flex;
        flex-direction: column;

        height: auto;
        min-height: auto;

        overflow: hidden;
    }


    .hero-content {
        padding: 40px 22px;
    }

    .hero h1 br {
        display: none;
    }

    .hero-description {
        max-width: 100%;

        font-size: 17px;
        line-height: 1.7;

        margin-bottom: 25px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;

        gap: 12px;
        margin-bottom: 0;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-features {
        grid-template-columns: repeat(2, 1fr);

        margin-top: 10px;
    }

    /* Image below content */
    .hero-image {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: 300px;
        min-height: 300px;
        display: none;
        order: 2;
    }

    .hero-image img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }

    /* SECTIONS */

    .section {
        padding: 10px 15px;
    }

    .main-grid,
    .secondary-grid {
        display: flex;
        flex-direction: column;

        gap: 12px;
    }


    /* SERVICES */

    .services-card {
        padding: 28px 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* ABOUT */

    .about-card {
        display: flex;
        flex-direction: column;
    }

    .about-content {
        padding: 28px 20px;
    }

    .about-image {
        height: 300px;
    }

    .about-features {
        grid-template-columns: repeat(3, 1fr);
    }


    /* PATIENT */

    .patient-card {
        padding: 28px 20px;
    }


    /* TEAM */

    .team-card {
        display: flex;
        flex-direction: column;
    }

    .team-content {
        padding: 28px 20px;
    }

    .team-card img {
        height: 300px;
    }


    /* TESTIMONIAL */

    .testimonial-card {
        padding: 28px 20px;
    }


    /* CONTACT */

    .contact-card {
        display: flex;
        flex-direction: column;
    }

    .contact-content {
        padding: 28px 20px;
    }

    .contact-card img {
        height: 280px;
    }


    /* FOOTER */

    .footer {
        padding: 30px 20px;
    }

    .footer nav {
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom div {
        justify-content: center;
        flex-wrap: wrap;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .hero h1 {
        font-size: 39px;
    }

    .hero-features {
        gap: 25px 10px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

}