/* ============================================
   FLOATEX SOLAR — services.css
   Shared styles for service pages (FSPV, Utility Barges, etc.)
============================================ */

/* ============================================
   STANDARDIZED PADDING SYSTEM
   All sections use consistent spacing
============================================ */
:root {
    --section-padding-vertical: clamp(5rem, 8vw, 8rem);
    --section-padding-horizontal: var(--container-pad);
}

/* Standard section padding: vertical horizontal */
.section-padded {
    padding: var(--section-padding-vertical) var(--section-padding-horizontal);
}

/* For sections with 0 horizontal padding (full-width inner) */
.section-padded--no-h {
    padding: var(--section-padding-vertical) 0;
}

/* ============================================
   SERVICE HERO (Light Theme)
============================================ */
.service-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(8rem, 15vw, 12rem) clamp(2.5rem, 7vw, 6rem) clamp(5rem, 10vw, 8rem);
    background-color: #112a46;
}

.service-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.service-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.service-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(17, 42, 70, 0.95) 0%, rgba(17, 42, 70, 0.7) 50%, rgba(17, 42, 70, 0) 100%);
}

.service-hero__inner {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
}

.service-hero__content {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: projHeroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.service-hero__title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    /* White text for contrast */
    letter-spacing: -0.02em;
    margin: 0;
}

.service-hero__desc {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--color-primary);
}

@keyframes projHeroReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .service-hero__overlay {
        background: linear-gradient(to right, rgba(17, 42, 70, 0.95) 0%, rgba(17, 42, 70, 0.85) 70%, rgba(17, 42, 70, 0.4) 100%);
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding-top: 8rem;
        padding-bottom: 4rem;
        min-height: 60vh;
    }

    .service-hero__overlay {
        background: rgba(17, 42, 70, 0.85);
        /* Solid dark overlay on mobile to ensure text readability */
    }
}



/* ============================================
   SHARED EYEBROW
============================================ */
.service-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

.service-eyebrow .dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ============================================
   SERVICE DETAIL (2-Column text + image)
============================================ */
.service-detail {
    background-color: #ffffff;
    padding: var(--section-padding-vertical) var(--section-padding-horizontal);
}

.service-detail__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;

}

.service-detail__text {
    display: flex;

    flex-direction: column;
    gap: 1.2rem;
    min-width: 0;
}

.service-detail__title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0;
    color: #112a46;
}

.service-detail__desc {
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    color: #4a5568;
    line-height: 1.75;
    margin: 0 0 1.5rem 0;
}

/* Cards inside detail section */
.service-detail__cards {
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.service-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.service-card__icon {
    color: var(--color-primary);
}

.service-card__icon--blue {
    color: #3b82f6;
    /* Ocean blue for marine grade */
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
}

.service-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-card__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #112a46;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}

.service-card__desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Detail media */
.service-detail__media {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
}

.service-detail__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Service Detail Responsive */
@media (max-width: 900px) {
    .service-detail__inner {
        grid-template-columns: 1fr;
    }

    .service-detail__media {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 768px) {
    .service-detail__cards {
        grid-template-columns: 1fr;
    }
}



/* ============================================
   SERVICE PERFORMANCE GRID
============================================ */
.service-perf {
    background-color: #f7f9fc;
    padding: var(--section-padding-vertical) var(--section-padding-horizontal);
}

.service-perf__inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Centered header with yellow accent underline */
.service-perf__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.service-perf__title {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #112a46;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.service-perf__title em {
    font-style: italic;
    font-weight: 700;
}

/* Yellow accent line below the title */
.service-perf__accent {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* ============================================
   GRID LAYOUT — mirrors reference exactly
   Top: [large-left 1.4fr] [right-stack 1fr]
   Bottom: [full-width]
============================================ */
.service-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: 1fr 1fr auto;
    gap: 1rem;
}

/* Base card styles */
.service-grid__item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.service-grid__item:hover {}

/* ── Large card: left column, rows 1–2 ── */
.service-grid__item--large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    background: #deeaf7;
    /* light blue as in reference */
    padding: 0;
    /* illustration is flush top */
    justify-content: flex-end;
    position: relative;
    min-height: 380px;
}

/* Blueprint illustration fills the top of the large card */
.service-grid__large-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 65%;
    object-fit: cover;
    object-position: center bottom;
    border-radius: 14px 14px 0 0;
}

