/* ==========================================================================
   Homepage CSS — Energofor Design
   All values extracted from homepage-test.json
   ========================================================================== */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
    --hp-font-serif: 'Nunito Sans', serif;
    --hp-font-sans: 'Nunito Sans', sans-serif;
    /*     --hp-font-heading: 'Qaranta', sans-serif; */
    --hp-font-heading: 'Nunito Sans', sans-serif;
    --hp-color-primary: #0e5d99;
    --hp-color-dark: #242c36;
    --hp-color-dark-mid: #3c5063;
    --hp-color-light-border: #88c4ff;
    --hp-color-blue-accent: #0e5d99;
    --hp-color-card-bg: #e6e8ea;
    --hp-color-gray-bg: #e6e8ea;
    --hp-color-gray-light: #f5f5f5;
    --hp-color-orange: #fa7152;
    --hp-color-white: #ffffff;
    --hp-color-black: #000000;
}

a {
    color: #0e5d99;
    text-decoration: none;
}

/* ---------- Global Resets ---------- */
.homepage,
.homepage *,
.homepage *::before,
.homepage *::after {
    box-sizing: border-box;
}

.homepage {
    font-family: var(--hp-font-sans);
    color: var(--hp-color-dark);
    font-size: 1rem;
    font-weight: 450;
    line-height: 1.625rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* ---------- Shared Button Styles ---------- */
.hp-btn--outline-white {
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: var(--hp-font-sans);
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.188;
    padding: 12px 18px;
    text-decoration: none;
    text-transform: uppercase;
    width: fit-content;
}

.hp-btn--outline-white:visited {
    color: inherit;
}

.hp-btn--outline-white:hover {
    background-color: var(--hp-color-primary);
    border: 1px solid var(--hp-color-primary);
    color: #fff;
}

.hp-btn--outline-blue {
    background-color: transparent;
    border: 1px solid var(--hp-color-primary);
    border-radius: 10px;
    color: var(--hp-color-dark);
    cursor: pointer;
    display: inline-block;
    font-family: var(--hp-font-sans);
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.188;
    padding: 12px 18px;
    text-decoration: none;
    text-transform: uppercase;
    width: fit-content;
}

.hp-btn--outline-blue:visited {
    color: inherit;
}

.hp-btn--outline-blue:hover {
    background-color: var(--hp-color-primary);
    border: 1px solid var(--hp-color-primary);
    color: #fff;
}

.hp-btn--play-white {
    align-items: center;
    background-color: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    font-family: var(--hp-font-sans);
    font-size: 0.75rem;
    font-weight: 300;
    justify-content: flex-start;
    line-height: 1rem;
    padding: 0;
    text-transform: uppercase;
}

.hp-btn--play-white:hover {
    background-color: transparent !important;
    border: none !important;
    color: #fff;
}

.hp-btn--play-white span {
    position: relative;
}

.hp-btn--play-white span::after {
    background-color: #fff;
    content: "";
    height: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 16px;
    transition: width 0.2s ease-in-out;
    width: 0;
    z-index: 0;
}

.hp-btn--play-white:hover span::after {
    height: 1px;
    opacity: 1;
    width: 100%;
}

/* ---------- Shared Eyebrow Style ---------- */
.hp-eyebrow {
    font-family: var(--hp-font-sans);
    font-size: 0.875rem;
    font-weight: 450;
    line-height: 1.188;
    text-transform: uppercase;
}

/* ---------- Shared Heading Styles ---------- */
.hp-h1 {
    font-family: var(--hp-font-serif);
    font-size: 3.75rem;
    font-style: normal;
    font-weight: 350;
    line-height: 4.25rem;
}

.hp-h2 {
    color: var(--hp-color-dark);
    font-family: var(--hp-font-serif);
    font-size: 2.75rem;
    font-weight: 350;
    line-height: 3.25rem;
}

.hp-h3 {
    color: var(--hp-color-dark);
    font-family: var(--hp-font-heading);
    font-size: 2.75rem;
    font-style: normal;
    font-weight: 600;
    line-height: 3rem;
    text-transform: uppercase;
}

.hp-p {
    color: var(--hp-color-dark);
    font-family: var(--hp-font-sans);
    font-size: 1rem;
    font-weight: 450;
    line-height: 1.625rem;
}

/* ==========================================================================
   SECTION 1: HERO
   Reference: .hero-with-video with .tinted-frost overlay (44% width on desktop)
   ========================================================================== */
.hp-hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Desktop: Aspect ratio via pseudo-element */
@media screen and (min-width: 64rem) {
    .hp-hero::before {
        content: "";
        display: block;
        padding-bottom: 56.25%;
        width: 100%;
    }
}

/* Video / image background */
.hp-hero__video,
.hp-hero__poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Mobile/Tablet: Video/image has its own aspect ratio container */
@media screen and (max-width: 63.99rem) {

    .hp-hero__video,
    .hp-hero__poster {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        display: block;
    }
}

.hp-hero__embed {
    position: absolute;
    inset: 0;
    z-index: 0;
}

@media screen and (max-width: 63.99rem) {
    .hp-hero__embed {
        position: relative;
        aspect-ratio: 16 / 9;
    }
}

.hp-hero__embed iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    border: 0;
}

