/**
 * Silverline Title & Escrow LLC
 * Responsive Stylesheet
 * Mobile-First Breakpoints
 */

/* ============================================
   TABLET (768px - 1023px)
   ============================================ */
@media (max-width: 1023px) {
    :root {
        --space-2xl: 4rem;
        --container-padding: 1.25rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
    
    .about-grid,
    .contact-grid,
    .order-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .about-image {
        order: -1;
    }
    
    .values-grid,
    .team-grid,
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MOBILE (< 768px)
   ============================================ */
@media (max-width: 767px) {
    :root {
        --space-2xl: 3rem;
        --container-padding: 1rem;
        --space-xl: 2rem;
        --space-lg: 1.5rem;
    }
    
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-xl) var(--space-lg);
        gap: 0;
        transition: right var(--transition-base);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--color-silver-light);
    }
    
    .nav-link {
        display: block;
        padding: var(--space-md) 0;
        color: var(--color-navy) !important;
        font-size: 1.125rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-cta {
        margin: var(--space-lg) 0 0 0;
        width: 100%;
        text-align: center;
    }
    
    /* Hamburger Animation */
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: var(--color-navy);
    }
    
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background-color: var(--color-navy);
    }
    
    /* Hero */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Grids */
    .services-grid,
    .why-grid,
    .values-grid,
    .team-grid,
    .resources-grid,
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-desc {
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: var(--space-lg);
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    /* Contact / Order */
    .contact-info,
    .order-info {
        text-align: center;
    }
    
    .order-features {
        display: inline-block;
        text-align: left;
    }
}

/* ============================================
   SMALL MOBILE (< 480px)
   ============================================ */
@media (max-width: 479px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .service-card,
    .why-card,
    .value-card,
    .resource-card,
    .team-card,
    .testimonial-card {
        padding: var(--space-lg);
    }
    
    .contact-form-wrapper,
    .order-form-wrapper {
        padding: var(--space-lg);
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .scroll-wheel {
        animation: none;
    }
}