/* Content sits at the bottom of the large card */
.service-grid__large-body {
    position: relative;
    z-index: 1;
    background: #deeaf7;
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-grid__large-icon {
    width: 36px;
    height: 36px;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

/* ── Small cards: right column, row 1 & 2 ── */
.service-grid__item--sm {
    grid-column: 2 / 3;
    flex-direction: row;
    /* icon left, content right */
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    padding: 1.5rem;
}

/* Icon badge for small cards */
.service-grid__sm-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-top: 2px;
}

.service-grid__sm-icon--yellow {
    color: var(--color-primary);
}

.service-grid__sm-icon--teal {
    color: #2c9faf;
}

.service-grid__sm-icon--green {
    color: #3aaa74;
}

.service-grid__sm-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* ── Full-width bottom card ── */
.service-grid__item--full {
    grid-column: 1 / -1;
    grid-row: 3;
    flex-direction: row;
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
    padding: 2rem 2.25rem;
    background: #fff;
}

.service-grid__full-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-grid__full-icon {
    width: 38px;
    height: 38px;
    color: #64748b;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.service-grid__full-img {
    width: clamp(180px, 28%, 340px);
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

/* ── Shared typography ── */
.service-grid__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #112a46;
    margin: 0;
}

.service-grid__title {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 700;
    color: #112a46;
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
}

.service-grid__desc {
    font-size: clamp(0.82rem, 1.1vw, 0.9rem);
    color: #4a5568;
    line-height: 1.72;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .service-grid__item--large {
        grid-column: 1;
        grid-row: auto;
        min-height: 320px;
    }

    .service-grid__item--sm {
        grid-column: 1;
    }

    .service-grid__item--full {
        grid-column: 1;
        flex-direction: column;
        align-items: flex-start;
    }

    .service-grid__full-img {
        width: 100%;
        max-height: 200px;
    }
}

@media (min-width: 600px) and (max-width: 900px) {
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-grid__item--large {
        grid-column: 1 / -1;
    }

    .service-grid__item--full {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
    }

    .service-grid__full-img {
        width: 40%;
    }
}


/* ============================================
   MODULE HERO SECTION
============================================ */
.module-hero {
    background: #f5efe4;
    padding: clamp(4rem, 8vw, 8rem) 0;
    overflow: hidden;
    position: relative;
}

.module-hero__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    padding: 0;
    gap: 3rem;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

/* Left Content */

.module-hero__content {}

.module-hero__title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0;
    margin-top: 2rem;
    color: #112a46;
}

.text-highlight {
    color: var(--color-primary);
}

.text-highlight--underlined {
    position: relative;
    display: inline-block;
}

.text-highlight--underlined::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 8px;
    background: var(--color-primary-light, #ffd166);
    border-radius: 4px;
    opacity: 0.5;
    z-index: -1;
    transform: rotate(-1deg);
}

.module-hero__desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 1.5rem 0;
}

.module-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.module-hero__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.8rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.module-hero__actions .btn--primary {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

.module-hero__actions .btn--primary:hover {
    background-color: var(--color-primary-dark, #e09a0f);
    transform: translateY(-2px);
}

.module-hero__actions .btn--outline {
    background-color: var(--color-primary);
    border: 3px solid #ffffff;
    color: var(--color-dark);
}

.module-hero__actions .btn--outline:hover {
    border-color: var(--color-dark);
    background-color: var(--color-light-2);
}

/* Right Visual */
.module-hero__visual {
    position: relative;
    width: 100%;
}

.module-hero__image-wrap {
    position: relative;
    width: 100%;
    animation: floatModule 6s ease-in-out infinite;
    z-index: 2;
}

.module-hero__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0px 20px 40px rgba(0, 0, 0, 0.1));
}

