/* ═══════════════════════════════════════════
   WORDPRESS HEADER / NAVIGATION
═══════════════════════════════════════════ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1.4rem 4rem;

    background: transparent;

    transition:
        background 0.4s ease,
        backdrop-filter 0.4s ease,
        padding 0.4s ease,
        box-shadow 0.4s ease;
}

.off-cavas,
.bar-icon {
    display: none;
}

/* Optional scrolled state */
.site-header.scrolled {
    background: rgba(253, 250, 246, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    padding: 1rem 4rem;

    box-shadow: 0 2px 24px rgba(44, 74, 56, 0.07);
}


/* ═══════════════════════════════════════════
   SITE BRANDING / LOGO
═══════════════════════════════════════════ */

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
}

.site-branding .custom-logo {
    max-height: 52px;
    width: auto;
    display: block;
}

.site-title {
    margin: 0;
    font-family: var(--ff-display, Georgia, serif);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.2;
}

.site-title a {
    color: var(--forest, #2c4a38);
    text-decoration: none;
}

.site-description {
    display: none;
}


/* ═══════════════════════════════════════════
   MAIN NAVIGATION
═══════════════════════════════════════════ */

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;

    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    position: relative;
    display: block;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-mid, #5f655f);
    text-decoration: none;
    transition: color 0.25s ease;
}


/* Underline animation */

