/* One layout owns the first screen, including the header's actual height.
   min-height lets content grow safely with enlarged text or browser zoom. */
.home-intro {
    --home-space: clamp(16px, 3vh, 36px);
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    background: #002046;
    color: #fff;
}

.home-intro .main-header-two {
    position: relative;
    top: auto;
    left: auto;
}

.pgs-home .main-menu-two__wrapper {
    width: min(100%, 1560px);
    margin-inline: auto;
    padding-inline: max(clamp(20px, 4vw, 64px), env(safe-area-inset-left)) max(clamp(20px, 4vw, 64px), env(safe-area-inset-right));
}

.pgs-home .main-menu-two__logo,
.pgs-home .stricky-header .main-menu-two__logo {
    padding-block: clamp(12px, 2.5vh, 28px);
}

.pgs-home .main-menu-two__logo img {
    display: block;
    width: clamp(132px, 14vw, 168px);
    max-width: 100%;
    height: auto;
}

.pgs-home .main-menu-two {
    --pgs-menu-padding-top: clamp(12px, 2.5vh, 28px);
    --pgs-menu-padding-bottom: clamp(12px, 2.5vh, 28px);
}

.home-hero {
    display: grid;
    align-items: center;
    min-width: 0;
    padding-block: var(--home-space) max(var(--home-space), env(safe-area-inset-bottom));
}

.home-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 80px);
    width: min(100%, 1440px);
    margin-inline: auto;
    padding-inline: max(clamp(20px, 4vw, 64px), env(safe-area-inset-left)) max(clamp(20px, 4vw, 64px), env(safe-area-inset-right));
}

.home-hero__content {
    position: relative;
    min-width: 0;
    z-index: 1;
}

.home-hero__eyebrow {
    font-family: var(--endreox-font-four);
    font-size: clamp(24px, 3.5vh, 35px);
    line-height: 1.15;
    color: #b8c9dc;
    margin-bottom: clamp(8px, 1.5vh, 16px);
}

.home-hero__title {
    color: #fff;
    font-size: clamp(30px, min(4.25vw, 6.8vh), 64px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.025em;
    overflow-wrap: break-word;
    margin-bottom: clamp(12px, 2.5vh, 28px);
}

.home-hero__tagline {
    font-family: var(--endreox-font-two);
    font-size: clamp(19px, min(2.1vw, 3.5vh), 27px);
    font-weight: 700;
    line-height: 1.3;
}

.home-hero__description {
    font-family: var(--endreox-font-two);
    font-size: clamp(16px, min(1.55vw, 2.6vh), 20px);
    line-height: 1.5;
    margin-block: clamp(12px, 2vh, 20px) clamp(18px, 3vh, 32px);
}

.home-hero__description strong {
    text-transform: uppercase;
}

.home-hero__button {
    max-width: 100%;
    min-height: 46px;
    padding: 14px 28px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: #010101;
    background: #f7a60c;
}

.home-hero__button::before {
    background: #fff;
}

.home-hero__button:hover {
    color: #010101;
}

.home-hero__visual {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 640px;
    justify-self: center;
}

.home-hero__visual > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 68vh;
    max-height: 68svh;
    object-fit: contain;
}

.home-hero__location {
    position: absolute;
    right: clamp(12px, 2vw, 28px);
    bottom: 16px;
    padding: clamp(16px, 2.5vh, 28px) clamp(20px, 2.5vw, 36px);
    border-radius: 0 50% 50%;
    background: #ecba16;
    color: #000;
    font-family: var(--endreox-font-two);
    text-align: center;
}

.home-hero__location span,
.home-hero__location strong {
    display: block;
    line-height: 1.2;
}

.home-hero__location span {
    font-size: clamp(14px, 1.4vw, 20px);
    margin-bottom: 4px;
}

.home-hero__location strong {
    font-size: clamp(20px, 2.2vw, 32px);
}

/* Keep the following section's decorative band below the first screen. */
.home-intro + .experience-and-rating {
    overflow: hidden;
}

.home-intro + .experience-and-rating .experience-and-rating__left::before,
.home-intro + .experience-and-rating .experience-and-rating__left::after {
    top: 0;
}

