/* ===== RESPONSIVE DESIGN ===== */

/* ===== TABLET STYLES (768px - 1024px) ===== */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.4rem; }
    h3 { font-size: 1.9rem; }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ===== MOBILE STYLES (max-width: 768px) ===== */
@media screen and (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 20px;
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    h4 { font-size: 1.4rem; }
    
    p {
        font-size: 1rem;
    }
    
    /* Header & Navigation */
    .nav-container {
        padding: 12px 20px;
    }
    
    .nav-logo .logo-img {
        height: 40px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding-top: 2rem;
        transition: var(--transition);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-link {
        padding: 20px;
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
    }
    
    /* Dropdown adjustments for mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light-gray);
        border: none;
        border-radius: 0;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }
    
    .dropdown-link {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .nav-cta {
        margin: 2rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-cta .btn-primary {
        width: 80%;
        max-width: 300px;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Main content adjustment */
    .main-content {
        margin-top: 70px;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ===== SMALL MOBILE STYLES (max-width: 480px) ===== */
@media screen and (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
        --container-padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    
    /* Header */
    .nav-container {
        padding: 10px 15px;
    }
    
    .nav-logo .logo-img {
        height: 35px;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-logo-img {
        height: 50px;
    }
    
    .footer-tagline {
        font-size: 1.1rem;
    }
    
    .footer-column h4 {
        font-size: 1rem;
    }
    
    .footer-column ul li a {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
}

/* ===== LANDSCAPE MOBILE STYLES ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        height: calc(100vh - 60px);
        padding-top: 1rem;
    }
    
    .nav-item {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 10px;
        font-size: 1rem;
    }
    
    .nav-cta {
        margin: 1rem 0;
    }
}

/* ===== ACCESSIBILITY & FOCUS STYLES ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.btn-primary:focus,
.btn-secondary:focus,
.dropdown-link:focus,
.social-link:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-cream: #FFFFFF;
        --primary-taupe: #000000;
        --primary-navy: #000000;
        --accent-gold: #000000;
        --text-dark: #000000;
        --text-light: #000000;
    }
    
    .header {
        background: #FFFFFF;
        border-bottom: 2px solid #000000;
    }
    
    .btn-primary {
        background: #000000;
        color: #FFFFFF;
        border: 2px solid #000000;
    }
    
    .btn-secondary {
        background: #FFFFFF;
        color: #000000;
        border: 2px solid #000000;
    }
}

/* Print styles */
@media print {
    .header,
    .hamburger,
    .nav-cta,
    .footer-social {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

