/* Breakpoints run widest-first so the narrower block wins the cascade.
   (Previously 600px was declared before 800px, so on phones the 800px rules
   silently overrode the small-screen ones they were meant to refine.)

   The hero no longer needs per-breakpoint font sizes: .heroTitle and .heroLead
   use clamp(), so they scale continuously instead of stepping at 800/600px. */

@media (max-width: 800px) {
    .heroInner {
        padding-top: 70px;
        padding-bottom: 85px;
    }
    .content-work {
        margin-top: 1.5rem;
    }
    .mainMenu li a::after {
        margin: 0px;
    }
    .mainMenu li a {
        margin-right: 0px;
        margin-left: 0px;
    }
    .feature-content {
        margin-top: 30px;
    }
    .aboutContent {
        padding-inline-start: 0;
    }
    .footerContentP ul {
        flex-direction: column;
        line-height: 2.2;
    }
}

@media (max-width: 600px) {
    .s-home {
        min-height: min(92vh, 620px);
    }
    .home-cta {
        flex-direction: column;
        gap: 12px;
    }
    .home-cta .btn {
        width: 100%;
    }
    /* The scroll cue competes with the stacked buttons on a small screen */
    .heroScroll {
        display: none;
    }
    .mainTitle {
        font-size: 30px;
    }
    .title-about {
        font-size: 28px;
        margin-top: 25px;
    }
    .p-about {
        font-size: 17px;
    }
    .aboutPanel {
        padding: 30px 22px;
    }
    .aboutHighlight {
        padding: 20px 12px;
    }
    .aboutHighlight p {
        font-size: 15px;
    }
    .content-work img {
        height: 160px;
    }
    .sectionLead {
        font-size: 17px;
    }
    .svgWave {
        margin-top: 0px !important;
    }
}
