/* Extra responsive styles for TruckLawHub - ADVANCED VERSION */

/* Tablet and smaller devices */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }

    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav ul {
        gap: 20px;
    }

    .main-nav a {
        font-size: 0.8rem;
    }
}

/* Mobile devices */
@media (max-width: 600px) {
    :root {
        font-size: 14px;
    }

    .hero {
        padding: 50px 0;
        min-height: auto;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .hero .subheadline {
        font-size: 0.95rem;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .hero-cta .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .hero-form-container {
        width: 100%;
    }

    .hero-form-card {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .hero-form-card h3 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .hero-form-card > p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .hero-form {
        gap: 12px;
    }

    .hero-form input,
    .hero-form select,
    .hero-form textarea {
        padding: 10px 12px;
        font-size: 16px;
        border-radius: 6px;
    }

    .btn-block {
        margin-top: 12px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .form-disclaimer {
        font-size: 0.8rem;
        margin-top: 12px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .trust-item {
        padding: 30px 20px;
    }

    .trust-item h3 {
        font-size: 2rem;
    }

    .trust-item p {
        font-size: 0.9rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-padding-lg {
        padding: 70px 0;
    }

    .practice-grid,
    .locations-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .practice-card,
    .location-item,
    .resource-card {
        padding: 20px;
    }

    .practice-card h3 {
        font-size: 1.2rem;
        min-height: auto;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .main-nav a {
        font-size: 0.75rem;
        padding: 6px 0;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: space-between;
    }

    .site-branding {
        width: 100%;
        text-align: left;
    }

    .logo {
        font-size: 1.3rem;
    }

    .cta-section {
        padding: 70px 0;
    }

    .cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .cta-section .btn {
        width: 100%;
        min-width: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-section {
        padding: 60px 0;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .hero .subheadline {
        font-size: 0.85rem;
        margin-bottom: 25px;
    }

    .container {
        padding: 0 12px;
    }

    .trust-item h3 {
        font-size: 1.4rem;
    }

    .trust-item p {
        font-size: 0.8rem;
    }

    .practice-card h3 {
        font-size: 1rem;
    }

    .practice-card p {
        font-size: 0.85rem;
    }

    .btn,
    button,
    input[type="submit"],
    input[type="button"] {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .resource-card {
        padding: 20px;
    }

    .resource-card h3 {
        font-size: 1.1rem;
    }

    .location-item {
        padding: 15px;
    }

    .hero-cta .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .site-footer {
        padding: 50px 0 20px;
    }

    .footer-section h4 {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }

    .cta-section p {
        font-size: 0.85rem;
    }
}

/* Print styles */
@media print {
    .hero-cta,
    .cta-section {
        display: none;
    }

    body::before,
    .hero::before,
    .hero::after,
    .practice-areas::before,
    .practice-areas::after,
    .locations::before,
    .resources::before,
    .info-section::before,
    .info-section::after {
        display: none !important;
    }

    .site-header {
        position: static;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
        color: #e0e0e0;
    }

    .practice-card,
    .trust-item,
    .location-item,
    .resource-card {
        background: rgba(40, 40, 40, 0.8);
        border-color: rgba(255, 107, 53, 0.2);
        color: #e0e0e0;
    }

    .main-nav a {
        color: #e0e0e0;
    }

    .btn-primary-alt {
        border-color: #0052a3;
        color: #0052a3;
    }

    .info-section {
        background: linear-gradient(135deg, #1a1a1a 0%, rgba(0, 51, 102, 0.05) 100%);
    }
}
