/* ==========================================================================
   PLUTOGRAPHY — RESPONSIVE AND DEVICE OVERRIDES STYLE SHEET
   ========================================================================== */

/* Widescreen Scaling Layouts (1920px +) */
@media (min-width: 1920px) {
    html {
        font-size: 18px; /* Slightly scale base typography up on large panels */
    }
    
    .container {
        max-width: 1800px;
    }
}

/* Tablet Landscape and Small Desktops (1024px to 1200px) */
@media (max-width: 1200px) {
    :root {
        --space-xl: 6rem;
        --space-xxl: 9rem;
        --section-padding: clamp(4rem, 9vw, 7rem);
    }
    
    .nav-links {
        gap: 2rem;
    }
}

/* Tablet Portrait and Netbooks (768px to 1023px) */
@media (max-width: 1023px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 5rem;
        --space-xxl: 7rem;
        --section-padding: clamp(3.5rem, 8vw, 5.5rem);
        --section-padding-sm: clamp(2.5rem, 6vw, 4rem);
        --grid-gap: clamp(1.5rem, 4vw, 3rem);
        --grid-gap-md: clamp(1.25rem, 3vw, 2rem);
    }
    
    /* Reveal mobile hamburger toggle */
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: var(--transition-smooth);
        z-index: 100;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--grid-gap-sm);
    }
    
    .footer-brand {
        grid-column: span 2;
        margin-bottom: var(--space-sm);
    }
}

/* Compact nav dropdown — mobile */
@media (max-width: 767px) {
    .nav-dropdown {
        position: fixed;
        top: calc(4.5rem + env(safe-area-inset-top, 0px));
        right: 1.25rem;
        left: auto;
        min-width: 200px;
    }

    .navbar {
        padding: 1.25rem 0;
    }

    .navbar.scrolled {
        padding: 0.9rem 0;
    }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
    :root {
        --space-md: 1.65rem;
        --space-lg: 2.75rem;
        --space-xl: clamp(3.5rem, 12vw, 4.5rem);
        --space-xxl: clamp(4.5rem, 14vw, 6rem);
        --section-padding: clamp(3rem, 12vw, 4.5rem);
        --section-padding-sm: clamp(2rem, 8vw, 3.5rem);
        --grid-gap: clamp(1.5rem, 4vw, 2.5rem);
        --grid-gap-md: clamp(1.25rem, 3vw, 2rem);
        --grid-gap-sm: clamp(0.75rem, 2.5vw, 1.25rem);
    }
    
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 clamp(1.15rem, 4vw, 1.5rem);
    }

    h1 {
        font-size: clamp(2.15rem, 9vw, 2.75rem);
        line-height: 1.12;
    }

    h2 {
        font-size: clamp(1.85rem, 7vw, 2.35rem);
        line-height: 1.15;
    }

    h3 {
        font-size: clamp(1.2rem, 5.5vw, 1.55rem);
    }

    p, .lead {
        line-height: 1.72;
    }

    .eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.28em;
        margin-bottom: 1rem;
    }

    .section-intro {
        margin-bottom: var(--space-lg);
    }

    .editorial-visuals__main {
        min-height: clamp(300px, 68vw, 420px);
    }

    .stories-masonry {
        gap: var(--grid-gap-sm) !important;
    }

    .photography-grid {
        grid-template-columns: 1fr !important;
        gap: var(--grid-gap-sm) !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--grid-gap-md);
    }
    
    .footer-brand {
        grid-column: 1;
    }

    .footer-brand p {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .btn {
        width: 100%;
        padding: var(--btn-padding);
        min-height: var(--btn-height);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--grid-gap);
    }

    .contact-intro {
        position: static;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .footer-col p strong {
        display: inline-block;
        min-width: 3.5rem;
    }
    
    /* Adjust text alignments for dramatic mobile feel */
    .section-intro {
        text-align: left !important;
    }
    
    .section-intro .lead {
        margin-left: 0 !important;
    }
}

/* Extra Small Mobile / Foldables (max-width: 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}
