/* ==========================================================================
   LOHABOUR — PRODUCTS PAGE
   Products.php only
   Requires: base.css

   FIXED: every card/grid selector below has been renamed to the
   `prod-` prefix that Products.php actually renders (matching the
   pattern Manufacturing.css already uses with its `man-` prefix).
   The previous version of this file used unrelated class names
   (.sector-card, .timeline, .material-gallery, .app-grid, .stat-row,
   .collection-grid) left over from an earlier markup — none of them
   matched the current PHP, so the whole page below the hero rendered
   completely unstyled. Section 06 also had a leftover rule block
   targeting `.hero__media`/`.hero__gradient` inside
   `.section--manufacturing`; the PHP for that section was already
   updated to use `.prod-media`/`.prod-gradient` (which is styled
   generically at the top of this file), so that dead block has been
   removed.
   ========================================================================== */


/* =========================================================
   PRODUCTS HERO
   Same structure as Manufacturing hero
   ========================================================= */


/* ---------------- Shared full-bleed media ---------------- */

.prod-media {
    position: absolute;

    top: -40px;
    right: 0;
    bottom: -40px;
    left: 0;

    inset: 0;

    z-index: 0;

    overflow: hidden;

    isolation: isolate;
}


.prod-media img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* ---------------- Gradient ---------------- */

.prod-gradient {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(90deg,
            rgba(10, 10, 9, 0.82) 0%,
            rgba(10, 10, 9, 0.64) 42%,
            rgba(10, 10, 9, 0.30) 75%,
            rgba(10, 10, 9, 0.24) 100%),

        linear-gradient(180deg,
            rgba(10, 10, 9, 0.30) 0%,
            rgba(10, 10, 9, 0.24) 45%,
            rgba(10, 10, 9, 0.94) 100%);
}


/* ---------------- Hero ---------------- */

.prod-hero {

    position: relative;

    min-height: 82vh;

    display: flex;

    align-items: flex-end;

    padding-bottom: 8vh;

    overflow: hidden;

    background: var(--bg-secondary);
}


/* ---------------- Hero content ---------------- */

.prod-hero__inner {

    position: relative;

    z-index: 2;

    padding: 0 var(--gutter);

    max-width: var(--container);

    margin: 0 auto;

    width: 100%;
}


/* ---------------- Animation ---------------- */

@keyframes prodFadeUp {

    from {
        opacity: 0;

        transform:
            translate3d(0, 28px, 0);
    }

    to {
        opacity: 1;

        transform:
            translate3d(0, 0, 0);
    }
}


.prod-fade {

    animation:
        prodFadeUp 1s var(--ease-soft) var(--d, 0s) both;
}


/* ---------------- Kicker ---------------- */

.prod-hero__kicker {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;

    font-size: 11px;

    color:
        rgba(241, 239, 232, 0.82);

    text-shadow:
        0 1px 12px rgba(0, 0, 0, 0.45);
}


.prod-hero__kicker::before {

    content: '';

    width: 28px;

    height: 1px;

    flex: 0 0 auto;

    background: var(--accent);
}


/* ---------------- Headline ---------------- */

.prod-hero__headline {

    max-width: 920px;

    margin: 0;

    font-family: var(--font-display);

    font-weight: 300;

    font-size:
        clamp(44px, 6.2vw, 84px);

    line-height: 0.98;

    letter-spacing: -0.035em;

    text-wrap: balance;

    text-shadow:
        0 2px 24px rgba(0, 0, 0, 0.35);
}


/* ---------------- Description ---------------- */

.prod-hero__sub {

    max-width: 600px;

    margin-top: 24px;

    font-size: 17px;

    line-height: 1.6;

    color:
        rgba(241, 239, 232, 0.78);

    text-shadow:
        0 1px 14px rgba(0, 0, 0, 0.35);
}


/* ---------------- Tags ---------------- */

.prod-hero__tags {

    margin-top: 20px;

    margin-bottom: 0;
}


