/*
Theme Name: Hope
Author: Your Name
Description: A bespoke WordPress theme using Tailwind CSS
Version: 1.0.0
*/

body {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-opensans {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 18px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
}

@media (max-width: 767px) {
    .group.show-overlay .mobile-overlay {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

.burger {
    display: block !important;
}

nav.bg-\[\#AEB3A3\] {
    display: none !important;
}

#burger-overlay {
    flex-direction: column !important;
    padding: 0 !important;
}

#burger-overlay .flex-1 {
    padding: 2rem 1rem !important;
    align-items: flex-start !important;
}

#burger-overlay ul {
    gap: 2rem !important;
}

#burger-overlay .text-5xl {
    font-size: 2rem !important;
    line-height: 2.5rem !important;
}

#burger-overlay .md\:w-1\/2 {
    width: 100% !important;
    border-left: none !important;
    margin-top: 2rem !important;
    padding: 1rem !important;
}

#burger-overlay img {
    max-width: 100% !important;
    margin-bottom: 1rem !important;
}

#burger-overlay .text-left {
    max-width: 100% !important;
}

#close-burger {
    top: 1rem !important;
    left: 1rem !important;
    font-size: 2rem !important;
}

#burger {
    display: flex !important;
    z-index: 9999 !important;
    position: relative !important;
}

#mobile-menu .mobile-menu__main {
    width: 70vw;
    max-width: 320px;
    min-width: 220px;
    position: relative;
    height: 100vh;
    background: #fff;
    z-index: 2;
    padding: 4rem 1.5rem 2rem 2rem;
    box-sizing: border-box;
}

#mobile-menu .mega-menu {
    position: fixed;
    top: 0;
    left: 70vw;
    width: 80vw;
    max-width: 400px;
    min-width: 220px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 24px 0 rgba(0, 0, 0, 0.10);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transform: translateX(30px);
    transition: transform 0.35s cubic-bezier(.77, 0, .18, 1), opacity 0.35s cubic-bezier(.77, 0, .18, 1);
    padding: 2rem 1.5rem 2rem 2rem;
    box-sizing: border-box;
}

#mobile-menu .mega-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

#mobile-menu__nav ul {
    margin: 0;
    padding: 0;
}

#mobile-menu__nav ul li {
    margin-bottom: 1.5rem;
    padding: 0;
    position: relative;
}

#mobile-menu__nav ul li:last-child {
    margin-bottom: 0;
}

/* Only show dash for open submenu parent */
.mobile-menu__nav-container ul li.submenu-open.au-mm:after,
.mobile-menu__nav-container ul li.submenu-open.cm-mm:after,
.mobile-menu__nav-container ul li.submenu-open.ol-mm:after {
    background-color: #000;
    content: "";
    height: 1.5px;
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
}

@media (max-width: 1023px) {
    /* Remove or comment out this rule: */
    /* #mobile-menu__nav.showing-submenu > ul {
        display: none !important;
    } */
    #mobile-menu__nav .mega-menu {
        display: none !important;
        position: absolute !important;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100vw !important;
        height: 100vh !important;
        background: #fff !important;
        z-index: 100;
        overflow-y: auto;
        padding: 2rem 1.5rem 2rem 2rem !important;
    }
    #mobile-menu__nav .mega-menu.active {
        display: block !important;
    }
    #mobile-menu__nav .mobile-menu__back {
        display: block;
        margin-bottom: 1.5rem;
        font-size: 1rem;
        color: #222;
        cursor: pointer;
    }
}

@media (max-width: 50em) {
    .mobile-menu__nav-container ul li.submenu-open.au-mm:after,
    .mobile-menu__nav-container ul li.submenu-open.cm-mm:after,
    .mobile-menu__nav-container ul li.submenu-open.ol-mm:after {
        right: -70px;
        width: 30px;
    }
}

@media (min-width: 501px) {
    .header-logo svg {
        max-width: 500px !important;
        height: auto !important;
    }
}

@media (max-width: 500px) {
    .header-logo svg {
        max-width: 350px !important;
        height: auto !important;
    }
}