/* Tinted frost overlay panel - Desktop */
.hp-hero__frost {
    -webkit-backdrop-filter: blur(0.625rem) brightness(0.9);
    backdrop-filter: blur(0.625rem) brightness(0.9);
    background-color: rgba(29, 46, 60, 0.2);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

@media screen and (min-width: 64rem) {
    .hp-hero__frost {
        width: 44%;
    }
}

/* Mobile/Tablet: Frost becomes solid background below content */
@media screen and (max-width: 63.99rem) {
    .hp-hero__frost {
        position: relative;
        width: 100%;
        height: auto;
        background-color: #1d2e3c;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Copy wrapper inside frost */
.hp-hero__copy {
    align-items: center;
    color: #fff;
    display: flex;
    flex-direction: row;
    height: 100%;
    justify-content: flex-start;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0 31px;
    text-align: left;
}

@media screen and (min-width: 90rem) {
    .hp-hero__copy {
        padding: 0 60px;
    }
}

/* Mobile/Tablet: Copy wrapper adjustments */
@media screen and (max-width: 63.99rem) {
    .hp-hero__copy {
        height: auto;
        padding: 31px;
    }
}

.hp-hero__copy-container {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    position: relative;
}

/* Mobile/Tablet: Copy container adjustments */
@media screen and (max-width: 63.99rem) {
    .hp-hero__copy-container {
        height: auto;
        width: 100%;
    }
}

/* ==========================================================================
   MOBILE OVERLAY (Label + Title on video)
   Visible only below 64rem
   ========================================================================== */
.hp-hero__mobile-overlay {
    display: none;
}

@media screen and (max-width: 63.99rem) {
    .hp-hero__mobile-overlay {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background-color: #1d2e3c33;
        left: 0;
        position: absolute;
        top: 0;
        bottom: 24%;
        width: 100%;
        z-index: 1;
        display: block;
    }

    .hp-hero__mobile-overlay__container {
        align-items: center;
        color: #fff;
        display: flex;
        flex-direction: row;
        height: 100%;
        justify-content: flex-start;
        margin-bottom: 0;
        margin-top: 0;
        padding: 0 31px;
        text-align: left;
    }

    .hp-hero__mobile-overlay__inner {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
        position: relative;
    }

    .hp-hero__mobile-overlay .hp-hero__label {
        margin-bottom: 0.75rem;
    }

    .hp-hero__mobile-overlay .hp-hero__title {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* ==========================================================================
   DESKTOP HEADER (Label + Title in frost overlay)
   Visible only at 64rem+
   ========================================================================== */
.hp-hero__desktop-header {
    display: block;
    margin-bottom: 2rem;
}

@media screen and (max-width: 63.99rem) {
    .hp-hero__desktop-header {
        display: none;
    }
}

/* Mobile: Content body (description + buttons) in dark section */
@media screen and (max-width: 63.99rem) {
    .hp-hero__content-body .hp-hero__desc {
        padding-top: 0;
    }
}

/* Eyebrow label */
.hp-hero__label {
    color: #fff;
    font-family: var(--hp-font-sans);
    font-size: 0.875rem;
    font-weight: 450;
    line-height: 1.188;
    text-transform: uppercase;
    margin-bottom: 1.1875rem;
    padding-top: 3rem;
}

@media screen and (min-width: 48.0625rem) {
    .hp-hero__label {
        padding-top: 0;
    }
}

/* Mobile/Tablet: Label smaller */
@media screen and (max-width: 63.99rem) {
    .hp-hero__label {
        font-size: 0.75rem;
        margin-bottom: 1rem;
        padding-top: 0;
    }
}

/* Hero heading */
.hp-hero__title {
    font-family: var(--hp-font-serif);
    font-size: 3.75rem;
    font-style: normal;
    font-weight: 350;
    line-height: 4.25rem;
    color: #fff;
    margin-bottom: 0;
    margin-top: 0;
}

/* Mobile/Tablet: Title smaller */
@media screen and (max-width: 63.99rem) {
    .hp-hero__title {
        font-size: 2rem;
        line-height: 2.5rem;
    }
}

/* Hero description text */
.hp-hero__desc {
    color: #fff;
    font-family: var(--hp-font-sans);
    font-size: 1rem;
    font-weight: 450;
    line-height: 1.625rem;
    margin-bottom: 2rem;
    margin-top: 0;
    padding-top: 34px;
}

@media screen and (min-width: 48.0625rem) {
    .hp-hero__desc {
        padding-bottom: 10px;
    }
}

/* Mobile/Tablet: Description adjustments */
@media screen and (max-width: 63.99rem) {
    .hp-hero__desc {
        padding-top: 20px;
        margin-bottom: 1.5rem;
        font-size: 0.9375rem;
        line-height: 1.5rem;
    }
}

/* Buttons wrapper */
.hp-hero__buttons {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media screen and (min-width: 48.0625rem) {
    .hp-hero__buttons {
        flex-direction: row;
        gap: 1.25rem;
    }
}

/* Mobile/Tablet: Buttons in a row */
@media screen and (max-width: 63.99rem) {
    .hp-hero__buttons {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
}

/* ==========================================================================
   SECTION 2: PARAGRAPH WITH ICON
   Reference: .paragraph-w-icon — centered text on gray bg
   ========================================================================== */
.hp-paragraph-icon {
    background-color: var(--hp-color-gray-light);
    display: flex;
    justify-content: center;
    padding: 60px 31px;
    text-align: center;
}

@media screen and (min-width: 48.0625rem) {
    .hp-paragraph-icon {
        padding: 100px 64px;
    }
}

.hp-paragraph-icon__text {
    font-family: var(--hp-font-sans);
    font-size: 2rem;
    font-weight: 450;
    line-height: 100%;
    max-width: 1000px;
    position: relative;
    width: 100%;
    z-index: 1;
    color: var(--hp-color-dark);
}

/* ==========================================================================
   SECTION 3: STATS ROW
   Reference: .box-row-wrapper with .box elements (225x225px, blue border)
   ========================================================================== */
.hp-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 100px 31px;
}

.hp-stats__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 225px;
    height: 225px;
    border: 2px solid var(--hp-color-light-border);
    border-radius: 5px;
}

.hp-stats__label {
    font-family: var(--hp-font-sans);
    font-size: 0.875rem;
    font-weight: 450;
    line-height: 1.188;
    text-transform: uppercase;
    color: var(--hp-color-dark);
    width: 100%;
    text-align: center;
}

.hp-stats__value {
    font-family: "Qaranta";
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    text-transform: uppercase;
    color: var(--hp-color-primary);
    word-spacing: -4px;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   SECTION 4: PORTFOLIO SLIDER + CTA
   Reference: portfolio-rw-carousel from hp-ex-html
   Desktop: grid (slider ~70vw + copy/nav 410px)
   Mobile: flex-column (copy → slider → nav → button centered)
   ========================================================================== */
.hp-portfolio {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 60px 0;
}

/* Mobile ordering */
.hp-portfolio__copy {
    order: 1;
}

.hp-portfolio__slider-wrap {
    order: 2;
}

.hp-portfolio__nav {
    order: 3;
}

.hp-portfolio__btn-mobile-wrap {
    order: 4;
}

/* Desktop: 2-column grid */
@media screen and (min-width: 48.0625rem) {
    .hp-portfolio {
        display: grid;
        grid-template-columns: 1fr 410px;
        grid-template-rows: auto 1fr auto;
        padding: 0px 8% 0px 0px;
    }

    .hp-portfolio__copy {
        grid-column: 2;
        grid-row: 1;
        order: unset;
    }

    .hp-portfolio__slider-wrap {
        grid-column: 1;
        grid-row: 1 / -1;
        order: unset;
    }

    .hp-portfolio__nav {
        grid-column: 2;
        grid-row: 1;
        order: unset;
        align-self: end;
    }

    .hp-portfolio__btn-mobile-wrap {
        display: none;
    }
}

/* Slider wrapper */
.hp-portfolio__slider-wrap {
    max-width: 100vw;
    position: relative;
    overflow: hidden;
}

.hp-portfolio__swiper {
    overflow: hidden;
    border-radius: 5px;
}

.hp-portfolio__swiper .swiper-wrapper {
    align-items: flex-end;
}

.hp-portfolio__swiper .swiper-slide {
    max-width: 100%;
    transition: width 0.3s ease-in 0.2s;
}

/* Slide image container — aspect ratio from reference: 96.02% */
.hp-portfolio__img {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.hp-portfolio__img::before {
    content: "";
    display: block;
    padding-bottom: 96.0199%;
    width: 100%;
}

.hp-portfolio__img>img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: 5px;
}

/* Hover overlay — frosted glass */
.hp-portfolio__slide-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 50px 0 50px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out;
    text-decoration: none;
    color: var(--hp-color-white);
    z-index: 1;
    backdrop-filter: blur(10px) brightness(0.9);
    -webkit-backdrop-filter: blur(10px) brightness(0.9);
    background-color: rgba(29, 46, 60, 0.2);
    border-radius: 5px;
}

.hp-portfolio__img:hover .hp-portfolio__slide-info {
    opacity: 1;
    visibility: visible;
}

.hp-portfolio__slide-title {
    font-family: var(--hp-font-stats);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 2.813rem;
    text-transform: uppercase;
    color: var(--hp-color-white);
}

.hp-portfolio__slide-location {
    font-family: var(--hp-font-body);
    font-size: 1rem;
    font-weight: 450;
    line-height: 1.625rem;
    color: var(--hp-color-white);
    border-bottom: 4px solid #8dbbe2;
    padding-bottom: 10px;
    width: 100%;
}

.hp-portfolio__learn-more {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    bottom: 40px;
    left: 50px;
}

.hp-portfolio__learn-more-text {
    font-family: var(--hp-font-body);
    font-size: 0.875rem;
    font-weight: 450;
    line-height: 1.188;
    text-transform: uppercase;
    color: var(--hp-color-white);
}

.hp-portfolio__placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--hp-color-card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: var(--hp-color-dark);
}

/* Copy block (title + description + desktop button) */
.hp-portfolio__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 31px 0px;
    max-width: 100%;
}

@media screen and (min-width: 48.0625rem) {
    .hp-portfolio__copy {
        padding: 0 30px 30px 60px;
        margin-bottom: 30px;
    }
}

.hp-portfolio__cta-title {
    font-family: 'Qaranta', serif;
    font-size: 2.5rem;
    font-weight: 350;
    line-height: 100%;
    margin: 0 0 16px 0;
    color: var(--hp-color-primary);
}

.hp-portfolio__cta-desc {
    font-family: var(--hp-font-body);
    font-size: 1rem;
    font-weight: 450;
    line-height: 1.625rem;
    margin: 0 0 30px 0;
    color: var(--hp-color-dark);
}

/* Desktop button inside copy — hidden on mobile */
/* .hp-portfolio__btn-desktop {
    display: inline-block;
} */

@media screen and (max-width: 48.0625rem) {
    .hp-portfolio__btn-desktop {
        display: none !important;
    }
}

/* Mobile button wrapper — centered, hidden on desktop */

@media screen and (max-width: 48.0625rem) {
    .hp-portfolio__btn-mobile-wrap {
        display: none;
    }

    .hp-portfolio__btn-mobile-wrap {
        display: flex;
        justify-content: center;
        padding: 16px 31px 0;
        width: 100%;
    }
}

/* Outline blue button */
.hp-btn--outline-blue {
    font-family: var(--hp-font-body);
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    padding: 12px 18px;
    border: 1px solid var(--hp-color-primary);
    border-radius: 10px;
    color: inherit;
    background: transparent;
    cursor: pointer;
    width: fit-content;
    transition: all 0.2s ease;
}

.hp-btn--outline-blue:visited {
    color: inherit;
}

.hp-btn--outline-blue:hover {
    background: var(--hp-color-primary);
    border-color: var(--hp-color-primary);
    color: var(--hp-color-white);
}

/* Navigation arrows */
.hp-portfolio__nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 31px 0;
    width: 100%;
}

@media screen and (min-width: 48.0625rem) {
    .hp-portfolio__nav {
        justify-content: flex-start;
        gap: 15px;
        padding: 0 29px 0 60px;
        width: auto;
    }
}

.hp-portfolio__arrow {
    width: 40px;
    height: 40px;
    display: inline-block;
    border: 1px solid #005ab3;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    background-color: transparent;
    transition: all 0.2s ease;
}

.hp-portfolio__arrow--prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M12 19l-7-7 7-7'/%3E%3C/svg%3E");
}

.hp-portfolio__arrow--next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E");
}

