/* Mobile-First Styles - Base styles for mobile devices ONLY */
/* These styles only apply on screens smaller than 769px */
@media (max-width: 768px) {
    * {
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    html {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        overflow-x: hidden !important;
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth;
        height: 100%;
        width: 100%;
        position: relative;
        touch-action: pan-y !important;
        overscroll-behavior-y: auto !important;
        overscroll-behavior-x: none !important;
    }

    body {
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden !important;
        overflow-y: scroll !important;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        line-height: 1.6;
        color: #1a1a1a;
        background: #ffffff;
        min-height: 100vh;
        position: relative;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* Mobile-only styles */
@media (max-width: 768px) {
    main,
    section {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
        position: relative !important;
        width: 100%;
        max-width: 100vw;
        padding: 40px 15px;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        margin: 0 auto;
        text-align: center;
        box-sizing: border-box;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
}

/* Mobile-only header styles */
@media (max-width: 768px) {
    header {
        position: relative;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        width: 100%;
        z-index: 1000;
    }

    .header-top {
        display: block;
        background: #f3f4f6;
        border-bottom: 1px solid #e5e7eb;
        padding: 8px 0;
        font-size: 0.85rem;
    }

    .header-top .container {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0 15px;
        max-width: 100%;
    }

    .trust-indicators {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .trust-indicator {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.8rem;
        color: #374151;
    }

    .trust-indicator i {
        color: #1e40af;
        font-size: 0.9rem;
    }

    .live-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        color: #059669;
        font-weight: 600;
        font-size: 0.85rem;
    }

    .live-indicator i {
        color: #10b981;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }

    .header-main {
        padding: 12px 15px;
    }

    .header-main .container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 0 18px;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        text-align: center;
    }

    .header-main .search-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .search-container .search-bar {
        max-width: 100%;
    }

    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-decoration: none;
        width: 100%;
        justify-content: center;
    }

    .logo-image {
        height: 56px;
        width: auto;
        object-fit: contain;
    }

    .logo-text {
        display: none;
    }

    nav {
         background: white;
         border-top: 1px solid #e5e7eb;
         width: 100%;
         padding: 0;
     }
     
     nav .container {
        width: 100%;
        padding: 0 18px 12px 18px;
        max-width: 420px;
        margin: 0 auto;
    }
     
     nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
     
     nav ul li {
        flex-shrink: 0;
    }
     
     nav ul li a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        color: #1f2937;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600;
        background: #f3f4f6;
        border-radius: 12px;
        border: 1px solid rgba(148, 163, 184, 0.25);
        transition: all 0.2s ease;
    }
     
     nav ul li a i {
        font-size: 1rem;
        color: #1e40af;
    }
     
    nav ul li a:hover,
    nav ul li a:active {
        color: #1e3a8a;
        background: rgba(30, 64, 175, 0.12);
        border-color: rgba(30, 64, 175, 0.3);
    }
}

    /* Breadcrumb nav - don't style like main nav */
    .breadcrumb-nav {
        background: var(--light) !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
        padding: 10px 0 !important;
        margin-bottom: 0 !important;
    }

    .breadcrumb-nav nav,
    .breadcrumb-nav .container {
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    .breadcrumb-nav ol,
    .breadcrumb-nav ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        grid-template-columns: none !important;
    }

    .breadcrumb-nav li {
        display: inline-flex !important;
        align-items: center !important;
        padding: 0 !important;
        background: none !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .breadcrumb-nav a {
        display: inline !important;
        padding: 0 !important;
        background: none !important;
        border-radius: 0 !important;
        border: none !important;
        color: var(--primary) !important;
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        text-decoration: none !important;
    }

    .breadcrumb-nav a:hover {
        text-decoration: underline !important;
        background: transparent !important;
    }

    .breadcrumb-nav span {
        color: var(--gray) !important;
        font-size: 0.85rem !important;
    }

    .breadcrumb-separator {
        color: var(--gray-light) !important;
        font-size: 0.7rem !important;
        margin: 0 4px !important;
    }

.announcement-bar {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 8px 15px;
    font-size: 0.85rem;
    text-align: center;
    width: 100%;
}

/* Mobile-only hero styles */
@media (max-width: 768px) {
    .hero {
        padding: 40px 15px;
        background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
        color: white;
        text-align: center;
        overflow: hidden;
    }

    .hero .container {
        padding: 0;
    }

    /* Hero section grid layout for mobile */
    .hero > .container > div {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Hero text content on mobile */
    .hero-text-content {
        text-align: center;
    }

    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }

    .hero-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 25px !important;
    }

    .hero-features {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-bottom: 30px !important;
    }

    .hero-stats {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
    }

    /* Hero visual on mobile */
    .hero-visual {
        height: 300px !important;
        margin-top: 20px;
        position: relative;
    }
}

    .hero-visual > div > div.floating-card {
        width: 80px !important;
        height: 140px !important;
    }

    .hero-visual > div > div.floating-card > div {
        padding: 12px !important;
    }

    .hero-visual > div > div.floating-card > div > div {
        font-size: 1.8rem !important;
        margin-bottom: 6px !important;
    }

    .hero-visual > div > div.floating-card > div > p {
        font-size: 0.65rem !important;
    }

    .hero-visual > div > div:last-child {
        width: 150px !important;
        height: 220px !important;
    }

    .hero-visual > div > div:last-child > div {
        padding: 25px !important;
    }

    .hero-visual > div > div:last-child > div > div {
        font-size: 3rem !important;
        margin-bottom: 10px !important;
    }

    .hero-visual > div > div:last-child > div > h3 {
        font-size: 0.9rem !important;
        margin-bottom: 5px !important;
    }

    .hero-visual > div > div:last-child > div > p {
        font-size: 0.75rem !important;
    }
}

    .hero-text h1 {
        font-size: 2rem;
        font-weight: 800;
        margin: 0 0 15px 0;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin: 0 0 25px 0;
        line-height: 1.5;
        opacity: 0.95;
    }

    .hero-cta-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
    }

    .hero-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 24px;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        width: 100% !important;
        margin: 10px auto !important;
    }

    .floating-stat {
        display: none !important;
    }

    /* Hero visual should show on mobile with updated layout */
    .hero-visual {
        display: block !important;
    }

    .section-header {
        margin: 0 auto 30px;
        padding: 0 15px;
    }

    .section-header h2 {
        font-size: 1.75rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 auto 10px;
        line-height: 1.3;
    }

    .section-header p {
        font-size: 1rem;
        color: #6b7280;
        margin: 0 auto;
        line-height: 1.6;
    }

    .categories-grid,
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
    }

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

    .category-card,
    .service-card,
    .product-card {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border: 1px solid #e5e7eb;
        text-align: center;
    }

    .products-tabs {
        gap: 8px;
    }

    .tab-button {
        width: 100%;
        justify-content: center;
    }

    .search-results-banner {
        margin: 0 0 25px;
        max-width: 100%;
        padding: 16px 18px;
    }

    .search-results-banner__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .products-grid,
    .services-grid,
    .feature-card-row,
    .two-column-grid,
    .keyword-list {
        grid-template-columns: 1fr !important;
    }

    .review-strip .container {
        grid-template-columns: 1fr !important;
    }

    .review-card {
        grid-template-columns: auto 1fr;
        width: 100%;
    }

    .response-section {
        padding: 50px 15px;
    }

    .response-content {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .response-card {
        padding: 22px;
        align-items: flex-start;
    }

    .convenience-list {
        flex-direction: column;
        align-items: stretch;
    }

    .convenience-list li {
        max-width: 100%;
    }

    .convenience-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .convenience-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .premium-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .premium-card {
        padding: 28px 22px;
        text-align: left;
    }

    .premium-cta {
        width: 100%;
    }

    button,
    .btn,
    .cta-button {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        touch-action: manipulation;
    }
}

    footer {
        background: #1a1a1a;
        color: white;
        padding: 40px 15px 20px;
        width: 100%;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .footer-column h4 {
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0 0 15px 0;
    }

    .footer-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-column ul li {
        margin-bottom: 10px;
    }

    .footer-bottom {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 30px;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.7);
    }
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe[src*="maps"],
iframe[src*="google.com"] {
    width: 100%;
    height: 300px;
    border-radius: 8px;
}

