
/*
Theme Name: Sapivelle
Author: Sapivelle
Description: A premium creative and scientific communications agency website.
Version: 1.0
*/

/* ========================================
   1. BRAND FOUNDATION
======================================== */

:root {
    --mint: #B9E4D2;
    --mint-medium: #6FAF91;
    --deep-green: #245C48;
    --dark-green: #123D30;
    --pale-mint: #E5EEE8;
    --off-white: #F7F7F0;
    --white: #FFFFFF;
    --text-dark: #19382D;
    --text-muted: #65776D;

    --font-heading: "Cormorant Garamond", Georgia, serif;
    --font-body: "Manrope", Arial, sans-serif;

    --container-width: 1200px;
}

/* ========================================
   2. RESET AND GLOBAL STYLES
======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--off-white);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
}

/* ========================================
   3. MAIN HEADER
======================================== */

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: var(--off-white);
    border-bottom: 1px solid rgba(36, 92, 72, 0.08);
}

/* Transparent homepage header */

.home .site-header {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    border-bottom: none;
}

.header-container {
    width: min(92%, var(--container-width));
    min-height: 100px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */

.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo img {
    display: block;
    width: 64px;
    height: auto;
    object-fit: contain;
}

/* Desktop navigation */

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 34px;
}

.primary-navigation ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-navigation li {
    margin: 0;
    padding: 0;
}

.primary-navigation ul a {
    position: relative;
    display: inline-block;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.primary-navigation ul a:hover {
    color: var(--mint-medium);
}

/* Navigation hover underline */

.primary-navigation ul a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: var(--mint-medium);
    transition: width 0.25s ease;
}

.primary-navigation ul a:hover::after {
    width: 100%;
}

/* Start a Project button */

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 46px;
    padding: 0 22px;

    background: var(--deep-green);
    color: var(--off-white);

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
    white-space: nowrap;

    transition: background 0.25s ease,
                transform 0.25s ease;
}

.header-cta:hover {
    background: var(--dark-green);
    color: var(--off-white);
    transform: translateY(-2px);
}

.header-cta span {
    font-size: 16px;
}

/* Mobile menu button */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 5px auto;
    background: var(--deep-green);

    transition: transform 0.25s ease,
                opacity 0.25s ease;
}

/* ========================================
   4. TABLET AND MOBILE NAVIGATION
======================================== */

@media (max-width: 1000px) {

    .header-container {
        width: 90%;
        min-height: 82px;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1002;
        flex-shrink: 0;
    }

    .primary-navigation {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        padding: 25px 5% 35px;

        background: var(--off-white);
        border-top: 1px solid rgba(36, 92, 72, 0.10);
        box-shadow: 0 18px 30px rgba(18, 61, 48, 0.10);

        flex-direction: column;
        align-items: stretch;
        gap: 25px;
    }

    /* Open mobile navigation */

    .site-header.menu-open .primary-navigation {
        display: flex;
    }

    .primary-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .primary-navigation ul li {
        width: 100%;
        border-bottom: 1px solid rgba(36, 92, 72, 0.12);
    }

    .primary-navigation ul a {
        display: block;
        width: 100%;
        padding: 15px 0;
        font-size: 15px;
    }

    .primary-navigation ul a::after {
        display: none;
    }

    .header-cta {
        width: 100%;
        min-height: 52px;
        text-align: center;
    }

    /* Animate menu icon into close icon */

    .site-header.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Off-white dropdown over homepage hero */

    .home .site-header.menu-open {
        background: var(--off-white);
    }
}

/* ========================================
   5. HOMEPAGE HERO
======================================== */

.hero-section {
    position: relative;
    min-height: 720px;
    padding: 130px 5% 100px;

    display: flex;
    align-items: center;

    overflow: hidden;
    background: var(--off-white);
}

.hero-content {
    width: min(100%, var(--container-width));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 65px;
}

/* BRAND INTRODUCTION */

