/* =========================================================
   FIBRE DOORS PAGE
========================================================= */

:root {
    --fibre-black: #090b0d;
    --fibre-dark: #101316;
    --fibre-panel: #15191c;
    --fibre-white: #f4f4f2;
    --fibre-text: #aeb2b5;
    --fibre-red: #ed2029;
    --fibre-border: rgba(255,255,255,.12);
}


/* =========================================================
   GLOBAL
========================================================= */

.fibre-page {
    background: var(--fibre-black);
    color: var(--fibre-white);
    overflow: hidden;
}

.fibre-page img {
    width: 100%;
    display: block;
}


/* =========================================================
   HERO
========================================================= */

.fibre-hero {
    min-height: 850px;
    position: relative;

    display: grid;
    grid-template-columns: 46% 54%;

    background: #090b0d;
    overflow: hidden;
}


/* subtle grid */

.fibre-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    pointer-events: none;
}


/* red vertical accent */

.fibre-hero::after {
    content: "";
    position: absolute;

    width: 1px;
    height: 70%;

    right: 54%;
    top: 15%;

    background: linear-gradient(
        transparent,
        var(--fibre-red),
        transparent
    );

    opacity: .7;
}


/* number */

.fibre-hero-number {
    position: absolute;

    top: 150px;
    left: 7%;

    color: var(--fibre-red);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;

    z-index: 3;
}


/* content */

.fibre-hero-content {
    position: relative;
    z-index: 2;

    align-self: center;

    padding: 100px 5vw 80px 8vw;
}


.fibre-eyebrow {
    margin-bottom: 30px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;

    color: #888d91;
}


.fibre-hero h1 {
    margin: 0;

    font-size: clamp(70px, 8vw, 145px);
    line-height: .82;

    letter-spacing: -5px;
    font-weight: 900;
}


.fibre-hero h1 span {
    color: var(--fibre-red);
}


.fibre-hero-intro {
    max-width: 510px;

    margin-top: 50px;

    color: #c5c7c9;

    font-size: 18px;
    line-height: 1.7;
}


.fibre-hero-bottom {
    display: flex;
    gap: 50px;

    margin-top: 70px;

    color: #777c80;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}


.fibre-hero-image {
    position: relative;
    min-height: 850px;

    overflow: hidden;
}


.fibre-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(9,11,13,.25),
            transparent 40%
        ),
        linear-gradient(
            0deg,
            rgba(9,11,13,.6),
            transparent 50%
        );
}


.fibre-hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}


.fibre-hero:hover .fibre-hero-image img {
    transform: scale(1.035);
}


.fibre-image-label {
    position: absolute;

    left: 35px;
    bottom: 35px;

    padding: 14px 20px;

    background: var(--fibre-red);

    color: #fff;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;

    z-index: 3;
}


/* =========================================================
   INTRO
========================================================= */

.fibre-intro {
    padding: 150px 7vw;

    background: var(--fibre-dark);
}


.fibre-intro-top {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 100px;
}


.section-index {
    color: var(--fibre-red);

    font-size: 13px;
    font-weight: 800;
}


.section-name {
    color: #74797d;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}


.section-line {
    width: 90px;
    height: 1px;

    background: var(--fibre-red);
}


.fibre-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 100px;

    max-width: 1300px;
    margin: auto;
}


.fibre-intro-title small {
    color: #777d81;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}


.fibre-intro-title h2 {
    margin: 25px 0 0;

    font-size: clamp(55px, 6vw, 100px);
    line-height: .88;

    letter-spacing: -3px;
}


.fibre-intro-title h2 em {
    color: var(--fibre-red);
    font-style: normal;
}


.fibre-intro-text {
    padding-top: 40px;
}


.fibre-intro-text p {
    margin: 0 0 30px;

    color: #aeb2b5;

    font-size: 17px;
    line-height: 1.9;
}


/* =========================================================
   FEATURE
========================================================= */

.fibre-feature {
    display: grid;

    grid-template-columns: 58% 42%;

    padding: 0px 7vw;

    background: #0d1012;
}


.fibre-feature-image {
    position: relative;
    overflow: hidden;
}


.fibre-feature-image.large {
    height: 700px;
}


.fibre-feature-image.small {
    height: 340px;
}


.fibre-feature-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .9s cubic-bezier(.16,1,.3,1);
}


