/* =========================================
   GALLERY HERO
========================================= */

.gallery-hero {
    padding: 95px 0 120px;
    background: #ffffff;
}

.gallery-hero-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    align-items: center;

    gap: 90px;
}

.page-label {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 3px;
}

.gallery-hero-content h1 {
    max-width: 620px;

    margin-bottom: 24px;

    color: var(--navy);

    font-size: clamp(42px, 5vw, 66px);
    font-weight: 700;

    line-height: 1.1;
    letter-spacing: -2px;
}

.gallery-hero-content h1 span {
    display: block;
    color: var(--primary);
}

.gallery-hero-content p {
    max-width: 560px;

    color: var(--text-muted);

    font-size: 14px;
    line-height: 1.9;
}


/* HERO VISUAL */

.gallery-hero-visual {
    position: relative;

    min-height: 510px;
}

.gallery-hero-image {
    position: absolute;

    overflow: hidden;

    background: #edf7f0;

    box-shadow:
        0 20px 45px rgba(17, 74, 45, 0.08);
}

.gallery-hero-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.gallery-image-large {
    z-index: 3;

    width: 68%;
    height: 440px;

    left: 0;
    top: 20px;

    border-radius: 35px 65px 35px 65px;
}

.gallery-image-small {
    z-index: 4;

    width: 42%;
    height: 260px;

    right: 0;
    bottom: 0;

    border: 8px solid #ffffff;
    border-radius: 25px;
}


/* DECORATION */

.gallery-decoration {
    position: absolute;

    border-radius: 50%;
}

.gallery-decoration-one {
    width: 330px;
    height: 330px;

    top: 0;
    right: 20px;

    background: rgba(118, 191, 53, 0.10);
}

.gallery-decoration-two {
    width: 200px;
    height: 200px;

    bottom: 20px;
    left: -20px;

    background: rgba(17, 148, 71, 0.07);
}


/* FLOATING CARD */

.gallery-floating-card {
    position: absolute;

    z-index: 6;

    left: 45%;
    bottom: 25px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 14px 18px;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid var(--border);
    border-radius: 15px;

    box-shadow:
        0 15px 35px rgba(17, 74, 45, 0.10);
}

.gallery-floating-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #eef8f1;

    color: var(--primary);

    border-radius: 11px;

    font-size: 16px;
}

.gallery-floating-card strong {
    display: block;

    margin-bottom: 2px;

    color: var(--navy);

    font-size: 11px;
}

.gallery-floating-card small {
    color: var(--text-muted);

    font-size: 8px;
}


/* =========================================
   GALLERY
========================================= */

.gallery-section {
    padding: 110px 0;

    background: var(--background-soft);
}


/* HEADING */

.gallery-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 45px;
}

.gallery-heading h2,
.gallery-highlight h2 {
    color: var(--navy);

    font-size: clamp(34px, 4vw, 50px);
    font-weight: 700;

    line-height: 1.18;
    letter-spacing: -1.5px;
}

.gallery-heading h2 span,
.gallery-highlight h2 span {
    display: block;

    color: var(--primary);
}


/* FILTER */

.gallery-filter {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.gallery-filter-btn {
    padding: 9px 15px;

    background: #ffffff;

    color: var(--text-muted);

    border: 1px solid var(--border);
    border-radius: 50px;

    font-family: inherit;

    font-size: 10px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--primary);

    color: #ffffff;

    border-color: var(--primary);
}


/* =========================================
   GALLERY GRID
========================================= */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    grid-auto-rows: 260px;

    gap: 18px;
}

.gallery-item {
    position: relative;

    overflow: hidden;

    background: #eaf2ed;

    border-radius: 22px;

    cursor: pointer;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.gallery-item-large {
    grid-column: span 2;
}

.gallery-item-tall {
    grid-row: span 2;
}

.gallery-item.hide {
    display: none;
}


/* IMAGE */

.gallery-item > img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.7s ease;
}

.gallery-item:hover > img {
    transform: scale(1.06);
}


/* OVERLAY */

.gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 25px;

    background:
        linear-gradient(
            to top,
            rgba(5, 31, 20, 0.78),
            rgba(5, 31, 20, 0.04) 65%
        );

    opacity: 0;

    transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay > span {
    margin-bottom: 6px;

    color: #a9df91;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.gallery-overlay h3 {
    max-width: 330px;

    padding-right: 50px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    line-height: 1.45;
}


/* OPEN BUTTON */

