/*
 * Shared spacing and typography scale.
 * Loaded after page-specific styles to keep every page visually consistent.
 */

@media (min-width: 992px) {
    /* Portfolio */
    .portfolio-hero {
        padding-top: 112px;
        padding-bottom: 72px;
    }

    .portfolio-hero__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
        gap: 55px;
    }

    .portfolio-hero h1 {
        max-width: 840px;
        font-size: clamp(54px, 4.2vw, 76px);
        line-height: 0.96;
        letter-spacing: -0.045em;
    }

    .portfolio-hero__grid > div:last-child {
        max-width: 520px;
        padding-bottom: 4px;
    }

    .portfolio-gallery {
        padding-top: 72px;
        padding-bottom: 90px;
    }

    .portfolio-cta {
        padding-top: 78px;
        padding-bottom: 78px;
    }

    .portfolio-cta__inner h2 {
        font-size: clamp(50px, 4.5vw, 72px);
        line-height: 0.96;
    }

    /* Services overview and detail pages */
    .services-index {
        padding-top: 112px;
        padding-bottom: 85px;
    }

    .services-index__heading {
        margin-bottom: 48px;
    }

    .services-index__heading h1,
    .service-hero__content h1 {
        font-size: clamp(52px, 4.3vw, 76px);
        line-height: 0.96;
        letter-spacing: -0.045em;
    }

    .service-hero {
        padding-top: 108px;
        padding-bottom: 78px;
    }

    .service-breadcrumb {
        margin-bottom: 36px;
    }

    .service-hero__grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
        gap: clamp(45px, 6vw, 90px);
    }

    .service-hero__visual {
        max-width: 650px;
        justify-self: end;
    }

    .service-overview,
    .service-process,
    .service-faq {
        padding-top: 82px;
        padding-bottom: 82px;
    }

    .service-overview__grid h2,
    .service-section-heading h2 {
        font-size: clamp(42px, 3.7vw, 60px);
        line-height: 1;
    }

    .service-feature-grid {
        margin-top: 55px;
    }

    .service-process__grid {
        margin-top: 40px;
    }

    .service-order {
        padding-top: 76px;
        padding-bottom: 76px;
    }

    .service-order__inner h2 {
        font-size: clamp(48px, 4.2vw, 68px);
        line-height: 0.97;
    }

    /* Our Process */
    .process-hero {
        padding-top: 112px;
        padding-bottom: 76px;
    }

    .process-hero__grid {
        gap: 55px;
    }

    .process-hero h1 {
        font-size: clamp(56px, 4.7vw, 82px);
        line-height: 0.94;
        letter-spacing: -0.05em;
    }

    .process-promise {
        margin-top: 52px;
    }

    .process-steps,
    .process-help {
        padding-top: 82px;
        padding-bottom: 82px;
    }

    .process-steps__heading {
        margin-bottom: 48px;
    }

    .process-steps__heading h2,
    .process-help h2 {
        font-size: clamp(48px, 4vw, 66px);
        line-height: 0.98;
    }

    .process-step {
        min-height: 155px;
    }

    /* Contact */
    .contact-hero {
        padding-top: 112px;
        padding-bottom: 82px;
    }

    .contact-hero__grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
        gap: clamp(45px, 6vw, 90px);
    }

    .contact-hero__content h1 {
        font-size: clamp(50px, 4.1vw, 70px);
        line-height: 0.98;
        letter-spacing: -0.045em;
    }

    .contact-details {
        margin-top: 30px;
    }

    .contact-card {
        padding: clamp(30px, 3vw, 44px);
    }

    /* Home */
    .vector-compare {
        padding-top: 112px;
        padding-bottom: 78px;
    }

    .vector-compare__heading {
        margin-bottom: 30px;
    }

    .vector-compare__heading h1 {
        max-width: 820px;
        font-size: clamp(52px, 4.3vw, 76px);
        line-height: 0.96;
        letter-spacing: -0.045em;
    }

    .home-work {
        padding-top: 82px;
        padding-bottom: 82px;
    }

    .home-work__heading {
        margin-bottom: 38px;
    }

    .home-work__heading h2 {
        font-size: clamp(48px, 4vw, 68px);
        line-height: 0.98;
    }
}

@media (max-width: 991px) {
    .portfolio-hero,
    .services-index,
    .service-hero,
    .process-hero,
    .contact-hero,
    .vector-compare {
        padding-top: 105px;
        padding-bottom: 62px;
    }

    .portfolio-hero h1,
    .services-index__heading h1,
    .service-hero__content h1,
    .process-hero h1,
    .contact-hero__content h1,
    .vector-compare__heading h1 {
        font-size: clamp(44px, 9vw, 62px);
        line-height: 0.98;
        letter-spacing: -0.04em;
    }

    .portfolio-gallery,
    .service-overview,
    .service-process,
    .service-faq,
    .process-steps,
    .process-help,
    .home-work {
        padding-top: 65px;
        padding-bottom: 65px;
    }
}

@media (max-width: 575px) {
    .portfolio-hero,
    .services-index,
    .service-hero,
    .process-hero,
    .contact-hero,
    .vector-compare {
        padding-top: 92px;
        padding-bottom: 52px;
    }

    .portfolio-hero h1,
    .services-index__heading h1,
    .service-hero__content h1,
    .process-hero h1,
    .contact-hero__content h1,
    .vector-compare__heading h1 {
        font-size: clamp(39px, 12vw, 52px);
        line-height: 1;
    }

    .portfolio-hero__grid,
    .service-hero__grid,
    .process-hero__grid,
    .contact-hero__grid {
        gap: 30px;
    }
}