ul,
ol {
    text-align: left;
    padding-left: 25px;
    padding-right: 15px;
    margin: 0 auto;
}

li {
    margin-bottom: 10px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.fixed-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    max-width: calc(100vw - 40px);
}

.fixed-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1e40af;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .marquee-content {
        animation-duration: 100s !important;
    }

    .purchase-notification {
        display: none !important;
    }

    .response-actions {
        margin-top: 28px;
        flex-direction: column;
        gap: 12px;
    }

    .response-actions a {
        width: 100%;
        padding: 16px;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 100%;
        margin: 0;
    }

    .benefit-card {
        padding: 22px;
        width: 100%;
        box-sizing: border-box;
    }

    .while-you-wait {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .service-card {
        padding: 22px;
        gap: 14px;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .service-icon-wrapper {
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }

    .contact-grid {
        flex-direction: column;
        gap: 24px;
    }

        /* Extra small mobile devices (base styles already cover this) */
        @media (max-width: 480px) {
            .hero-text h1 {
                font-size: 1.75rem;
            }

            .section-header h2 {
                font-size: 1.5rem;
            }

            .categories-grid,
            .products-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .fixed-actions {
                bottom: 15px;
                right: 15px;
            }

            .fixed-button {
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
            }
        }
    }
}

/* Desktop styles - override mobile base styles */
@media (min-width: 769px) {
    .header-top {
        display: block;
    }
    
    .header-top .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        max-width: 1280px;
    }
    
    .trust-indicators {
        justify-content: flex-start;
    }
    
    .live-indicator {
        justify-content: flex-end;
    }

    .header-main {
        padding: 15px 0;
    }

    .header-main .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
        padding: 0 20px;
        max-width: 1280px;
        text-align: left;
    }

    .header-main .search-container {
        flex: 1;
        max-width: 520px;
        margin-left: auto;
    }

    .logo {
        justify-self: flex-start;
        margin-right: auto;
        width: auto;
    }

    .logo-image {
        height: 90px;
    }

    .logo-text {
        display: block;
    }

    nav {
        background: var(--light);
        padding: 12px 0;
    }

    nav .container {
        max-width: 1280px;
        padding: 0 20px;
    }

    nav ul {
        display: flex;
        grid-template-columns: none;
        gap: 5px;
        justify-content: center;
    }

    nav ul li a {
        background: transparent;
        border: none;
        padding: 8px 16px;
    }

    .container {
        max-width: 1280px;
        padding: 0 20px;
        text-align: left;
    }

    .hero {
        padding: 100px 0;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-cta-group {
        flex-direction: row;
        gap: 15px;
    }

    .hero-cta {
        width: auto !important;
        padding: 18px 35px;
        font-size: 1.1rem;
    }

    .hero-visual {
        display: block !important;
        height: 500px !important;
    }
    
    .floating-stat {
        display: block !important;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }

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

    .products-grid,
    .services-grid,
    .feature-card-row,
    .two-column-grid,
    .keyword-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    }

    .review-strip .container {
        grid-template-columns: repeat(3, 1fr) !important;
    }

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

    .convenience-list {
        flex-direction: row;
    }

    .premium-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .premium-cta {
        width: auto;
    }

    .footer-content {
        flex-direction: row;
    }

    .contact-grid {
        flex-direction: row;
    }
}

