/* ===========================================
   RESPONSIVE STYLESHEET
   Loaded last on every page, after style.css + [page].css.

   LINT NOTE: previously, mobile styles were split across this
   file AND a duplicate @media block inside services.css, and
   most pages (about, contact, portfolio) had NO mobile rules
   at all. Everything is consolidated here now, one breakpoint
   at a time, covering every page.

   CRITICAL FIX: the old mobile rule did `nav{display:none}`
   with no hamburger button to bring it back — on phones the
   entire site navigation simply vanished with no way to open
   it. A working hamburger toggle is added below, paired with
   the .nav-toggle button markup + JS in script.js.
=========================================== */

/* ===========================================
   TABLET  (max-width: 992px)
=========================================== */

@media (max-width:992px){

    /* Home */

    .hero-content{

        grid-template-columns:1fr;

        text-align:center;

    }

    .hero-buttons{

        justify-content:center;

    }

    .hero h1{

        font-size:3.4rem;

    }

    .stats .container{

        grid-template-columns:repeat(2,1fr);

    }

    .service-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .story-grid{

        grid-template-columns:1fr;

    }

    /* About */

    .identity-grid,
    .mission-grid,
    .why-grid{

        grid-template-columns:1fr;

    }

    .philosophy-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .commitment-grid{

        grid-template-columns:1fr;

    }

    .about-hero h1{

        font-size:3.2rem;

    }

    .legacy h2{

        font-size:2.5rem;

    }

    /* Services */

    .solutions-grid,
    .process-grid{

        grid-template-columns:repeat(2,1fr);

    }

    /* Contact */

    .contact-grid{

        grid-template-columns:1fr;

    }

    /* Portfolio */

    .portfolio-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

/* ===========================================
   MOBILE  (max-width: 768px)
=========================================== */

@media (max-width:768px){

    /* ---------- Header / Nav ---------- */

    header .container{

        flex-wrap:wrap;

    }

    .logo{

        font-size:1.6rem;

    }

    .logo-image{

        width:70px;
        height:70px;

    }

    .nav-toggle{

        display:flex;

    }

    .btn-nav{

        display:none;

    }

    nav{

        position:fixed;

        top:0;
        right:-100%;

        width:min(320px,80%);

        height:100vh;

        background:#ffffff;

        box-shadow:-10px 0 40px rgba(0,0,0,.15);

        padding:100px 30px 40px;

        transition:right .35s ease;

        z-index:1000;

    }

    /* Opened via .nav-open, toggled by script.js */

    nav.nav-open{

        right:0;

    }

    nav ul{

        flex-direction:column;

        gap:28px;

    }

    nav a{

        font-size:1.1rem;

        display:block;

    }

    /* Dim the page behind the open nav */

    .nav-backdrop{

        display:none;

        position:fixed;

        inset:0;

        background:rgba(8,22,46,.55);

        z-index:998;

    }

    .nav-backdrop.active{

        display:block;

    }

    /* ---------- Home ---------- */

    .hero{

        min-height:80vh;

        padding:60px 0;

    }

    .hero h1{

        font-size:2.6rem;

    }

    .hero p{

        font-size:1rem;

    }

    .hero-buttons{

        justify-content:center;

    }

    .stats .container{

        grid-template-columns:1fr;

    }

    .service-grid{

        grid-template-columns:1fr;

    }

    .cta h2{

        font-size:2rem;

    }

    /* ---------- About ---------- */

    .about-hero{

        min-height:auto;

        padding:140px 0 60px;

    }

    .about-hero h1{

        font-size:2.4rem;

    }

    .identity,
    .legacy,
    .philosophy,
    .mission-vision,
    .why-us,
    .journey,
    .commitment{

        padding:80px 0;

    }

    .philosophy-grid{

        grid-template-columns:1fr;

    }

    .legacy h2{

        font-size:2rem;

    }

    .journey-line::before{

        left:35px;

    }

    .journey-item{

        gap:20px;

    }

    .journey-icon{

        width:70px;
        height:70px;

    }

    .journey-icon img{

        width:42px;

    }

    /* ---------- Services ---------- */

    .services-hero{

        min-height:auto;

        padding:140px 0 60px;

    }

    .solutions-grid,
    .process-grid{

        grid-template-columns:1fr;

    }

    .services-cta h2{

        font-size:2rem;

    }

    /* ---------- Contact ---------- */

    .contact-hero h2{

        font-size:2.4rem;

    }

    .quote-form{

        padding:32px 22px;

    }

    /* ---------- Portfolio ---------- */

    .portfolio-hero h1{

        font-size:2.4rem;

    }

    .portfolio-grid{

        grid-template-columns:1fr;

    }

    .portfolio-cta h2{

        font-size:2rem;

    }

    /* ---------- Section heading (shared) ---------- */

    .section-heading h2{

        font-size:2.2rem;

    }

}

/* ===========================================
   SMALL PHONES  (max-width: 420px)
=========================================== */

@media (max-width:420px){

    .hero h1{

        font-size:2.1rem;

    }

    .about-hero h1{

        font-size:2rem;

    }

    .cta h2,
    .services-cta h2,
    .portfolio-cta h2{

        font-size:1.7rem;

    }

    .story-card,
    .identity-card,
    .mission-card,
    .why-card,
    .philosophy-card,
    .process-card,
    .contact-card,
    .commitment-card{

        padding:28px 22px;

    }

}