.fibre-feature-image:hover img {
    transform: scale(1.06);
}


.fibre-feature-image span {
    position: absolute;

    top: 20px;
    right: 20px;

    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    background: var(--fibre-red);

    color: white;

    font-size: 12px;
    font-weight: 800;
}


.fibre-feature-side {
    display: flex;
    flex-direction: column;

    padding-left: 25px;
}


.fibre-feature-copy {
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 70px;
}


.fibre-feature-copy small {
    color: var(--fibre-red);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}


.fibre-feature-copy h3 {
    margin: 25px 0;

    font-size: 48px;
    line-height: .95;
}


.fibre-feature-copy h3 strong {
    color: var(--fibre-red);
}


.fibre-feature-copy p {
    max-width: 450px;

    color: #9da2a6;

    line-height: 1.8;
}


/* =========================================================
   APPLICATIONS
========================================================= */

.fibre-applications {
    padding: 150px 7vw;

    background: var(--fibre-black);
}


.fibre-app-header {
    display: grid;
    grid-template-columns: 25% 75%;

    margin-bottom: 80px;
}


.fibre-app-header > div {
    display: flex;
    gap: 20px;
}


.fibre-app-header span {
    color: var(--fibre-red);
    font-weight: 800;
}


.fibre-app-header small {
    color: #777c80;

    font-size: 10px;
    letter-spacing: 3px;
}


.fibre-app-header h2 {
    margin: 0;

    font-size: clamp(50px, 6vw, 95px);
    line-height: .9;
}


.fibre-app-header h2 em {
    color: var(--fibre-red);
    font-style: normal;
}


.fibre-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


.fibre-app-card {
    position: relative;

    height: 560px;

    overflow: hidden;

    background: #111;
}


.fibre-app-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .8s cubic-bezier(.16,1,.3,1),
        filter .5s ease;
}


.fibre-app-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        transparent 35%,
        rgba(0,0,0,.85)
    );
}


.fibre-app-card:hover img {
    transform: scale(1.07);
    filter: brightness(.8);
}


.fibre-app-overlay {
    position: absolute;

    left: 30px;
    right: 30px;
    bottom: 30px;

    z-index: 2;
}


.fibre-app-overlay span {
    color: var(--fibre-red);

    font-size: 12px;
    font-weight: 800;
}


.fibre-app-overlay h3 {
    margin: 10px 0 0;

    font-size: 30px;
    letter-spacing: 1px;
}


/* =========================================================
   BENEFITS
========================================================= */

.fibre-benefits {
    padding: 150px 7vw;

    background: var(--fibre-panel);
}


.fibre-benefits-heading {
    display: grid;
    grid-template-columns: 30% 70%;

    margin-bottom: 100px;
}


.fibre-benefits-heading span {
    color: #777c80;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}


.fibre-benefits-heading h2 {
    margin: 0;

    font-size: clamp(50px, 6vw, 90px);
    line-height: .9;
}


.fibre-benefits-heading h2 em {
    color: var(--fibre-red);
    font-style: normal;
}


.fibre-benefits-list {
    border-top: 1px solid var(--fibre-border);
}


.fibre-benefit {
    display: grid;
    grid-template-columns: 100px 1fr;

    gap: 50px;

    padding: 40px 0;

    border-bottom: 1px solid var(--fibre-border);

    transition: padding-left .35s ease;
}


.fibre-benefit:hover {
    padding-left: 20px;
}


.fibre-benefit > span {
    color: var(--fibre-red);

    font-size: 12px;
    font-weight: 800;
}


.fibre-benefit h3 {
    margin: 0 0 12px;

    font-size: 24px;
}


.fibre-benefit p {
    max-width: 650px;

    margin: 0;

    color: #91979b;

    line-height: 1.7;
}


/* =========================================================
   GALLERY
========================================================= */

.fibre-gallery {
    padding: 150px 7vw;

    background: #090b0d;
}


.fibre-gallery-heading {
    display: grid;

    grid-template-columns: 20% 45% 35%;

    align-items: end;

    margin-bottom: 90px;
}


.fibre-gallery-heading > div {
    display: flex;
    gap: 15px;
}


.fibre-gallery-heading span {
    color: var(--fibre-red);
    font-weight: 800;
}


.fibre-gallery-heading small {
    color: #73787c;

    font-size: 10px;
    letter-spacing: 3px;
}


.fibre-gallery-heading h2 {
    margin: 0;

    font-size: clamp(50px, 5vw, 80px);
    line-height: .9;
}


.fibre-gallery-heading h2 em {
    color: var(--fibre-red);
    font-style: normal;
}


.fibre-gallery-heading p {
    margin: 0;

    color: #858b8f;

    line-height: 1.7;
}


.fibre-gallery-grid {
    display: grid;

    grid-template-columns: 1.15fr .85fr .85fr;

    grid-auto-rows: 300px;

    gap: 15px;
}


.gallery-item {
    position: relative;

    overflow: hidden;

    background: #111;
}


.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .9s cubic-bezier(.16,1,.3,1),
        filter .5s ease;
}