.main-navigation a::after {
    content: "";

    position: absolute;
    bottom: -5px;
    left: 0;

    width: 0;
    height: 1px;

    background: var(--sage-dark, #617a65);

    transition: width 0.25s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a {
    color: var(--forest, #2c4a38);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item>a::after,
.main-navigation .current_page_item>a::after {
    width: 100%;
}


/* ═══════════════════════════════════════════
   DROPDOWN MENU
═══════════════════════════════════════════ */

.main-navigation ul ul {
    position: absolute;
    top: calc(100% + 25px);
    left: -20px;

    display: block;

    min-width: 190px;

    padding: 15px 0;

    background: rgba(253, 250, 246, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow: 0 10px 30px rgba(44, 74, 56, 0.08);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.main-navigation ul li:hover>ul,
.main-navigation ul li:focus-within>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    padding: 10px 20px;

    font-size: 0.8rem;
}

.main-navigation ul ul a::after {
    display: none;
}


/* ═══════════════════════════════════════════
   WORDPRESS MOBILE BUTTON
═══════════════════════════════════════════ */

.menu-toggle {
    display: none;

    border: 0;
    padding: 0;

    background: transparent;

    font-size: 0;
    cursor: pointer;
}

.menu-toggle::before,
.menu-toggle::after {
    content: "";
    display: block;
}


/* ═══════════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════════ */

@media (max-width: 900px) {

    .site-header {
        padding: 1.2rem 1.5rem;
    }

    .site-header.scrolled {
        padding: 0.9rem 1.5rem;
    }

    .site-branding .custom-logo {
        max-height: 45px;
    }

    .site-title {
        font-size: 1.15rem;
    }


    /* Hamburger */

    .menu-toggle {
        display: flex;

        flex-direction: column;
        justify-content: center;
        gap: 5px;

        width: 28px;
        height: 28px;

        color: transparent;
    }

    .menu-toggle::before,
    .menu-toggle::after {
        width: 24px;
        height: 1.5px;

        background: var(--forest, #2c4a38);

        transition: transform 0.25s ease;
    }

    .menu-toggle::after {
        box-shadow: 0 -6.5px 0 var(--forest, #2c4a38);
    }


    /* Navigation container */

    .main-navigation {
        position: static;
    }

    .main-navigation>ul {
        position: fixed;

        top: 0;
        right: -100%;

        width: 75vw;
        height: 100vh;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 2rem;

        padding: 0;
        margin: 0;

        background: var(--forest, #2c4a38);

        z-index: 999;

        transition:
            right 0.5s cubic-bezier(0.77,
                0,
                0.175,
                1);
    }


    /* WordPress adds .toggled to navigation */

    .main-navigation.toggled>ul {
        right: 0;
    }


    /* Mobile links */

    .main-navigation>ul>li {
        width: auto;
    }

    .main-navigation>ul>li>a {
        font-family: var(--ff-display, Georgia, serif);

        font-size: 2rem;
        font-weight: 300;

        color: var(--cream, #fdfaf6);

        letter-spacing: 0;
    }

    .main-navigation>ul>li>a::after {
        display: none;
    }

    .main-navigation>ul>li>a:hover,
    .main-navigation>ul>li.current-menu-item>a {
        color: var(--dusty-rose, #c58d87);
    }


    /* Dropdowns on mobile */

    .main-navigation ul ul {
        position: static;

        display: none;

        min-width: 0;

        padding: 10px 0;

        background: transparent;

        box-shadow: none;

        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .main-navigation li:hover>ul {
        display: block;
    }

    .main-navigation ul ul a {
        color: rgba(253, 250, 246, 0.75);
        font-family: inherit;
        font-size: 0.9rem;
    }
}


/* ═══════════════════════════════════════════
   SMALL MOBILE
═══════════════════════════════════════════ */

@media (max-width: 480px) {

    .site-header {
        padding: 1rem 1.2rem;
    }

    .site-branding .custom-logo {
        max-height: 40px;
    }

    .site-title {
        font-size: 1rem;
    }

    .main-navigation>ul {
        width: 85vw;
    }

    .main-navigation>ul>li>a {
        font-size: 1.7rem;
    }
}



/* ═══════════════════════════════════════════
   404 ERROR PAGE
═══════════════════════════════════════════ */

.error-404 {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 8rem 2rem 5rem;

    text-align: center;

    background: var(--cream, #fdfaf6);

    position: relative;
    overflow: hidden;
}


/* ═══════════════════════════════════════════
   DECORATIVE BACKGROUND
═══════════════════════════════════════════ */

.error-404::before {
    content: "404";

    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -55%);

    font-family: var(--ff-display, Georgia, serif);
    font-size: clamp(12rem, 30vw, 30rem);
    font-weight: 300;
    line-height: 1;

    color: rgba(44, 74, 56, 0.035);

    pointer-events: none;
    user-select: none;
}

/* ═══════════════════════════════════════════
   HOME BUTTON
═══════════════════════════════════════════ */

.error-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;

    margin-top: 2.2rem;
    padding: 0.9rem 1.8rem;

    border: 1px solid var(--forest, #2c4a38);

    color: var(--forest, #2c4a38);

    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;

    text-decoration: none;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.error-home-link span {
    transition: transform 0.3s ease;
}

.error-home-link:hover {
    background: var(--forest, #2c4a38);
    color: var(--cream, #fdfaf6);

    transform: translateY(-2px);
}

.error-home-link:hover span {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════
   CONTENT
═══════════════════════════════════════════ */

.error-404 .page-header,
.error-404 .page-content {
    position: relative;
    z-index: 2;

    max-width: 700px;
}


/* Small label */

.error-404 .page-header::before {
    content: "PAGE NOT FOUND";

    display: block;

    margin-bottom: 1.2rem;

    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;

    color: var(--dusty-rose, #c58d87);
}


/* ═══════════════════════════════════════════
   TITLE
═══════════════════════════════════════════ */

.error-404 .page-title {
    margin: 0;

    font-family: var(--ff-display, Georgia, serif);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 300;
    line-height: 1.05;

    letter-spacing: -0.03em;

    color: var(--forest, #2c4a38);
}


/* ═══════════════════════════════════════════
   DESCRIPTION
═══════════════════════════════════════════ */

.error-404 .page-content {
    margin-top: 1.8rem;
}

.error-404 .page-content p {
    max-width: 540px;

    margin: 0 auto;

    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;

    color: var(--text-mid, #626862);
}




/* Make pseudo-element behave like button */

.error-404 .page-content:hover::after {
    background: var(--forest, #2c4a38);
    color: var(--cream, #fdfaf6);

    transform: translateY(-2px);
}


/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 768px) {

    .error-404 {
        padding: 7rem 1.5rem 4rem;
    }

    .error-404 .page-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .error-404 .page-content {
        margin-top: 1.4rem;
    }

    .error-404 .page-content p {
        font-size: 0.95rem;
    }
}


@media (max-width: 480px) {

    .error-404 {
        padding: 6rem 1.2rem 3rem;
    }

    .error-404 .page-header::before {
        font-size: 0.65rem;
    }

    .error-404 .page-title {
        font-size: 2.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE OFF CANVAS
═══════════════════════════════════════════════════════════ */

.bar-icon,
.off-cavas {
    display: none;
}


@media (max-width: 1024px) {

    /* Hide desktop navigation */

    .main-navigation,
    .btn--nav {
        display: none;
    }


    /* Hamburger */

    .bar-icon {
        position: relative;
        z-index: 1200;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;

        padding: 0;

        border: 0;
        background: transparent;

        color: var(--forest, #2c4a38);

        font-size: 1.4rem;

        cursor: pointer;
    }


    .bar-icon:focus-visible {
        outline: 2px solid var(--forest, #2c4a38);
        outline-offset: 4px;
    }


    /* Off canvas */

    .off-cavas {
        position: fixed;

        top: 0;
        right: 0;

        z-index: 1100;

        display: block;

        width: min(420px, 88vw);
        height: 100dvh;

        padding: 30px 35px;

        background: var(--cream, #fdfaf6);

        box-shadow:
            -10px 0 40px rgba(0, 0, 0, 0.12);

        overflow-y: auto;

        transform: translateX(100%);

        transition:
            transform 0.45s cubic-bezier(
                0.77,
                0,
                0.175,
                1
            );
    }


    /* OPEN */

    .off-cavas.menu-open {
        transform: translateX(0);
    }


    /* Prevent page scroll */

    body.menu-active {
        overflow: hidden;
    }


    /* -----------------------------------------------
       HEADER INSIDE MENU
    ----------------------------------------------- */

    .off-canvas-logo-wrapper {
        margin-bottom: 50px;
    }

    .off-canvas-logo-wrapper .flex {
        display: flex;

        align-items: center;
        justify-content: space-between;
    }


    .offcanvas-logo img {
        display: block;

        max-width: 150px;
        height: auto;
    }


    /* Close button */

    .offcanvas-close {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 42px;
        height: 42px;

        padding: 0;

        border: 0;

        background: transparent;

        color: var(--forest, #2c4a38);

        font-size: 1.2rem;

        cursor: pointer;

        transition:
            color 0.25s ease,
            transform 0.25s ease;
    }


    .offcanvas-close:hover {
        color: var(--dusty-rose, #c58d87);

        transform: rotate(90deg);
    }


    /* -----------------------------------------------
       MENU
    ----------------------------------------------- */

    .off-canvas-primary-menu {
        list-style: none;

        margin: 0;
        padding: 0;
    }


    .off-canvas-primary-menu > li {
        position: relative;

        border-bottom:
            1px solid rgba(44, 74, 56, 0.12);
    }


    .off-canvas-primary-menu > li > a {
        display: block;

        padding: 18px 50px 18px 0;

        color: var(--forest, #2c4a38);

        font-family:
            var(--ff-display, Georgia, serif);

        font-size: 1.5rem;

        text-decoration: none;

        transition: color 0.25s ease;
    }


    .off-canvas-primary-menu > li > a:hover {
        color: var(--dusty-rose, #c58d87);
    }


    /* -----------------------------------------------
       SUBMENU
    ----------------------------------------------- */

    .off-canvas-primary-menu
    .sub-menu {

        display: none;

        list-style: none;

        margin: 0;

        padding:
            0 0 15px 15px;
    }


    .off-canvas-primary-menu
    .submenu-open > .sub-menu {
        display: block;
    }


    .off-canvas-primary-menu
    .sub-menu li {
        border: 0;
    }


    .off-canvas-primary-menu
    .sub-menu a {

        display: block;

        padding: 8px 0;

        color: var(--text-mid, #5f655f);

        font-size: 0.95rem;

        text-decoration: none;
    }


    .off-canvas-primary-menu
    .sub-menu a:hover {
        color: var(--forest, #2c4a38);
    }


    /* -----------------------------------------------
       SUBMENU ARROW
    ----------------------------------------------- */

    .submenu-toggle {

        position: absolute;

        top: 10px;
        right: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 42px;
        height: 42px;

        padding: 0;

        border: 0;

        background: transparent;

        color: var(--forest, #2c4a38);

        cursor: pointer;
    }


    .submenu-toggle::before {

        content: "";

        width: 8px;
        height: 8px;

        border-right:
            1.5px solid currentColor;

        border-bottom:
            1.5px solid currentColor;

        transform:
            rotate(45deg);

        transition:
            transform 0.25s ease;
    }


    .submenu-open
    > .submenu-toggle::before {

        transform:
            rotate(225deg);
    }

}


/* ═══════════════════════════════════════════════════════════
   DESKTOP
═══════════════════════════════════════════════════════════ */

@media (min-width: 1025px) {

    .bar-icon,
    .off-cavas {
        display: none !important;
    }

}
