/* ===== MEDIA QUERIES ===== */

/* ===== TABLET - 1024px ===== */
@media (max-width: 1024px) {

    .section-title {
        font-size: 30px;
    }

    /* NAV */
    .nav-links {
        gap: 20px;
    }

    .nav-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    /* HERO */
    .hero-title {
        font-size: 42px;
    }

    .hero-stat,
    .hero-desc,
    .hero-buttons {
        display: none;
    }

    /* BENTO GRID */
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* TREATMENT GRID */
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* DOCTOR CARD */
    .doctor-card {
        flex-direction: column;
        gap: 32px;
    }

    .doctor-img-wrap {
        width: 60%;
    }

    /* CONTACT GRID */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-grid>div:nth-child(1) {
        order: 1;
        grid-column: 1 / -1;
    }

    .footer-grid>div:nth-child(4) {
        order: 2;
    }

    .footer-grid>div:nth-child(2) {
        order: 3;
    }

    .footer-grid>div:nth-child(3) {
        order: 4;
    }

    .desktop-footer-connect {
        display: none;
    }

    .mobile-footer-socials {
        display: flex;
        margin-bottom: 24px;
    }

    /* ABOUT */
    .founder-card {
        flex-direction: column;
    }

    .founder-img {
        width: 70%;
    }

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

    .vm-card {
        padding: 40px;
    }

    .facility-grid {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .facility-img-main {
        grid-row: auto;
        height: auto;
    }

    .facility-img-sm {
        height: auto;
    }

    .facility-img-main img,
    .facility-img-sm img {
        height: auto !important;
        object-fit: contain !important;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-box {
        padding: 48px 40px;
    }

    .cta-title {
        font-size: 32px;
    }

    /* CONTACT PAGE */
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

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

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

    .emergency-box {
        flex-direction: column;
        text-align: center;
        padding: 48px 40px;
    }

    .emergency-desc {
        max-width: 100%;
    }

    .emergency-title {
        white-space: normal;
    }

    /* TREATMENTS PAGE */
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .philosophy-grid {
        flex-direction: column;
        gap: 40px;
    }

    .philosophy-img-side {
        width: 100%;
    }

    .philosophy-badge-float {
        display: none;
    }

    /* DOCTORS PAGE */
    /* Hero section inherits exactly from desktop */

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

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

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

    .review-card {
        flex: 0 0 100%;
    }

    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .reviews-nav {
        align-self: center;
    }

    .inquiry-cta-box {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .inquiry-cta-buttons {
        flex-direction: column;
    }

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

    .m-span-2,
    .m-span-1 {
        grid-column: span 1;
    }

    .expert-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .expert-stats {
        flex-direction: column;
    }

    .expert-name {
        font-size: clamp(35px, 6vw, 36px);
        white-space: nowrap;
    }

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

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

/* ===== MOBILE - 768px ===== */
@media (max-width: 768px) {

    /* NAV */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        border-bottom: 1px solid #e2e8f0;
        padding: 20px 24px;
        gap: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 16px;
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-logo img {
        height: 42px;
        transform: none;
        margin-top: 5px;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .site-header {
        position: sticky;
        top: 0;
    }

    /* MOBILE NAV */
    .mobile-nav {
        display: flex;
    }

    /* Add bottom padding for mobile nav */
    body {
        padding-bottom: 64px;
    }

    /* SECTION */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .m-title {
        font-size: clamp(10px, 3.8vw, 24px);
        white-space: nowrap;
    }

    .section-sub {
        font-size: 15px;
    }

    /* HERO */
    .hero,
    .hero-image-bg,
    .treatments-hero {
        align-items: flex-end;
        min-height: 40vh;
    }

    .hero-content {
        padding: 40px 0;
    }

    .hero-stat {
        display: none;
    }

    .hero-page-badge,
    .hero-page-desc {
        display: none;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-page-title {
        font-size: clamp(10px, 4.2vw, 26px);
        white-space: nowrap;
    }

    .hero-desc {
        font-size: 13px;
        line-height: 1.5;
        max-width: 100%;
        letter-spacing: -0.2px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* BENTO GRID */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card {
        padding: 32px;
    }

    /* TREATMENTS */
    .treatments-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .treatment-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* DOCTOR SECTION */
    .doctor-card {
        padding: 28px;
        gap: 24px;
    }

    .doctor-img-wrap {
        width: 100%;
    }

    .doctor-name {
        font-size: 28px;
    }

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

    /* CONTACT HOME */
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .form-card {
        padding: 32px 24px;
    }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    /* ABOUT PAGE */
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }

    .hero-page-title {
        font-size: 32px;
    }

    .hero-page-desc {
        font-size: 16px;
    }

    .founder-card {
        padding: 28px;
        gap: 24px;
    }

    .founder-img {
        width: 100%;
    }

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

    .vm-card {
        padding: 32px;
    }

    .vm-text {
        font-size: clamp(10px, 3.4vw, 14px);
    }

    .facility-hero-title {
        font-size: clamp(10px, 4.5vw, 36px);
        white-space: nowrap;
    }

    .facility-hero-desc {
        font-size: clamp(10px, 3.8vw, 15px);
    }

    .emergency-content {
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        text-align: center;
    }

    .emergency-icon-wrap {
        margin-top: 0;
    }

    .facility-header {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 24px !important;
    }

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

    .cta-box {
        padding: 40px 15px !important;
        border-radius: 28px;
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .cta-title {
        font-size: clamp(10px, 6vw, 26px);
        white-space: nowrap;
    }

    .cta-desc {
        font-size: clamp(10px, 3.8vw, 15px);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-accent,
    .btn-ghost,
    .doctors-hero-btn,
    .btn-cyan,
    .btn-outline-white {
        justify-content: center;
        width: max-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 12px 24px;
        font-size: 14px;
    }

    /* CONTACT PAGE */
    .contact-content {
        padding-bottom: 40px;
    }

    .contact-hero {
        padding: 40px 0 20px;
    }

    .contact-hero-title {
        font-size: 34px;
    }

    .contact-hero-desc {
        font-size: clamp(10px, 3.5vw, 12.5px);
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .form-title {
        font-size: clamp(10px, 5.5vw, 26px);
        white-space: nowrap;
    }

    .form-sub {
        font-size: clamp(10px, 3.2vw, 12px);
        margin-bottom: 24px;
    }

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

    .hours-title {
        font-size: clamp(10px, 5vw, 22px);
        white-space: nowrap;
    }

    .hours-day {
        font-size: clamp(10px, 3.2vw, 15px);
        white-space: nowrap;
    }

    .hours-time {
        font-size: clamp(10px, 3vw, 14px);
        white-space: nowrap;
        padding: 4px 10px;
    }

    .hours-note p {
        font-size: clamp(9px, 2.8vw, 12.5px);
        white-space: normal;
    }

    .emergency-box {
        padding: 36px 24px;
        border-radius: 28px;
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .emergency-title {
        font-size: 26px;
        white-space: normal;
    }

    .emergency-desc {
        font-size: clamp(11px, 3.5vw, 15px);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .emergency-call-btn {
        margin-top: 0;
    }

    .emergency-call-number {
        font-size: 20px;
        padding: 14px 24px;
    }

    /* TREATMENTS PAGE */
    .treatments-hero-title {
        font-size: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .philosophy-grid {
        flex-direction: column;
    }

    .philosophy-img-side {
        width: 100%;
    }

    .philosophy-img-wrap img {
        height: 300px;
    }

    /* DOCTORS PAGE */
    .doctors-hero-wrapper {
        width: 90%;
        margin: 0 auto;
        padding-right: 0;
    }

    .doctors-hero-name {
        font-size: clamp(30px, 6.5vw, 38px);
        white-space: nowrap;
    }

    .doctors-hero-bio {
        white-space: normal;
        font-size: clamp(14px, 4vw, 16px);
    }

    .doctors-hero-bio br {
        display: none;
    }

    .doctors-hero-creds {
        white-space: nowrap;
        font-size: clamp(12px, 3.8vw, 18px);
    }

    .philosophy-main-title {
        font-size: clamp(10px, 6.5vw, 30px);
        white-space: nowrap;
    }

    .qualifications-title {
        font-size: clamp(10px, 6vw, 36px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .feature-title {
        font-size: clamp(10px, 4vw, 16px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .feature-desc {
        font-size: clamp(9px, 3.2vw, 12px);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .qual-title {
        font-size: clamp(12px, 4vw, 20px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .qual-subtitle {
        font-size: clamp(9px, 2.9vw, 13px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .quote-text {
        font-size: clamp(10px, 3.5vw, 13px);
    }

    .clinical-main-title {
        font-size: clamp(10px, 6.5vw, 44px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .clinical-main-desc {
        font-size: clamp(15px, 3.5vw, 16px);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .spec-desc {
        font-size: clamp(10px, 3.5vw, 15px);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .google-reviews-title {
        font-size: clamp(10px, 6vw, 32px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .google-reviews-desc {
        font-size: clamp(11px, 2.5vw, 16px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .reviews-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .google-reviews-title-wrap {
        justify-content: center;
    }

    .doctors-hero-bio br {
        display: none;
    }

    .doctors-hero-curved-bg {
        width: 150%;
        left: -25%;
        border-radius: 0 0 40% 40%;
    }

    .inquiry-cta-title {
        font-size: clamp(12px, 5.5vw, 36px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .inquiry-cta-desc {
        font-size: clamp(10px, 3.5vw, 16px);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .inquiry-cta-desc br {
        display: none;
    }

    .inquiry-cta-box {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        gap: 40px;
    }

    .inquiry-cta-content {
        margin-left: 0;
        text-align: left;
    }

    .inquiry-cta-buttons {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
    }

    .inquiry-cta-buttons a {
        width: 100%;
        justify-content: center;
    }

    .doctors-hero-image {
        height: 40%;
        left: 11%;
        top: 20px;
        z-index: 15;
    }

    .doctors-hero-curved {
        padding: clamp(100px, 41vw, 200px) 0 60px;
        margin-bottom: clamp(-450px, -82vw, -200px);
    }

    .doctors-hero-wrapper {
        margin-top: clamp(300px, 123vw, 550px);
        /* Scales proportionally based on screen width */
    }

    .doctors-hero-curved-bg {
        top: clamp(200px, 77vw, 400px);
        height: calc(100% - clamp(400px, 154vw, 750px));
        border-radius: 32% 32% 0 0;
    }

    .doctors-hero-stats {
        position: absolute;
        top: clamp(280px, 108vw, 500px);
        z-index: 20;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        padding: 16px 20px;
        flex-direction: row;
        border-radius: 18px;
        justify-content: center;
    }

    .doctors-hero-stats .stat-item {
        min-width: unset;
        gap: 0;
        margin-bottom: -5px;
        margin-top: 5px;
    }

    .doctors-hero-stats .stat-item:first-child {
        width: 55%;
    }

    .doctors-hero-stats .stat-item:last-child {
        width: 45%;
    }

    .doctors-hero-stats .stat-num {
        font-size: 40px;
        margin-bottom: -4px;
    }

    .doctors-hero-stats .stat-label {
        font-size: 15px;
    }

    .doctors-hero-stats .stat-divider {
        width: 2px;
        height: 50px;
        margin: 0 10px;
    }

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

    .doctor-philosophy-card {
        aspect-ratio: auto;
        padding: 40px 24px;
    }

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

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

/* ===== SMALL MOBILE - 480px ===== */
@media (max-width: 480px) {

    .container {
        width: 94%;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-desc {
        font-size: 15px;
    }

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

    .treatment-card {
        aspect-ratio: 4/3;
    }

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

    .stat-num {
        font-size: 28px;
    }

    .contact-info-title {
        font-size: 24px;
    }

    .bento-card {
        padding: 24px;
    }

    .bento-card-title {
        font-size: 20px;
    }

    .founder-card,
    .doctor-card {
        padding: 20px;
    }

    .cta-box {
        padding: 32px 20px;
    }

    .cta-title {
        font-size: 22px;
    }

    .contact-hero-title {
        font-size: 28px;
    }

    .emergency-box {
        padding: 28px 20px;
    }

    .emergency-call-number {
        font-size: 18px;
        padding: 12px 20px;
    }

    .vm-card {
        padding: 24px;
    }

    .vm-title {
        font-size: 22px;
    }

    .doctors-hero-curved {
        padding: 60px 0 300px;
    }

    /* Removed static font-size for doctors-hero-name to let clamp handle it */

    /* Removed static font-size for doctors-hero-creds to let clamp handle it */

    .doctors-hero-stats .stat-num {
        font-size: 28px;
    }

    .treatments-hero-title {
        font-size: 24px;
    }

    .philosophy-title {
        font-size: clamp(14px, 5vw, 24px);
        white-space: nowrap;
    }

    .service-card {
        padding: 0;
        height: 300px;
    }

    .service-number {
        font-size: 56px;
    }

    .footer-grid {
        gap: 24px;
    }

    .nav-logo img {
        height: 32px;
        transform: none;
        margin-top: 5px;
    }

    .form-card {
        padding: 24px 16px;
    }
}


.inquiry-cta-box {
    padding: 32px 20px;
}

.impact-card {
    padding: 32px 20px;
}

.spec-card {
    padding: 32px 20px;
}

.qual-card {
    padding: 20px 16px;
}

.philosophy-title {
    font-size: 24px;
}

.flip-card-back {
    padding: 28px;
}

.service-number {
    font-size: 56px;
}

.footer-grid {
    gap: 24px;
}

.nav-logo img {
    height: 40px;
    transform: none;
    margin-top: 7px;
}

.form-card {
    padding: 24px 16px;
}