.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(.75);
}


.gallery-item span {
    position: absolute;

    left: 20px;
    bottom: 20px;

    color: #fff;

    font-size: 11px;
    font-weight: 800;

    z-index: 2;
}


.gallery-tall {
    grid-row: span 2;
}


.gallery-wide {
    grid-column: span 2;
}


/* =========================================================
   PROCESS
========================================================= */

.fibre-process {
    padding: 150px 7vw;

    background: #111518;
}


.fibre-process-heading {
    display: grid;
    grid-template-columns: 30% 70%;

    margin-bottom: 100px;
}


.fibre-process-heading span {
    color: #73797d;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}


.fibre-process-heading h2 {
    margin: 0;

    font-size: clamp(50px, 6vw, 90px);
    line-height: .9;
}


.fibre-process-heading h2 em {
    color: var(--fibre-red);
    font-style: normal;
}


.fibre-process-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--fibre-border);
}


.process-step {
    min-height: 300px;

    padding: 35px 30px;

    border-right: 1px solid var(--fibre-border);
}


.process-step:last-child {
    border-right: 0;
}


.process-step strong {
    color: var(--fibre-red);

    font-size: 13px;
}


.process-step h3 {
    margin: 70px 0 15px;

    font-size: 24px;
}


.process-step p {
    color: #858b8f;

    line-height: 1.7;
}


/* =========================================================
   CTA
========================================================= */

.fibre-cta {
    min-height: 560px;

    display: grid;
    grid-template-columns: 55% 45%;

    background: var(--fibre-red);
}


.fibre-cta-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 80px 8vw;
}


.fibre-cta-content > span {
    margin-bottom: 25px;

    color: rgba(255,255,255,.65);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 4px;
}


.fibre-cta h2 {
    margin: 0 0 45px;

    font-size: clamp(55px, 6vw, 95px);
    line-height: .85;
}


.fibre-cta h2 em {
    font-style: normal;
}


.fibre-cta a {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 35px;

    padding: 18px 25px;

    background: #090b0d;

    color: white;

    text-decoration: none;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;

    transition: gap .3s ease;
}


.fibre-cta a:hover {
    gap: 50px;
}


.fibre-cta a strong {
    color: var(--fibre-red);

    font-size: 18px;
}


.fibre-cta-image {
    overflow: hidden;
}


.fibre-cta-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: grayscale(.15);

    transition: transform 1s ease;
}