/* =========================================================
   MOBILE
   Same behavior as Manufacturing
   ========================================================= */

@media (max-width: 740px) {

    .prod-hero {

        min-height: 90svh;

        align-items: center;

        padding:
            70px 0 42px;
    }


    .prod-hero__headline {

        font-size:
            clamp(38px, 11vw, 54px);

        letter-spacing: -0.04em;
    }


    .prod-hero__sub {

        font-size: 15px;

        margin-top: 20px;
    }


    .prod-hero__tags {

        margin-top: 20px;
    }

}

/* =========================================================
   SHORT DESKTOP / LAPTOP SCREENS
   Keep typography unchanged — allow hero to grow and scroll.
   Example: 1200 × 650
   ========================================================= */

@media (min-width: 741px) and (max-height: 750px) {

    .prod-hero {
        min-height: 700px;
        height: auto;

        padding-top: 100px;
        padding-bottom: 60px;

        overflow: visible;
    }
}


/* ==========================================================================
   02. PRODUCT FAMILY GRID
   Renamed from .sector-* to .prod-family-* to match Products.php
   ========================================================================== */

.prod-family-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
}

.prod-family-card {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #11110f;
    isolation: isolate;
}

.prod-family-card__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.prod-family-card__media img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: center;

    transform: scale(1.015);

    filter:
        saturate(0.88) brightness(0.82);

    transition:
        transform 0.9s var(--ease-soft),
        filter 0.9s var(--ease-soft);
}

.prod-family-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(180deg,
            rgba(10, 10, 9, 0.02) 25%,
            rgba(10, 10, 9, 0.28) 50%,
            rgba(10, 10, 9, 0.92) 100%);

    transition:
        background 0.5s var(--ease);
}

.prod-family-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;

    padding: 28px;

    display: grid;
    grid-template-rows: auto 50px 48px auto;
    align-items: start;
}

.prod-family-card__ref {
    display: block;
    margin: 0 0 12px;

    color: rgba(241, 239, 232, 0.58);
}

.prod-family-card__body h3 {
    margin: 0;

    color: var(--text);

    font-size: 22px;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.prod-family-card__items {
    margin: 0;

    max-width: 32ch;

    color: rgba(241, 239, 232, 0.66);

    font-size: 13px;
    line-height: 1.65;
}

.prod-family-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--accent);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.prod-family-card__arrow {
    flex: 0 0 auto;

    transition:
        transform 0.35s var(--ease);
}


/* Hover */

.prod-family-card:hover .prod-family-card__media img {
    transform: scale(1.075);

    filter:
        saturate(0.98) brightness(0.72);
}

.prod-family-card:hover .prod-family-card__overlay {
    background:
        linear-gradient(180deg,
            rgba(10, 10, 9, 0.05) 20%,
            rgba(10, 10, 9, 0.32) 48%,
            rgba(10, 10, 9, 0.95) 100%);
}

.prod-family-card:hover .prod-family-card__arrow {
    transform: translateX(5px);
}


/* Tablet */

@media (max-width: 1000px) {

    .prod-family-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Mobile */

@media (max-width: 620px) {

    .prod-family-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 36px;
    }

    .prod-family-card {
        aspect-ratio: 4.8 / 4;
    }

    .prod-family-card__body {
        padding: 22px;
    }

    .prod-family-card__body h3 {
        font-size: 21px;
    }
}


/* ==========================================================================
   03. TIMELINE / BEYOND CATALOG
   Renamed from .timeline* to .prod-timeline* to match Products.php
   ========================================================================== */

.prod-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 0;

    margin: 48px 0 20px;
    padding: 0;

    list-style: none;

    border-top: 1px solid var(--border);
}

.prod-timeline__step {
    min-width: 0;

    padding: 30px 28px 10px 0;

    border-right: 1px solid var(--border);

    transition:
        transform 0.4s var(--ease);
}