.hero-eyebrow {
    margin-bottom: 24px;
    color: var(--deep-green);

    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

/* MAIN HEADLINE */

.hero-content h1 {
    max-width: 620px;
    margin-bottom: 26px;

    color: var(--dark-green);
    font-family: var(--font-heading);
    font-size: clamp(54px, 6vw, 82px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -1.5px;
}

.hero-content h1 em {
    color: var(--deep-green);
    font-weight: 400;
}

/* DESCRIPTION */

.hero-description {
    max-width: 510px;
    margin-bottom: 34px;

    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.9;
}

/* ACTION BUTTONS */

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 15px 27px;

    background: var(--deep-green);
    color: var(--white);

    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;

    transition: background 0.3s ease,
                transform 0.3s ease;
}

.hero-button:hover {
    background: var(--dark-green);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-button-secondary {
    background: transparent;
    color: var(--deep-green);
    border: 1px solid var(--deep-green);
}

.hero-button-secondary:hover {
    background: var(--deep-green);
    color: var(--white);
}

/* HERO VISUAL */

.hero-visual {
    width: 100%;
    height: 490px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--pale-mint);
}

.hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MOBILE HERO */

@media screen and (max-width: 768px) {

    .hero-section {
        min-height: auto;
        padding: 110px 6% 75px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hero-content h1 {
        font-size: clamp(48px, 12vw, 68px);
        line-height: 1.05;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.8;
    }

    .hero-actions {
        gap: 12px;
    }

    .hero-button {
        min-height: 48px;
        padding: 14px 20px;
    }

    .hero-visual {
        height: 340px;
    }
}

/* ========================================
   6. FOOTER
======================================== */

.site-footer {
    padding: 35px 5%;
    background: var(--dark-green);
    color: var(--mint);
    text-align: center;
}

.site-footer p {
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* ========================================
   7. RESPONSIVE HERO
======================================== */

@media (max-width: 768px) {

    .hero-section {
        min-height: 580px;
        padding: 115px 7% 85px;
    }

    .hero-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .hero-content h1 {
        font-size: clamp(43px, 9vw, 64px);
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 15px;
    }
}

@media (max-width: 480px) {

    .header-container {
        min-height: 74px;
        width: 90%;
    }

    .site-logo img {
        width: 56px;
    }

    .primary-navigation {
        padding: 22px 6% 30px;
    }

    .hero-section {
        min-height: 540px;
        padding: 105px 7% 75px;
    }

    .hero-eyebrow {
        font-size: 9px;
        letter-spacing: 1.8px;
    }

    .hero-content h1 {
        font-size: clamp(40px, 11vw, 56px);
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.8;
    }

    .hero-button {
        padding: 15px 24px;
    }
}

/* ========================================
   8. ACCESSIBILITY
======================================== */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--mint-medium);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ========================================
   WORDPRESS ADMIN BAR ADJUSTMENT
======================================== */

body.admin-bar .home .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .home .site-header {
        top: 46px;
    }
}

/* ========================================
   6. HOMEPAGE SERVICES SECTION
======================================== */

.services-section {
    padding: 115px 5% 105px;
    background: var(--pale-mint);
}

.services-container {
    width: min(100%, var(--container-width));
    margin: 0 auto;
}

/* SECTION INTRODUCTION */

.services-heading {
    max-width: 650px;
    margin: 0 auto 58px;
    text-align: center;
}

.services-eyebrow {
    margin-bottom: 17px;
    color: var(--deep-green);

    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.services-heading h2 {
    margin-bottom: 17px;

    color: var(--dark-green);
    font-family: var(--font-heading);
    font-size: clamp(42px, 5vw, 62px);
    font-weight: 500;
    line-height: 1.1;
}

.services-heading h2 em {
    color: var(--deep-green);
    font-weight: 400;
}

.services-intro {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.8;
}

/* THREE SERVICE PANELS */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.service-card {
    display: block;
    min-width: 0;
    color: var(--text-dark);
    text-decoration: none;

    transition: transform 0.35s ease;
}

.service-card:hover {
    color: var(--text-dark);
    text-decoration: none;
    transform: translateY(-5px);
}

/* IMAGE AREA */

.service-image {
    position: relative;
    width: 100%;
    height: 390px;
    overflow: hidden;
    background: var(--mint);
}

.service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.045);
}

/* IMAGE NUMBER */

.service-number {
    position: absolute;
    top: 17px;
    left: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 37px;
    height: 37px;

    background: var(--off-white);
    color: var(--deep-green);

    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
}

/* IMAGE ARROW */

.service-arrow {
    position: absolute;
    right: 17px;
    bottom: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    background: var(--off-white);
    color: var(--deep-green);

    font-size: 20px;

    transition: background 0.3s ease,
                color 0.3s ease;
}

.service-card:hover .service-arrow {
    background: var(--deep-green);
    color: var(--white);
}

/* CARD TEXT */

.service-card-content {
    padding-top: 23px;
}

.service-card-content h3 {
    margin-bottom: 11px;

    color: var(--dark-green);
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.2;
}

.service-card-content p {
    max-width: 340px;
    margin: 0;

    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.9;
}

/* EXPLORE SERVICES LINK */

