/* =============================================================
   layout.css
   Page structure and responsive breakpoints.
   Add new breakpoints here — not in base.css or components.css.
   ============================================================= */

/* --- Page container ----------------------------------------- */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* --- Responsive: tablet and mobile (≤768px) ----------------- */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 2rem;
    }

    .intro {
        font-size: 1.1rem;
    }

    /* Nav: show hamburger, hide links until open */
    header {
        padding: 1rem 1.25rem;
        /* allow dropdown to escape */
        overflow: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(231, 220, 215, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.75rem 1.25rem 1.25rem;
        border-bottom: 1px solid rgba(139, 168, 148, 0.2);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        gap: 0.15rem;
        /* Slide-down animation */
        animation: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.7rem 0.75rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    .nav-links .nav-cta {
        margin-left: 0;
        text-align: center;
        margin-top: 0.4rem;
        padding: 0.7rem 1rem;
    }
}