.hp-portfolio__arrow:hover:not(.swiper-button-disabled) {
    background-color: #005ab3;
}

.hp-portfolio__arrow:not(.swiper-button-disabled) {
    background-color: #005ab3;
}

.hp-portfolio__arrow:hover(.swiper-button-disabled) {
    background-color: #8a96a2;
}

.hp-portfolio__arrow.swiper-button-disabled {
    background-color: #8a96a2;
    border-color: #8a96a2;
}

.hp-portfolio__arrow:hover:not(.swiper-button-disabled).hp-portfolio__arrow--prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M12 19l-7-7 7-7'/%3E%3C/svg%3E");
}

.hp-portfolio__arrow:hover:not(.swiper-button-disabled).hp-portfolio__arrow--next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E");
}

.hp-portfolio__arrow.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
}

/* ==========================================================================
   PORTFOLIO COMING SOON OVERLAY
   ========================================================================== */
.hp-portfolio__slider-wrap {
    position: relative;
}

.hp-portfolio__coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 46, 60, 0.2);
    backdrop-filter: blur(0.625rem) brightness(0.9);
    -webkit-backdrop-filter: blur(0.625rem) brightness(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 5px;
}

.hp-portfolio__coming-soon-text {
    font-family: 'Qaranta', serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--hp-color-white);
    text-transform: uppercase;
    text-align: center;
    padding: 20px;
}