.services-footer {
    display: flex;
    justify-content: center;
    margin-top: 57px;
}

.services-footer a {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding-bottom: 9px;
    border-bottom: 1px solid var(--deep-green);

    color: var(--deep-green);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;

    text-decoration: none;
    transition: gap 0.3s ease;
}

.services-footer a:hover {
    gap: 19px;
    color: var(--dark-green);
}

/* TABLET */

@media screen and (max-width: 900px) {

    .services-grid {
        gap: 17px;
    }

    .service-image {
        height: 310px;
    }

    .service-card-content h3 {
        font-size: 22px;
    }

}

/* MOBILE */

@media screen and (max-width: 768px) {

    .services-section {
        padding: 80px 6% 75px;
    }

    .services-heading {
        margin-bottom: 38px;
    }

    .services-heading h2 {
        font-size: 45px;
    }

    .services-intro {
        font-size: 13px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 37px;
    }

    .service-image {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .service-card-content {
        padding-top: 17px;
    }

    .service-card-content h3 {
        font-size: 26px;
    }

    .service-card-content p {
        font-size: 13px;
    }

    .services-footer {
        margin-top: 42px;
    }

}

/* =========================================
   7. HOMEPAGE PORTFOLIO SECTION
========================================= */

.portfolio-section {
    padding: 115px 5% 105px;
    background: var(--off-white);
    width: 100%;
    box-sizing: border-box;
}

.portfolio-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* SECTION HEADING */

.portfolio-section .portfolio-heading {
    width: 100%;
    max-width: 650px;
    margin: 0 auto 65px;
    text-align: center;
}

.portfolio-section .portfolio-eyebrow {
    margin-bottom: 15px;
    color: var(--deep-green);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.portfolio-section .portfolio-heading h2 {
    margin: 0 0 18px;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 500;
    line-height: 1.05;
}

.portfolio-section .portfolio-heading h2 em {
    color: var(--deep-green);
    font-weight: 400;
}

.portfolio-section .portfolio-intro {
    max-width: 520px;
    margin: 0 auto;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.9;
}

/* HOMEPAGE PORTFOLIO GRID */

.portfolio-section .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 22px;
    box-sizing: border-box;
}

.portfolio-section .portfolio-card {
    display: block;
    width: 100%;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

/* IMAGES */

.portfolio-section .portfolio-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--pale-mint);
}

.portfolio-section .portfolio-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.65s ease;
}

.portfolio-section .portfolio-card:hover .portfolio-image img {
    transform: scale(1.045);
}

/* IMAGE ARROW */

.portfolio-section .portfolio-arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--off-white);
    color: var(--deep-green);
    font-size: 20px;
    transition: background 0.3s ease,
                color 0.3s ease,
                transform 0.3s ease;
}

.portfolio-section .portfolio-card:hover .portfolio-arrow {
    background: var(--deep-green);
    color: var(--white);
    transform: translate(3px, -3px);
}

/* CARD TEXT */

.portfolio-section .portfolio-card-content {
    padding-top: 19px;
}

.portfolio-section .portfolio-card-content h3 {
    margin: 0;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: clamp(18px, 1.7vw, 24px);
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.portfolio-section .portfolio-card:hover .portfolio-card-content h3 {
    color: var(--deep-green);
}

/* FOOTER LINK */

.portfolio-section .portfolio-footer {
    margin-top: 30px;
    text-align: center;
}

.portfolio-section .portfolio-footer a {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--deep-green);
    color: var(--deep-green);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.portfolio-section .portfolio-footer a:hover {
    gap: 20px;
}

/* TABLET */

@media (max-width: 900px) {

    .portfolio-section {
        padding: 90px 5%;
    }

    .portfolio-section .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 22px;
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .portfolio-section {
        padding: 75px 6% 80px;
    }

    .portfolio-section .portfolio-heading {
        margin-bottom: 42px;
    }

    .portfolio-section .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 14px;
    }

    .portfolio-section .portfolio-image {
        aspect-ratio: 4 / 3;
    }

    .portfolio-section .portfolio-card-content {
        padding-top: 12px;
    }

    .portfolio-section .portfolio-card-content h3 {
        font-size: 19px;
    }

    .portfolio-section .portfolio-arrow {
        width: 32px;
        height: 32px;
        right: 9px;
        bottom: 9px;
        font-size: 16px;
    }

    .portfolio-section .portfolio-footer {
        margin-top: 25px;
    }

}

/* =========================================
   8. INSIGHTS SECTION
========================================= */

