:root {
    --deep-forest-green: #083B10;
    --timeless-bronze: #AA6C39;
    --cream-linen: #FFFAEC;
    --stone-gray: #8D99AE;

    --primary-font: "optima-lt-pro", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --serif-font: 'Georgia', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--cream-linen);
    /* Using optimized brand textured background */
    background-image: url('assets/background-textured.avif');
    /* Fallback for older browsers */
    background-image: -webkit-image-set(url('assets/background-textured.avif') 1x, url('assets/background-textured.jpg') 1x);
    background-image: image-set(url('assets/background-textured.avif') type('image/avif'), url('assets/background-textured.jpg') type('image/jpeg'));
    background-repeat: repeat;
    color: var(--deep-forest-green);
    font-family: var(--serif-font);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-weight: 700;
}

.brand-name {
    font-family: "optima-lt-pro", sans-serif !important;
    font-weight: 400;
}

nav .brand-name,
nav .brand-tagline {
    background: linear-gradient(90deg, var(--timeless-bronze) 0%, #D5AC7B 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

nav {
    background: var(--deep-forest-green);
    color: var(--timeless-bronze);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-brand-container,
.nav-brand-container a {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.brand-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-tagline {
    font-size: 0.8rem;
    font-family: "optima-lt-pro", sans-serif;
    font-style: normal;
    color: var(--cream-linen);
    margin-top: -0.2rem;
    font-weight: 400;
}

/* Hamburger Menu Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--timeless-bronze);
    border-radius: 2px;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.nav-links {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--timeless-bronze);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--timeless-bronze);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active-nav-link::after {
    width: 100%;
}

nav a:hover,
nav a.active-nav-link {
    color: var(--cream-linen);
}

@media (max-width: 768px) {
    nav {
        padding: 0.5rem 1rem;
    }

    .brand-logo {
        height: 32px;
    }

    .nav-brand-container {
        gap: 0.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--deep-forest-green);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    nav a {
        margin: 1.5rem 0;
        font-size: 1.2rem;
    }

    .brand-name {
        font-size: 1rem !important;
    }

    .brand-tagline {
        font-size: 0.65rem;
    }

    @media (max-width: 400px) {
        .brand-tagline {
            display: none;
            /* Hide tagline on very small screens to prevent overflow */
        }

        .brand-name {
            font-size: 0.9rem !important;
        }
    }
}

.hero {
    height: 100vh;
    background:
        /* linear-gradient(rgba(255, 250, 236, 0.7), rgba(255, 250, 236, 0.7)), */
        url('assets/background.avif'),
        url('assets/background-textured.avif');
    /* Modern image-set for better performance */
    background-image:
        image-set(url('assets/background.avif') type('image/avif'), url('assets/background.jpg') type('image/jpeg')),
        image-set(url('assets/background-textured.avif') type('image/avif'), url('assets/background-textured.jpg') type('image/jpeg'));
    background-size: contain, cover;
    background-repeat: no-repeat, repeat;
    background-position: center bottom, center;
    background-attachment: fixed;

    /* Parallax effect */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    max-width: 90%;
}

.hero p {
    font-size: 1.25rem;
    max-width: 85%;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    margin: 0.5rem;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
}

/* Section Identification Improvements */
.section-label {
    display: block;
    text-transform: uppercase;
    color: var(--timeless-bronze);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--timeless-bronze);
    margin: 2rem auto;
    border-radius: 2px;
}

.step-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.step-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 25px rgba(170, 108, 57, 0.1);
}

/* Partner Staggered Layout Home Page */
.partner-stagger-container {
    flex: 2;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
}

.partner-photo-wrapper {
    position: relative;
    transition: transform 0.4s ease;
}

.partner-photo-wrapper:last-child {
    margin-top: 3rem;
    /* The stagger */
}

.partner-stagger-image {
    width: 200px;
    height: 260px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: block;
}

@media (max-width: 768px) {
    .partner-stagger-container {
        gap: 0.8rem;
    }

    .partner-stagger-image {
        width: 145px;
        height: 190px;
    }

    .partner-photo-wrapper:last-child {
        margin-top: 1.5rem;
        /* Reduced stagger for smaller scale */
    }
}