.prod-timeline__step:not(:first-child) {
    padding-left: 24px;
}

.prod-timeline__step:last-child {
    border-right: none;
}

.prod-timeline__step:hover {
    transform: translateY(-4px);
}

.prod-timeline__num {
    display: block;

    margin-bottom: 20px;

    color: var(--accent);

    font-size: 10px;
    letter-spacing: 0.16em;
}

.prod-timeline__step h3 {
    margin: 0 0 10px;

    font-size: 19px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -0.015em;
}

.prod-timeline__step p {
    max-width: 25ch;

    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
}


@media (max-width: 900px) {

    .prod-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prod-timeline__step:nth-child(2) {
        border-right: none;
    }

    .prod-timeline__step:nth-child(n + 3) {
        border-top: 1px solid var(--border);
        padding-top: 26px;
    }
}


@media (max-width: 600px) {

    .prod-timeline {
        grid-template-columns: 1fr;
    }

    .prod-timeline__step,
    .prod-timeline__step:not(:first-child) {
        padding: 24px 0;

        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .prod-timeline__step:first-child {
        padding-top: 24px;
    }

    .prod-timeline__step:nth-child(n + 3) {
        border-top: none;
    }

    .prod-timeline__step:last-child {
        border-bottom: none;
    }
}


/* ==========================================================================
   04. MATERIALS GALLERY
   Renamed from .material-gallery* to .prod-material-gallery* to match
   Products.php
   ========================================================================== */

.prod-material-gallery {
    display: grid;

    grid-template-columns: 1.65fr 1fr 1fr;
    grid-template-rows: 260px 260px;

    gap: 12px;

    margin: 48px 0 24px;
}

.prod-material-gallery__item {
    position: relative;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    background: #11110f;
}

.prod-material-gallery__item:first-child {
    grid-row: 1 / 3;
}

.prod-material-gallery__item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    filter: saturate(0.88);

    transform: scale(1);

    transition:
        transform 0.8s var(--ease-soft),
        filter 0.8s var(--ease);
}

.prod-material-gallery__item:hover img {
    transform: scale(1.045);
    filter: saturate(1);
}

.prod-material-gallery__item::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(180deg,
            transparent 42%,
            rgba(10, 10, 9, 0.78) 100%);
}

.prod-material-gallery__label {
    position: absolute;

    left: 18px;
    bottom: 16px;

    z-index: 2;

    margin: 0;

    color: var(--text);

    font-size: 10px;
    letter-spacing: 0.14em;
}


@media (max-width: 900px) {

    .prod-material-gallery {
        grid-template-columns: 1.4fr 1fr;
        grid-template-rows: 260px 260px;
    }

    .prod-material-gallery__item:first-child {
        grid-row: 1 / 3;
    }
}


@media (max-width: 600px) {

    .prod-material-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 280px 180px;

        gap: 8px;

        margin-top: 36px;
    }

    .prod-material-gallery__item:first-child {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .prod-material-gallery__label {
        left: 14px;
        bottom: 13px;
        font-size: 9px;
    }
}


/* ==========================================================================
   05. PROJECT APPLICATIONS
   Renamed from .app-grid/.app-card* to .prod-app-grid/.prod-app-card* to
   match Products.php
   ========================================================================== */

.prod-app-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 0;

    margin: 48px 0 20px;

    border-top: 1px solid var(--border);
}

.prod-app-card {
    min-width: 0;

    padding: 30px 24px 28px 0;

    border-right: 1px solid var(--border);

    transition:
        transform 0.4s var(--ease);
}

.prod-app-card:not(:first-child) {
    padding-left: 24px;
}

.prod-app-card:last-child {
    border-right: none;
}

.prod-app-card:hover {
    transform: translateY(-4px);
}

.prod-app-card__ref {
    display: block;

    margin-bottom: 18px;

    color: var(--accent);
}

.prod-app-card h3 {
    margin: 0 0 10px;

    font-size: 19px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -0.015em;
}