.insights-section {
    padding: 105px 5% 100px;
    background: var(--pale-mint);
}

.insights-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* SECTION HEADING */

.insights-heading {
    max-width: 650px;
    margin: 0 auto 55px;
    text-align: center;
}

.insights-eyebrow {
    margin-bottom: 14px;
    color: var(--deep-green);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.insights-heading h2 {
    margin: 0 0 15px;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 500;
    line-height: 1.1;
}

.insights-heading h2 em {
    color: var(--deep-green);
    font-weight: 400;
}

.insights-intro {
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.8;
}


/* THREE ICON CARDS */

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.insight-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 35px 30px 30px;
    background: var(--off-white);
    border: 1px solid rgba(36, 92, 72, 0.10);
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    border-color: var(--mint-medium);
    box-shadow: 0 12px 30px rgba(18, 61, 48, 0.07);
}


/* ICON CIRCLE */

.insight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 27px;
    border-radius: 50%;
    background: var(--pale-mint);
    color: var(--deep-green);
    transition:
        background 0.35s ease,
        color 0.35s ease;
}

.insight-card:hover .insight-icon {
    background: var(--deep-green);
    color: var(--off-white);
}

.insight-icon svg {
    display: block;
    width: 27px;
    height: 27px;
}


/* CARD CONTENT */

.insight-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.insight-content h3 {
    margin: 0 0 12px;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: 500;
    line-height: 1.2;
}

.insight-content p {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.9;
}

.insight-arrow {
    margin-top: auto;
    color: var(--deep-green);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    transition: letter-spacing 0.3s ease;
}

.insight-card:hover .insight-arrow {
    letter-spacing: 0.5px;
}


/* EXPLORE ALL LINK */

.insights-footer {
    margin-top: 48px;
    text-align: center;
}

.insights-footer a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--deep-green);
    color: var(--deep-green);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.insights-footer a:hover {
    gap: 19px;
}


/* TABLET */

@media (max-width: 900px) {

    .insights-section {
        padding: 85px 5%;
    }

    .insights-grid {
        gap: 16px;
    }

    .insight-card {
        padding: 28px 22px;
    }

    .insight-content h3 {
        font-size: 23px;
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .insights-section {
        padding: 75px 6% 80px;
    }

    .insights-heading {
        margin-bottom: 35px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .insight-card {
        padding: 27px 25px;
    }

    .insight-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 20px;
    }

    .insight-content h3 {
        font-size: 25px;
    }

    .insights-footer {
        margin-top: 38px;
    }

}

/* =========================================
   9. CONTACT SECTION
========================================= */

.contact-section {
    padding: 110px 5%;
    background: var(--off-white);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 85px;
    align-items: start;
}


/* CONTACT INFORMATION */

.contact-info {
    padding-top: 20px;
}

.contact-eyebrow,
.contact-form-eyebrow {
    margin-bottom: 15px;
    color: var(--deep-green);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.contact-info h2 {
    margin: 0 0 20px;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: clamp(42px, 5vw, 62px);
    font-weight: 500;
    line-height: 1.08;
}

.contact-info h2 em {
    color: var(--deep-green);
    font-weight: 400;
}

.contact-description {
    max-width: 420px;
    margin: 0 0 35px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.9;
}


/* CONTACT LINKS */

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 13px 12px;
    border: 1px solid rgba(36, 92, 72, 0.15);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--pale-mint);
    border-color: var(--mint-medium);
}

.contact-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: var(--pale-mint);
    color: var(--deep-green);
}

.contact-link-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-link-arrow {
    margin-left: auto;
    color: var(--deep-green);
}


/* PROJECT FORM PANEL */

.contact-form-wrapper {
    padding: 40px;
    background: var(--pale-mint);
}

.contact-form-heading {
    margin-bottom: 28px;
}

.contact-form-heading h3 {
    margin: 0 0 10px;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 500;
    line-height: 1.15;
}

.contact-form-heading > p:last-child {
    margin: 0;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.8;
}


/* FORM FIELDS */

.project-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
}

.form-field label span {
    color: var(--text-muted);
    font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid rgba(36, 92, 72, 0.18);
    border-radius: 0;
    outline: none;
    background: var(--off-white);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 12px;
    transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--deep-green);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #98A69D;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}


/* SUBMIT BUTTON */

.project-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--deep-green);
    background: var(--deep-green);
    color: var(--off-white);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-submit:hover {
    background: transparent;
    color: var(--deep-green);
}


/* TABLET */