@media screen and (max-width: 48.0625rem) {
    .hp-portfolio__coming-soon-text {
        font-size: 1.75rem;
    }
}

/* Disabled button styles */
.hp-btn--disabled,
.hp-btn--disabled:hover,
.hp-btn--disabled:focus,
.hp-btn--disabled:active {
    background-color: transparent !important;
    border-color: #8a96a2 !important;
    color: #8a96a2 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.6;
}

/* Disabled arrow styles */
.hp-portfolio__arrow--disabled,
.hp-portfolio__arrow--disabled:hover,
.hp-portfolio__arrow--disabled:focus,
.hp-portfolio__arrow--disabled:active {
    background-color: #8a96a2 !important;
    border-color: #8a96a2 !important;
    cursor: not-allowed !important;
    opacity: 0.5;
}

.hp-portfolio__arrow--disabled.hp-portfolio__arrow--prev,
.hp-portfolio__arrow--disabled.hp-portfolio__arrow--next {
    background-color: #8a96a2 !important;
}

/* ==========================================================================
   SECTION 4: POWERING YOUR PROJECT LABEL
   JSON: boxed_width 1180px, padding 3.2% top, 1% left/right
   ========================================================================== */
.hp-powering {
    width: 100%;
    padding: 5% 1% 0 1%;
}