@keyframes floatModule {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}



/* Hotspots */
.hotspot {
    position: absolute;
    z-index: 10;
}

/* Hotspot Positions for Module Diagram */
.hotspot--1 {
    top: 30%;
    left: 50%;
}

/* Solar Panel */
.hotspot--2 {
    top: 50%;
    left: 35%;
}

/* Legs */
.hotspot--3 {
    top: 82%;
    left: 67%;
}

/* Float */

.hotspot__dot {
    width: 16px;
    height: 16px;
    background-color: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 0 4px rgba(252, 175, 23, 0.3);
    /* Ring effect */
    transition: transform 0.3s ease;
}

.hotspot__dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    animation: pulseDot 2s infinite;
    opacity: 0;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hotspot:hover .hotspot__dot {
    transform: scale(1.2);
}

.hotspot__tooltip {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%) translateX(20px);
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-left: 5px solid var(--color-primary);
    color: var(--color-dark);
    padding: 1.2rem;
    border-radius: 8px;
    width: max-content;
    max-width: 280px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hotspot:hover .hotspot__tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.hotspot__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--color-dark);
}

.hotspot__desc {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    color: #4a5568;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .module-hero__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .module-hero__content {
        max-width: 100%;
        text-align: center;
    }

    .module-hero__actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hotspot__tooltip {
        top: 30px;
        left: 50%;
        transform: translateX(-50%) translateY(10px) !important;
        text-align: center;
    }

    .hotspot:hover .hotspot__tooltip {
        transform: translateX(-50%) translateY(0) !important;
    }
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.video-modal__content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 8px;
    overflow: visible;
    /* to show close button */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.video-modal.is-open .video-modal__content {
    transform: scale(1);
}

.video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.video-modal__ratio {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    border-radius: 8px;
    overflow: hidden;
}

.video-modal__ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* ============================================
   BENEFITS SCROLL (Pinned Step Counter)
============================================ */
.benefits-scroll {
    background-color: #f5efe4;
    position: relative;
    overflow: hidden;
}

.benefits-scroll__pin {
    min-height: 100vh;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--container-pad);
}

/* ── Left Column: Circle + Asset ── */
.benefits-scroll__left {
    position: relative;
    flex-shrink: 0;
    width: clamp(320px, 34vw, 460px);
    aspect-ratio: 1;
}

.benefits-scroll__circle-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 100%;
    align-items: center;
    justify-content: center;
}

/* Dark filled disc behind the SVG ring */
.benefits-scroll__circle-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82%;
    height: 82%;
    border-radius: 50%;
}

.benefits-scroll__svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    position: relative;
    z-index: 1;
}

.benefits-scroll__track {
    fill: none;
    stroke: #cbd5e1;
    stroke-width: 8;
}

.benefits-scroll__progress {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 911;
    /* 2 * PI * 145 ≈ 911 */
    stroke-dashoffset: 911;
    transition: stroke-dashoffset 0.05s linear;
}

.benefits-scroll__number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-family: var(--font-primary);
    font-size: clamp(8rem, 15vw, 15rem);
    font-weight: var(--fw-medium);
    color: var(--color-primary);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* ── Asset (image at bottom-right of circle) ── */
.benefits-scroll__asset {
    position: absolute;
    bottom: -5%;
    right: -10%;
    width: 48%;
    aspect-ratio: 1;
    z-index: 3;
    pointer-events: none;
}

.benefits-scroll__asset-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.85) translateY(12px);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.benefits-scroll__asset-img.is-active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ── Right Column: Benefits List ── */
.benefits-scroll__right {
    flex: 1;
    min-width: 0;
    max-width: 520px;
}