@media (max-width: 900px) {

    .contact-section {
        padding: 85px 5%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info {
        padding-top: 0;
    }

    .contact-description {
        max-width: 550px;
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .contact-section {
        padding: 75px 6% 80px;
    }

    .contact-grid {
        gap: 38px;
    }

    .contact-links {
        gap: 9px;
    }

    .contact-link {
        padding: 11px 9px;
        font-size: 10px;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .contact-form-heading h3 {
        font-size: 30px;
    }

}
/* =========================================
   10. FOOTER
========================================= */

.site-footer {
    background: var(--dark-green);
    color: var(--off-white);
    padding: 85px 6% 25px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 80px;
    padding-bottom: 65px;
}

/* BRAND */

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    display: block;
    width: 175px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    max-width: 310px;
    color: rgba(247, 247, 240, 0.72);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.9;
}

/* NAVIGATION AND CONNECT */

.footer-navigation h3,
.footer-connect h3 {
    margin: 5px 0 22px;
    color: var(--mint);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-navigation nav {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-navigation nav a {
    width: fit-content;
    color: rgba(247, 247, 240, 0.78);
    font-family: var(--font-body);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-navigation nav a:hover {
    color: var(--mint);
}

.footer-connect p {
    max-width: 290px;
    margin-bottom: 23px;
    color: rgba(247, 247, 240, 0.72);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.9;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--mint);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.25s ease;
}

.footer-cta:hover {
    gap: 18px;
}

/* BOTTOM FOOTER */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding-top: 23px;
    border-top: 1px solid rgba(247, 247, 240, 0.17);
}

.footer-copyright {
    margin: 0;
    color: rgba(247, 247, 240, 0.58);
    font-family: var(--font-body);
    font-size: 11px;
}

/* SOCIAL ICONS */

.footer-socials {
    display: flex;
    align-items: center;
    gap: 11px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(185, 228, 210, 0.35);
    border-radius: 50%;
    color: var(--mint);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease;
}

.footer-socials a:hover {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--dark-green);
}

/* TABLET */

@media (max-width: 900px) {

    .footer-main {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 55px 40px;
    }

    .footer-connect {
        grid-column: 1 / -1;
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .site-footer {
        padding: 65px 7% 22px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 45px 25px;
        padding-bottom: 45px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-logo img {
        width: 155px;
    }

    .footer-connect {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 20px;
    }

}


/* =========================================
   11. SERVICES PAGE
========================================= */

/* PAGE HERO */

.services-page-hero {
    background: var(--off-white);
    padding: 125px 6% 110px;
    text-align: center;
}

.services-page-hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.services-page-eyebrow,
.services-page-label {
    color: var(--deep-green);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.services-page-hero h1 {
    margin: 25px 0;
    color: var(--dark-green);
    font-family: var(--font-heading);
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 500;
    line-height: 1.05;
}

.services-page-hero h1 em,
.services-page-intro h2 em,
.services-page-cta h2 em {
    color: var(--mint-medium);
    font-weight: 400;
}

.services-page-hero-content > p:last-child {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.9;
}


/* INTRODUCTION */

.services-page-intro {
    padding: 100px 6%;
    background: var(--pale-mint);
    text-align: center;
}

.services-page-intro-inner {
    max-width: 760px;
    margin: 0 auto;
}

.services-page-intro h2 {
    margin: 20px 0;
    color: var(--dark-green);
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 55px);
    font-weight: 500;
    line-height: 1.15;
}

.services-page-intro-inner > p:last-child {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.9;
}


/* SERVICE DETAILS */

.service-detail-section {
    padding: 100px 7%;
    background: var(--off-white);
}

.service-detail-section:nth-of-type(odd) {
    background: #FFFFFF;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 85px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-detail-image {
    height: 510px;
    overflow: hidden;
    border-radius: 4px;
}

.service-detail-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail-content {
    max-width: 520px;
}

.service-detail-content h2 {
    margin: 0 0 22px;
    color: var(--dark-green);
    font-family: var(--font-heading);
    font-size: clamp(37px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.1;
}

.service-detail-description {
    margin-bottom: 28px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.9;
}

.service-detail-content h3 {
    margin-bottom: 15px;
    color: var(--dark-green);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
}

.service-detail-content ul {
    margin: 0 0 30px;
    padding-left: 19px;
}

.service-detail-content li {
    margin-bottom: 11px;
    padding-left: 5px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.7;
}

.service-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--deep-green);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.service-detail-link:hover {
    color: var(--mint-medium);
}


/* FINAL CALL TO ACTION */

.services-page-cta {
    padding: 105px 6%;
    background: var(--dark-green);
    text-align: center;
}

.services-page-cta-content {
    max-width: 750px;
    margin: 0 auto;
}

.services-page-cta-content > p {
    color: var(--mint);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.services-page-cta h2 {
    margin: 25px 0 35px;
    color: var(--off-white);
    font-family: var(--font-heading);
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 500;
    line-height: 1.1;
}

.services-page-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 16px 25px;
    background: var(--mint);
    color: var(--dark-green);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease;
}

.services-page-cta-button:hover {
    background: var(--off-white);
}


/* RESPONSIVE: TABLET */

@media (max-width: 850px) {

    .service-detail-grid {
        gap: 45px;
    }

    .service-detail-image {
        height: 430px;
    }

}


/* RESPONSIVE: MOBILE */

@media (max-width: 650px) {

    .services-page-hero {
        padding: 90px 7%;
    }

    .services-page-intro {
        padding: 75px 7%;
    }

    .service-detail-section {
        padding: 65px 7%;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .service-detail-image {
        height: 350px;
    }

    .service-detail-content {
        max-width: none;
    }

    .service-detail-content h2 {
        font-size: 42px;
    }

    .services-page-cta {
        padding: 80px 7%;
    }

}

/* =========================================
   12. PORTFOLIO PAGE
========================================= */

/* HERO */

.portfolio-hero {
    padding: 120px 6% 105px;
    background: var(--off-white);
    text-align: center;
}

.portfolio-hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.portfolio-eyebrow,
.portfolio-section-label {
    color: var(--deep-green);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.portfolio-hero h1 {
    margin: 25px 0;
    color: var(--dark-green);
    font-family: var(--font-heading);
    font-size: clamp(50px, 7vw, 84px);
    font-weight: 500;
    line-height: 1.05;
}

.portfolio-hero h1 em,
.portfolio-page-cta h2 em {
    color: var(--mint-medium);
    font-weight: 400;
}

.portfolio-hero-content > p:last-child {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.9;
}


/* GALLERY SECTION */

.portfolio-gallery-section {
    padding: 85px 6% 110px;
    background: var(--pale-mint);
}

.portfolio-gallery-container {
    max-width: 1350px;
    margin: 0 auto;
}

.portfolio-gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.portfolio-gallery-heading h2 {
    margin: 12px 0 0;
    color: var(--dark-green);
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 500;
}

.portfolio-gallery-description {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
}


/* SEARCH AND FILTERS */

.portfolio-controls {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 35px;
}

.portfolio-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    padding: 14px 17px;
    background: #FFFFFF;
    border: 1px solid rgba(36, 92, 72, 0.13);
}

.portfolio-search span {
    color: var(--deep-green);
    font-size: 23px;
}

.portfolio-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 13px;
}

.portfolio-search input:focus {
    outline: none;
    box-shadow: none;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-filter {
    padding: 10px 16px;
    border: 1px solid rgba(36, 92, 72, 0.25);
    background: transparent;
    color: var(--deep-green);
    font-family: var(--font-body);
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
}

.portfolio-filter:hover,
.portfolio-filter.active {
    background: var(--deep-green);
    border-color: var(--deep-green);
    color: #FFFFFF;
}


/* RESULT INFORMATION */

.portfolio-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.portfolio-results p {
    margin: 0;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 11px;
}


/* HORIZONTAL GALLERY */

.portfolio-gallery-wrapper {
    position: relative;
    padding: 0 48px;
}

.portfolio-gallery-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.portfolio-gallery-viewport::-webkit-scrollbar {
    display: none;
}

.portfolio-grid {
    display: grid;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 4);
    column-gap: 20px;
    row-gap: 28px;
    width: max-content;
    min-width: 100%;
}

.portfolio-card {
    min-width: 0;
}

.portfolio-card[hidden] {
    display: none !important;
}

.portfolio-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.portfolio-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--off-white);
}

.portfolio-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.portfolio-card-link:hover .portfolio-card-image img {
    transform: scale(1.045);
}

.portfolio-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 12px;
}

.portfolio-card-open {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--off-white);
    color: var(--deep-green);
    font-size: 17px;
}

