/* ===========================
   Mobile-First Enhancements
   Washington Home Shield
   =========================== */

/* ===========================
   MOBILE BASE STYLES (Default)
   =========================== */

/* Improve mobile typography */
html {
    font-size: 16px; /* Better readability on mobile */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-optimized container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mobile typography */
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    font-size: 1rem;
    line-height: 1.6;
}

/* ===========================
   TOUCH-FRIENDLY INTERACTIONS
   =========================== */

/* Minimum 44x44px touch targets */
.btn,
button,
a.btn-primary,
a.btn-secondary,
input[type="submit"],
input[type="button"] {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Larger tap areas for links */
a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

/* Better mobile navigation */
.nav-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
    touch-action: manipulation;
}

/* Mobile-specific touch enhancements */
@media (max-width: 991px) {
    /* Ensure all interactive elements are touch-friendly */
    .nav-menu a,
    .dropdown-menu a,
    .nav-toggle,
    .nav-cta,
    .nav-schedule {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        cursor: pointer !important;
    }
    
    /* Ensure menu doesn't interfere with touch scrolling */
    .nav-menu {
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        pointer-events: auto !important;
    }
    
    /* Fix any potential z-index conflicts */
    .header {
        z-index: 1000 !important;
    }
    
    .nav-toggle {
        z-index: 1011 !important;
        pointer-events: auto !important;
    }
    
    .nav-menu {
        z-index: 1010 !important;
    }
    
    .nav-overlay {
        z-index: 1003 !important;
    }
    
    /* Ensure dropdown menus are properly accessible */
    .dropdown-menu {
        pointer-events: auto !important;
    }
    
    .nav-dropdown > a {
        pointer-events: auto !important;
    }
    
    /* Make sure hamburger menu is highly visible and clickable */
    .nav-toggle {
        background: transparent !important;
        border: 2px solid transparent !important;
        min-height: 48px !important;
        min-width: 48px !important;
    }
    
    .nav-toggle:focus,
    .nav-toggle:active {
        outline: 2px solid var(--primary-color) !important;
        background: rgba(0, 0, 0, 0.05) !important;
    }
}

/* ===========================
   BULLETPROOF MOBILE NAVIGATION - ENHANCED
   =========================== */

