/* =============================================
   RESPONSIVE & MOBILE-FIRST OVERRIDES
   Treadz Tire & Towing
   ============================================= */

/* --- Hamburger Menu Button --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Nav Right Group (phone btn + hamburger) --- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Tire Section Title (moved out of inline) --- */
.tire-section-title {
    font-size: 4rem;
}

/* --- Mobile-only CTA (Save to Contacts) --- */
.mobile-only-cta {
    display: none;
}

/* --- Ensure images never overflow --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- iOS Parallax Fix --- */
@supports (-webkit-touch-callout: none) {
    .parallax-cta,
    .reviews-section-modern {
        background-attachment: scroll !important;
    }
}

/* =============================================
   TABLET (max-width: 992px)
   ============================================= */
@media (max-width: 992px) {

    /* Hide hamburger and slide-in nav — users just scroll */
    .hamburger {
        display: none !important;
    }

    .nav-overlay {
        display: none !important;
    }

    /* Hide nav links (no burger to open them) */
    .nav-links {
        display: none !important;
    }

    /* Show full phone number on mobile nav */
    .nav-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .nav-btn i {
        font-size: 0.9rem;
        margin-right: 6px;
    }

    /* (Unused slide-in styles removed) */

    /* Grids */
    .grid-3,
    .why-treadz-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    /* Hero */
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Parallax */
    .parallax-cta h2 {
        font-size: 2.2rem;
    }

    .parallax-cta p {
        font-size: 1.2rem;
    }

    /* About section */
    .about-content-wrapper h2 {
        font-size: 2.2rem;
    }
}

/* =============================================
   MOBILE (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {

    /* Mobile-only CTA visible */
    .mobile-only-cta {
        display: inline-flex;
    }

    /* Typography scale-down */
    h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    /* Hero section */
    .hero {
        height: 70vh;
        min-height: 450px;
    }

    .hero h1 {
        font-size: 2.2rem !important;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
        justify-content: center;
    }

    /* Grids go single column */
    .grid-3,
    .grid-4,
    .why-treadz-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-widget {
        text-align: center;
    }

    .footer-logo-img {
        margin: 0 auto 20px;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    /* Stats bar */
    .stats-bar-container {
        flex-direction: column;
        gap: 15px;
    }

    .stat-item {
        width: 100%;
        justify-content: flex-start;
    }

    /* Service cards */
    .services-grid-container {
        grid-template-columns: 1fr;
    }

    /* Map section */
    .service-area-split {
        grid-template-columns: 1fr;
    }

    .service-locations-list {
        grid-template-columns: 1fr;
    }

    .map-wrapper-pinned {
        height: 250px;
    }

    /* Tire section */
    .tire-section-title {
        font-size: 2.5rem !important;
    }

    .brands-header-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Trust badges */
    .trust-badge-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .trust-badge-item {
        width: 100% !important;
        max-width: 340px !important;
    }

    /* CTA Banner */
    .cta-banner-modern h2 {
        font-size: 1.6rem !important;
    }

    .phone-btn-large {
        font-size: 1.2rem;
        padding: 12px 30px;
    }

    /* CTA buttons stack */
    .cta-buttons {
        flex-direction: column !important;
        align-items: center;
    }

    /* Action buttons stack */
    .action-buttons-group {
        flex-direction: column;
        align-items: center;
    }

    .action-buttons-group .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Parallax - disable fixed on mobile */
    .parallax-cta {
        background-attachment: scroll;
        padding: 60px 0;
    }

    .parallax-cta h2 {
        font-size: 1.8rem !important;
    }

    .parallax-cta p {
        font-size: 1rem;
    }

    /* Reviews */
    .reviews-section-modern {
        background-attachment: scroll;
        padding: 50px 0;
    }

    .reviews-track {
        gap: 15px;
    }

    .review-card-modern {
        flex: 0 0 280px;
    }

    /* Reviews header container */
    .reviews-header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Why Choose section */
    .why-treadz-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* About section */
    .about-modern-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-content-wrapper {
        padding-left: 0;
        text-align: center;
    }

    .about-content-wrapper h2 {
        font-size: 2rem !important;
    }

    .lead-text {
        text-align: left;
    }

    .body-text {
        text-align: left;
    }

    .owners-signature {
        text-align: center;
    }

    /* FAQ */
    .faq-item {
        padding: 15px 20px !important;
    }

    .faq-question h3 {
        font-size: 1rem !important;
    }

    /* Top bar */
    .top-bar-content {
        flex-direction: column;
        gap: 5px;
        font-size: 0.8rem;
    }

    .top-bar-link {
        border-left: none;
        padding-left: 0;
    }

    /* Subpage headers */
    .subpage-header {
        padding: 80px 0 40px;
    }

    .subpage-header h1 {
        font-size: 2rem !important;
    }

    /* Tire burnout bar */
    .tire-burnout-bar {
        height: 150px;
    }

    .tire-burnout-bar .slide-logo {
        width: 200px;
    }

    .tire-burnout-bar .slide-logo img {
        max-height: 80px;
    }

    /* Contact form in footer */
    .contact-widget form {
        padding: 12px !important;
    }

    /* Rebate card */
    .rebate-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .rebate-info h3,
    .rebate-info p {
        text-align: center !important;
    }
}

/* =============================================
   SMALL PHONE (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {

    .hero h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .tire-section-title {
        font-size: 2rem !important;
    }

    .btn-xl {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .phone-btn-large {
        font-size: 1rem;
        padding: 10px 25px;
    }

    .service-card-modern {
        padding: 25px 20px;
    }

    .section-padding {
        padding: 50px 0;
    }

    /* Ensure form inputs don't overflow */
    .contact-widget input,
    .contact-widget textarea {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
}

/* =============================================
   LANDSCAPE PHONE
   ============================================= */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 400px;
        padding: 60px 0;
    }

    .subpage-header {
        padding: 60px 0 30px;
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .top-bar,
    .navbar,
    .cta-banner-modern,
    .hamburger,
    video,
    iframe {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
