/* =========================================
CASE STUDY PAGE
Uses global.css typography,
buttons & containers
========================================= */

.fd-case-study-page {
    background: #ffffff;
    color: #0f172a;
}

/* =========================================
HERO
========================================= */

.fd-hero-wrapper {
    position: relative;
}

.fd-hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
}

.fd-hero>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fd-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(to top,
            rgba(15, 23, 42, .92) 5%,
            rgba(15, 23, 42, .72) 35%,
            rgba(15, 23, 42, .35) 65%,
            rgba(15, 23, 42, .15) 100%);

    display: flex;
    align-items: flex-end;
}

.fd-hero-content {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 70px 18px;
}

.fd-small-meta {
    display: inline-block;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fd-hero-content h1 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;

    max-width: 800px;
}

.fd-hero-content p {
    margin: 0;

    color: rgba(255, 255, 255, .9);

    font-size: 1rem;
    line-height: 1.9;

    max-width: 760px;
}

@media(min-width:768px) {

    .fd-hero-content {
        padding: 90px 34px;
    }

    .fd-hero-content h1 {
        font-size: 3.5rem;
    }

}

@media(max-width:767px) {

    .fd-hero {
        min-height: 500px;
    }

    .fd-hero-content h1 {
        font-size: 2rem;
    }

}

/* =========================================
CASE CONTAINER
========================================= */

.fd-case-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 18px;
}

@media(min-width:768px) {

    .fd-case-container {
        padding: 95px 34px;
    }

}

/* =========================================
META GRID
========================================= */

.fd-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 80px;
}

.fd-meta-item {
    padding: 24px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
}

.fd-meta-item strong {
    display: block;

    margin-bottom: 8px;

    color: #0f172a;

    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.fd-meta-item span {
    display: block;

    color: #475569;

    font-size: .95rem;
    line-height: 1.7;
}

@media(min-width:768px) {

    .fd-meta-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* =========================================
CONTENT SECTIONS
========================================= */

.fd-content-section {
    margin-bottom: 90px;
}

.fd-content-section:last-child {
    margin-bottom: 0;
}

.fd-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 42px;
    align-items: center;
}

@media(min-width:992px) {

    .fd-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

}

.fd-section-heading {
    margin: 0 0 22px;

    color: #0f172a;

    font-size: 1.65rem;
    line-height: 1.25;
    font-weight: 800;
}

@media(min-width:768px) {

    .fd-section-heading {
        font-size: 2.3rem;
    }

}

.fd-paragraph {
    margin: 0 0 18px;

    color: #475569;

    font-size: .98rem;
    line-height: 1.95;
}

.fd-paragraph:last-child {
    margin-bottom: 0;
}

/* =========================================
CONTENT IMAGE
========================================= */

.fd-content-image {
    position: relative;
}

.fd-content-image img {
    display: block;
    width: 100%;
    height: auto;

    border: 1px solid #e2e8f0;
}

/* =========================================
MASONRY GALLERY
========================================= */

.fd-gallery-grid {

    columns: 3;
    column-gap: 20px;

    margin-top: 36px;

}

.fd-gallery-item {

    break-inside: avoid;

    margin-bottom: 20px;

    overflow: hidden;

    border: 1px solid #e2e8f0;

    background: #ffffff;

}

.fd-gallery-item img,
.fd-gallery-item video {

    width: 100%;
    display: block;

}

.fd-gallery-item video {
    height: auto;
}

@media(max-width:991px) {

    .fd-gallery-grid {
        columns: 2;
    }

}

@media(max-width:767px) {

    .fd-gallery-grid {
        columns: 1;
    }

}

/* =========================================
LEGACY SUPPORT
You can eventually remove these
========================================= */

.fd-gallery-large,
.fd-gallery-wide,
.fd-gallery-vertical,
.fd-gallery-square {
    display: block;
}

/* =========================================
HIGHLIGHT BOX
========================================= */

.fd-highlight-box {

    padding: 36px;

    background: #eff6ff;

    border-left: 4px solid #116ad6;

}

.fd-highlight-box p {

    margin: 0;

    color: #1e293b;

    font-size: 1rem;
    line-height: 2;

    font-weight: 500;
}

/* =========================================
FINAL CTA
========================================= */

.fd-final-cta {

    text-align: center;

    padding: 70px 20px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

}

.fd-final-cta h3 {

    margin: 0 0 18px;

    color: #0f172a;

    font-size: 1.7rem;
    line-height: 1.25;
    font-weight: 800;
}

.fd-final-cta p {

    max-width: 760px;

    margin: 0 auto 30px;

    color: #64748b;

    font-size: .95rem;
    line-height: 1.9;
}

@media(min-width:768px) {

    .fd-final-cta h3 {
        font-size: 2.25rem;
    }

}

/* =========================================
WHATSAPP BUTTON
========================================= */

.fd-btn {
    gap: 10px;
}

.fd-whatsapp-icon {

    width: 18px;
    height: 18px;

    fill: currentColor;

    flex-shrink: 0;
}

/* =========================================
ANIMATIONS
========================================= */

.fd-content-image img,
.fd-gallery-item img,
.fd-gallery-item video {

    transition: transform .4s ease;

}

.fd-gallery-item:hover img,
.fd-gallery-item:hover video,
.fd-content-image:hover img {

    transform: scale(1.03);

}

/* =========================================
MOBILE SPACING
========================================= */

@media(max-width:767px) {

    .fd-case-container {
        padding: 65px 18px;
    }

    .fd-content-section {
        margin-bottom: 70px;
    }

    .fd-highlight-box {
        padding: 28px;
    }

}