.portfolio-card-information {
    padding-top: 13px;
}

.portfolio-card-category {
    margin: 0 0 7px;
    color: var(--deep-green);
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.portfolio-card-information h3 {
    margin: 0;
    color: var(--dark-green);
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 500;
    line-height: 1.2;
}


/* GALLERY ARROWS */

.portfolio-arrow {
    position: absolute;
    top: 42%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--deep-green);
    border-radius: 50%;
    background: var(--off-white);
    color: var(--deep-green);
    font-size: 19px;
    cursor: pointer;
    transition: background 0.2s ease,
                color 0.2s ease;
}

.portfolio-arrow:hover:not(:disabled) {
    background: var(--deep-green);
    color: #FFFFFF;
}

.portfolio-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.portfolio-arrow-left {
    left: 0;
}

.portfolio-arrow-right {
    right: 0;
}


/* EMPTY STATES */

.portfolio-empty,
.portfolio-no-results {
    padding: 50px 20px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    text-align: center;
}

.portfolio-empty h3 {
    color: var(--dark-green);
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 500;
}


/* FINAL CTA */

.portfolio-page-cta {
    padding: 105px 6%;
    background: var(--dark-green);
    text-align: center;
}

.portfolio-page-cta > p {
    color: var(--mint);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.portfolio-page-cta h2 {
    margin: 25px 0 35px;
    color: var(--off-white);
    font-family: var(--font-heading);
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 500;
    line-height: 1.1;
}

.portfolio-page-cta > a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 25px;
    background: var(--mint);
    color: var(--dark-green);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}


