/* ===================================
   RESPONSIVE STYLES - MOBILE FIRST
   =================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero {
        padding: 3rem 0 2rem;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .trust-badges span {
        width: 100%;
        text-align: center;
    }
    
    /* Calculator */
    .calculator-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
    }
    
    .calculator-container {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .result-value {
        font-size: 1.75rem;
    }
    
    /* Info Grid */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Links Grid */
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Action Buttons */
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    /* Sections */
    section {
        padding: 2rem 0 !important;
    }
    
    .info-section,
    .quick-links {
        padding: 2rem 0;
    }
    
    /* Calculator */
    .calculator-section {
        padding: 2rem 0;
    }
    
    .calculator-container {
        padding: 1rem;
        margin: 0 -5px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    input[type="number"],
    input[type="text"],
    select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-calculate {
        padding: 14px;
        font-size: 1rem;
    }
    
    /* Results */
    .results-container {
        padding: 1rem;
    }
    
    .result-card {
        padding: 1rem;
    }
    
    .result-value {
        font-size: 1.5rem;
    }
    
    /* Chart */
    .chart-container {
        padding: 1rem;
    }
    
    .chart-container canvas {
        max-height: 250px;
    }
    
    /* Info Cards */
    .info-card {
        padding: 1.5rem;
    }
    
    /* Benchmark Items */
    .benchmark-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benchmark-range {
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
}

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .calculator-container {
        max-width: 900px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for mobile */
    .tab-button,
    .btn-primary,
    .btn-secondary,
    .btn-calculate {
        min-height: 44px;
        padding: 14px 20px;
    }
    
    input[type="number"],
    input[type="text"],
    select {
        min-height: 44px;
    }
    
    .nav-menu a {
        padding: 1rem;
        display: block;
    }
}

/* Landscape Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .trust-badges {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode */
    /*
    :root {
        --bg-white: #1e1e1e;
        --bg-light: #2d2d2d;
        --text-dark: #ffffff;
        --text-light: #b0b0b0;
        --border-color: #404040;
    }
    */
}