/* Newsletter form horizontal layout for Gravity Forms */
.newsletter-form .gform_fields {
    display: flex !important;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form .gfield {
    flex: 1 1 0%;
    margin-bottom: 0 !important;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    width: 100%;
    border: 1px solid #d1d5db;
    background: #fff;
    min-width: 0;
}

.newsletter-form .gform_footer,
.newsletter-form .gform_page_footer {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.newsletter-form .gform_footer input[type="submit"],
.newsletter-form .gform_page_footer input[type="submit"] {
    background: #5B6842;
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    height: 42px;
    margin-left: 0.5rem;
    transition: background 0.2s;
    width: auto;
    min-width: 120px;
}

.newsletter-form .gform_footer input[type="submit"]:hover,
.newsletter-form .gform_page_footer input[type="submit"]:hover {
    background: #43512e;
}

.parallax-image {
    will-change: transform;
    transition: transform 0.1s linear;
}

.text-link {
    position: relative;
    text-decoration: none;
    font-weight: normal;
    display: inline-block;
    color: #000;
}

.text-link::before,
.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    pointer-events: none;
}

.text-link::before {
    background: #5B6842;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.text-link::after {
    background: #AEB3A3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.text-link:hover::before {
    transform: scaleX(0);
}

.text-link:hover::after {
    transform: scaleX(1);
}

/* Burger Button Animation */
.burger {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 60;
    cursor: pointer;
    background: none;
    border: none;
}

.burger-line {
    display: block;
    height: 3px;
    width: 100%;
    background: #5B6842;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.burger.open .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg) !important;
}

.burger.open .burger-line:nth-child(2) {
    opacity: 0 !important;
}

.burger.open .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg) !important;
}

/* Overlay Animation */
#burger-overlay {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#burger-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Menu Item Animation */
.burger-menu-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s, transform 0.4s;
}

#burger-overlay.show-menu-items .burger-menu-item {
    opacity: 1;
    transform: translateY(0);
}

.burger-menu-item.current-menu-item > a,
.burger-menu-item.current_page_item > a {
    position: relative;
}

.burger-menu-item.current-menu-item > a::after,
.burger-menu-item.current_page_item > a::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: #5B6842;
    margin-top: 8px;
    border-radius: 2px;
}

#hope-loader {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

#hope-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-logo.show {
    opacity: 1;
    transform: scale(1);
}

@keyframes logo-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.loader-logo path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: logo-draw 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hope-header-text {
    font-family: Arial, sans-serif !important;
    font-weight: bold;
    font-size: 3rem;
    letter-spacing: 0.05em;
    display: inline-block;
    line-height: 1;
    color: #222;
}

@media (max-width: 600px) {
    .hope-header-text {
        font-size: 2.5rem;
    }
}

.burger-blur-bg {
    background: rgba(30, 30, 30, 0.25);
    backdrop-filter: blur(8px);
    z-index: 0;
}

#burger-overlay.open .burger-blur-bg {
    opacity: 1;
    pointer-events: auto;
}

#burger-overlay .burger-blur-bg {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-panel {
    z-index: 10;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
    box-shadow: 2px 0 24px 0 rgba(0, 0, 0, 0.10), 0 2px 8px 0 rgba(0, 0, 0, 0.04);
    background: #fff;
}

#burger-overlay.open .burger-panel {
    transform: translateX(0);
}

#burger-overlay {
    pointer-events: none;
}

#burger-overlay.open {
    pointer-events: auto;
}

/* --- TRUE TWO-COLUMN, ROW-ALIGNED MENU --- */
.burger-panel nav > ul {
    display: flex;
    flex-direction: column;
    position: relative;
}

.burger-panel nav > ul > li {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 3.5rem;
}

.burger-panel .menu-item-has-children > a {
    position: relative;
    z-index: 2;
    cursor: pointer;
}

/* Hide sub-menu by default */
.burger-panel .menu-item-has-children > .sub-menu {
    display: none !important;
}

/* Dash always visible for parents with submenu */
.burger-panel .menu-item-has-children > a::after {
    content: '—';
    display: inline-block;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 1.2rem;
    margin-right: 1.2rem;
    font-size: 2rem;
    color: #bbb;
    font-weight: 400;
    z-index: 3;
    transition: color 0.2s, font-weight 0.2s;
}

.burger-panel .menu-item-has-children.submenu-open > a::after {
    color: #222;
    font-weight: 700;
}

/* Submenu slide-out animation */
.burger-panel .menu-item-has-children > .sub-menu {
    display: block !important;
    position: fixed;
    top: 0;
    left: 320px;
    height: 100vh;
    min-width: 260px;
    background: #fff;
    box-shadow: 2px 0 24px 0 rgba(0, 0, 0, 0.10);
    border: none;
    padding: 2.5rem 2rem;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-30px);
    transition: transform 0.35s cubic-bezier(.77, 0, .18, 1), opacity 0.35s cubic-bezier(.77, 0, .18, 1);
}

