/* EMC Clinic - Reference Match Design */

/* --- Typography: Using Barlow (Google Font) --- */
/* Updated for main menu bar typography */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;700&display=swap');

@font-face {
    font-family: 'AvenirLT Light';
    src: url('../fonts/AvenirLT/AvenirLT-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

:root {
    --primary-color: #688278;
    /* Sage Green */
    --footer-bg: #1a1a1a;
    --teal-btn: #5FB7C1;
    --soft-cyan: #AEEEEE;
    --border-color: rgba(255, 255, 255, 0.15);
    --white: #ffffff;
    --text-color: #333;
    /* Main Font for Menu */
    --main-font: 'AvenirLT Light', sans-serif;
}

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

body {
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-color);
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: clip;
    /* overflow-x: clip prevents horizontal scroll WITHOUT creating a scroll container.
       Using 'hidden' instead would make body the scroll container and break CSS view-timeline animations. */
}

/* Base Paragraph Styling */
p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ... Header ... */
/* ... */

/* Section Utilities */
section {
    position: relative;
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
    /* Ensure pseudo background shows */
}

/* Parallax Banner (Reference Technique) */
.parallax-banner {
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    height: 36vh;
    /* Reduced height */

    /* fallback gradient only; actual image is rendered by .parallax-bg to avoid double-drawing */
    background-image: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.7;
    /* "Dull see-through" effect */

    z-index: 1;
    margin-top: 0;
    margin-bottom: 0;
}

.parallax-banner .parallax-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)), url('../images/background-1.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
    /* Slightly scale up to avoid edge gaps when translated */
    transform: translate3d(0, 0, 0) scale(1.08);
    pointer-events: none;
    z-index: 1;
}

/* Cloud-like semi-opaque overlay to add depth */
.parallax-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    /* cloud texture not available â€” use a soft gradient fallback */
    background-image: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25));
    background-repeat: repeat-x;
    background-position: top center;
    opacity: 0.95;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 3;
}

/* Dense tint for section banners only */
/* Dense overlay moved from banners to content sections below */

/* Reset Section Margins for smooth flow */
section:not(.hero-slider) {
    margin-bottom: 0;
    background-color: #fff;
    z-index: 2;
    padding: 1rem 2rem;
    /* Tight compact padding */
    backdrop-filter: none;
    border-radius: 0;
}

/* --- Header --- */
header {
    background-color: var(--primary-color);
    width: 100%;
    height: 110px;
    padding: 0 4rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 1px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    /* Centered Menu */
    gap: 3.5rem;
}

.nav-links a {
    font-family: var(--main-font);
    color: var(--white);
    font-size: 16px;
    line-height: 1.4em;
    padding: 0 10px;
    /* text-transform: uppercase; Removed for Title Case */
    letter-spacing: 1.5px;
    font-weight: 300;
    /* Light */
    text-decoration: none;
    transition: opacity 0.3s;
    position: relative;
    top: 2px;
}

.nav-links a.active {
    opacity: 1;
    font-weight: 500;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* --- Footer: Split Layout --- */
.footer-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--footer-bg);
}

/* Detailed Top Section (Original Split) */
.footer-top-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
}

/* Left Side Content */
.footer-content-side {
    position: relative;
    width: 50%;
    padding: 4rem 3rem 4rem 6rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    /* Right Aligned */
    text-align: right;
    /* Soft blend into the image on the right */
    background: linear-gradient(to right, #1a1a1a 80%, rgba(26, 26, 26, 0) 100%);
}

/* Right Side Image */
.footer-image-side {
    position: absolute;
    right: 0;
    top: 0;
    width: 55%;
    height: 100%;
    background-color: var(--footer-bg);
    /* User's Image */
    background-image: url('../images/drsoomro-1.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index: 1;
}

/* Vignette Gradient Overlay - "Fade off from all over" */
.footer-image-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Radial Gradient: Transparent center (shows image), fades to lighter Charcoal edges */
    background: radial-gradient(ellipse at 60% 50%, transparent 40%, rgba(26, 26, 26, 0.85) 100%);
    pointer-events: none;
}

/* Content Blocks */
.footer-boxes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 550px;
}

.action-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    text-align: left;
}

