/* ===================================
   RESPONSIVE STYLES - AAM WEBSITE
   =================================== */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: var(--container-2xl);
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Large Devices (992px to 1399px) */
@media (max-width: 1399px) {
    .nav-container {
        max-width: var(--container-xl);
    }
    
    .hero-features {
        max-width: 800px;
    }
}

/* Medium Devices (768px to 991px) */
@media (max-width: 991px) {
    .nav-container {
        padding: 0 var(--space-md);
    }
    
    .container {
        max-width: var(--container-lg);
        padding: 0 var(--space-md);
    }
    
    .nav-menu {
        gap: var(--space-lg);
    }
    
    .hero {
        padding: 100px var(--space-md) 60px;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .about-content {
        gap: var(--space-2xl);
    }
    
    .mission-vision-grid {
        gap: var(--space-2xl);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Small Devices (576px to 767px) */
@media (max-width: 767px) {
    /* Navigation Mobile */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--space-3xl);
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-xl);
        gap: var(--space-xl);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: var(--font-size-lg);
        padding: var(--space-md);
        display: block;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        margin-top: var(--space-sm);
        border-radius: var(--radius-md);
        width: 90%;
    }
    
    .dropdown-toggle::after {
        content: '\f078';
    }
    
    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .cta-nav {
        margin-top: var(--space-lg);
        font-size: var(--font-size-lg);
        padding: var(--space-lg) var(--space-2xl);
    }
    
    /* Logo */
    .logo-text {
        font-size: var(--font-size-xl);
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    /* Hero Section */
    .hero {
        padding: 100px var(--space-sm) 60px;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: var(--space-lg);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-2xl);
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        margin-bottom: var(--space-2xl);
    }
    
    .feature-card {
        padding: var(--space-lg);
    }
    
    .card-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .cta-secondary {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .hero-trust {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
        margin-bottom: var(--space-2xl);
    }
    
    .trust-number {
        font-size: var(--font-size-2xl);
    }
    
    .trust-label {
        font-size: var(--font-size-xs);
    }
    
    /* Sections */
    .section {
        padding: var(--space-3xl) 0;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: var(--space-md);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    .section-header {
        margin-bottom: var(--space-2xl);
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    /* Mission Vision */
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    /* Footer */
    .footer {
        padding: var(--space-2xl) 0 var(--space-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .cta-text {
        font-size: var(--font-size-base);
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* Extra Small Devices (575px and down) */
@media (max-width: 575px) {
    .nav-container {
        padding: 0 var(--space-sm);
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero {
        padding: 90px var(--space-sm) 50px;
    }
    
    .hero-badge {
        font-size: var(--font-size-xs);
        padding: var(--space-xs) var(--space-md);
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .feature-card {
        padding: var(--space-md);
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
    
    .card-content h3 {
        font-size: var(--font-size-lg);
    }
    
    .card-content p {
        font-size: var(--font-size-sm);
    }
    
    .btn-primary {
        padding: var(--space-md) var(--space-xl);
        font-size: var(--font-size-base);
    }
    
    .hero-trust {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        text-align: center;
    }
    
    .trust-number {
        font-size: var(--font-size-xl);
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .footer {
        padding: var(--space-xl) 0 var(--space-md);
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo-img {
        width: 35px;
        height: 35px;
    }
}

/* Landscape Phones */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 80px var(--space-sm) 40px;
    }
    
    .hero-features {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
    
    .feature-card {
        padding: var(--space-sm);
    }
    
    .hero-trust {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 991px) and (orientation: portrait) {
    .hero-features {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Tablets and Small Laptops */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-features {
        max-width: 750px;
    }
    
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .hamburger,
    .hero-cta,
    .cta-section,
    .footer {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-lg);
        background: white;
        color: black;
    }
    
    .hero-title,
    .section-title {
        color: black;
    }
    
    .section {
        padding: var(--space-lg) 0;
        page-break-inside: avoid;
    }
    
    .feature-card,
    .value-card,
    .team-member {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: var(--font-size-xs);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-badge,
    .floating-elements,
    .scroll-indicator,
    .scroll-wheel {
        animation: none;
    }
    
    .feature-card,
    .value-card,
    .team-member,
    .btn-primary {
        transition: none;
    }
    
    .feature-card:hover,
    .value-card:hover,
    .team-member:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
        color: #fff;
    }
    
    .feature-card,
    .value-card,
    .team-member {
        border: 2px solid #fff;
        background: #000;
        color: #fff;
    }
    
    .btn-primary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .nav-link:hover,
    .dropdown-item:hover {
        background: #fff;
        color: #000;
    }
}

/* Dark Mode (if implemented) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: var(--bg-dark);
        --bg-secondary: var(--bg-darker);
        --text-primary: var(--text-white);
        --text-secondary: #ccc;
        --border-color: #444;
    }
    
    .header {
        background: rgba(33, 37, 41, 0.95);
    }
    
    .nav-menu {
        background: var(--bg-dark);
    }
    
    .dropdown-menu {
        background: var(--bg-dark);
        border-color: #444;
    }
    
    .feature-card,
    .value-card,
    .team-member {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
}