/* TABLET */

@media (max-width: 1000px) {

    .portfolio-grid {
        grid-template-rows: repeat(3, auto);
        grid-auto-columns: calc((100% - 40px) / 3);
    }

    .portfolio-gallery-heading h2 {
        font-size: 42px;
    }

}


/* MOBILE */

@media (max-width: 650px) {

    .portfolio-hero {
        padding: 85px 7%;
    }

    .portfolio-gallery-section {
        padding: 65px 5% 80px;
    }

    .portfolio-gallery-heading {
        display: block;
    }

    .portfolio-gallery-heading h2 {
        font-size: 39px;
    }

    .portfolio-gallery-description {
        margin-top: 12px;
    }

    .portfolio-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .portfolio-filter {
        flex: 0 0 auto;
    }

    .portfolio-gallery-wrapper {
        padding: 0 35px;
    }

    .portfolio-grid {
        grid-template-rows: repeat(2, auto);
        grid-auto-columns: calc((100% - 14px) / 2);
        column-gap: 14px;
        row-gap: 22px;
    }

    .portfolio-card-information h3 {
        font-size: 19px;
    }

    .portfolio-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .portfolio-page-cta {
        padding: 80px 7%;
    }

}

/* ========================================
   13. INDIVIDUAL PORTFOLIO PROJECT
======================================== */

.project-detail-page {
    background: var(--off-white);
    color: var(--text-dark);
}

/* PROJECT HERO */

.project-detail-hero {
    padding: 100px 5% 0;
    max-width: 1400px;
    margin: 0 auto;
}

.project-detail-hero-content {
    max-width: 900px;
    margin: 0 auto 55px;
    text-align: center;
}

.project-detail-category {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--deep-green);
    margin-bottom: 22px;
}

.project-detail-title {
    font-family: var(--font-heading);
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 500;
    line-height: 1.08;
    color: var(--dark-green);
    margin: 0 0 24px;
}

.project-detail-intro {
    max-width: 700px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-muted);
}

/* PROJECT COVER IMAGE */

.project-detail-cover {
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: var(--pale-mint);
}

.project-detail-cover-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* PROJECT CONTENT */

.project-detail-body {
    padding: 90px 5%;
}

.project-detail-content {
    max-width: 850px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.95;
    color: var(--text-dark);
}

.project-detail-content h2,
.project-detail-content h3,
.project-detail-content h4 {
    font-family: var(--font-heading);
    color: var(--dark-green);
    font-weight: 500;
    line-height: 1.25;
    margin-top: 45px;
    margin-bottom: 18px;
}

.project-detail-content h2 {
    font-size: 38px;
}

.project-detail-content h3 {
    font-size: 30px;
}

.project-detail-content p {
    margin-bottom: 22px;
}

.project-detail-content img,
.project-detail-content video,
.project-detail-content iframe {
    max-width: 100%;
}

.project-detail-content img {
    height: auto;
    margin: 25px 0;
}

.project-detail-content video {
    display: block;
    width: 100%;
    height: auto;
    margin: 35px 0;
}

.project-detail-content iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 35px 0;
}

.project-detail-content figure {
    margin: 35px 0;
}

.project-detail-content figcaption {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

/* PROJECT CTA */

.project-detail-cta {
    padding: 95px 5%;
    text-align: center;
    background: var(--pale-mint);
}

.project-detail-cta-eyebrow {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--deep-green);
    margin-bottom: 20px;
}

