/* ═══════════════════════════════════════════════════
   DESIGN TOKENS & RESPONSIVE UTILITIES
   ═══════════════════════════════════════════════════ */

:root {
    /* ── Colours ─────────────────────────────────── */
    --LA-green: #BBCEB0;
    --LA-brown: #675A4C;
    --LA-black: #000;
    --LA-white: #FFF;

    /* ── Typography ──────────────────────────────── */
    --font-mada: 'Mada', sans-serif;
    --text-xs: 13px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-paragraph: 18px;
    --text-heading-h2: 30px;
    --text-3xl: 50px;
    --leading-paragraph: 1.44444;

    /* ── Spacing ─────────────────────────────────── */
    --spacing-section: 160px;
    --spacing-section-md: 120px;
    --spacing-section-sm: 80px;
    --spacing-gutter: 24px;

    /* ── Layout ──────────────────────────────────── */
    --max-width: 1200px;
}

@media (max-width: 980px) {
    :root {
        --text-3xl: 36px;
        --text-heading-h2: 26px;
        --spacing-section: 100px;
        --spacing-section-md: 80px;
        --spacing-section-sm: 56px;
        --spacing-gutter: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --text-3xl: 28px;
        --text-heading-h2: 22px;
        --text-paragraph: 16px;
        --spacing-section: 72px;
        --spacing-section-md: 56px;
        --spacing-section-sm: 40px;
        --spacing-gutter: 16px;
    }
}

/* ═══════════════════════════════════════════════════
   GLOBAL HEADER
   ═══════════════════════════════════════════════════ */