@media screen and (max-width: 991px) {
    /* FORCE hamburger visibility - strongest possible declarations */
    .nav-toggle {
        position: relative !important;
        z-index: 9999 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border: 2px solid var(--primary-color) !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        margin: 0 !important;
        padding: 6px !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 1 !important;
    }
    
    .nav-toggle:hover,
    .nav-toggle:focus,
    .nav-toggle:active {
        background: rgba(255, 255, 255, 1) !important;
        border-color: var(--secondary-color) !important;
        outline: none !important;
    }
    
    .nav-toggle span {
        display: block !important;
        width: 24px !important;
        height: 3px !important;
        margin: 3px 0 !important;
        background-color: var(--primary-color) !important;
        transition: all 0.3s ease !important;
        border-radius: 2px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px) !important;
        background-color: var(--secondary-color) !important;
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px) !important;
        background-color: var(--secondary-color) !important;
    }
    
    /* FORCE mobile menu to behave correctly */
    body .nav .nav-menu,
    .header .nav .nav-menu,
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 80vw !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: white !important;
        z-index: 9998 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 80px 20px 20px 20px !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3) !important;
        transition: left 0.3s ease !important;
        list-style: none !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    body .nav .nav-menu.active,
    .header .nav .nav-menu.active,
    .nav-menu.active {
        left: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    body .nav-menu li,
    .nav-menu li {
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #eee !important;
        list-style: none !important;
        width: 100% !important;
        position: relative !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    body .nav-menu li:last-child,
    .nav-menu li:last-child {
        border-bottom: none !important;
    }
    
    /* Dropdown container - ensure proper spacing */
    body .nav-dropdown,
    .nav-dropdown {
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        width: 100% !important;
        display: block !important;
        background: transparent !important;
    }
    
    body .nav-menu > li > a,
    body .nav-dropdown > a,
    .nav-menu > li > a {
        display: block !important;
        padding: 16px 0 !important;
        font-size: 18px !important;
        font-weight: 500 !important;
        color: var(--text-dark) !important;
        background: transparent !important;
        text-decoration: none !important;
        transition: color 0.2s ease !important;
        min-height: 50px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
        line-height: 1.4 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    body .nav-menu > li > a:hover,
    body .nav-menu > li > a:focus,
    body .nav-menu > li > a.active,
    body .nav-dropdown > a:hover,
    body .nav-dropdown > a:focus,
    body .nav-dropdown.active > a,
    .nav-menu > li > a:hover,
    .nav-menu > li > a:focus,
    .nav-menu > li > a.active {
        color: var(--primary-color) !important;
        background: transparent !important;
    }
    
    /* Dropdown menu */
    body .nav-dropdown > a::after,
    .dropdown-toggle::after,
    .nav-dropdown > a::after {
        content: ' ▾' !important;
        font-size: 16px !important;
        margin-left: 8px !important;
        transition: transform 0.3s ease !important;
        display: inline-block !important;
    }
    
    body .nav-dropdown.active > a::after,
    .nav-dropdown.active .dropdown-toggle::after,
    .nav-dropdown.active > a::after {
        transform: rotate(180deg) !important;
    }
    
    /* Make dropdown toggle super clickable */
    .dropdown-toggle {
        cursor: pointer !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    body .dropdown-menu,
    .nav-dropdown .dropdown-menu {
        display: none !important;
        position: static !important;
        background-color: #f8f9fa !important;
        padding: 0 !important;
        margin: 8px 0 16px 0 !important;
        border-left: 3px solid var(--primary-color) !important;
        border-radius: 4px !important;
        list-style: none !important;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        width: 100% !important;
        z-index: 1 !important;
        overflow: visible !important;
    }
    
    body .nav-dropdown.active .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        display: block !important;
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    body .dropdown-menu li,
    .dropdown-menu li {
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #e0e0e0 !important;
        list-style: none !important;
        width: 100% !important;
    }
    
    body .dropdown-menu li:last-child,
    .dropdown-menu li:last-child {
        border-bottom: none !important;
    }
    
    body .dropdown-menu a,
    .dropdown-menu a {
        display: block !important;
        padding: 12px 16px !important;
        font-size: 16px !important;
        color: var(--text-dark) !important;
        text-decoration: none !important;
        transition: background-color 0.2s ease !important;
        min-height: 44px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        line-height: 1.4 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    body .dropdown-menu a:hover,
    body .dropdown-menu a:focus,
    .dropdown-menu a:hover,
    .dropdown-menu a:focus {
        background-color: #e9ecef !important;
        color: var(--primary-color) !important;
    }
    
    /* Header positioning - FORCE mobile layout */
    body .header,
    .header {
        position: sticky !important;
        top: 0 !important;
        z-index: 9990 !important;
        background: white !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        width: 100% !important;
    }
    
    body .nav,
    .header .nav,
    .nav {
        display: flex !important;
        align-items: center !important;
        padding: 8px 8px !important;
        min-height: 56px !important;
        position: relative !important;
        justify-content: flex-start !important;
        gap: 6px !important;
    }
    
    /* Hamburger menu positioned on the left - FORCE */
    body .nav .nav-toggle,
    .header .nav .nav-toggle,
    .nav .nav-toggle {
        order: 1 !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }
    
    body .nav .logo-text,
    .header .nav .logo-text,
    .nav .logo-text {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: var(--primary-color) !important;
        text-decoration: none !important;
        z-index: 9999 !important;
        position: relative !important;
        order: 2 !important;
        margin: 0 !important;
        margin-left: 6px !important;
        flex-shrink: 1 !important;
        white-space: nowrap !important;
    }
    
    body .nav .nav-actions,
    .header .nav .nav-actions,
    .nav .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        z-index: 9999 !important;
        position: relative !important;
        margin-left: auto !important;
        order: 3 !important;
        flex-shrink: 0 !important;
    }
    
    .nav-cta,
    .nav-schedule {
        font-size: 11px !important;
        padding: 6px 10px !important;
        white-space: nowrap !important;
        border-radius: 6px !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        min-height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    /* Hide phone number text on mobile, show only phone icon */
    .nav-cta {
        border: 2px solid var(--primary-color) !important;
        color: var(--primary-color) !important;
        background: white !important;
        font-size: 20px !important;
        padding: 6px 8px !important;
        min-width: 40px !important;
    }
    
    .nav-cta .phone-text {
        display: none !important;
    }
    
    .nav-schedule {
        background: var(--secondary-color) !important;
        color: white !important;
        border: 2px solid var(--secondary-color) !important;
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
}

/* Overlay for mobile menu */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1003;
    backdrop-filter: blur(0.5px);
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-overlay.active {
    display: block;
}

/* ===========================
   MOBILE HERO SECTION
   =========================== */

.hero {
    padding: 2rem 0;
}

.hero-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.hero-badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
}

.hero-title-accent {
    display: inline;
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

.hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.hero-buttons .btn {
    width: 100%;
    justify-content: center;
}

.hero-image {
    order: -1;
}

.hero-img {
    max-width: 100%;
    width: 100%;
}

/* ===========================
   MOBILE FORMS
   =========================== */

/* Larger, easier to tap form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.875rem 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

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

/* ===========================
   MOBILE SERVICES GRID
   =========================== */

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

.service-card {
    padding: 1.5rem;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* ===========================
   MOBILE GALLERY
   =========================== */

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

.gallery-item {
    margin-bottom: 1rem;
}

.gallery-images {
    height: 250px;
}

/* ===========================
   MOBILE TESTIMONIALS
   =========================== */

.testimonials-carousel {
    padding: 1rem;
}

.testimonial-card {
    padding: 1.5rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
}

.carousel-btn {
    width: 44px;
    height: 44px;
}

/* ===========================
   MOBILE MODALS
   =========================== */

.modal-content {
    max-width: 100%;
    margin: 1rem;
    max-height: calc(100vh - 2rem);
}

.modal-header {
    height: 200px;
}

.modal-body {
    padding: 1.5rem;
}

.modal-title {
    font-size: 1.75rem;
}

/* ===========================
   MOBILE FOOTER
   =========================== */

.footer {
    padding: 2rem 0;
}

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

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-col li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* ===========================
   MOBILE UTILITIES
   =========================== */

/* Click-to-call on mobile */
a[href^="tel:"] {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    min-height: 44px;
}

/* Better mobile spacing */
section {
    padding: 2rem 0;
}

/* Prevent horizontal scroll */
.container,
.hero-container,
.services-grid,
.gallery-grid {
    overflow-x: hidden;
}

/* Better image handling */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile-friendly cards */
.service-card,
.benefit-item,
.area-card {
    margin-bottom: 1rem;
}

/* ===========================
   TABLET STYLES (min-width: 768px)
   =========================== */

@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-buttons {
        flex-direction: row;
        width: auto;
    }
    
    .hero-buttons .btn {
        width: auto;
    }
}

/* ===========================
   DESKTOP STYLES (min-width: 992px)
   =========================== */

@media (min-width: 992px) {
    .container {
        padding: 0 2rem;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-title {
        font-size: 3.5rem;
        text-align: left;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        text-align: left;
    }
    
    .hero-badge {
        margin-left: 0;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .hero-image {
        order: 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .nav {
        gap: var(--spacing-lg);
    }
    
    .logo-text {
        order: 0;
        font-size: 1.75rem;
    }
    
    .nav-menu {
        position: static;
        display: flex !important;
        flex-direction: row;
        max-height: none;
        overflow-y: visible;
        padding: 0;
        box-shadow: none;
        background: transparent;
        order: 0;
        width: auto;
        flex-basis: auto;
        margin-left: auto;
        margin-right: auto;
    }
    
    .nav-cta {
        order: 0;
        font-size: 1rem !important;
        padding: 0.625rem 1.25rem !important;
        min-width: auto !important;
    }
    
    .nav-cta .phone-text {
        display: inline !important;
    }
    
    .nav-schedule {
        order: 0;
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }
    
    .nav-toggle {
        display: none !important;
    }
    
    .nav-toggle.active span:nth-child(1),
    .nav-toggle.active span:nth-child(2),
    .nav-toggle.active span:nth-child(3) {
        transform: none;
        opacity: 1;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        padding: 0.5rem 1rem;
        display: inline-block;
        font-size: 1rem;
    }
}

/* ===========================
   LARGE DESKTOP (min-width: 1200px)
   =========================== */

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium desktop breakpoint */
@media (min-width: 992px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
}

/* ===========================
   ACCESSIBILITY & PERFORMANCE
   =========================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support (if device prefers) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #e1e8ed;
        --text-light: #a0b0c0;
        --bg-white: #1a1a1a;
        --bg-light: #2a2a2a;
        --border-color: #3a3a3a;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px;
    }
    
    input,
    select,
    textarea {
        border-width: 3px;
    }
}

/* ===========================
   NUCLEAR OVERRIDE FOR MOBILE NAVIGATION
   =========================== */

/* Force mobile menu behavior regardless of any other CSS */
@media screen and (max-width: 991px) {
    /* Override ANY desktop navigation styles */
    body .nav-menu,
    html body .nav-menu,
    html body .header .nav-menu,
    html body .nav .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 80vw !important;
        height: 100vh !important;
        background: white !important;
        z-index: 9998 !important;
        display: flex !important;
        flex-direction: column !important;
        transition: left 0.3s ease !important;
        transform: none !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3) !important;
        padding: 80px 20px 20px 20px !important;
        margin: 0 !important;
        gap: 0 !important;
        justify-content: flex-start !important;
    }
    
    body .nav-menu.active,
    html body .nav-menu.active,
    html body .header .nav-menu.active,
    html body .nav .nav-menu.active {
        left: 0 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Force hamburger visibility */
    body .nav-toggle,
    html body .nav-toggle,
    html body .header .nav-toggle,
    html body .nav .nav-toggle {
        display: flex !important;
        position: relative !important;
        z-index: 9999 !important;
        order: 1 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ===========================
   MOBILE PERFORMANCE
   =========================== */

/* Optimize animations for mobile */
@media (max-width: 768px) {
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in {
        animation-duration: 0.3s;
    }
    
    /* Reduce carousel animation time */
    .testimonial-track {
        transition-duration: 0.3s;
    }
}

/* ===========================
   PRINT STYLES
   =========================== */

@media print {
    .header,
    .nav,
    .hero-buttons,
    .fab-container,
    .modal-overlay,
    .modal-container {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1 { font-size: 24pt; }
    h2 { font-size: 20pt; }
    h3 { font-size: 16pt; }
}

/* ===========================
   DESKTOP NAVIGATION FIX
   =========================== */

/* Hide hamburger menu on desktop */
@media (min-width: 992px) {
    .nav-toggle,
    #nav-toggle,
    body .nav-toggle,
    html body .nav-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Compact desktop navigation - reduce white space */
    .header {
        padding: 0 !important;
    }
    
    .nav {
        padding: 0.5rem 2rem !important;
        min-height: 64px !important;
        max-height: 64px !important;
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        grid-template-areas: "logo menu actions" !important;
        align-items: center !important;
        gap: 2rem !important;
    }
    
    /* Ensure mobile menu is properly hidden on desktop */
    body .nav-menu,
    html body .nav-menu,
    .nav-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 2rem !important;
        grid-area: menu !important;
        justify-self: center !important;
    }
    
    /* Hide mobile overlay on desktop */
    .nav-overlay {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Desktop layout positioning */
    .logo-text {
        grid-area: logo !important;
        position: static !important;
        transform: none !important;
        font-size: 1.75rem !important;
        line-height: 1 !important;
    }
    
    .nav-actions {
        grid-area: actions !important;
        justify-self: end !important;
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    /* Compact action buttons */
    .nav-cta,
    .nav-schedule {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
    
    /* Compact navigation links */
    .nav-menu li {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nav-menu a {
        padding: 0.5rem 0 !important;
        font-size: 1rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
}

/* Hide any dropdown indicators on desktop navigation */
@media (min-width: 769px) {
    .dropdown-toggle::after,
    .dropdown-toggle::before {
        display: none !important;
        content: none !important;
    }
    
    .dropdown-toggle .arrow,
    .dropdown-toggle [class*="arrow"] {
        display: none !important;
    }
}
