html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    /* Match header offset */
}

/* ── Global Typography ── */
h1,
h2,
h3 {
    font-family: 'Lexend', sans-serif;
    font-weight: 800;
}

p,
ul,
li,
.font-sofia-sans {
    font-family: 'Sofia Sans', sans-serif;
    font-weight: 400;
}

.scroll-reveal {
    opacity: 0.2;
    transform: translateY(30px);
    will-change: transform, opacity;
}

/* ── Transparent Header ── */
.glass-header {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

/* ── Liquid Glass Pill (used on left nav group & right action group) ── */
.glass-pill {
    background: rgb(246, 246, 228, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgb(255, 255, 255, 0.08);
    height: 3.1rem;
    border-radius: 9999px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy feel */
}

/* ── Specific Pill Widths ── */
.header-main-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

#left-pill {
    flex-grow: 0;
    flex-shrink: 0;
    width: fit-content;
}

@media (min-width: 826px) {
    #left-pill {
        flex-grow: 1;
        width: auto;
        margin-right: 2rem;
    }
}

#left-pill.footer-active {
    background: rgba(46, 101, 20, 0.4);
    /* Darker green background when in footer */
}

#right-pill {
    margin-left: 1.5rem;
    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.4s ease,
        width 0.5s ease,
        padding 0.5s ease;
}

@media (min-width: 826px) {
    #right-pill.footer-active {
        transform: scale(0);
        opacity: 0;
        width: 0 !important;
        margin-left: 0 !important;
        padding: 0 !important;
        pointer-events: none;
    }

    #left-pill.footer-active {
        width: 100% !important;
    }
}

#nav-container.footer-active {
    margin-right: 2rem;
    /* Move nav away from center or adjust as needed */
}

/* ── Custom Utilities (extracted from inline styles) ── */
.action-icon-font {
    font-size: 18px !important;
}

/* ── Nav Links ── */
.nav-link {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover {
    color: #aab952;
}

.nav-link {
    mix-blend-mode: negative;
}

/* ── Action icon buttons ── */
.action-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 9999px;
    background: #aab952;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    transition: background 0.2s;
    flex-shrink: 0;
}

.action-icon-btn:hover {
    background: #aab952;
}

/* ── Right pill: smooth width expansion ── */
#right-pill {
    background: #F6F6E4;
    margin-left: auto;
    /* Push to far right */
    transition:
        width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.45s ease,
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.4s ease;
    overflow: hidden;
    width: auto;
    min-width: 3.1rem;
    /* Maintain circle shape for burger if empty */
    display: flex;
    justify-content: center;
    height: 3.1rem;
    padding: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}

#right-pill.pill-active {
    background: #F6F6E4;
    /* Darker green from image */
    border-color: rgba(255, 255, 255, 0.2);
}

#right-pill.pill-dark {
    background: rgba(46, 101, 20, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Base icon button transition */
.action-icon-btn.icon-hidden {
    transform: translateX(-20px);
    opacity: 0;
    width: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

/* ── Call number panel ── */
#call-panel {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #aab952;
    border-radius: 9999px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;

    /* Start: invisible and shifted right to "expand" left */
    max-width: 0;
    height: 2.4rem;
    opacity: 0;
    overflow: hidden;
    transform: translateX(20px);
    transition:
        max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active state: slides in */
#call-panel.call-open {
    padding-left: 12px;
    max-width: 300px;
    opacity: 1;
    transform: translateX(0);
}

#call-panel .call-panel-icon {
    padding-right: 12px;
    font-size: 1.2rem;
    /* Slight tilt like image */
}

/* ── Email panel ── */
#email-panel {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #AAB952;
    border-radius: 9999px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;

    /* Start: invisible and shifted right to "expand" left */
    max-width: 0;
    height: 2.4rem;
    opacity: 0;
    overflow: hidden;
    transform: translateX(20px);
    transition:
        max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active state: slides in */
#email-panel.email-open {
    padding-left: 12px;
    max-width: 300px;
    opacity: 1;
    transform: translateX(0);
}

#email-panel .email-panel-icon {
    padding-right: 12px;
    font-size: 1.2rem;
}

.number-text,
.email-text {
    font-family: 'Sofia Sans', sans-serif;
    font-weight: 500;
}

/* ── Sticky Scroll Features ── */
#features-section {
    position: relative;
    overflow: visible;
    /* Crucial for sticky children */
}

#features-bg-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    z-index: 1;
}

#features-bg-container div {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#features-bg-1,
#features-bg-2 {
    transition: opacity 1s ease-in-out;
}

.feature-card {
    transition: border-color 0.4s ease;
    border: 1px solid transparent;
}

@media (max-width: 1024px) {
    #features-overlay {
        display: none !important;
    }

    .feature-card {
        height: 350px !important;
        background: rgba(246, 246, 228, 0.25) !important;
        backdrop-filter: blur(10px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    .feature-card p,
    .feature-card b {
        color: #F6F6E4 !important;
    }
}

/* ── Content Loading Pulse ── */
@keyframes pulse-loading {
    0% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

.img-loading-pulse {
    animation: pulse-loading 1.5s ease-in-out infinite;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
}

/* ── Footer Redesign ── */
.footer-outer-container {
    background: #F6F6E4;
    /* Match the section above */
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.footer-inner-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #2E6514;
    /* Fallback deep green */
    min-height: 500px;
}

.footer-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
}

.footer-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(170, 185, 82, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    color: #fff;
    font-family: 'Sofia Sans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-pill:hover {
    background: rgba(170, 185, 82, 0.6);
    transform: translateY(-2px);
}

.footer-nav-link {
    display: block;
    font-family: 'Sofia Sans', sans-serif;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    opacity: 0.9;
    width: fit-content;
}

.footer-nav-link:hover {
    opacity: 1;
    transform: translateX(10px);
    color: #AAB952;
}

/* ── Mobile Menu Styles ── */
.mobile-nav-link {
    font-family: 'Lexend', sans-serif;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.mobile-nav-link:hover {
    opacity: 1;
    transform: translateX(10px);
}

.mobile-action-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(170, 185, 82, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: white;
    font-family: 'Sofia Sans', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mobile-action-pill:hover {
    background: rgba(170, 185, 82, 0.3);
}

#mobile-menu.menu-open {
    transform: translateX(0);
}

@media (max-width: 1136px) {
    #nav-container nav {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    #left-pill {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 950px) {
    #nav-container nav {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.75rem;
    }
}

@media (max-width: 825px) {
    #left-pill {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .footer-outer-container {
        padding: 0 1rem 1rem 1rem !important;
    }

    .footer-inner-card {
        border-radius: 1.5rem;
    }
}

/* ── Features Section Horizontal Scroll (Mobile/Tablet) ── */
#features-cards-track {
    will-change: transform;
}

@media (min-width: 1025px) {
    #features-cards-track {
        transform: none !important;
    }

}