.btn {
        transition: all 300ms ease 0ms;
}
.btn--cta {
    display: inline-flex;
    padding: 8.8px 19.2px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 24px;
    border: 2.4px solid var(--LA-green, #BBCEB0);
    color: var(--LA-white, #FFF);
    font-family: Mada;
    font-size: 14.4px;
    font-style: normal;
    font-weight: 700;
    line-height: 146%;
    /* 21.024px */
    &:hover {
        background-color: #BBCEB0;
        color: #000;
    }
}


/* ── Hide Divi's default header ──────────────────── */
#main-header,
#top-header {
    display: none !important;
}

[x-cloak] {
    display: none !important;
}

.site-header {
    position: fixed;
    z-index: 9999;
    background: transparent;
    width: 100%;
    transition: background-color 0.3s ease;

    &.is-scrolled {
        background-color: #675a4c;
    }
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* ── Logo ────────────────────────────────────────── */
.site-header__logo {
    flex-shrink: 0;

    img {
        display: block;
        height: 86px;
        width: auto;
    }
}

/* ── Desktop Nav ─────────────────────────────────── */
.site-header__nav {
    display: none;
}

@media (min-width: 981px) {
    .site-header .site-header__nav {
        display: block;
    }

    .site-header .site-header__burger {
        display: none !important;
    }
}

.site-header__menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__item {
    position: relative;

    &.has-submenu {
        padding-bottom: 16px;
        margin-bottom: -16px;
    }
}

.site-header__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--LA-white, #FFF);
    font-family: Mada;
    font-size: 14.4px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    /* 21.024px */
    transition: color 0.2s ease;

    &:hover,
    &.is-active {
        color: var(--LA-green, #BBCEB0);
    }
}

.site-header__chevron {
    transition: transform 0.2s ease;

    &.is-open {
        transform: rotate(180deg);
    }
}

/* ── Desktop Submenu ─────────────────────────────── */
.site-header__submenu {
    position: absolute;
    top: 100%;
    left: -24px;
    list-style: none;
    margin: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap:12px;

}

.submenu-enter {
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.submenu-enter-start {
    opacity: 0;
    transform: translateY(-4px);
}
.submenu-enter-end {
    opacity: 1;
    transform: translateY(0);
}
.submenu-leave {
    transition: opacity 0.1s ease;
}
.submenu-leave-start {
    opacity: 1;
}
.submenu-leave-end {
    opacity: 0;
}

.site-header__sublink {
    display: block;
    padding: 8px 24px;
    font-family: var(--font-mada);
    font-size: 14.4px;
    font-weight: 400;
    color: #000;
    font-weight: 700;
    line-height: 146%;
    background-color: #BBCEB0;
    border-radius: 24px;
    white-space: nowrap;
    width: fit-content;

    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;

    &:hover {
        background: #000;
        color: #BBCEB0;
    }
}

/* ── Burger ───────────────────────────────────────── */
.site-header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.site-header__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #FFF;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;

    &.is-open:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    &.is-open:nth-child(2) {
        opacity: 0;
    }

    &.is-open:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ── Mobile Nav ──────────────────────────────────── */
.site-header__mobile-nav {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 16px 24px;
}

.mobile-enter {
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-enter-start {
    opacity: 0;
    transform: translateY(-8px);
}
.mobile-enter-end {
    opacity: 1;
    transform: translateY(0);
}
.mobile-leave {
    transition: opacity 0.15s ease;
}
.mobile-leave-start {
    opacity: 1;
}
.mobile-leave-end {
    opacity: 0;
}

.site-header__mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__mobile-item {
    border-bottom: 1px solid #eee;

    &:last-child {
        border-bottom: none;
    }
}

.site-header__mobile-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__mobile-link {
    flex: 1;
    display: block;
    padding: 14px 0;
    font-family: var(--font-mada);
    font-size: 16px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
}

.site-header__mobile-toggle {
    background: none;
    border: none;
    padding: 14px 0 14px 14px;
    cursor: pointer;
    color: #000;

    svg {
        transition: transform 0.2s ease;

        &.is-open {
            transform: rotate(180deg);
        }
    }
}

.site-header__mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 16px;
}

.site-header__mobile-sublink {
    display: block;
    padding: 8px 0;
    font-family: var(--font-mada);
    font-size: 15px;
    font-weight: 400;
    color: #444;
    text-decoration: none;

    &:hover {
        color: var(--LA-green, #BBCEB0);
    }
}

@media (min-width: 981px) {
    .site-header__mobile-nav {
        display: none !important;
    }
}


.page-split.project-split {
    &.project-split--overlapping {
        padding-bottom: 75px;
    }
}

/* ═══════════════════════════════════════════════════
   GLOBAL FOOTER
   ═══════════════════════════════════════════════════ */

.site-footer__main {
    background: var(--LA-brown, #675A4C);
    padding-block: 60px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 140px;
    margin-inline: auto;
    align-items: start;
}

/* ── Left: Logo + Contact ────────────────────────── */
.site-footer__left {
    display: flex;
    justify-content: flex-start;
    gap: 50px;
    align-items: center;
}

.site-footer__logo img {
    display: block;
    height: 86px;
    width: auto;
}

.site-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-footer__email,
.site-footer__phone {
    font-family: var(--font-mada);
    font-size: 24px;
    font-weight: 700;
    color: var(--LA-green, #BBCEB0);
    text-decoration: none;
    line-height: 1.3;

    &:hover {
        text-decoration: underline;
    }
}

/* ── Right: Description + Grid ───────────────────── */
.site-footer__right {
    display: flex;
    flex-direction: column;
    padding-top:10px;
    gap: 10px;
}

.site-footer__desc {
    font-family: var(--font-mada);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #fff;

    p {
        margin: 0;
    }
}

.site-footer__grid {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__grid-divider {
    color: var(--LA-green, #BBCEB0);
    font-size: 14px;
}

.site-footer__grid-item {
    font-family: var(--font-mada);
    font-size: 14px;
    color: var(--LA-green, #BBCEB0);

    p {
        margin: 0;
    }

    a {
        color: var(--LA-green, #BBCEB0);
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }
}

/* ── Copyright bar ───────────────────────────────── */
.site-footer__copyright {
    background: #FFF;
    padding-block: 19px;
}

.site-footer__copyright-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-inline: auto;

    p {
        font-family: var(--font-mada);
        color: var(--TB-Black, #2E2E2E);
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 160%;
        margin: 0;
        padding-bottom: 0;
        display: flex;
        gap: 10px;
    }
}

.site-footer__credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-footer__credit-icon {
    width: 20px;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Header & Footer
   ═══════════════════════════════════════════════════ */

@media (max-width: 980px) {

    .site-header__inner {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-header__logo img {
        height: 56px;
    }


    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .site-footer__left {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-gutter);
    }

    .site-footer__logo img {
        height: 64px;
    }

    .site-footer__email,
    .site-footer__phone {
        font-size: 20px;
    }

    .site-footer__grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .site-footer__grid-divider {
        display: none;
    }

    .site-footer__copyright-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .container {
        width: 100% !important;
        padding-inline: 24px !important;
    }
}

@media (max-width: 768px) {

    .site-header__logo img {
        height: 44px;
    }


    .site-footer__email,
    .site-footer__phone {
        font-size: var(--text-paragraph);
    }

    .site-footer__desc {
        font-size: var(--text-xs);
    }

    .site-footer__copyright {
        padding-block: 14px;
    }

    .site-footer__copyright-inner p {
        font-size: var(--text-xs);
    }
}
