:root {
    /* Olive Green Mindful Brand Colors (Phase 2) */
    --color-primary: #aea900;
    --color-primary-dark: #8c8800;
    --color-accent: #d4cf00;
    --color-success: #aea900;
    --color-danger: #f56565;

    /* Backgrounds */
    --bg-app: #fdfdfb;
    --bg-card: #ffffff;
    --bg-surface: #f7fafc;

    /* Text */
    --text-base: #1e293b;
    --text-muted: #64748b;

    /* Shadows (Hybrid: Modern + Tactile) */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Neomorphic Remnants for Tactile Cards */
    --shadow-neo: -6px -6px 12px rgba(255, 255, 255, 0.8), 6px 6px 12px rgba(0, 0, 0, 0.05);
    --shadow-neo-inset: inset -3px -3px 7px rgba(255, 255, 255, 0.7), inset 3px 3px 7px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Public Sans', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-base);
    line-height: 1.6;
}

/* Redesigned Utility Classes */
.neo-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-neo);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(107, 142, 35, 0.05);
}

.neo-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-xl);
    border-color: rgba(107, 142, 35, 0.2);
}

.neo-inset {
    background: var(--bg-app);
    border-radius: 12px;
    box-shadow: var(--shadow-neo-inset);
    border: 1px solid rgba(107, 142, 35, 0.05);
}

.neo-btn {
    background: var(--bg-card);
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-neo);
    border: 1px solid rgba(107, 142, 35, 0.1);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
    color: var(--text-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.neo-btn:active {
    box-shadow: var(--shadow-neo-inset);
    transform: scale(0.98);
}

.neo-btn-primary {
    background: var(--color-primary);
    color: white;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(107, 142, 35, 0.3);
}

.neo-btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -5px rgba(107, 142, 35, 0.4);
}

/* Layout Helper Classes */
.glass-nav {
    background: rgba(253, 253, 251, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(174, 169, 0, 0.1);
    font-family: 'Roboto', sans-serif;
}

.olive-gradient {
    background: linear-gradient(135deg, #aea900 0%, #8c8800 100%);
}

.text-primary-brand {
    color: var(--color-primary);
}

.bg-primary-fade {
    background-color: rgba(174, 169, 0, 0.05);
}

/* Typography Overrides */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.025em;
    font-weight: 800;
}

/* Mobile Menu Signature Ink Styles */
#mobileMenuBtn span {
    background-color: var(--color-primary);
    /* Use brand color instead of black */
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    /* Playful bounce */
}

#mobileMenuBtn.active span {
    width: 1.5rem !important;
    background-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    /* Stronger glow for visibility */
    opacity: 1 !important;
}

/* Ensure Nav and Button are on top of the overlay */
body.menu-open nav.glass-nav {
    background-color: rgba(255, 255, 255, 0.9) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
    border-color: rgba(174, 169, 0, 0.05) !important;
}

#mobileMenuBtn {
    z-index: 1020 !important;
}

#mobileMenu {
    background-color: rgba(255, 255, 255, 0.98) !important;
    /* Slightly more opaque for better legibility */
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
    z-index: 1000 !important;
    font-family: 'Roboto', sans-serif;
    height: 100dvh !important;
    /* Dynamic Viewport Height */
    width: 100vw !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

#mobileMenuBtn.active #bar1 {
    transform: translateY(10px) rotate(45deg);
}

#mobileMenuBtn.active #bar2 {
    opacity: 0;
    transform: translateX(20px);
}

#mobileMenuBtn.active #bar3 {
    transform: translateY(-10px) rotate(-45deg);
}

#mobileMenu.open {
    transform: translateX(0);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.1);
}

#mobileMenu a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu a:active {
    transform: scale(0.95);
    color: var(--color-primary);
}

body.menu-open {
    overflow: hidden;
    height: 100vh;
}

/* Animations (Phase 9: Polishing) */
@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Reviews Carousel Styles */
.reviews-container {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    padding: 2rem 0;
}

.reviews-container:active {
    cursor: grabbing;
}

.reviews-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    transition: transform 0.1s linear;
}

.review-card {
    width: 400px;
    flex-shrink: 0;
}

/* Nav Buttons */
.review-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dark .review-nav-btn {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.review-nav-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(174, 169, 0, 0.3);
}

.review-nav-btn.prev {
    left: 20px;
}

.review-nav-btn.next {
    right: 20px;
}

.review-nav-btn:active {
    transform: translateY(-50%) scale(0.9);
}

@media (max-width: 768px) {
    .review-nav-btn {
        display: none;
    }

    .review-card {
        width: 300px;
    }
}

/* Glassmorphism utility */
.glass-banner {
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(174, 169, 0, 0.2);
    box-shadow: 0 8px 32px 0 rgba(174, 169, 0, 0.1);
}

.dark .glass-banner {
    background: rgba(18, 22, 10, 0.4);
    border-color: rgba(174, 169, 0, 0.1);
}

@keyframes bounce-subtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-subtle {
    animation: bounce-subtle 3s ease-in-out infinite;
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

.animate-slide-up {
    animation: slide-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}