.benefits-scroll__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.7rem 2.2rem;
    background: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-md);
    transition: background var(--ease-base), transform var(--ease-bounce), box-shadow var(--ease-base);
    margin-bottom: 20px;
    color: #fff;

}

.benefits-scroll__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-scroll__item {
    padding: clamp(1.2rem, 2.5vw, 2rem) 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.42);
    opacity: 0.80;
    transition: opacity 0.4s ease;
}

.benefits-scroll__item:last-child {
    border-bottom: none;
}

.benefits-scroll__item.is-active {
    opacity: 1;
}

.benefits-scroll__item.is-active .benefits-scroll__item-title {
    color: #112a46;
}

.benefits-scroll__item.is-active .benefits-scroll__item-desc {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.benefits-scroll__item-title {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: var(--fw-bold);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.25;
    transition: color 0.4s ease;
}

.benefits-scroll__item-desc {
    font-family: var(--font-primary);
    font-size: clamp(0.88rem, 1.3vw, 1rem);
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease,
        margin-top 0.4s ease;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .benefits-scroll__pin {
        flex-direction: column;
        gap: var(--space-2xl);
        min-height: auto;
        padding-top: var(--space-3xl);
        padding-bottom: var(--space-3xl);
        padding-left: var(--container-pad);
        padding-right: var(--container-pad);
    }

    .benefits-scroll__left {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .benefits-scroll__circle-wrap {
        display: none;
    }

    .benefits-scroll__asset {
        position: relative;
        bottom: auto;
        right: auto;
        width: clamp(200px, 50vw, 280px);
        aspect-ratio: 1;
    }

    .benefits-scroll__right {
        max-width: 100%;
    }
}

/* ============================================
   APPROACH & HOW IT WORKS SECTION
============================================ */
.approach-section {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(2rem, 4vw, 3rem);
    padding: clamp(3rem, 5vw, 4rem) clamp(2.5rem, 7vw, 6rem);
}

.approach-section__row {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    height: 35vh;
}

.approach-section__row--reverse {
    direction: rtl;
}

.approach-section__row--reverse>* {
    direction: ltr;
}

.approach-section__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    background: #f1f5f9;
}

.approach-section__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.approach-section__content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.approach-section__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.6rem 1.6rem;
    background-color: var(--color-primary);
    color: var(--color-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.approach-section__heading {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    color: #112a46;
    margin: 0;
    letter-spacing: -0.01em;
}

.approach-section__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.approach-section__item {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 600;
    color: #112a46;
    line-height: 1.6;
    padding-left: 2rem;
    position: relative;
}

.approach-section__item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1.3em;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {

    .approach-section__row,
    .approach-section__row--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .approach-section__row--reverse>* {
        direction: ltr;
    }

    .approach-section__media {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 768px) {
    .approach-section {
        padding: 4rem 1.5rem;
    }

    .approach-section__heading {
        font-size: 1.6rem;
    }

    .approach-section__item {
        font-size: 1rem;
    }
}

/* ============================================
   CAPABILITIES SECTION
============================================ */
.capabilities {
    background-color: var(--color-light-2);
    /* Matches a light gray or off-white background */
    padding: var(--section-padding-vertical) 0;
}

.capabilities__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: flex-start;
    padding: 0;
    /* Ensures left content stays at the top */
}

.capabilities__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.capabilities__content p {
    margin-bottom: 2.5rem;
}

.capabilities__badge {
    display: inline-block;
    background-color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: 700;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    color: var(--color-light);
}

.capabilities__list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.capabilities__item {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 600;
    color: var(--color-dark);
    padding: 1.5rem 0;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
}

.capabilities__item:first-child {
    padding-top: 0;
}

.capabilities__item:last-child {
    border-bottom: none;
}

.capabilities__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

.capabilities__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .capabilities__inner {
        grid-template-columns: 1fr;
    }

    .capabilities__media {
        min-height: 400px;
    }
}

/* ============================================
   TECHNICAL EXCELLENCE GRID
============================================ */
.tech-excellence {
    background-color: #f8f9fc;
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.tech-excellence__inner {
    max-width: var(--container-max);
    padding: 0;
}

.tech-excellence__title {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.7rem 2.2rem;
    background: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-md);
    transition: background var(--ease-base), transform var(--ease-bounce), box-shadow var(--ease-base);
    margin-bottom: 20px;
    color: #fff;
}

.tech-excellence__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: clamp(2rem, 6vw, 6rem);
    margin-bottom: 2.5rem;
}