.prod-app-card p {
    max-width: 26ch;

    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
}


@media (max-width: 900px) {

    .prod-app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prod-app-card:nth-child(2) {
        border-right: none;
    }

    .prod-app-card:nth-child(n + 3) {
        border-top: 1px solid var(--border);
    }
}


@media (max-width: 600px) {

    .prod-app-grid {
        grid-template-columns: 1fr;
    }

    .prod-app-card,
    .prod-app-card:not(:first-child) {
        padding: 24px 0;

        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .prod-app-card:nth-child(n + 3) {
        border-top: none;
    }

    .prod-app-card:last-child {
        border-bottom: none;
    }
}

/* ========================================================================== 
   06. FROM PRODUCT TO PRODUCTION
   ========================================================================== */

.section--manufacturing {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    padding: 120px 0;

    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px),
        #171513;

    background-size: 72px 72px;
}

/* Soft central glow */
.section--manufacturing::before {
    content: "";
    position: absolute;

    width: 700px;
    height: 700px;

    top: -300px;
    right: -180px;

    background: radial-gradient(circle,
            rgba(180, 145, 100, 0.10),
            transparent 68%);

    pointer-events: none;
    z-index: -1;
}

/* Bottom fade */
.section--manufacturing::after {
    content: "";

    position: absolute;
    inset: auto 0 0;

    height: 180px;

    background: linear-gradient(to bottom,
            transparent,
            rgba(0, 0, 0, 0.18));

    pointer-events: none;
    z-index: -1;
}


/* --------------------------------------------------------------------------
   CONTAINER
   -------------------------------------------------------------------------- */

.section--manufacturing .container {
    position: relative;
    z-index: 2;

    width: min(100% - 48px, 1280px);
    margin-inline: auto;
}


/* --------------------------------------------------------------------------
   INTRO
   -------------------------------------------------------------------------- */

.prod-mfg-head {
    max-width: 850px;
}

.prod-mfg-head .mono-label {
    margin: 0;
}

.section--manufacturing .display {
    max-width: 820px;

    margin: 18px 0 26px;

    line-height: 0.98;
    letter-spacing: -0.025em;
}

.section--manufacturing .lede {
    max-width: 680px;

    margin: 0;

    line-height: 1.7;

    opacity: 0.82;
}


/* --------------------------------------------------------------------------
   STATS
   -------------------------------------------------------------------------- */

