/* Prepared page content and client-supplied image formats. */
.gd-contact-location { scroll-margin-top: 100px; }
.gd-contact-location__map { display: block; width: 100%; height: 450px; margin-top: 40px; border: 0; }
@media (max-width: 680px) {
    .gd-contact-location__map { height: 360px; margin-top: 28px; }
}
.gd-revision-picture { display: contents; }
.sg-hero > .gd-revision-picture > img,
.gd-service-hero > .gd-revision-picture > img,
.gd-detail-hero > .gd-revision-picture > img,
.gd-service-branch__hero > .gd-revision-picture > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sg-hero { background: #18231c; }
.gd-home-reasons { background: #153b2b; color: #fff; }
.gd-home-reasons h2 { margin: 0 0 44px; font-size: clamp(2rem, 3.2vw, 3.2rem); text-transform: uppercase; }
.gd-home-reasons__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.gd-home-reasons__grid article { padding: 30px 26px; background: #214b38; border-top: 2px solid #b6c64e; }
.gd-home-reasons__grid article > span { display: block; margin-bottom: 32px; color: #d0e16a; font-weight: 700; }
.gd-home-reasons__grid h3 { min-height: 2.6em; margin: 0 0 22px; font-size: 1.3rem; line-height: 1.3; }
.gd-home-reasons__grid p { margin: 0; color: #fff; font-size: 1rem; line-height: 1.75; }
.sg-product-card { height: auto; min-height: 0; aspect-ratio: 3 / 5; }
.mega-menu__grid--two .mega-item img { aspect-ratio: 1; max-height: none; }
.gd-roof-system-card .gd-revision-picture > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.gd-detail-heading { align-items: center; }
.gd-detail[data-offer-detail="automatsko-zalivanje"] .gd-detail-hero__grid { grid-template-columns: 1fr; }
.gd-detail[data-offer-detail="automatsko-zalivanje"] .gd-detail-hero__copy { max-width: 1000px; }
.gd-detail-stats strong { font-size: clamp(1.8rem, 2.8vw, 3rem); line-height: 1.15; overflow-wrap: anywhere; }
.gd-detail-stats article { min-width: 0; }
.gd-service[data-service="izvodenje-radova"] .gd-service-hero h1 { font-size: clamp(2.1rem, 4.5vw, 4.7rem); }
.gd-service-hero__intro--copy-only p { font-size: 1.0625rem; line-height: 1.75; }
.gd-service-deliverables + .gd-filtered-projects { padding-top: 88px; }
.gd-service-branch[data-service-branch="travnjaci"] .gd-service-branch__hero .eyebrow { color: #cfdf6a; }
.gd-service-branch[data-service-branch="travnjaci"] .gd-service-branch__grid > a { min-height: 0; aspect-ratio: 1; }
.gd-service-branch__grid small { font-size: .9375rem; line-height: 1.6; }
.sg-partners__item--name > span { font-size: 1.125rem; line-height: 1.4; font-weight: 700; }
.gd-category-posts__grid--single { grid-template-columns: 1fr; }
.gd-category-posts__grid--single .gd-category-posts__card > a { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gd-category-posts__grid--single figure { height: 100%; min-height: 320px; aspect-ratio: auto; }
.gd-category-posts__grid--single .gd-category-posts__body { padding: clamp(28px, 4vw, 56px); }
.gd-category-posts__grid--single h3 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.2; }
@media (max-width: 700px) {
    .gd-category-posts__grid--single .gd-category-posts__card > a { grid-template-columns: 1fr; }
    .gd-category-posts__grid--single figure { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
    .gd-category-posts__grid--single .gd-category-posts__body { padding: 26px; }
}
@media (max-width: 1100px) {
    .gd-home-reasons__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .gd-home-reasons__grid { grid-template-columns: 1fr; }
    .gd-home-reasons__grid article { padding: 28px; }
    .gd-home-reasons__grid article > span { margin-bottom: 20px; }
    .gd-detail-stats strong { font-size: 2rem; }
    .gd-service[data-service="izvodenje-radova"] .gd-service-hero h1 { font-size: clamp(2rem, 8.5vw, 2.8rem); }
}

/* Full viewport minimum; long copy stays in normal flow and can grow. */
.hero,
.sg-hero,
.page-hero,
.article-hero,
.archive-hero,
.gd-portfolio-hero,
.gd-project-single-hero,
.gd-offer-hero,
.gd-detail-hero,
.gd-services-hero,
.gd-service-hero,
.gd-service-branch__hero,
.gd-about-hero,
.gd-contact-hero,
.gd-news-hero,
.gd-article-hero,
.gd-resource-hero,
.gd-legal-hero,
.gd-portfolio-hero__content,
.gd-project-single-hero__content,
.gd-services-hero__content,
.gd-service-hero__grid,
.gd-service-branch__hero > .shell,
.gd-about-hero__content,
.gd-contact-hero__content,
.gd-news-hero__content,
.gd-article-hero__content,
.gd-resource-hero__content {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
}

/* Keep the home copy below the fixed header on short screens as well. */
.sg-hero__content { padding-top: clamp(150px, 18vh, 190px); }

/* The irrigation hero has one copy column: use its available width. */
@media (min-width: 721px) {
    .gd-detail[data-offer-detail="automatsko-zalivanje"] .gd-detail-hero__copy { max-width: 1200px; }
    .gd-detail[data-offer-detail="automatsko-zalivanje"] .gd-detail-hero h1 {
        max-width: none;
        font-size: clamp(2rem, 4.6vw, 4.75rem);
    }
    .gd-detail[data-offer-detail="automatsko-zalivanje"] .gd-detail-hero__lead { max-width: 1000px; }
}

@media (min-width: 721px) and (max-height: 900px) {
    .gd-service-hero__grid,
    .gd-detail-hero__grid { padding-top: 150px; padding-bottom: 64px; }
}

/* Match service hero heights on phones without clipping the supplied copy. */
@media (max-width: 720px) {
    .gd-service-hero__grid,
    .gd-detail-hero__grid {
        gap: 24px;
        padding-top: 120px;
        padding-bottom: 32px;
    }
    .gd-service-hero h1,
    .gd-detail-hero h1 {
        margin-bottom: 20px;
        font-size: clamp(2rem, 8.4vw, 2.75rem);
    }
    .gd-service-hero__lead,
    .gd-detail-hero__lead {
        margin-bottom: 20px;
        font-size: .9375rem;
        line-height: 1.6;
    }
    .gd-service-hero__intro { margin-bottom: 0; }
    .gd-service-hero__intro--copy-only > p:not(.eyebrow) { font-size: .9375rem; line-height: 1.6; }
    .gd-service-hero__intro > p:last-child { margin-bottom: 0; }
    .gd-service-hero__lead:last-child,
    .gd-detail-hero__lead:last-child { margin-bottom: 0; }
    .gd-service-hero .gd-detail-stats article,
    .gd-detail-hero .gd-detail-stats article { min-height: 105px; padding: 16px; }
    .gd-service-hero .gd-detail-stats strong,
    .gd-detail-hero .gd-detail-stats strong { font-size: 1.5rem; line-height: 1.15; }
}