/* Portrait tablets have room for a generous photo below the introduction. */
@media (max-width: 991.98px) and (min-height: 601px),
       (max-width: 1199.98px) and (min-height: 601px) and (orientation: portrait) {
    .home-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(20px, 3vh, 32px);
        max-width: 760px;
    }

    .home-hero__title {
        font-size: clamp(30px, 6vw, 48px);
    }

    .home-hero__tagline {
        font-size: clamp(19px, 3vw, 25px);
    }

    .home-hero__description {
        font-size: clamp(16px, 2.4vw, 19px);
    }

    .home-hero__visual > img {
        height: clamp(120px, calc(100vh - 570px), 340px);
        height: clamp(120px, calc(100svh - 570px), 340px);
        object-fit: cover;
        object-position: center 52%;
    }

    .home-hero__location {
        bottom: 12px;
        padding: 12px 20px;
    }
}

@media (max-width: 767.98px) {
    .home-intro {
        --home-space: clamp(12px, 2vh, 20px);
    }

    .home-hero__title {
        font-size: clamp(27px, 7.5vw, 42px);
    }

    .home-hero__eyebrow {
        font-size: 26px;
    }

    .home-hero__description {
        margin-block: 12px 18px;
    }

    .home-hero__button {
        padding: 12px 22px;
        letter-spacing: 0.08em;
    }

    .home-hero__inner {
        gap: 18px;
    }

    .home-hero__visual > img {
        height: clamp(100px, calc(100vh - 600px), 220px);
        height: clamp(100px, calc(100svh - 600px), 220px);
    }
}

/* In compact viewports the photo becomes a backdrop so all copy and the
   service link remain readable, with no fixed-height clipping. */
@media (max-width: 767.98px) and (max-height: 739px),
       (max-height: 600px) {
    .home-hero {
        position: relative;
        isolation: isolate;
    }

    .home-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        max-width: 1000px;
    }

    .home-hero__visual {
        position: absolute;
        inset: 0;
        max-width: none;
        height: 100%;
        z-index: -1;
        opacity: 0.16;
        overflow: hidden;
    }

    .home-hero__visual > img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
    }

    .home-hero__location,
    .home-hero .main-slider-two__shape-2 {
        display: none;
    }
}

/* Landscape phones use their width for two readable text columns. */
@media (min-width: 480px) and (max-height: 600px) {
    .pgs-home .main-menu-two__logo,
    .pgs-home .stricky-header .main-menu-two__logo {
        padding-block: 8px;
    }

    .home-hero__content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: clamp(24px, 5vw, 64px);
        row-gap: 10px;
    }

    .home-hero__eyebrow,
    .home-hero__title,
    .home-hero__tagline {
        grid-column: 1;
        margin: 0;
    }

    .home-hero__eyebrow {
        font-size: 24px;
    }

    .home-hero__title {
        font-size: clamp(24px, min(4vw, 8vh), 40px);
    }

    .home-hero__tagline {
        font-size: 18px;
    }

    .home-hero__description {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
        font-size: 16px;
        line-height: 1.4;
        margin: 0;
    }

    .home-hero__actions {
        grid-column: 2;
        grid-row: 3;
        align-self: center;
    }

    .home-hero__button {
        padding: 12px 16px;
        font-size: 12px;
        letter-spacing: 0.06em;
    }
}

/* Browser bars and split-screen windows can leave less room than a device's
   nominal resolution. Tighten spacing while retaining every line of copy. */
@media (max-width: 479.98px) and (max-height: 480px) {
    .home-intro {
        --home-space: 8px;
    }

    .pgs-home .main-menu-two__logo {
        padding-block: 8px;
    }

    .home-hero__eyebrow {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .home-hero__title {
        font-size: clamp(25px, 7vw, 30px);
        margin-bottom: 10px;
    }

    .home-hero__tagline {
        font-size: 18px;
    }

    .home-hero__description {
        line-height: 1.4;
        margin-block: 10px 12px;
    }
}

@media (min-width: 480px) and (max-height: 360px) {
    .home-intro {
        --home-space: 8px;
    }

    .home-hero__content {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        column-gap: 20px;
        row-gap: 6px;
    }

    .home-hero__eyebrow {
        font-size: 22px;
    }

    .home-hero__title {
        font-size: clamp(21px, 4vw, 28px);
    }

    .home-hero__tagline {
        font-size: 16px;
        line-height: 1.25;
    }

    .home-hero__description {
        font-size: 15px;
        line-height: 1.3;
    }

    .home-hero__button {
        padding: 10px 12px;
        font-size: 12px;
        letter-spacing: 0.03em;
    }
}