.hp-powering__container {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
}

.hp-powering__label {
    display: inline-block;
    padding-bottom: 4.3%;
    border-bottom: 3px solid var(--hp-color-blue-accent);
}

/* ==========================================================================
   SECTION 5: SERVICES + INDUSTRY CAROUSEL
   Reference: copy-w-link-carousel from hp-ex-html
   Desktop: row (CTA left ~520px, vertical-text carousel right ~357px)
   Mobile: column (CTA → carousel stacked)
   ========================================================================== */
.hp-services {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0px;
}

@media screen and (min-width: 48.0625rem) {
    .hp-services {
        padding-top: 100px;
    }
}

.hp-services__container {
    max-width: 90rem;
    width: 100%;
    padding: 0 31px 0px 31px;
}

@media screen and (min-width: 64rem) {
    .hp-services__container {
        padding: 0 150px;
    }
}

/* Inner flex: CTA left + ticker right */
.hp-services__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-bottom: 60px;
}

@media screen and (min-width: 64rem) {
    .hp-services__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding-bottom: 100px;
    }
}

/* Left: CTA Copy */
.hp-services__cta {
    font-size: 1rem;
    line-height: 1.5rem;
    justify-self: flex-start;
    margin-bottom: 50px;
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media screen and (min-width: 48.0625rem) {
    .hp-services__cta {
        font-size: 1.25rem;
        line-height: 2rem;
        margin-bottom: 0;
        padding: 0 49px 0px 0px;
    }
}

/* Eyebrow label above the inner row */
.hp-services__eyebrow {
    display: inline-block;
    font-family: var(--hp-font-body);
    font-size: 0.875rem;
    font-weight: 450;
    line-height: 1.188;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--hp-color-blue-accent);
}