.burger-panel .menu-item-has-children.submenu-open > .sub-menu {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Remove chevrons and previous dashes */
.burger-panel .menu-item-has-children > a::before,
.burger-panel .menu-item-has-children > a::after {
    /* Only use the above ::after for dash when open */
}

/* Sub-menu items styling */
.burger-panel .menu-item-has-children > .sub-menu > li > a {
    font-size: 1.1em;
    font-weight: 400;
    padding: 0.5em 0;
}

@media (max-width: 900px) {
    .burger-panel nav > ul {
        display: block;
    }

    .burger-panel nav > ul > li {
        display: block;
        min-height: unset;
    }

    .burger-panel .menu-item-has-children.submenu-open > .sub-menu {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        min-width: 0;
        padding-left: 1.5em;
        margin-top: 0.5em;
        border-left: 2px solid #e5e7eb;
        background: none;
    }

    .burger-panel .menu-item-has-children.submenu-open > a::after {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        margin-left: 0.5em;
        margin-right: 0;
        font-size: 1.5rem;
    }
}

/* --- MEGA MENU & MOBILE MENU (reference-aligned) --- */
.mega-menu {
    width: 350px !important;
    left: 450px !important;
    background: #fff !important;
    box-shadow: 2px 0 24px 0 rgba(0, 0, 0, 0.10);
    border: none;
    padding: 2.5rem 2rem;
    height: 100vh;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transform: translateX(-30px) translateY(0);
    transition: transform 0.35s cubic-bezier(.77, 0, .18, 1), opacity 0.35s cubic-bezier(.77, 0, .18, 1);
}

.mega-menu__container {
    position: relative;
    top: 0;
}

.mega-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) translateY(0);
}

@media (max-width: 1023px) {
    .mega-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: #fff !important;
        z-index: 1000 !important;
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        transition: transform 0.4s cubic-bezier(.77, 0, .18, 1), opacity 0.3s !important;
        transform: translateX(-100vw);
        overflow-y: auto;
        font-family: quasimoda-6, quasimoda, 'Open Sans', Arial, sans-serif;
        font-size: 14px;
        visibility: hidden;
    }
    .mega-menu.active {
        transform: translateX(0);
        visibility: visible;
    }
    /* Hide main menu when submenu is open */
    .mobile-menu__nav-container.menu-slid-left > ul {
        display: none !important;
    }
    .mega-menu__container {
        max-width: 100vw;
        padding: 0;
        margin: 0;
    }
    .mega-menu__nav--ul {
        padding-left: 60px;
        margin: 0;
        list-style: none;
        padding-top: 60px;
    }
    .mega-menu__nav--ul li {
        max-width: 200px;
        width: 100%;
        margin-bottom: 30px;
        text-align: left;
    }
    .mega-menu__nav--ul li:first-child {
        margin-top: 0;
    }
    .mega-menu__nav--ul li:last-child {
        margin-bottom: 0;
    }
    .mega-menu__nav--ul a.nav-link,
    .mega-menu__back {
        color: #000;
        font-size: 14px;
        font-weight: 600;
        line-height: 24px;
        text-decoration: none;
        text-transform: uppercase;
        display: block;
        padding: 0;
        background: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        cursor: pointer;
        font-family: inherit;
        transition: color 0.2s;
        text-align: left;
    }
    .mega-menu__nav--ul a.nav-link:active,
    .mega-menu__nav--ul a.nav-link:focus,
    .mega-menu__back:active,
    .mega-menu__back:focus {
        color: #5B6842;
    }
}

.mega-menu__nav--item a {
    text-decoration: none;
}

#mobile-menu {
    background-color: #fff;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, .1);
    height: 100%;
    left: 0;
    max-width: 450px;
    position: fixed;
    top: 0;
    transform: translateX(-140%);
    transition: all .75s;
    width: 100%;
    z-index: 100;
}

@media (prefers-reduced-motion: reduce) {
    #mobile-menu {
        transition: none;
    }
}

#mobile-menu.active {
    transform: translateX(0);
}

@media (max-width: 50em) {
    #mobile-menu.active {
        max-width: 100vw;

    }
}

