/* -------------------------------------------------- */
/* MOBILE OPTIMIZATION                                 */
/* -------------------------------------------------- */

@media (max-width: 768px) {

    html {
        font-size: 16px;
    }

    body {
        background: #ffffff !important;
    }

    .index-photo {
        display: none;
    }

    .mobile-banner-row {
        display: block; /* critical: banner stays full-width */
        position: relative; /* allows hamburger to float above */
        width: 100%;
        padding: 0;
    }

    .nav-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 16px !important;
        box-sizing: border-box;
    }

    .footer-wrapper {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0 16px;
    }

    .col-middle {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .site-header {
        background: #0058A0;
        min-height: 70px;
        padding: 10px 12px;
        display: flex;
        align-items: center;
    }

    .site-title {
        color: #ffffff;
        font-size: 1rem;
        line-height: 1.2;
        white-space: normal;
    }

    .navbar-wrapper,
    nav.navbar {
        display: none !important;
    }

    .desktop-header,
    .nav-wrapper {
        display: none !important;
    }

    .desktop-banner {
        display: none !important;
    }

    .mobile-header {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 16px !important;
        box-sizing: border-box;
        position: relative;
        z-index: 9999; /* ensures it sits above everything */
    }

    .mobile-banner {
        width: 100%;
        height: auto;
        display: block;
    }

    .menu-toggle {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
        pointer-events: none;
    }



    .menu-button,
    .menu-close {
        position: absolute;
        top: 5px;
        right: 20px;
        left: auto !important;
        margin-left: 0 !important;
        transform: none !important;
        font-size: 32px;
        color: #0058A0;
        cursor: pointer;
        z-index: 99999;
    }

    .menu-close {
        display: none;
    }

    /* Toggle icons */
    .menu-toggle:checked ~ .menu-button {
        display: none;
    }

    .menu-toggle:checked ~ .menu-close {
        display: block;
    }

    .menu-toggle:checked ~ .mobile-menu {
        display: block;
    }

    .menu-button {
        color: #0058A0; /* blue hamburger */
    }

    .menu-close {
        color: #cc0000; /* red X */
    }

    .mobile-menu {
        display: none;
        position: absolute;
        top: 14%;
        left: 0;
        width: 100%;
        background: #0a4a8a;
        z-index: 9999;
        padding: 0;
        flex-direction: column !important;
    }

        .mobile-menu a {
            display: block;
            width: 100%;
            padding: 14px 20px;
            color: #fff !important;
            text-decoration: none;
            border-bottom: 1px solid #e5e5e5;
            font-size: 1rem;
        }

    .page-wrapper {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }


    .site-footer {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .headshot-circle {
        width: 110px;
        height: 110px;
        flex-shrink: 0;
        position: static;
        margin: 0 auto 10px;
        display: block;
    }

    .three-col-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center; /* centers all children */
        text-align: center; /* centers text inside children */
        width: 100%;
        margin: 0 auto;
        max-width: none !important;
        grid-template-columns: 1fr; /* stack all three */
        column-gap: 0;
        row-gap: 25px;
    }

        .three-col-wrapper > div {
            width: 100%;
            max-width: none;
            margin: 0 auto;
        }

    .col-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }


        .col-left iframe {
            width: 90%;
            margin: 0 auto;
            height: 250px;
            display: block;
        }

    .location-icon,
    .hours-card,
    .button-wrapper,
    .suggested-reading {
        margin: 0 auto;
        text-align: center;
    }

    .col-left,
    .col-middle,
    .col-right {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        display: block;
    }

    .col-middle {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        text-align: center;
    }

    .hours-card,
    .button-wrapper,
    .verify-credentials,
    .suggested-reading {
        max-width: 90%;
        margin: 0 auto;
        
    }

    .hours-card {
        text-align: left;
    }

    .col-left iframe {
        height: 250px;
    }

    .site-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .appointment-row {
        flex-direction: column;
        gap: 20px;
    }

    .appointment-right {
        flex-direction: column;
    }

    .form-column,
    .payment-column {
        max-width: 100% !important;
        flex: 1 1 auto !important;
    }

    .hours-and-button,
    .hours-and-button-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .book-appointment-btn {
        max-width: 100%;
        margin: 0 auto;
    }

    .location-icon {
        text-align: center;
    }

    /* SERVICES PAGE MOBILE CLEANUP */
    .services-page {
        padding: 20px 18px;
        max-width: 700px;
        margin: 0 auto;
    }

        /* Headings */
        .services-page h3 {
            font-size: 1.35rem;
            margin-top: 28px;
            margin-bottom: 12px;
            color: #0058A0;
            font-weight: 600;
        }

    /* First heading (Therapist Services) */
    .therapist-services {
        margin-top: 10px;
        font-size: 1.45rem;
        text-align: center;
    }

    /* Paragraphs */
    .services-page p {
        line-height: 1.55;
        font-size: 1rem;
        margin-bottom: 16px;
    }

    /* Lists */
    .services-page ul {
        padding-left: 22px;
        margin-bottom: 20px;
    }

    .services-page li {
        margin-bottom: 10px;
        line-height: 1.45;
    }

    /* Appointment Button */
    .services-page .btn-lg {
        padding: 12px 24px;
        font-size: 1.1rem;
        border-radius: 8px;
        margin-top: 30px;
    }

    /* Center the button */
    .services-page .appointment-cta {
        margin-top: 10px !important;
        justify-content: center;
        display: flex;
    }

    .services-page section {
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 20px;
    }

    /* ABOUT PAGE MOBILE CLEANUP */
    .about-extra-panel {
        padding: 18px 20px;
        background: #f7f9fc;
        border-radius: 10px;
        margin: 20px auto 10px;
        max-width: 700px;
    }

    .about-row {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

        .about-row .icon {
            font-size: 1.3rem;
            margin-right: 10px;
            color: #0058A0;
        }

        .about-row .text {
            font-size: 1rem;
            line-height: 1.4;
        }

    .banner-info {
        font-size: 2.0rem;
        font-weight: 600;
        color: #0058A0;
        text-align: center;
        margin-top: 8px;
        letter-spacing: 0.4px;
        margin-bottom: 5px;
    }

    /* Headshot Hero */
    .about-hero {
        text-align: center;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .headshot-circle {
        width: 160px;
        height: 160px;
        border-radius: 50%;
        object-fit: cover;
    }


    /* About Text Block */
    .about-content {
        padding: 0 20px;
        max-width: 700px;
        margin: 0 auto;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 18px;
        color: #333;
    }

    /* APPOINTMENTS PAGE — MOBILE CLEANUP */
    .appointment-info {
        padding: 20px 18px;
        max-width: 700px;
        margin: 0 auto;
    }

    .appointment-info-title {
        font-size: 1.45rem;
        text-align: center;
        margin-bottom: 16px;
        color: #0058A0;
        font-weight: 600;
    }

    .appointment-info-text {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 16px;
        color: #333;
    }


    /* TWO-COLUMN LAYOUT → STACK ON MOBILE */
    .appointment-row {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 18px;
        max-width: 700px;
        margin: 0 auto;
    }

    .appointment-left,
    .appointment-right {
        width: 100%;
    }


    /* HOURS CARD */
    .hours-card {
        background: #f7f9fc;
        padding: 18px 20px;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .clock-icon {
        display: flex;
        align-items: center;
        font-size: 1.2rem;
        margin-bottom: 12px;
        color: #0058A0;
    }

        .clock-icon strong {
            margin-left: 8px;
        }

    .hours-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
        font-size: 1rem;
    }


    /* FORM COLUMN */
    .form-column {
        background: #ffffff;
        padding: 18px 20px;
        border-radius: 10px;
        margin-bottom: 20px;
        box-shadow: 0 0 0 transparent;
    }

    .appointment-form label {
        font-weight: 600;
        margin-bottom: 4px;
        display: block;
    }

    .appointment-form input,
    .appointment-form textarea {
        width: 100%;
        padding: 10px;
        border-radius: 6px;
        border: 1px solid #ccc;
        font-size: 1rem;
    }

    .form-row {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
    }

    .form-group.full,
    .form-group.half,
    .form-group.third {
        width: 100%;
    }


    /* SUBMIT BUTTON */
    .submit-btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 1.1rem;
        border-radius: 8px;
        margin-top: 10px;
    }


    /* PAYMENT SECTION */
    .payment-column {
        background: #f7f9fc;
        padding: 18px 20px;
        border-radius: 10px;
    }

    .payment-title {
        font-size: 1.3rem;
        color: #0058A0;
        font-weight: 600;
        margin-bottom: 12px;
    }

    .payment-text {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .payment-divider {
        margin: 12px 0;
    }

    .payment-icons {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 16px;
    justify-content: center;
    }

    .payment-label {
        width: 100%;
        font-weight: 600;
        margin-bottom: 6px;
    }

    /* Reduce banner height on Services + Appointments */
    .services-page .mobile-banner,
    .appointment-info .mobile-banner {
        max-height: 160px;
        object-fit: cover;
    }

    /* Reduce spacing under banner */
    .services-page .mobile-banner-row,
    .appointment-info .mobile-banner-row {
        margin-bottom: 6px;
    }

    #successMessage {
        opacity: 0;
        transition: opacity .4s ease;
    }

        #successMessage.show {
            opacity: 1;
        }

   p {
    margin-bottom: 18px;
    line-height: 1.6;
}
.payment-icons i {
    font-size: 24px;              /* smaller for mobile */
    width: 28px;                  /* proportionally smaller box */
    height: 28px;
    margin-right: 0;              /* mobile spacing handled by gap */
    color: #333 !important;
    opacity: 0.85;
}

 .suggested-reading {
        margin-bottom: 40px;
    }
    .site-footer {
        margin-top: 40px;
    }

    .mobile-banner-row {
    position: relative;
}

.mobile-banner-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35); /* dark overlay */
    pointer-events: none;
}

.mobile-banner {
    display: block;
    width: 100%;
}
}

/* END MOBILE */