.hp-services__title {
    font-family: 'Qaranta', serif;
    font-size: 2.75rem;
    font-weight: 350;
    line-height: 100%;
    margin: 0 0 16px 0;
    color: var(--hp-color-primary);
}

/* @media screen and (min-width: 48.0625rem) {
    .hp-services__eyebrow {
        margin-left: 49px;
    }
} */

/* .hp-services__title {
    margin-top: 0;
    margin-bottom: 16px;
} */

.hp-services__desc {
    font-family: var(--hp-font-body);
    font-size: 1rem;
    font-weight: 450;
    line-height: 1.625rem;
    margin: 0 0 30px 0;
    color: var(--hp-color-dark);
}

.hp-services__buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media screen and (min-width: 48.0625rem) {
    .hp-services__buttons {
        flex-direction: row;
    }
}

/* Primary button: outlined blue */
.hp-services__buttons .hp-btn--primary {
    background-color: transparent;
    border: 1px solid #005ab3;
    border-radius: 10px;
    color: var(--hp-color-dark);
    cursor: pointer;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 300;
    padding: 12px 18px;
    text-decoration: none;
    text-transform: uppercase;
    width: fit-content;
    transition: all 0.3s ease;
    line-height: 1.188;
}

.hp-services__buttons .hp-btn--primary:hover {
    background-color: #005ab3;
    color: #fff;
}

/* Play button: icon + text with underline hover */
.hp-services__buttons .hp-btn--play-blue {
    align-items: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    font-size: 0.75rem;
    font-weight: 300;
    justify-content: flex-start;
    line-height: 1rem;
    padding: 0;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
}

.hp-services__buttons .hp-btn--play-blue span {
    position: relative;
}

.hp-services__buttons .hp-btn--play-blue span::after {
    background-color: #005ab3;
    content: "";
    height: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 16px;
    transition: width 0.2s ease-in-out;
    width: 0;
    z-index: 0;
}

.hp-services__buttons .hp-btn--play-blue:hover span::after {
    height: 1px;
    opacity: 1;
    width: 100%;
}


/* Right: Industry vertical-text carousel */
.hp-services__ticker-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.hp-services__ticker {
    border-left: 1px solid #1d2e3c;
    border-right: 1px solid #1d2e3c;
    margin-bottom: 1.75rem;
    height: 21.875rem;
    max-width: 230px;
    text-transform: uppercase;
    width: 100%;
    overflow: hidden;
}

@media screen and (min-width: 48.0625rem) {
    .hp-services__ticker {
        height: 30rem;
        max-width: 22.3125rem;
        width: 100%;
    }
}

/* Each slide: vertical text */
.hp-services__ticker .swiper-slide {
    align-items: flex-start;
    border-right: 1px solid #1d2e3c;
    color: #1d2e3c;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 21.875rem;
    text-decoration: none;
    transform: rotate(-180deg);
    writing-mode: vertical-rl;
}

@media screen and (min-width: 48.0625rem) {
    .hp-services__ticker .swiper-slide {
        height: 30rem;
    }
}

.hp-services__ticker .swiper-slide:hover,
.hp-services__ticker .swiper-slide:focus {
    color: #005ab3;
}

.hp-services__ticker .swiper-slide.swiper-slide-active {
    border-right: none;
}

.hp-services__industry {
    font-family: 'Qaranta', serif;
    font-size: 1.2rem;
    font-weight: 400;
    display: block;
    white-space: nowrap;
    text-transform: uppercase;
    color: #005ab3;
}

@media screen and (min-width: 48.0625rem) {
    .hp-services__industry {
        font-size: 1.7rem;
    }
}

/* Navigation arrows */
.hp-services__ticker-nav {
    display: grid;
    grid-template-columns: 40px 40px;
    gap: 10px;
}