.tech-excellence__heading {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--color-dark);
    flex-shrink: 0;
}

.tech-excellence__subtext {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    max-width: 360px;
    text-align: left;
}

@media (max-width: 768px) {
    .tech-excellence__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .tech-excellence__subtext {
        text-align: left;
        max-width: 100%;
    }
}

.tech-grid {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 1.25rem;
}

.tech-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.tech-card:hover {
    cursor: pointer;
}

.tech-card__bg-wrap {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-card:hover .tech-card__bg-wrap {
    opacity: 1;
}

.tech-card__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tech-card:hover .tech-card__bg-img {
    transform: scale(1.05);
}

.tech-card__overlay {
    display: none;
}

.tech-card__content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transition: opacity 0.3s ease;
}

.tech-card:hover .tech-card__content {
    opacity: 0;
}

.tech-card__icon {
    margin-bottom: auto;
}

.tech-card__title {
    color: #111f32;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.tech-card__desc {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* Card 1: Advanced Anchoring */
.tech-card--anchoring {
    grid-column: 1 / span 2;
    grid-row: 1;
    color: #fff;
    min-height: 280px;
    background-color: #111f32;
}


.tech-card--anchoring .tech-card__title {
    color: #fff;

    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.tech-card--anchoring .tech-card__desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Card 2: Zero Contamination */
.tech-card--zero {
    grid-column: 3;
    grid-row: 1 / span 2;
    background-color: var(--color-primary);
    color: var(--color-dark);
}

.tech-card--zero .tech-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-card--zero .tech-card__icon svg {
    width: 24px;
    height: 24px;
}

.tech-card--zero .tech-card__title {
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
}

.tech-card--zero .tech-card__desc {
    color: rgba(0, 0, 0, 0.75);
}

/* Card 3: +25% */
.tech-card--efficiency {
    grid-column: 1;
    grid-row: 2;
    background-color: #ffffff;
    color: var(--color-dark);
}

.tech-card--efficiency .tech-card__title {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
}

.tech-card--efficiency .tech-card__desc {
    color: var(--color-dark-2);
}

/* Card 4: Live Monitoring */
.tech-card--monitoring {
    grid-column: 2;
    grid-row: 2;
    background-color: #deeaf7;
    color: var(--color-dark);
}

.tech-card--monitoring .tech-card__icon {
    width: 40px;
    height: 40px;
}

.tech-card--monitoring .tech-card__title {
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
}

.tech-card--monitoring .tech-card__desc {
    color: var(--color-dark-2);
}

/* Responsive grid */
@media (max-width: 900px) {
    .tech-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tech-card--zero {
        grid-column: 1 / span 2;
        grid-row: 3;
        min-height: 220px;
    }
}

@media (max-width: 600px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-card--anchoring {
        grid-column: 1;
    }

    .tech-card--zero {
        grid-column: 1;
        grid-row: auto;
    }

    .tech-card--efficiency {
        grid-column: 1;
        grid-row: auto;
    }

    .tech-card--monitoring {
        grid-column: 1;
        grid-row: auto;
    }
}

/* ============================================
   PROJECT HIGHLIGHTS — 3-COLUMN LAYOUT
============================================ */
.project-highlights {
    background-color: #f5efe4;
    padding: var(--section-padding-vertical) var(--section-padding-horizontal);
}

.project-highlights__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: clamp(1rem, 2vw, 2rem);
    align-items: stretch;
    min-height: 400px;
}

/* ── Col 1: Left ── */
.project-highlights__left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-highlights__left-top {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-highlights__title {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--color-dark);
}

.project-highlights__desc {
    font-size: clamp(0.875rem, 1.2vw, 0.95rem);
    color: #555;
    line-height: 1.7;
    margin: 0;
    max-width: 280px;
}

.project-highlights__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.85rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--ease-fast), transform var(--ease-fast);
    text-decoration: none;
}