.project-detail-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--dark-green);
    margin: 0 0 20px;
}

.project-detail-cta > p:not(.project-detail-cta-eyebrow) {
    max-width: 600px;
    margin: 0 auto 30px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
}

.project-detail-cta-button {
    display: inline-block;
    padding: 15px 32px;
    background: var(--deep-green);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.project-detail-cta-button:hover {
    background: var(--dark-green);
    color: var(--white);
}

.project-detail-back {
    display: block;
    width: fit-content;
    margin: 25px auto 0;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--deep-green);
    text-decoration: none;
}

.project-detail-back:hover {
    text-decoration: underline;
}

/* MOBILE */

@media (max-width: 767px) {

    .project-detail-hero {
        padding: 75px 5% 0;
    }

    .project-detail-hero-content {
        margin-bottom: 35px;
    }

    .project-detail-title {
        font-size: 43px;
    }

    .project-detail-intro {
        font-size: 14px;
    }

    .project-detail-cover {
        height: 350px;
    }

    .project-detail-cover-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .project-detail-body {
        padding: 60px 6%;
    }

    .project-detail-content {
        font-size: 14px;
    }

    .project-detail-content h2 {
        font-size: 32px;
    }

    .project-detail-content h3 {
        font-size: 26px;
    }

    .project-detail-cta {
        padding: 75px 7%;
    }

}

/* =========================================
   SAPIVELLE — VIDEO PLAYER SPACING
========================================= */

.project-detail-media {
    width: 100%;
    padding: 55px 24px;
    box-sizing: border-box;
}

.project-detail-media-inner {
    width: 100%;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* VIDEO CONTAINER */

.project-video-viewer {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-sizing: border-box;
}

/* VIDEO ITSELF */

.project-video-viewer video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    background: #111;
}

/* MOBILE SPACING */

@media (max-width: 768px) {

    .project-detail-media {
        padding: 30px 16px;
    }

    .project-detail-media-inner {
        max-width: 100%;
    }

    .project-video-viewer {
        border-radius: 8px;
    }

    .project-video-viewer video {
        max-height: 60vh;
    }

}

/* =========================================
   SAPIVELLE — PDF THUMBNAIL AND VIEWER
========================================= */

.project-pdf-preview {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* CLICKABLE THUMBNAIL */

.project-pdf-thumbnail {
    display: block;
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f0;
    cursor: pointer;
}

.project-pdf-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: contain;
}

/* OPEN DOCUMENT LABEL */

.project-pdf-open-label {
    display: block;
    padding: 18px;
    background: #f0f3ed;
    color: #40584a;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

/* PLACEHOLDER WHEN NO THUMBNAIL EXISTS */

.project-pdf-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: #40584a;
    font-weight: 600;
}

/* FULL PDF VIEWER */

.project-document-viewer {
    width: 100%;
    margin-top: 30px;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f0;
}

.project-document-viewer iframe {
    display: block;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    border: none;
    background: white;
}

@media (max-width: 768px) {

    .project-pdf-thumbnail {
        max-width: 100%;
    }

    .project-pdf-thumbnail img {
        max-height: 450px;
    }

    .project-document-viewer iframe {
        height: 85vh;
        min-height: 600px;
    }

}

/* =========================================
   SAPIVELLE — DEDICATED PDF VIEWING PAGE
========================================= */

.sapivelle-pdf-view-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 24px 60px;
    box-sizing: border-box;
}

.sapivelle-pdf-view-header {
    margin-bottom: 25px;
}

.sapivelle-pdf-view-header h1 {
    margin-top: 25px;
}

.sapivelle-pdf-back-button {
    display: inline-block;
    padding: 12px 20px;
    background: #f0f3ed;
    color: #40584a;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.sapivelle-pdf-back-button:hover {
    background: #e4ebe3;
}

.sapivelle-pdf-full-viewer {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f0;
}

.sapivelle-pdf-full-viewer iframe {
    display: block;
    width: 100%;
    height: 100vh;
    min-height: 750px;
    border: none;
    background: #fff;
}

.sapivelle-pdf-bottom-back {
    margin-top: 25px;
}

@media (max-width: 768px) {

    .sapivelle-pdf-view-page {
        padding: 25px 16px 40px;
    }

    .sapivelle-pdf-full-viewer iframe {
        height: 85vh;
        min-height: 600px;
    }

}

/* =========================================
   SAPIVELLE UPLOAD CATEGORY VISIBILITY
========================================= */

#sapivelle-portfolio-category-field,
#sapivelle-insights-category-field {
    display: none;
}