.hp-services__ticker-arrow {
    width: 40px;
    height: 40px;
    display: inline-block;
    border: 1px solid #005ab3;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    background-color: transparent;
    transition: all 0.2s ease;
}

.hp-services__ticker-arrow--prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M12 19l-7-7 7-7'/%3E%3C/svg%3E");
}

.hp-services__ticker-arrow--next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E");
}

.hp-services__ticker-arrow:hover:not(.swiper-button-disabled) {
    background-color: #005ab3;
}

.hp-services__ticker-arrow:not(.swiper-button-disabled) {
    background-color: #005ab3;
}

.hp-services__ticker-arrow:hover(.swiper-button-disabled) {
    background-color: #8a96a2;
}

.hp-services__ticker-arrow.swiper-button-disabled {
    background-color: #8a96a2;
    border-color: #8a96a2;
}

.hp-services__ticker-arrow:hover:not(.swiper-button-disabled).hp-services__ticker-arrow--prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M12 19l-7-7 7-7'/%3E%3C/svg%3E");
}

.hp-services__ticker-arrow:hover:not(.swiper-button-disabled).hp-services__ticker-arrow--next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E");
}

.hp-services__ticker-arrow.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}


/* ==========================================================================
   SECTION 6: FULL-WIDTH TEAM PHOTO
   JSON: 1920px width, no padding, block_height 832, padding-bottom 141.6px
   ========================================================================== */
.hp-team {
    width: 100%;
    padding: 0 0 0 0;
}

.hp-team__container {
    width: 100%;
    overflow: hidden;
}

.hp-team__image {
    width: 100%;
    /* max-width: 100%; */
    height: auto;
    display: block;
}

.hp-team__placeholder {
    width: 100%;
    height: 500px;
    background: var(--hp-color-card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-color-dark);
    font-size: 1.5rem;
}

/* ==========================================================================
   SECTION 7: NEWS HEADER
   JSON: boxed_width 1272px, top border 1px solid rgb(29,46,60)
   padding 2.1% top, 4% bottom, 1% left/right
   ========================================================================== */
.hp-news-header {
    width: 100%;
    padding: 0 1% 2.2% 1%;
}

.hp-news-header__container {
    max-width: 1272px;
    margin: 0 auto;
}

.hp-news-header__inner {
    width: 100%;
    border-top: 1px solid var(--hp-color-dark);
    padding: 2.1% 0 4% 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 14vh;
}

.hp-news-header__label {
    display: block;
    margin-bottom: 0;
}

.hp-news-header__heading {
    margin-top: 0.1%;
    padding-top: 0.9%;
}

/* ==========================================================================
   SECTION 8: NEWS CARDS
   JSON: boxed_width 1272px, 3 cards at 32.2% each, gap 1.6%
   Cards: bg rgba(230,232,234,1), border-radius 3px, min-height 37vh
   padding 3.9% all sides, padding-bottom 4.9%
   ========================================================================== */
.hp-news-cards {
    width: 100%;
    padding: 0 1% 5.5% 1%;
}

.hp-news-cards__container {
    max-width: 1272px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.6%;
}

.hp-news-cards__card {
    width: 32.2%;
    flex: 0 0 32.2%;
    min-height: 37vh;
    background: var(--hp-color-card-bg);
    border-radius: 3px;
    padding: 3.9%;
    padding-bottom: 4.9%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.hp-news-cards__card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hp-news-cards__card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
}

.hp-news-cards__category {
    display: inline-block;
    padding-bottom: 4.3%;
    border-bottom: 3px solid var(--hp-color-blue-accent);
    margin-bottom: 0;
}

.hp-news-cards__title {
    font-family: var(--hp-font-primary);
    font-size: var(--hp-heading-size);
    font-weight: 400;
    line-height: 1.091em;
    text-transform: uppercase;
    color: var(--hp-color-dark);
    text-decoration: none;
    margin-top: 10%;
    padding-right: 8.4%;
    display: block;
}

.hp-news-cards__title:hover {
    color: var(--hp-color-primary);
}

/* Video card play button */
.hp-news-cards__play {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--hp-color-dark);
    padding: 0;
    margin-top: auto;
}

.hp-news-cards__card--video {
    justify-content: space-between;
}