.action-box:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.box-text h3 {
    font-family: 'Playfair Display', serif;
    color: var(--soft-cyan);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.box-text p {
    color: #bbb;
    font-size: 1.0rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn-footer {
    background-color: #8da49b;
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 0.7rem 1em;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-footer:hover {
    background-color: #7a8f87;
}

/* Footer Details */
.footer-details {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 1rem;
    color: var(--white);
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 1rem;
}

.footer-icon {
    width: 20px;
    height: 24px;
    fill: var(--teal-btn);
}

/* Footer Bottom Links */
.footer-bottom-links {
    background-color: #151515;
    /* Slightly darker */
    padding: 3rem 6rem;
    color: #fff;
    border-top: 1px solid #333;
}

.footer-links-container {
    display: flex;
    justify-content: flex-start;
    gap: 8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-link-col h4 {
    font-family: 'Playfair Display', serif;
    color: var(--soft-cyan);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

.footer-link-col ul {
    list-style: none;
}

.footer-link-col ul li {
    margin-bottom: 0.8rem;
}

.footer-link-col ul li a {
    color: #aeaeae;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.3s;
}

.footer-link-col ul li a:hover {
    color: var(--white);
}

.footer-copyright-bottom {
    margin-top: 3rem;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    border-top: 1px solid #222;
    padding-top: 2rem;
}


.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
    /* No space between logo and text */
}

.logo img {
    height: 140px;
    /* Increased to fill header height */
    width: auto;
    display: block;
}

.logo span {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 1.5px;
    line-height: 1.0;
    text-transform: capitalize;
    margin-left: -40px;
    /* Negative margin to pull text tight against logo, overlapping transparent space */
}


/* Mobile */
@media (max-width: 900px) {
    header {
        padding: 0 1.5rem;
        justify-content: space-between;
        height: 90px;
    }

    .nav-links {
        display: none;
    }

    .footer-top-section {
        flex-direction: column;
        min-height: auto;
    }

    .footer-bottom-links {
        padding: 3rem 1.5rem;
        text-align: left;
    }

    .footer-links-container {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-section {
        flex-direction: column;
        min-height: auto;
        padding-bottom: 100px;
        /* Space for sticky bar */
    }

    .footer-content-side {
        width: 100%;
        padding: 3rem 1.5rem;
        align-items: center;
        text-align: center;
        background: var(--footer-bg);
        /* Solid BG on mobile */
    }

    .footer-image-side {
        position: relative;
        width: 100%;
        height: 300px;
    }

    .footer-info-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        text-align: center;
        gap: 1rem;
    }

    .footer-details-redesigned {
        flex-direction: column;
        align-items: center;
    }

    #sticky-cta-bar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .cta-section {
        width: 100%;
        justify-content: space-between;
        padding: 0.5rem 0;
    }

    .cta-divider {
        width: 100%;
        height: 1px;
        margin: 0.5rem 0;
    }

    .cta-text p {
        display: none;
        /* Hide subtitle on mobile to save space */
    }
}

/* --- Sticky CTA Bar --- */
#sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #8da49b;
    /* Lighter Sage Green (based on #688278) */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

#sticky-cta-bar.show {
    transform: translateY(0);
}

.cta-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 5rem;
}

.cta-text {
    text-align: left;
}

.cta-text h3 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.3rem;
    /* Reference size */
    font-weight: 400;
    margin-bottom: 0.2rem;
    line-height: 1;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 300;
    font-family: 'Segoe UI', sans-serif;
}

.btn-cta {
    background-color: #fff;
    color: #72aeb4;
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    /* Soft rounding */
    transition: all 0.2s;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-cta:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.cta-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* --- Redesigned Footer Details (Address) --- */
.footer-details-redesigned {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-top: auto;
    /* Push to bottom if needed, but flex center handles it */
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    text-align: left;
}

.footer-icon-large svg {
    width: 40px;
    height: 40px;
    fill: #5FB7C1;
    /* Bright teal map icon */
}

.footer-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* --- About Us Page Specifics --- */
#about-page .footer-image-side {
    background-image: url('../images/aboutfooter.png');
    /* Placeholder: Natural/Herbal image */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
}

/* Philosophy Section: Humors Grid */
.humors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.humor-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.humor-card:hover {
    transform: translateY(-5px);
}

.humor-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.humor-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.commitment-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.info-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cfcfcf;
}

