/* ==========================================
   FOUR PEAKS EPOXY — MOBILE / RESPONSIVE
   ========================================== */

/* ===== TABLET (max 1024px) ===== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 24px;
    }

    .navbar {
        padding: 0 24px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-content {
        padding: 0 24px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 240px;
    }

    .gallery-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .about-grid {
        gap: 40px;
    }

    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-steps {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }

    .process-connector {
        display: none;
    }

    .process-step {
        flex: 0 0 calc(50% - 15px);
    }
}

/* ===== MOBILE (max 768px) ===== */
@media (max-width: 768px) {

    /* --- Navigation --- */
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 100px 30px 40px;
        gap: 4px;
        transition: right var(--transition-medium);
        border-left: 1px solid var(--border-subtle);
        align-items: stretch;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links>li>a {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .dropdown {
        pointer-events: auto;
    }

    .dropdown::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.03);
        background-image: none;
        border-radius: var(--radius-sm);
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height var(--transition-medium);
        pointer-events: auto;
        min-width: 100%;
    }

    .dropdown-menu-wide {
        display: block;
        min-width: 100%;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 8px;
    }

    /* --- Hero --- */
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
        background-attachment: scroll;
        /* Fix for iOS Safari background-image bug */
    }

    .desktop-br {
        display: none;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .hero-badge {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
        padding: 6px 14px;
    }

    .hero-buttons {
        margin-bottom: 40px;
    }

    .hero-stats {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        max-width: 100%;
    }

    .stat {
        padding: 0;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .stat-label {
        white-space: normal;
        text-align: center;
    }

    /* --- Sections --- */
    .section-header h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .ba-showcase {
        grid-template-columns: 1fr;
    }

    .ba-slider {
        height: 280px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-large {
        grid-column: span 2;
    }

    .gallery-wide {
        grid-column: span 2;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .featured-testimonial {
        transform: none;
    }

    .featured-testimonial:hover {
        transform: translateY(-4px);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 300px;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    .quote-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .quote-info h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .process-step {
        flex: 0 0 100%;
    }

    .trust-items {
        gap: 16px 32px;
    }

    .tiktok-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto 40px;
    }

    .tiktok-follow-btn {
        font-size: 0.85rem;
        padding: 14px 28px;
    }
}

/* ===== SMALL PHONE (max 480px) ===== */
@media (max-width: 480px) {

    /* --- Hero --- */
    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-content {
        padding: 0 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-plus {
        font-size: 2rem;
    }

    /* --- Sections --- */
    .section-header h2 {
        font-size: 1.7rem;
    }

    .areas-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-large,
    .gallery-wide {
        grid-column: span 1;
    }

    .cta-banner {
        background-attachment: scroll;
        /* Fix for iOS Safari background-image bug */
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .quote-form {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .trust-items {
        flex-direction: column;
        gap: 14px;
    }

    .logo-img {
        height: 45px;
    }

    .tiktok-follow-btn {
        font-size: 0.8rem;
        padding: 12px 20px;
    }
}