.fibre-cta:hover .fibre-cta-image img {
    transform: scale(1.05);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .fibre-hero {
        grid-template-columns: 1fr;
    }

    .fibre-hero-image {
        min-height: 600px;
        order: -1;
    }

    .fibre-hero-content {
        padding: 80px 7vw;
    }

    .fibre-hero-number {
        top: 40px;
    }

    .fibre-intro-grid,
    .fibre-feature,
    .fibre-benefits-heading,
    .fibre-process-heading {
        grid-template-columns: 1fr;
    }

    .fibre-feature {
        gap: 25px;
    }

    .fibre-feature-side {
        padding-left: 0;
    }

    .fibre-app-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fibre-gallery-heading {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fibre-process-list {
        grid-template-columns: 1fr 1fr;
    }

    .process-step:nth-child(2) {
        border-right: 0;
    }

    .fibre-cta {
        grid-template-columns: 1fr;
    }

    .fibre-cta-image {
        min-height: 450px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .fibre-hero {
        min-height: auto;
    }

    .fibre-hero-image {
        min-height: 480px;
    }

    .fibre-hero-content {
        padding: 70px 25px;
    }

    .fibre-hero h1 {
        font-size: 65px;
        letter-spacing: -3px;
    }

    .fibre-hero-intro {
        font-size: 15px;
    }

    .fibre-hero-bottom {
        flex-direction: column;
        gap: 15px;
        margin-top: 45px;
    }

    .fibre-intro,
    .fibre-feature,
    .fibre-applications,
    .fibre-benefits,
    .fibre-gallery,
    .fibre-process {
        padding: 90px 25px;
    }

    .fibre-intro-grid {
        gap: 30px;
    }

    .fibre-intro-title h2,
    .fibre-app-header h2,
    .fibre-benefits-heading h2,
    .fibre-process-heading h2 {
        font-size: 52px;
    }

    .fibre-feature-image.large {
        height: 480px;
    }

    .fibre-feature-copy {
        padding: 45px 10px;
    }

    .fibre-app-grid {
        grid-template-columns: 1fr;
    }

    .fibre-app-card {
        height: 450px;
    }

    .fibre-benefit {
        grid-template-columns: 50px 1fr;
        gap: 20px;
    }

    .fibre-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 350px;
    }

    .gallery-tall,
    .gallery-wide {
        grid-column: auto;
        grid-row: auto;
    }

    .fibre-process-list {
        grid-template-columns: 1fr;
    }

    .process-step {
        border-right: 0;
        border-bottom: 1px solid var(--fibre-border);
    }

    .fibre-cta-content {
        padding: 80px 25px;
    }

    .fibre-cta h2 {
        font-size: 55px;
    }
}
/* =========================================================
   FIBRE DOORS — MIXED LIGHT / DARK / IMAGE SECTIONS
========================================================= */

/* HERO — IMAGE BACKGROUND */
.fibre-hero {
    background:
        linear-gradient(90deg,
            rgba(5, 7, 9, .94) 0%,
            rgba(5, 7, 9, .78) 45%,
            rgba(5, 7, 9, .25) 100%
        ),
        url("images/fibre-doorintro.png") center / cover no-repeat;

    min-height: 820px;
}

.fibre-hero-image {
    display: none;
}


/* =========================================================
   INTRO — WHITE
========================================================= */

.fibre-intro {
    background: #f3f3f0;
    color: #111315;
}

.fibre-intro-top {
    border-bottom: 1px solid rgba(0,0,0,.15);
    padding-bottom: 25px;
}

.fibre-intro .section-name {
    color: #777;
}

.fibre-intro-title small {
    color: #777;
}

.fibre-intro-title h2 {
    color: #111315;
}

.fibre-intro-title h2 em {
    color: #ed2029;
}

.fibre-intro-text p {
    color: #555b5f;
}


/* =========================================================
   FEATURE — IMAGE + WHITE
========================================================= */

.fibre-feature {
    background: #f3f3f0;
    color: #111315;
}

.fibre-feature-copy {
    background: #ffffff;
}

.fibre-feature-copy small {
    color: #ed2029;
}

.fibre-feature-copy h3 {
    color: #111315;
}

.fibre-feature-copy h3 strong {
    color: #ed2029;
}

.fibre-feature-copy p {
    color: #62676a;
}


/* =========================================================
   APPLICATIONS — FULL IMAGE BACKGROUND
========================================================= */

.fibre-applications {
    position: relative;

    background:
        linear-gradient(
            rgba(8, 10, 12, .88),
            rgba(8, 10, 12, .94)
        ),
        url("images/fibreint.png")
        center / cover no-repeat;

    background-attachment: fixed;
}

.fibre-applications::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent 49.9%,
            rgba(255,255,255,.08) 50%,
            transparent 50.1%
        );

    pointer-events: none;
}

.fibre-applications > * {
    position: relative;
    z-index: 2;
}


/* =========================================================
   BENEFITS — WHITE
========================================================= */

.fibre-benefits {
    background: #ffffff;
    color: #111315;
}