.info-address,
.info-contact {
    font-weight: 400;
}

.info-hours,
.info-fax {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #b0b0b0;
}

.footer-copyright {
    display: none;
    /* Hide for now as it wasn't clearly in the reference, or style it minimally */
}

/* --- New Homepage Sections --- */

/* Section Utilities */
section {
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* --- Hero Slider Styles --- */
.hero-slider {
    position: relative;
    width: 100vw;
    /* Use viewport width */
    max-width: 100vw !important;
    /* Force full viewport width */
    margin: 0 !important;
    padding: 0 !important;
    left: 50%;
    transform: translateX(-50%);
    /* Center it relative to parent if parent has constraints */
    height: 100vh;
    overflow: hidden;
    background-color: var(--primary-color);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: Dark on sides (using primary color darkened), transparent in middle */
    background: linear-gradient(to right,
            rgba(47, 79, 79, 1) 0%,
            rgba(47, 79, 79, 0.6) 15%,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0) 60%,
            rgba(47, 79, 79, 0.6) 85%,
            rgba(47, 79, 79, 1) 100%);
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through to video/image if needed */
}

.slide-content {
    position: absolute;
    bottom: 100px;
    /* positioned lower */
    left: 0;
    width: 100%;
    /* Full width right to left */
    padding: 1.5rem 2rem;
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    /* Subtle bar background "like main menu" */
    backdrop-filter: blur(3px);
    /* Glass effect */
    z-index: 3;
}

.slide-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}



/* Slider Controls */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s;
    backdrop-filter: blur(5px);
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-prev {
    left: 2rem;
}

.slider-next {
    right: 2rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* --- Sticky Scroll / Curtain Effect --- */
.main-content {
    position: relative;
}

.main-content>section {
    position: relative;
    min-height: auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2.5rem 2rem;
    margin-bottom: 0 !important;
}

/* Ensure backgrounds are solid */
/* Ensure backgrounds are solid/semi-transparent */
/* Centered Gradient Background Class */
.full-width-glow {
    position: relative;
    background: linear-gradient(to right, #f0f4f2 0%, #cbd7d1 50%, #f0f4f2 100%) !important;
    padding: 1.5rem 0;
}

.trust-indicators-section {
    z-index: 1;
}

.services-preview-section {
    z-index: 2;
}

.how-it-works-section {
    z-index: 3;
}

.testimonials-section {
    z-index: 4;
}

.faq-section {
    z-index: 5;
    margin-top: 0;
}

.final-cta-section {
    background-color: #eee;
    z-index: 5;
}

/* Adjustments for sticky context */
.footer-section {
    position: relative;
    z-index: 6;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

/* Reset margins for sticky sections to work well */
.trust-indicators-section .section-title {
    margin-top: 0;
}


/* Trust Indicators */
.trust-indicators-section {
    padding: 2rem 2rem;
    /* Specific padding for this section */
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.trust-item {
    background: #fdfdfd;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.trust-icon {
    width: 50px;
    height: 50px;
    background: #f0f7f4;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid rgba(47, 79, 79, 0.1);
}

.trust-item:hover .trust-icon {
    background: var(--primary-color);
    color: white;
    transform: rotateY(360deg);
}

.trust-item h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 600;
}

.trust-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

/* ... */

/* Services Preview */


.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Forced 4 columns */
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-top: 3px solid var(--primary-color);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.services-cta {
    text-align: center;
}

.btn-outline {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 5px;
    transition: all 0.3s;
}

.btn-outline:hover {
    color: var(--teal-btn);
    border-color: var(--teal-btn);
}

/* How It Works */


.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background-color: var(--soft-cyan);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.step-item h3 {
    font-family: 'Playfair Display', serif;
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.step-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.steps-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Testimonials */
/* (Consolidated into .full-width-glow above) */


.section-title {
    color: var(--primary-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns */
    gap: 2rem;
    padding: 0 10%;
    max-width: 1600px;
    margin: 0 auto;
}

.testimonial-card {
    background: #cbd7d1;
    padding: 2.2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.562);
    border-color: rgba(255, 255, 255, 0.562);
}

.testimonial-card blockquote {
    font-family: inherit;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
    opacity: 0.95;
    color: #333;
}

.testimonial-card cite {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Final CTA Removed */

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

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

/* Modern Button Styles */
.modern-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(47, 79, 79, 0.2);
    border: 2px solid var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.modern-btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 79, 79, 0.3);
}

/* FAQ ... */
.faq-section {
    max-width: 900px;
    margin: 2rem auto;
}

.faq-container {
    margin-top: 3rem;
    padding: 0 2rem;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary-accent);
}

.faq-icon {
    font-size: 1.5rem;
    color: #999;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding-bottom: 2rem;
    opacity: 1;
}

.faq-answer p {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Footer CTA Header */
.footer-cta-header {
    width: 100%;
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.footer-cta-header h2 {
    color: white;
    font-size: 2.8rem;
    font-family: 'Playfair Display', serif;
}

/* (removed full-bleed override so trust cards remain in their boxed grid) */

/* Denser writing: tighter paragraphs and lists in content areas */
.main-content p,
.main-content ul,
.main-content ol,
.main-content li {
    line-height: 1.45;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: #444;
}

.main-content h2,
.main-content h3,
.main-content h4 {
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}

.main-content>section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* --- About Us Page Specifics --- */
#about-page .footer-image-side {
    background-image: url('../images/aboutfooter.png');
}

/* --- Treatment Page Specifics --- */
#treatment-page .footer-image-side {
    background-image: url('../images/treatmentfooter.jpeg');
}

/* --- Contact Page Specifics --- */
.contact-form-wrapper {
    width: 100%;
    margin-top: 4rem;
}

@media (max-width: 900px) {
    #contact-page .trust-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    #contact-page .contact-hero {
        height: 400px !important;
    }
}

#contact-page .footer-image-side {
    background-image: url('../images/contactfooter.jpeg');
    background-size: cover;
    background-position: center;
}