.project-highlights__btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.project-highlights__nav {
    display: flex;
    gap: 1rem;
}

/* both buttons base */
.project-highlights__btn-nav {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition:
        background-color var(--ease-base),
        border-color var(--ease-base),
        color var(--ease-base),
        transform var(--ease-base),
        box-shadow var(--ease-base);
}

/* prev — filled yellow (active) */
.project-highlights__btn-prev {
    background-color: var(--color-primary);
    color: var(--color-dark);
    border-color: var(--color-primary);
}

/* next — outlined / ghost (secondary) */
.project-highlights__btn-next {
    background-color: transparent;
    color: #555;
    border-color: rgba(0, 0, 0, 0.22);
}

/* hover — prev */
.project-highlights__btn-prev:hover:not(:disabled) {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: 0 4px 14px rgba(252, 175, 23, 0.4);
    transform: translateX(-2px);
}

/* hover — next */
.project-highlights__btn-next:hover:not(:disabled) {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-dark);
    box-shadow: 0 4px 14px rgba(252, 175, 23, 0.4);
    transform: translateX(2px);
}

/* disabled — both */
.project-highlights__btn-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ── Col 2: Image ── */
.project-highlights__image-wrap {
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: #ddd;
    max-height: 400px;
}

.project-highlights__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

/* ── Col 3: Details ── */
.project-highlights__details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.25rem;
    padding-left: clamp(1rem, 2vw, 2rem);
}

.project-highlights__project-name {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 800;
    color: var(--color-dark);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.project-highlights__detail-row {
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    color: #333;
    margin: 0;
    line-height: 1.6;
}

.project-highlights__detail-row strong {
    font-weight: 600;
    color: var(--color-dark);
}

/* ── Fade animation on content change ── */
.project-highlights__image-wrap.is-transitioning .project-highlights__img,
.project-highlights__details.is-transitioning {
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .project-highlights__inner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .project-highlights__left {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .project-highlights__image-wrap {
        min-height: 380px;
    }

    .project-highlights__details {
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .project-highlights__inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .project-highlights__left {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .project-highlights__image-wrap {
        min-height: 280px;
    }
}

/* ============================================
   GLOBAL RESPONSIVE POLISH (Mobile Tweaks)
============================================ */
@media (max-width: 768px) {
    .tech-card__content {
        padding: 1.5rem;
    }

    .tech-card--anchoring {
        min-height: 240px;
    }

    .capabilities__media {
        min-height: 300px;
    }

    .benefits-scroll__badge,
    .tech-excellence__title {
        font-size: 0.75rem;
        padding: 0.6rem 1.5rem;
    }

    .module-hero {
        padding: 4rem 0 3rem 0;
    }

    .module-hero__title {
        font-size: 2.2rem;
    }

    .module-hero__desc {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .service-detail__title {
        font-size: 1.8rem;
    }

    .service-detail {
        padding: 4rem 1.5rem;
    }

    .capabilities {
        padding: 4rem 1.5rem;
    }

    .tech-excellence {
        padding: 4rem 1.5rem;
    }
}

/* ============================================
   RESPONSIVE PADDING CONSISTENCY
============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding-vertical: clamp(3.5rem, 6vw, 5rem);
    }
}

@media (max-width: 600px) {
    :root {
        --section-padding-vertical: clamp(3rem, 5vw, 4rem);
        --section-padding-horizontal: clamp(1.25rem, 4vw, 2rem);
    }
}