.fibre-benefits-heading span {
    color: #777;
}

.fibre-benefits-heading h2 {
    color: #111315;
}

.fibre-benefits-heading h2 em {
    color: #ed2029;
}

.fibre-benefits-list {
    border-color: rgba(0,0,0,.14);
}

.fibre-benefit {
    border-color: rgba(0,0,0,.14);
}

.fibre-benefit h3 {
    color: #111315;
}

.fibre-benefit p {
    color: #62676a;
}


/* =========================================================
   GALLERY — IMAGE BACKGROUND
========================================================= */

.fibre-gallery {
    position: relative;

    background:
        linear-gradient(
            rgba(7, 9, 11, .91),
            rgba(7, 9, 11, .95)
        ),
        url("images/fibregal4.png")
        center / cover no-repeat;
}

.fibre-gallery-heading h2 {
    color: #ffffff;
}


/* =========================================================
   PROCESS — LIGHT GREY
========================================================= */

.fibre-process {
    background: #e9e9e6;
    color: #111315;
}

.fibre-process-heading span {
    color: #777;
}

.fibre-process-heading h2 {
    color: #111315;
}

.fibre-process-heading h2 em {
    color: #ed2029;
}

.fibre-process-list {
    border-color: rgba(0,0,0,.15);
}

.process-step {
    border-color: rgba(0,0,0,.15);
}

.process-step h3 {
    color: #111315;
}

.process-step p {
    color: #606568;
}


/* =========================================================
   CTA — IMAGE BACKGROUND
========================================================= */

.fibre-cta {
    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(237,32,41,.94),
            rgba(237,32,41,.72)
        ),
        url("images/fibre-doorcta.png")
        center / cover no-repeat;
}

.fibre-cta-image {
    display: none;
}


/* =========================================================
   HOVER EFFECTS
========================================================= */

.fibre-benefit:hover {
    background: #f7f7f5;
}

.fibre-app-card {
    transition: transform .4s ease;
}