@media (max-width: 380px) {
    .partner-stagger-image {
        width: 130px;
        height: 170px;
    }
}

.btn-primary {
    background-color: var(--deep-forest-green);
    color: var(--cream-linen);
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.5s ease;
}

.btn:hover::after {
    left: 120%;
}

.btn-secondary {
    background-color: var(--timeless-bronze);
    color: var(--cream-linen);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 4rem;
        height: auto;
        min-height: 100vh;
        justify-content: center;
        background-attachment: fixed;
        background-image:
            image-set(url('assets/background-mobile.avif') type('image/avif'), url('assets/background-mobile.jpg') type('image/jpeg')),
            image-set(url('assets/background-textured.avif') type('image/avif'), url('assets/background-textured.jpg') type('image/jpeg'));
        background-size: cover, repeat;
        background-position: center 60px, center;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-top: 1rem;
        max-width: 100%;
    }

    .hero p {
        font-size: 1.1rem;
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .page-header {
        margin-top: 6rem;
        /* Ensure pages start below the fixed nav */
    }

    /* Extra refinement for very small screens like iPhone SE */
    @media (max-width: 400px) {
        .hero h1 {
            font-size: 1.8rem;
        }

        .hero p {
            font-size: 1rem;
        }
    }
}

footer {
    background: var(--deep-forest-green);
    color: var(--cream-linen);
    padding: 0.8rem 1rem;
    text-align: center;
    font-size: 0.75rem;
}

/* Page Header Styles */
.page-header {
    margin-top: 4rem;
    text-align: center;
    padding-bottom: 1rem;
}

.header-dark {
    background-color: var(--deep-forest-green);
    color: var(--cream-linen);
}

/* Team Page Specific Styles */
.team-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    font-size: 1.1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 1rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--deep-forest-green);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(8, 59, 16, 0.08);
}

.team-card img {
    width: 220px;
    height: 280px;
    border-radius: 18px;
    object-fit: cover;
    flex-shrink: 0;
    margin-bottom: 2rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.member-info {
    width: 100%;
}

.team-card-header {
    border-bottom: 2px solid var(--timeless-bronze);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.team-card .title {
    font-weight: 700;
    color: var(--timeless-bronze);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

.team-card h2 {
    color: var(--deep-forest-green);
    font-size: 1.75rem;
    margin: 0;
}

.team-card ul {
    text-align: left;
    padding-left: 0;
    list-style: none;
    margin-bottom: 2rem;
    width: 100%;
}

.team-card ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.8rem;
    line-height: 1.5;
    font-size: 0.95rem;
    color: #3d3d3d;
}

.team-card ul li::before {
    content: "•";
    color: var(--timeless-bronze);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.linkedin-link {
    color: var(--deep-forest-green);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--deep-forest-green);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.linkedin-link:hover {
    background: var(--deep-forest-green);
    color: var(--cream-linen);
}

/* FAQ Page Specific Styles - Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0;
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.4);
}

.faq-question h3 {
    color: var(--deep-forest-green);
    margin: 0;
    font-size: 1.2rem;
}

.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--timeless-bronze);
    transition: all 0.3s ease;
}

.faq-icon::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.faq-icon::after {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 2rem 1.5rem 2rem;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.faq-answer p,
.faq-answer ul {
    color: var(--stone-gray);
    margin-top: 0;
}

.faq-item ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
    color: var(--stone-gray);
}

.faq-item ul li {
    margin-bottom: 0.5rem;
}

/* Contact Page Specific Styles */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-top: 1rem;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--stone-gray);
    border-radius: 5px;
    font-family: inherit;
}

.contact-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-direct {
    margin-top: 3rem;
}

.contact-link {
    color: var(--timeless-bronze);
    text-decoration: none;
    font-weight: 700;
}

/* Process Page Styles */
.process-step-container {
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.process-step-number {
    font-size: 3rem;
    color: var(--timeless-bronze);
    line-height: 1;
}

/* Why Banyan Page Styles */
.why-intro {
    text-align: center;
    background-color: var(--cream-linen);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: 2rem;
}

.why-card {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 30px rgba(8, 59, 16, 0.08);
}

.why-card h3 {
    color: var(--deep-forest-green);
    margin-bottom: 1rem;
}

/* Utility Styles */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}