/* ==========================================================================
   SECTION 9: VIDEO + CAREERS CTA
   JSON: boxed_width 1272px, bg rgba(230,232,234,1), border-radius 3px
   Video: 46.6% width, CTA: 41.1% width, gap 0, padding 5.5% 4.3%
   ========================================================================== */
.hp-careers {
    width: 100%;
    padding: 0 1% 5.5% 1%;
}

.hp-careers__container {
    max-width: 1272px;
    margin: 0 auto;
    background: var(--hp-color-card-bg);
    border-radius: 3px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 5.5% 4.3%;
}

.hp-careers__video-wrap {
    width: 46.6%;
    flex: 0 0 46.6%;
    border-radius: 3px;
    overflow: hidden;
}

.hp-careers__video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
}

.hp-careers__embed {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 3px;
    overflow: hidden;
}

.hp-careers__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hp-careers__video-placeholder {
    width: 100%;
    height: 300px;
    background: rgba(200, 200, 200, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    color: var(--hp-color-dark);
    font-size: 1.25rem;
}

.hp-careers__cta {
    width: 41.1%;
    flex: 0 0 41.1%;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hp-careers__title {
    margin-bottom: 16px;
}

.hp-careers__desc {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.hp-careers__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

/* ==========================================================================
   RESPONSIVE: TABLET (max-width: 1024px)
   JSON: padding_tablet values, column stacking
   ========================================================================== */
@media (max-width: 1024px) {

    /* Hero */
    .hp-hero__content {
        padding: 2% 5%;
    }

    .hp-hero__inner {
        max-width: 100%;
        padding: 5% 5%;
    }

    .hp-hero__title {
        font-size: 3rem;
    }

    /* Stats: wrap to 2 rows */
    .hp-stats__container {
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Services: stack */
    .hp-services__container {
        flex-direction: column;
        gap: 32px;
    }

    .hp-services__cta {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hp-services__ticker-wrap {
        width: 100%;
        flex: 0 0 100%;
    }

    /* News cards: 2 columns */
    .hp-news-cards__container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hp-news-cards__card {
        width: 48%;
        flex: 0 0 48%;
    }

    .hp-news-cards__card:last-child {
        width: 100%;
        flex: 0 0 100%;
    }

    /* Careers: stack */
    .hp-careers__container {
        flex-direction: column;
        gap: 32px;
        padding: 8% 5%;
    }

    .hp-careers__video-wrap {
        width: 100%;
        flex: 0 0 100%;
    }

    .hp-careers__cta {
        width: 100%;
        flex: 0 0 100%;
    }
}

/* ==========================================================================
   RESPONSIVE: MOBILE (max-width: 767px)
   JSON: padding_mobile values, full stacking
   ========================================================================== */
@media (max-width: 767px) {

    /* Hero */
    .hp-hero__content {
        padding: 0;
    }

    .hp-hero__inner {
        padding: 120px 20px 40px 20px;
    }

    .hp-hero__title {
        font-size: 2.25rem;
    }

    .hp-hero__buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Stats: single column */
    .hp-stats {
        padding: 60px 31px 0px 31px;
    }

    .hp-stats__container {
        flex-direction: column;
        gap: 12px;
    }

    .hp-stats__box {
        width: 100%;
        flex: 0 0 100%;
        padding: 16px;
    }

    /* Services */
    /* .hp-services {
        padding: 0 20px 40px 20px;
    } */

    /* Powering */
    .hp-powering {
        padding: 24px 20px 0 20px;
    }

    /* Team */
    .hp-team {
        padding: 0 0 0 0;
    }

    /* News header */
    .hp-news-header {
        padding: 0 20px 16px 20px;
    }

    .hp-news-header__heading {
        font-size: 2rem;
    }

    /* News cards: single column */
    .hp-news-cards {
        padding: 0 20px 40px 20px;
    }

    .hp-news-cards__container {
        flex-direction: column;
        gap: 16px;
    }

    .hp-news-cards__card {
        width: 100%;
        flex: 0 0 100%;
    }

    .hp-news-cards__title {
        font-size: 1.75rem;
    }

    /* Careers */
    .hp-careers {
        padding: 0 20px 40px 20px;
    }

    .hp-careers__container {
        padding: 24px 20px;
    }

    .hp-careers__title {
        font-size: 2rem;
    }

    /* Shared heading size reduction */
    .hp-services__title,
    .hp-portfolio__cta-title {
        font-size: 2rem;
    }
}