#mobile-menu__nav {
    position: relative;
    top: 60px
}

#mobile-menu.menu-active {
    max-width: 450px;
}

@media (max-width: 50em) {
    #mobile-menu.menu-active {
        max-width: 100vw;

    }

    #mobile-menu.menu-active .mobile-menu__nav-container {
        pointer-events: none;
    }

    #mobile-menu.menu-active .mobile-menu__nav-container > ul {
        transform: translateX(-440px);
    }
}

.mobile-menu {
    padding-top: 100px;
}

.mobile-menu__icon {
    bottom: 70px;
    left: 60px;
    max-width: 70px;
    position: absolute;
}

.mobile-menu__nav-container {
    position: relative;
    transform: translateY(0);
    transition: all .4s;
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu__nav-container {
        transition: none;
    }
}

.mobile-menu__nav-container ul {
    list-style: none;
    padding-left: 60px;
    transition: all .75s;
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu__nav-container ul {
        transition: none;
    }
}

.mobile-menu__nav-container ul li {
    max-width: 200px;
    position: relative;
    width: 100%;
}

.mobile-menu__nav-container ul li:not(:last-of-type) {
    margin-bottom: 30px;
}

.mobile-menu__nav-container ul li a {
    color: #000;
    font-family: quasimoda-6, quasimoda, 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    text-transform: uppercase;
}

@media only screen and (min-width: 375px) {
    .mobile-menu__nav-container ul li a {
        font-size: calc(13.68354px + .08439vw);
        line-height: calc(23.68354px + .08439vw);
    }
}

@media screen and (min-width: 1540px) {
    .mobile-menu__nav-container ul li a {
        font-size: 15px;
        line-height: 25px;
    }
}

.mobile-menu__background {
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .1);
    height: 100%;
    left: 0;
    max-height: 100vh;
    max-width: 100vw;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    transition: opacity .4s;
    width: 100%;
    z-index: 99;
}

.mobile-menu__background.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__back {
    text-decoration: underline;
}

.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    background: #fff;
}

@media (max-width: 1023px) {
    .mobile-menu__nav-container {
        position: relative;
        width: 100vw;
        overflow: hidden;
        height: 100vh;
        padding-left: 0;
    }
    .mobile-menu__nav-container > ul {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #fff;
        transition: transform 0.4s cubic-bezier(.77, 0, .18, 1);
        z-index: 1;
        transform: translateX(0);
    }
    .mobile-menu__nav-container.menu-slid-left > ul {
        transform: translateX(-100vw);
    }
    .mega-menu {
        position: absolute !important;
        top: 0;
        left: 100vw;
        width: 100vw !important;
        height: 100vh !important;
        background: #fff !important;
        box-shadow: none !important;
        padding: 1.5rem 1rem !important;
        z-index: 2;
        opacity: 1;
        pointer-events: auto;
        transition: left 0.4s cubic-bezier(.77, 0, .18, 1);
        display: block !important;
    }
    .mega-menu.active {
        left: 0;
    }
}

/* FAQ Accordion Styles */
@media (min-width: 768px) {
    .faq-grid-split {
        grid-template-columns: 1fr 1fr;
    }
}

/* Download Buttons Block Styles */
.download-button {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.download-button:hover {
    transform: translateY(-2px);
}

/* Image zoom effect on hover */
.download-button img {
    transition: transform 0.6s ease;
}

.download-button:hover img {
    transform: scale(1.1);
}

/* Gradient overlay transitions */
.download-button .bg-gradient-to-t,
.download-button .bg-gradient-to-br {
    transition: all 0.4s ease;
}

/* Solid style specific */
.download-button.bg-black:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Outline style specific */
.download-button.border-2:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: #374151;
}

/* Minimal style specific */
.download-button.border:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background-color: #f9fafb;
}

/* Icon animations */
.download-button svg {
    transition: all 0.3s ease;
}

.download-button:hover svg:last-child {
    animation: arrow-bounce 0.6s ease-in-out;
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

/* File type badge animation */
.download-button .uppercase {
    transition: all 0.3s ease;
}

.download-button:hover .uppercase {
    letter-spacing: 0.1em;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .download-buttons-section .grid {
        gap: 1rem;
    }

    .download-button {
        padding: 1.25rem;
    }
}

/* Map Embed Styles */
.map-embed-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.map-embed-container > p {
    margin: 0;
    height: 100%;
}

.map-embed-container > p > iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}