.section--manufacturing .prod-stat-row {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 72px;

    border-top: 1px solid rgba(255, 255, 255, 0.20);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.section--manufacturing .prod-stat {
    position: relative;

    min-height: 180px;

    padding: 30px 36px 32px;

    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.section--manufacturing .prod-stat:first-child {
    padding-left: 0;
}

.section--manufacturing .prod-stat:last-child {
    border-right: 0;
}


/* --------------------------------------------------------------------------
   NUMBER
   -------------------------------------------------------------------------- */

.prod-stat__number {
    display: block;

    margin-bottom: 34px;

    font-family: var(--font-mono, monospace);

    font-size: 11px;
    letter-spacing: 0.16em;

    opacity: 0.45;
}


/* --------------------------------------------------------------------------
   VALUE
   -------------------------------------------------------------------------- */

.section--manufacturing .prod-stat__value {
    margin: 0 0 10px;

    font-size: 22px;
    line-height: 1.15;

    font-weight: 500;

    letter-spacing: -0.015em;
}


/* --------------------------------------------------------------------------
   LABEL
   -------------------------------------------------------------------------- */

.section--manufacturing .prod-stat__label {
    max-width: 250px;

    line-height: 1.5;

    opacity: 0.58;
}


/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.section--manufacturing .btn {
    margin-top: 42px;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 900px) {

    .section--manufacturing {
        padding: 96px 0;
    }

    .section--manufacturing .container {
        width: min(100% - 48px, 760px);
    }

    .section--manufacturing .prod-stat {
        padding-left: 24px;
        padding-right: 24px;
    }

    .section--manufacturing .prod-stat:first-child {
        padding-left: 0;
    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 680px) {

    .section--manufacturing {
        padding: 78px 0 72px;

        background-size: 48px 48px;
    }

    .section--manufacturing .container {
        width: calc(100% - 40px);
    }

    .section--manufacturing .display {
        margin-top: 16px;
        margin-bottom: 20px;

        line-height: 1.02;
    }

    .section--manufacturing .lede {
        line-height: 1.65;
    }


    /* Vertical statistics */

    .section--manufacturing .prod-stat-row {
        grid-template-columns: 1fr;

        margin-top: 48px;
    }

    .section--manufacturing .prod-stat,
    .section--manufacturing .prod-stat:first-child,
    .section--manufacturing .prod-stat:last-child {
        min-height: auto;

        padding: 24px 0;

        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .section--manufacturing .prod-stat:last-child {
        border-bottom: 0;
    }


    .prod-stat__number {
        margin-bottom: 18px;
    }


    .section--manufacturing .prod-stat__value {
        font-size: 20px;
    }


    .section--manufacturing .prod-stat__label {
        max-width: 100%;
    }


    .section--manufacturing .btn {
        margin-top: 34px;
    }
}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 420px) {

    .section--manufacturing {
        padding: 68px 0 64px;
    }

    .section--manufacturing .container {
        width: calc(100% - 32px);
    }

}


/* ==========================================================================
   09. FINAL CTA

   Kept as .hero__media / .hero__gradient on purpose — Products.php's
   final CTA banner deliberately reuses the same bare classes every
   page's closing CTA uses site-wide (see the comment in Products.php),
   so it gets identical styling/behavior (including main.js's zoom and
   parallax, which only targets .hero__media) to every other page's
   closing banner.
   ========================================================================== */

.cta-banner {
    position: relative;

    padding: 150px 0;

    text-align: center;

    overflow: hidden;

    isolation: isolate;
}

.cta-banner .hero__media {
    position: absolute;
    inset: 0;

    z-index: -2;
}

.cta-banner .hero__media img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center bottom;
}

.cta-banner .hero__gradient {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(180deg,
            rgba(10, 10, 9, 0.48) 0%,
            rgba(10, 10, 9, 0.82) 100%);
}

.cta-banner .hero__gradient--strong {
    background:
        linear-gradient(180deg,
            rgba(10, 10, 9, 0.58) 0%,
            rgba(10, 10, 9, 0.92) 100%);
}

.cta-banner .container {
    position: relative;
    z-index: 2;

    max-width: 900px;
}

.cta-banner .display {
    margin: 16px auto 20px;

    max-width: 800px;
}

.cta-banner .lede {
    max-width: 620px;

    margin: 0 auto 32px;
}

.cta-banner__ctas {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 12px;

    margin-bottom: 28px;

    flex-wrap: wrap;
}

.cta-banner .mono-label {
    justify-content: center;
}


@media (max-width: 600px) {

    .cta-banner {
        padding: 110px 0;
    }

    .cta-banner__ctas {
        flex-direction: column;

        width: 100%;
    }

    .cta-banner__ctas .btn {
        width: 100%;
        max-width: 320px;
    }
}


/* ==========================================================================
   10. BUTTON SPACING
   ========================================================================== */

/*
   Keeps the CTA buttons visually separated from the content above.
   These rules don't redefine the global button design from base.css.
*/

#beyond-catalog .btn,
#materials-strip .btn,
#applications .btn {
    margin-top: 28px;
}


/* ==========================================================================
   11. MOBILE SECTION SPACING
   ========================================================================== */

@media (max-width: 740px) {

    #families .section-head,
    #beyond-catalog .section-head,
    #materials-strip .section-head,
    #applications .section-head,
    #collection-grid .section-head {
        margin-bottom: 0;
    }

}