/* ===================================
   Port of Palm Cold Storage - Responsive Styles
   Mobile-First Approach
   =================================== */

/* Tablet Styles (768px and up) */
@media (max-width: 1023px) {
    /* Typography adjustments */
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    h3 { font-size: 24px; }
    
    /* Hero */
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Styles (767px and below) */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    h4 { font-size: 20px; }
    
    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Section */
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    /* Header */
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .logo span {
        font-size: 16px;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: 0;
    }
    
    .nav-list li {
        border-bottom: 1px solid var(--color-light-gray);
    }
    
    .nav-list a {
        display: block;
        padding: var(--spacing-md) 0;
    }
    
    .header-contact {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: var(--spacing-sm);
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .phone-link {
        font-size: 14px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero */
    .hero {
        min-height: 450px;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature-number {
        font-size: 36px;
    }
    
    /* Benefits List */
    .benefits-list {
        grid-template-columns: 1fr;
    }
    
    /* Form */
    .form-wrapper {
        padding: var(--spacing-md);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 16px;
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
    
    .feature-item {
        padding: var(--spacing-md);
    }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero,
    .quote-form-section,
    .footer {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Accessibility - 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;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-navy: #000000;
        --color-ice-blue: #0066cc;
        --color-steel: #333333;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if dark mode is desired
    :root {
        --color-white: #1a1a1a;
        --color-light-gray: #2a2a2a;
        --color-dark-gray: #e0e0e0;
    }
    
    body {
        background-color: var(--color-white);
        color: var(--color-dark-gray);
    }
    */
}