#contact-page .contact-hero {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    left: auto !important;
    height: 600px !important;
    /* Updated for new 2560x600 ratio */
    min-height: auto !important;
    background-image: url('../images/contactus.png');
    background-size: cover !important;
    /* Maintains proportions while filling the container */
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: block !important;
    padding: 0 !important;
    overflow: hidden;
    z-index: 5;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.contact-hero-content h1 {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

/* Prep Steps */
.prep-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.prep-step {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.prep-step:hover {
    transform: translateY(-5px);
}

.step-num {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Form Styling Refinement */
.contact-glass-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 2px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-family: var(--main-font);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    background: #fdfdfd;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.treatment-split {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 2rem auto;
    max-width: 1200px;
}

.treatment-split.reverse {
    flex-direction: row-reverse;
}

.treatment-image {
    flex: 1;
    min-width: 300px;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.treatment-content {
    flex: 1;
    padding: 3rem 4rem;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    z-index: 2;
}

.treatment-content .section-title {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.treatment-block {
    margin-bottom: 1.5rem;
}

.treatment-block h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.treatment-block p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    .treatment-split,
    .treatment-split.reverse {
        flex-direction: column;
    }

    .treatment-image {
        min-height: 250px;
    }

    .treatment-content {
        padding: 2rem 1.5rem;
    }

    .treatment-content .section-title {
        text-align: center;
        margin-bottom: 1.5rem;
    }
}

/* --- Treatment Parallax Hero Layout --- */
.treatment-parallax-hero {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    left: auto !important;
    height: 100vh !important;
    min-height: 700px;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 12rem !important;
    padding: 0 !important;
    background-color: transparent !important;
    overflow: hidden !important;
    z-index: 5;
}

.treatment-parallax-hero.text-left {
    justify-content: flex-start !important;
}

.treatment-parallax-hero.text-right {
    justify-content: flex-end !important;
}

.parallax-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.parallax-content-box {
    position: relative;
    width: 45%;
    max-width: 600px;
    margin-left: 5%;
    margin-right: 5%;
    /* Balanced margins; alignment handled by flex-justify */
    padding: 3rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 10;

    /* Scroll animation feel - subtly move and fade in on scroll */
    view-timeline: --hero-box;
    animation: parallax-reveal both cubic-bezier(0.4, 0, 0.2, 1);
    animation-timeline: --hero-box;
    animation-range: entry 10% contain 40%;
}

@keyframes parallax-reveal {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.95);
    }

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

.parallax-content-box .section-title {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.parallax-block {
    margin-bottom: 2rem;
}

.parallax-block h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.parallax-block p {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .treatment-parallax-hero {
        background-attachment: scroll;
        /* Better performance on mobile */
        height: auto;
        min-height: auto;
        padding: 4rem 0;
        justify-content: center;
    }

    .parallax-content-box {
        width: 90%;
        margin-right: 0;
        padding: 2rem;
    }
}

/* --- Footer Contact Form (Premium Styling) --- */
.footer-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 1.2rem 1.5rem;
    /* Increased padding for "spacious" height */
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.footer-input:focus {
    border-color: var(--teal-btn);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(95, 183, 193, 0.15);
}

.footer-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-form-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 900px) {
    .footer-top-section {
        flex-direction: column !important;
        min-height: auto !important;
    }

    .footer-content-side,
    .footer-form-side {
        width: 100% !important;
        padding: 4rem 2rem !important;
        text-align: center !important;
        align-items: center !important;
    }

    .footer-form-side {
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-form-side .footer-contact-form-container {
        transform: none !important;
        /* Remove translateY on mobile */
    }
}

/* Fix autofill hiding text on dark background forms */
.footer-input:-webkit-autofill,
.footer-input:-webkit-autofill:hover,
.footer-input:-webkit-autofill:focus,
.footer-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #2a2a2a inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ============================================================================
   MOBILE RESPONSIVE SYSTEM
   Breakpoints: 320px | 480px | 768px | 900px | 1024px
   Approach: Mobile-first overrides, bottom of file to win specificity
   ============================================================================ */

/* --- Hamburger Menu Button --- */
.mobile-menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-icon {
    display: block;
    width: 26px;
    height: 20px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-icon span:nth-child(1) {
    top: 0;
}

.hamburger-icon span:nth-child(2) {
    top: 9px;
}

.hamburger-icon span:nth-child(3) {
    top: 18px;
}

/* Hamburger → X animation */
.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* --- Mobile Navigation Overlay --- */
.mobile-nav-overlay {
    display: none;
    /* Hidden on desktop */
}

/* --- Mobile CTA Bar (Reference-site style: simplified 2-col) --- */
/* On mobile ≤900px, only show "New Patients" and "Existing Patients" */

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

    /* Treatment parallax hero: disable fixed attachment */
    .treatment-parallax-hero {
        background-attachment: scroll !important;
        height: auto !important;
        min-height: auto !important;
        padding: 4rem 0 !important;
        margin-bottom: 4rem !important;
    }

    .parallax-content-box {
        width: 80%;
        max-width: 600px;
    }

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

    .cta-section {
        padding: 0 2rem;
    }
}

/* ============================================================================
   MOBILE BREAKPOINT (max-width: 900px) — Main Mobile Trigger
   ============================================================================ */
@media (max-width: 900px) {

    /* --- Show Hamburger Button --- */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* --- Hide Desktop Nav --- */
    header .nav-links {
        display: none !important;
    }

    /* --- Header Sizing --- */
    header {
        height: 70px;
        padding: 0 1rem;
        justify-content: space-between;
        gap: 0;
    }

    .logo img {
        height: 80px;
    }

    .logo span {
        font-size: 18px;
        margin-left: -22px;
        letter-spacing: 1px;
    }

    /* --- Mobile Nav Overlay --- */
    .mobile-nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        /* Dynamic viewport for iOS */
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav-drawer {
        position: absolute;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85vw;
        height: 100%;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        padding: 80px 0 2rem;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-nav-overlay.active .mobile-nav-drawer {
        transform: translateX(0);
    }

    .mobile-nav-drawer a {
        display: block;
        color: var(--white);
        text-decoration: none;
        font-family: var(--main-font);
        font-size: 16px;
        font-weight: 300;
        letter-spacing: 1.5px;
        padding: 14px 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: background 0.2s ease;
        /* Touch target minimum 48px */
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .mobile-nav-drawer a:hover,
    .mobile-nav-drawer a:active {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-nav-drawer a.active {
        font-weight: 500;
        background-color: rgba(255, 255, 255, 0.15);
        border-left: 3px solid var(--white);
    }

    /* --- Hero Slider Mobile --- */
    .hero-slider {
        height: 65vh;
    }

    .slide-content {
        bottom: 0;
        padding: 0.6rem 1rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
        backdrop-filter: none;
    }

    .slide-content h1 {
        font-size: 1.4rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
    }

    .slide-content p {
        font-size: 0.78rem;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
    }

    .slider-prev {
        left: 0.8rem;
    }

    .slider-next {
        right: 0.8rem;
    }

    /* --- Main Content Padding --- */
    .main-content {
        padding: 2rem 1rem;
    }

    .main-content>section {
        padding: 1.5rem 1rem;
    }

    /* --- Section Title --- */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    /* --- Grid Layouts → Responsive --- */
    .trust-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    /* --- Parallax Banners → Shrink on Mobile --- */
    .parallax-banner {
        height: 15vh;
    }

    .parallax-banner .parallax-bg {
        /* Disable fixed for iOS compatibility */
        background-attachment: scroll;
    }

    /* --- Treatment Parallax Hero --- */
    .treatment-parallax-hero {
        background-attachment: scroll !important;
        height: auto !important;
        min-height: auto !important;
        padding: 2rem 0 !important;
        margin-bottom: 2rem !important;
        justify-content: center !important;
    }

    .parallax-content-box {
        width: 92%;
        max-width: 100%;
        margin: 0 auto;
        padding: 1.5rem;
    }

    .parallax-content-box .section-title {
        font-size: 1.6rem;
        text-align: center;
    }

    .parallax-block h4 {
        font-size: 1.15rem;
    }

    .parallax-block p {
        font-size: 0.9rem;
    }

    /* --- Footer Mobile --- */
    .footer-section {
        flex-direction: column;
        min-height: auto;
        padding-bottom: 70px;
        /* Space for mobile sticky CTA */
    }

    .footer-top-section {
        flex-direction: column !important;
        min-height: auto !important;
    }

    .footer-content-side {
        width: 100% !important;
        padding: 2.5rem 1.5rem !important;
        align-items: center !important;
        text-align: center !important;
        background: var(--footer-bg) !important;
    }

    .footer-image-side {
        position: relative !important;
        width: 100% !important;
        height: 250px !important;
    }

    .footer-boxes {
        max-width: 100%;
    }

    .action-box {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.2rem;
    }

    .footer-details-redesigned {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 1rem;
    }

    .footer-bottom-links {
        padding: 2rem 1.5rem;
        text-align: left;
    }

    .footer-links-container {
        flex-direction: column;
        gap: 2rem;
    }

    /* Footer form side (contact page) */
    .footer-form-side {
        width: 100% !important;
        padding: 2.5rem 1.5rem !important;
        text-align: center !important;
        align-items: center !important;
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-form-side .footer-contact-form-container {
        transform: none !important;
    }

    /* --- Sticky CTA Bar Mobile (Reference-style simplified) --- */
    #sticky-cta-bar {
        flex-direction: row;
        padding: 0;
        gap: 0;
    }

    /* Hide Blog section and second divider on mobile */
    #sticky-cta-bar .cta-section:last-child {
        display: none;
    }

    #sticky-cta-bar .cta-divider:last-of-type {
        display: none;
    }

    .cta-section {
        flex: 1;
        justify-content: center;
        padding: 0.6rem 0.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.4rem;
    }

    .cta-text h3 {
        font-size: 0.85rem;
        text-align: center;
    }

    .cta-text p {
        display: none;
    }

    .btn-cta {
        padding: 0.35rem 0.8rem;
        font-size: 0.65rem;
    }

    .cta-divider {
        width: 1px;
        height: auto;
        align-self: stretch;
        margin: 0.4rem 0;
    }

    /* --- FAQ Mobile --- */
    .faq-container {
        padding: 0 0.5rem;
    }

    .faq-question {
        font-size: 1.05rem;
        padding: 1.2rem 0;
    }

    /* --- Contact Page Mobile --- */
    #contact-page .contact-hero {
        height: 300px !important;
    }

    #contact-page .trust-grid {
        grid-template-columns: 1fr !important;
    }

    /* --- Modern Button Mobile --- */
    .modern-btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.8rem;
    }

    /* --- Treatment Split Cards --- */
    .treatment-split,
    .treatment-split.reverse {
        flex-direction: column;
    }

    .treatment-image {
        min-height: 200px;
    }

    .treatment-content {
        padding: 1.5rem 1rem;
    }

    .treatment-content .section-title {
        text-align: center;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
}

/* ============================================================================
   TABLET PORTRAIT (max-width: 768px) — Tighter adjustments
   ============================================================================ */
@media (max-width: 768px) {

    /* Hero even smaller */
    .hero-slider {
        height: 55vh;
    }

    .slide-content h1 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.75rem;
    }

    .slide-content {
        bottom: 0;
        padding: 0.5rem 0.8rem;
    }

    /* Section title smaller */
    .section-title {
        font-size: 1.4rem;
    }

    /* Contact hero smaller */
    #contact-page .contact-hero {
        height: 250px !important;
    }

    /* Contact page inline grid forms */
    #contact-page .footer-form-side div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Footer image shorter */
    .footer-image-side {
        height: 200px !important;
    }

    /* Service card spacing */
    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    /* Trust item spacing */
    .trust-item {
        padding: 1.5rem 1rem;
    }

    /* Testimonial cards */
    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-card blockquote {
        font-size: 0.95rem;
    }
}