.fibre-app-card:hover {
    transform: translateY(-8px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .fibre-hero {
        min-height: 720px;

        background:
            linear-gradient(
                rgba(5,7,9,.78),
                rgba(5,7,9,.92)
            ),
            url("images/fibre-doorintro.png")
            center / cover no-repeat;
    }

    .fibre-applications {
        background-attachment: scroll;
    }

    .fibre-gallery {
        background-attachment: scroll;
    }

    .fibre-intro,
    .fibre-benefits,
    .fibre-process {
        padding-top: 90px;
        padding-bottom: 90px;
    }
}
/* =========================================================
   REGAL TYPOGRAPHY — SAME AS OTHER PAGES
========================================================= */

.fibre-page,
.fibre-page * {
    font-family: inherit;
}

/* Main large headings */
.fibre-page h1,
.fibre-page h2,
.fibre-page h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Hero heading */
.fibre-hero h1 {
    font-size: clamp(64px, 8vw, 145px);
    line-height: .86;
    font-weight: 900;
    text-transform: uppercase;
}

/* Section headings */
.fibre-page h2 {
    font-size: clamp(48px, 6vw, 92px);
    line-height: .92;
}

/* Red heading text */
.fibre-page h1 em,
.fibre-page h2 em {
    color: #ed1c24;
    font-style: normal;
}

/* Normal paragraph text */
.fibre-page p {
    font-size: 17px;
    line-height: 1.8;
    font-weight: 400;
}

/* Small labels */
.fibre-page .section-label,
.fibre-page .section-name,
.fibre-page small {
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

/* Number labels */
.fibre-page .section-number,
.fibre-page .service-number {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #ed1c24;
}


/* =========================================================
   WHITE SECTIONS
========================================================= */

.fibre-intro,
.fibre-feature,
.fibre-benefits,
.fibre-process {
    background: #f3f3f0;
    color: #111;
}

.fibre-intro h2,
.fibre-feature h2,
.fibre-benefits h2,
.fibre-process h2,
.fibre-intro h3,
.fibre-feature h3,
.fibre-benefits h3,
.fibre-process h3 {
    color: #111;
}

.fibre-intro p,
.fibre-feature p,
.fibre-benefits p,
.fibre-process p {
    color: #555;
}


/* =========================================================
   DARK SECTIONS
========================================================= */

.fibre-hero,
.fibre-applications,
.fibre-gallery {
    color: #fff;
}

.fibre-hero h1,
.fibre-applications h2,
.fibre-gallery h2 {
    color: #fff;
}

.fibre-hero p,
.fibre-applications p,
.fibre-gallery p {
    color: rgba(255,255,255,.75);
}


/* =========================================================
   MOBILE FONT SIZES
========================================================= */

@media (max-width: 768px) {

    .fibre-hero h1 {
        font-size: clamp(52px, 15vw, 82px);
        line-height: .9;
    }

    .fibre-page h2 {
        font-size: clamp(40px, 11vw, 64px);
    }

    .fibre-page p {
        font-size: 15px;
        line-height: 1.7;
    }

    .fibre-page .section-label,
    .fibre-page .section-name,
    .fibre-page small {
        font-size: 9px;
        letter-spacing: .18em;
    }
}
/* =========================================================
   FIBRE DOORS — PERFECTLY ALIGNED GALLERY
========================================================= */

.fibre-gallery {
    padding: 150px 7vw;
    background: #090b0d;
    overflow: hidden;
}


/* =========================
   GALLERY HEADING
========================= */

.fibre-gallery-heading {
    display: grid;
    grid-template-columns: 20% 45% 35%;
    align-items: end;
    margin-bottom: 70px;
}

.fibre-gallery-heading > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fibre-gallery-heading span {
    color: #ed2029;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.fibre-gallery-heading small {
    color: #73787c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.fibre-gallery-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(50px, 5vw, 80px);
    line-height: .9;
    font-weight: 800;
    letter-spacing: -2px;
}

.fibre-gallery-heading h2 em {
    color: #ed2029;
    font-style: normal;
}

.fibre-gallery-heading p {
    margin: 0;
    max-width: 430px;
    color: #858b8f;
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   GALLERY GRID
========================================================= */

.fibre-gallery-grid {

    display: grid;

    /*
       3 equal columns
       2 equal rows
    */
    grid-template-columns: 1fr 1fr 1fr;

    grid-template-rows:
        360px
        360px;

    gap: 16px;

    width: 100%;

    /*
       PERFECT FIXED ALIGNMENT
    */
    grid-template-areas:

        "large top-left top-right"

        "large bottom-left bottom-right";
}


/* =========================
   GALLERY ITEMS
========================= */

.gallery-item {

    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #111518;

    min-width: 0;
    min-height: 0;
}


/* =========================
   INDIVIDUAL POSITIONS
========================= */

.gallery-01 {
    grid-area: large;
}

.gallery-02 {
    grid-area: top-left;
}

.gallery-03 {
    grid-area: top-right;
}

.gallery-04 {
    grid-area: bottom-left;
}

.gallery-05 {
    grid-area: bottom-right;
}


/* =========================
   IMAGES
========================= */

.gallery-item img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    transition:
        transform .8s cubic-bezier(.16, 1, .3, 1),
        filter .5s ease;
}


/* =========================
   HOVER
========================= */

.gallery-item:hover img {

    transform: scale(1.06);

    filter: brightness(.72);
}


/* =========================
   NUMBER
========================= */

.gallery-number {

    position: absolute;

    left: 22px;
    bottom: 20px;

    z-index: 5;

    color: #ffffff;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    padding: 8px 11px;

    background: rgba(0, 0, 0, .55);

    backdrop-filter: blur(5px);

    border-left: 2px solid #ed2029;
}


/* =========================
   IMAGE DARK OVERLAY
========================= */

.gallery-item::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(0, 0, 0, .65) 100%
        );

    z-index: 2;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .fibre-gallery {

        padding: 110px 5vw;

    }

    .fibre-gallery-heading {

        grid-template-columns: 1fr;

        gap: 30px;

        margin-bottom: 55px;

    }

    .fibre-gallery-heading p {

        max-width: 600px;

    }

    .fibre-gallery-grid {

        grid-template-columns: 1fr 1fr;

        grid-template-rows:
            420px
            300px
            300px;

        grid-template-areas:

            "large large"

            "top-left top-right"

            "bottom-left bottom-right";

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .fibre-gallery {

        padding: 90px 25px;

    }

    .fibre-gallery-heading {

        gap: 25px;

        margin-bottom: 40px;

    }

    .fibre-gallery-heading h2 {

        font-size: 52px;

    }

    .fibre-gallery-heading p {

        font-size: 14px;

    }

    .fibre-gallery-grid {

        display: grid;

        grid-template-columns: 1fr;

        grid-template-rows:
            420px
            300px
            300px
            300px
            300px;

        grid-template-areas:

            "large"

            "top-left"

            "top-right"

            "bottom-left"

            "bottom-right";

        gap: 12px;

    }

    .gallery-number {

        left: 15px;

        bottom: 15px;

    }

}
/* =========================================================
   FINAL CONTACT CTA — DARK IMAGE STYLE
========================================================= */

.fibre-cta {
    position: relative;

    /* Decrease overall section width */
    width: 90%;
    max-width: 1500px;

    margin: 80px auto;

    min-height: 500px;

    display: grid;
    grid-template-columns: 60% 40%;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(5, 7, 9, .94) 0%,
            rgba(5, 7, 9, .82) 45%,
            rgba(5, 7, 9, .58) 100%
        ),
        url("images/fibre-doorcta.png")
        center / cover no-repeat;

    border: 1px solid rgba(255,255,255,.08);

    box-shadow:
        0 25px 70px rgba(0,0,0,.35);
}