.gallery-open {
    position: absolute;

    right: 20px;
    bottom: 20px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    color: var(--primary);

    border: none;
    border-radius: 50%;

    font-size: 17px;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.gallery-open:hover {
    transform: rotate(8deg);

    background: #f2faf4;
}


/* =========================================
   HIGHLIGHT
========================================= */

.gallery-highlight {
    padding: 100px 0;

    background: #ffffff;
}

.gallery-highlight-container {
    display: grid;
    grid-template-columns: 1fr 0.8fr;

    align-items: end;

    gap: 100px;
}

.gallery-highlight-container > p {
    color: var(--text-muted);

    font-size: 13px;
    line-height: 1.9;
}


/* =========================================
   HOME CTA
========================================= */

.home-cta {
    padding: 110px 0;

    background: #ffffff;
}


/* CARD */

.home-cta-card {
    position: relative;

    width: min(100%, 1050px);

    margin: 0 auto;

    overflow: hidden;

    display: grid;

    grid-template-columns:
        1.2fr 0.8fr;

    align-items: center;

    min-height: 390px;

    padding: 60px;

    border-radius: 34px;

    background:
        linear-gradient(
            145deg,
            #087438 0%,
            #119447 58%,
            #169e4f 100%
        );

    box-shadow:
        0 28px 70px
        rgba(17, 74, 45, 0.16);
}


/* =========================================
   CONTENT
========================================= */

.home-cta-content {
    position: relative;

    z-index: 3;

    max-width: 590px;
}


.home-cta-label {
    display: inline-flex;

    margin-bottom: 20px;

    padding: 7px 13px;

    border:
        1px solid rgba(255,255,255,.16);

    border-radius: 999px;

    background:
        rgba(255,255,255,.08);

    color:
        rgba(255,255,255,.80);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.8px;
}


.home-cta-content h2 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size:
        clamp(38px, 4vw, 54px);

    font-weight: 700;

    line-height: 1.08;

    letter-spacing: -1.7px;
}


.home-cta-content h2 span {
    display: block;

    color: #dff3a6;
}


.home-cta-content p {
    max-width: 520px;

    margin: 0;

    color:
        rgba(255,255,255,.72);

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================
   RIGHT SIDE
========================================= */

.home-cta-side {
    position: relative;

    min-height: 260px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* =========================================
   DECORATION
========================================= */

.home-cta-circle {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}


.circle-one {
    width: 300px;
    height: 300px;

    right: -80px;
    top: -120px;

    background:
        rgba(255,255,255,.07);
}


.circle-two {
    width: 170px;
    height: 170px;

    left: 0;
    bottom: -70px;

    background:
        rgba(214,241,151,.10);
}


/* =========================================
   ACTION
========================================= */

.home-cta-actions {
    position: relative;

    z-index: 4;

    width: 220px;

    display: flex;

    flex-direction: column;

    gap: 12px;
}


.home-cta-primary,
.home-cta-secondary {
    min-height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 0 20px;

    border-radius: 14px;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform .25s ease,
        gap .25s ease,
        background .25s ease;
}


/* PRIMARY */

.home-cta-primary {
    background: #ffffff;

    color: var(--primary);

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.09);
}


.home-cta-primary:hover {
    transform: translateY(-3px);

    gap: 15px;
}


/* SECONDARY */

.home-cta-secondary {
    border:
        1px solid rgba(255,255,255,.35);

    background:
        rgba(255,255,255,.06);

    color: #ffffff;
}


.home-cta-secondary:hover {
    transform: translateY(-3px);

    background:
        rgba(255,255,255,.12);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .home-cta-card {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 50px;

        min-height: auto;
    }


    .home-cta-side {
        min-height: auto;

        justify-content: flex-start;
    }


    .home-cta-actions {
        width: 100%;

        max-width: 430px;

        flex-direction: row;
    }


    .home-cta-primary,
    .home-cta-secondary {
        flex: 1;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .home-cta {
        padding: 80px 0;
    }


    .home-cta-card {
        padding: 38px 27px;

        border-radius: 26px;
    }

    .home-cta-content h2 span {
        display: inline;
    }


    .home-cta-actions {
        flex-direction: column;

        max-width: none;
    }

}


/* =========================================
   LIGHTBOX
========================================= */

.gallery-lightbox {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(6, 22, 15, 0.88);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.gallery-lightbox.show {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox img {
    max-width: 1000px;
    max-height: 85vh;

    width: auto;
    height: auto;

    border-radius: 18px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.25);
}

.gallery-lightbox-close {
    position: absolute;

    top: 25px;
    right: 35px;

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;

    font-size: 25px;

    cursor: pointer;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .gallery-hero-container {
        grid-template-columns: 1fr;
    }

    .gallery-hero-visual {
        max-width: 650px;
        width: 100%;
    }

    .gallery-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-highlight-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

}


@media (max-width: 650px) {

    .gallery-hero {
        padding-top: 60px;
    }

    .gallery-hero-visual {
        min-height: 410px;
    }

    .gallery-image-large {
        width: 82%;
        height: 350px;
    }

    .gallery-image-small {
        width: 48%;
        height: 200px;
    }

    .gallery-floating-card {
        left: 10px;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }

    .gallery-item-large,
    .gallery-item-tall {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-overlay {
        opacity: 1;
    }

    .gallery-cta-box {
        flex-direction: column;
        align-items: flex-start;

        padding: 40px 30px;
    }

}