/* ============================================================================
   PHONE LANDSCAPE / LARGE PHONE (max-width: 480px) — Compact layout
   ============================================================================ */
@media (max-width: 480px) {
    header {
        height: 60px;
        padding: 0 0.75rem;
    }

    .logo img {
        height: 65px;
    }

    .logo span {
        font-size: 15px;
        margin-left: -18px;
    }

    .hero-slider {
        height: 45vh;
    }

    .slide-content h1 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.8rem;
    }

    .slider-prev,
    .slider-next {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .slider-dots {
        bottom: 1rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .main-content {
        padding: 1.5rem 0.75rem;
    }

    .main-content>section {
        padding: 1rem 0.75rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    /* Parallax banners minimal */
    .parallax-banner {
        height: 10vh;
    }

    /* Footer padding compact */
    .footer-content-side {
        padding: 2rem 1rem !important;
    }

    .footer-bottom-links {
        padding: 1.5rem 1rem;
    }

    /* CTA bar compact */
    .cta-text h3 {
        font-size: 0.75rem;
    }

    .btn-cta {
        padding: 0.3rem 0.6rem;
        font-size: 0.6rem;
    }

    /* FAQ compact */
    .faq-question {
        font-size: 0.95rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }

    /* Treatment parallax mobile */
    .parallax-content-box {
        padding: 1.2rem;
    }

    .parallax-content-box .section-title {
        font-size: 1.3rem;
    }

    .parallax-block {
        margin-bottom: 1rem;
    }

    .parallax-block h4 {
        font-size: 1rem;
    }

    .parallax-block p {
        font-size: 0.85rem;
    }
}

/* ============================================================================
   SMALL PHONE (max-width: 320px) — Minimum viable
   ============================================================================ */
@media (max-width: 320px) {
    header {
        height: 55px;
    }

    .logo img {
        height: 55px;
    }

    .logo span {
        font-size: 13px;
        margin-left: -15px;
    }

    .hero-slider {
        height: 40vh;
    }

    .slide-content h1 {
        font-size: 1.1rem;
    }

    .main-content {
        padding: 1rem 0.5rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    /* Mobile nav drawer narrower */
    .mobile-nav-drawer {
        width: 240px;
    }

    .mobile-nav-drawer a {
        font-size: 14px;
        padding: 12px 1.5rem;
    }
}

/* ============================================================================
   iOS / SAFARI SPECIFIC FIXES
   ============================================================================ */
/* Disable fixed attachment for all iOS (breaks in mobile Safari) */
@supports (-webkit-touch-callout: none) {
    .parallax-banner {
        background-attachment: scroll;
    }

    .treatment-parallax-hero {
        background-attachment: scroll !important;
    }
}

/* Safe area insets for notched devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #sticky-cta-bar {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }

    .footer-section {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

/* ============================================================================
   BODY SCROLL LOCK (when mobile menu is open)
   ============================================================================ */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    /* Preserves scroll position via JS */
}

/* ============================================================================
   PERFORMANCE: Reduce animations on reduced-motion preference
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: opacity 0.5s ease;
    }

    .trust-item,
    .service-card,
    .testimonial-card,
    .humor-card {
        transition: none;
    }

    .trust-item:hover,
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }

    .mobile-nav-drawer {
        transition: none;
    }

    .hamburger-icon span {
        transition: none;
    }
}