/* Dark cinematic overlay */

.fibre-cta::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.35),
            transparent 65%
        );

    pointer-events: none;

    z-index: 1;
}


/* =========================================================
   CONTACT CONTENT
========================================================= */

.fibre-cta-content {
    position: relative;

    z-index: 3;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 80px 70px;
}


/* Small label */

.fibre-cta-content > span {
    margin-bottom: 22px;

    color: #8e9599;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 4px;

    text-transform: uppercase;
}


/* Main heading */

.fibre-cta h2 {

    margin: 0 0 40px;

    color: #ffffff;

    font-size: clamp(52px, 6vw, 90px);

    line-height: .88;

    font-weight: 900;

    letter-spacing: -2px;
}


/* Red accent */

.fibre-cta h2 em {

    color: #ed2029;

    font-style: normal;
}


/* =========================================================
   CONTACT BUTTON
========================================================= */

.fibre-cta a {

    width: fit-content;

    display: flex;
    align-items: center;

    gap: 35px;

    padding: 18px 25px;

    background: #ffffff;

    color: #090b0d;

    text-decoration: none;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    transition:
        background .3s ease,
        color .3s ease,
        gap .3s ease;
}


.fibre-cta a strong {

    color: #ed2029;

    font-size: 18px;

    line-height: 1;
}


.fibre-cta a:hover {

    background: #ed2029;

    color: #ffffff;

    gap: 45px;
}


.fibre-cta a:hover strong {

    color: #ffffff;
}


/* =========================================================
   IMAGE SIDE
========================================================= */

.fibre-cta-image {

    position: relative;

    z-index: 2;

    display: block;

    overflow: hidden;

    opacity: .35;
}


.fibre-cta-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    filter:
        grayscale(.35)
        brightness(.55);

    transition: transform 1s ease;
}


.fibre-cta:hover .fibre-cta-image img {

    transform: scale(1.04);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .fibre-cta {

        width: 92%;

        grid-template-columns: 1fr;

        min-height: 520px;

        background:
            linear-gradient(
                rgba(5,7,9,.86),
                rgba(5,7,9,.94)
            ),
            url("images/fibre-doorcta.png")
            center / cover no-repeat;
    }

    .fibre-cta-content {

        padding: 75px 55px;

    }

    .fibre-cta-image {

        display: none;

    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .fibre-cta {

        width: calc(100% - 30px);

        margin: 50px auto;

        min-height: 500px;

        display: block;

        background:
            linear-gradient(
                rgba(5,7,9,.88),
                rgba(5,7,9,.95)
            ),
            url("images/fibre-doorcta.png")
            center / cover no-repeat;
    }


    .fibre-cta-content {

        padding: 65px 30px;

    }


    .fibre-cta h2 {

        font-size: 52px;

        letter-spacing: -1px;

    }


    .fibre-cta a {

        padding: 17px 22px;

    }

}
