@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Inter:wght@300;400;600&display=swap');

:root {
    /* Brand Colors: Forest Green & Platinum Accent */
    --arvinov-primary: #0A2F1F;    /* Deep Forest Green */
    --arvinov-secondary: #051A10;  /* Darker Forest Green */
    --arvinov-accent: #E5E4E2;     /* Platinum/Silver Accent */
    
    /* Sage / Vert-de-gris Palette */
    --arvinov-sage-light: #F1F4F1;  /* Off-White with green tint */
    --arvinov-sage-mist: #DCE3DC;   /* Soft Sage */
    --arvinov-sage-slate: #829082;  /* Slate Green for borders */
    
    --arvinov-accent-dark: #6C7A70; /* Deep Slate-Silver for text on light backgrounds */
    
    --arvinov-white: #ffffff;
    --arvinov-text-dark: #1A2E24;
    --arvinov-text-light: #E0E4E0;
    
    /* Utility Tokens */
    --section-padding: 6rem 0;
    --transition-base: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --border-subtle: rgba(10, 47, 31, 0.08); /* Dark green tinted border */
    --shadow-soft: 0 40px 80px rgba(10, 47, 31, 0.06);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--arvinov-text-dark);
    background-color: var(--arvinov-sage-light);
    overflow-x: hidden;
    line-height: 1.6;
}

.font-outfit { font-family: 'Outfit', sans-serif; }

/* --- Typography --- */
h1, h2, h3, h4, .display-1, .display-2, .display-3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-accent { color: var(--arvinov-accent) !important; }
.text-accent-dark { color: var(--arvinov-accent-dark) !important; }
.text-gold { color: var(--arvinov-accent) !important; } /* Legacy support */

/* --- Backgrounds --- */
.bg-forest { background-color: var(--arvinov-primary) !important; color: white; }
.bg-dark-forest { background-color: var(--arvinov-secondary) !important; color: white; }

/* Ensure white elements in dark sections have dark text */
.bg-forest .text-dark-override,
.bg-dark-forest .text-dark-override,
.bg-forest .bg-white,
.bg-dark-forest .bg-white {
    color: var(--arvinov-text-dark) !important;
}

.bg-white { background-color: #ffffff !important; }
.bg-light { background-color: var(--arvinov-sage-mist) !important; }

.text-primary { color: var(--arvinov-primary) !important; }

/* --- Parallax & Overlays --- */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

/* --- Parallax & Overlays --- */
.parallax-section {
    position: relative;
    background-color: var(--arvinov-sage-mist);
    overflow: hidden;
}

.parallax-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: var(--bg-image);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.5;
    z-index: 0;
}

.overlay-sage {
    position: relative;
}

.overlay-sage > div {
    position: relative;
    z-index: 1;
}
.bg-light { background-color: var(--arvinov-sage-mist) !important; }

.section-padding { padding: var(--section-padding); }

/* --- Navbar --- */
.navbar {
    padding: 1.5rem 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 26, 16, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.5rem !important;
    transition: var(--transition-base);
}

.nav-link:hover, .nav-link.active {
    color: var(--arvinov-accent) !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--arvinov-secondary);
        margin-top: 1rem;
        padding: 2rem;
        border-radius: 12px;
        border: 1px solid var(--border-subtle);
    }
}

/* --- Hero Section --- */
.hero {
    min-height: 85vh;
    background: radial-gradient(circle at 70% 30%, #104030 0%, #051A10 100%);
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 100px;
    padding-bottom: 120px; /* Space for waves */
}

.hero-page {
    min-height: 60vh;
    padding-bottom: 150px;
}

.hero-accent-line {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--arvinov-accent);
    margin-bottom: 2.5rem;
}

/* --- Layered Waves --- */
.layered-waves {
    position: absolute;
    bottom: -2px; /* Overlap to prevent thin gaps */
    left: 0;
    right: 0;
    width: 100%;
    height: 15vh;
    max-height: 150px;
    min-height: 80px;
    z-index: 5;
    overflow: hidden;
    line-height: 0;
}

.wave-layer {
    position: absolute;
    bottom: 0;
    left: -5%; /* Buffer to hide edges during animation */
    width: 110%; /* Larger than screen to allow movement without gaps */
    height: 100%;
    transform-origin: bottom;
}

.wave-layer path {
    fill: var(--arvinov-sage-light); /* Transitions to Sage Light sections instead of pure white */
}

/* Specific wave colors if needed */
.w1 { animation: move-wave1 12s ease-in-out infinite alternate; opacity: 1; }
.w2 { animation: move-wave2 15s ease-in-out infinite alternate-reverse; opacity: 0.6; }
.w3 { animation: move-wave3 18s ease-in-out infinite alternate; opacity: 0.4; }

@keyframes move-wave1 { from { transform: translateX(-3%) scaleY(1); } to { transform: translateX(3%) scaleY(1.05); } }
@keyframes move-wave2 { from { transform: translateX(3%) scaleY(1.08); } to { transform: translateX(-3%) scaleY(1); } }
@keyframes move-wave3 { from { transform: translateX(-2%) scaleY(0.95); } to { transform: translateX(2%) scaleY(1.02); } }

/* --- Components --- */
.btn-accent, .btn-gold {
    background: var(--arvinov-accent);
    color: var(--arvinov-primary);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(229, 228, 226, 0.2);
}

.btn-accent:hover, .btn-gold:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 228, 226, 0.3);
    color: var(--arvinov-primary);
}

.btn-outline-white {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-base);
}

.btn-outline-white:hover {
    background: white;
    color: var(--arvinov-primary);
}

/* Feature & Vertical Cards */
.vertical-card {
    background: white;
    border: 1px solid var(--border-subtle);
    padding: 3.5rem 3rem;
    border-radius: 12px;
    transition: var(--transition-base);
    height: 100%;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-soft);
}

.vertical-card:hover {
    border-color: var(--arvinov-accent);
    transform: translateY(-8px);
    box-shadow: 0 40px 80px rgba(10, 47, 31, 0.08);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--arvinov-sage-mist);
    color: var(--arvinov-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    transition: var(--transition-base);
}

.vertical-card:hover .icon-box {
    background: var(--arvinov-primary);
    color: var(--arvinov-accent);
}

/* Metric Box */
.metric-box {
    padding: 2.5rem;
    background: rgba(220, 227, 220, 0.04);
    border-radius: 12px;
    border-top: 4px solid var(--arvinov-accent);
    transition: var(--transition-base);
}

.metric-value {
    font-size: 3.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--arvinov-accent);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.bg-dark-forest .metric-box h2, 
.bg-dark-forest .metric-box p {
    color: white;
}

/* Glass Card Utility */
.glass-card {
    background: rgba(220, 227, 220, 0.03); /* Sage tinted glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(220, 227, 220, 0.08);
    border-radius: 20px;
    transition: var(--transition-base);
}

.glass-card:hover {
    background: rgba(220, 227, 220, 0.05);
    border-color: rgba(220, 227, 220, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(10, 47, 31, 0.1);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }

/* --- Footer Link --- */
.footer-link {
    color: rgba(255, 255, 255, 0.85); /* Much brighter for legibility on dark green */
    text-decoration: none;
    transition: var(--transition-base);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.footer-link:hover {
    color: var(--arvinov-accent);
}

/* --- Responsive Helpers --- */
@media (max-width: 991px) {
    .section-padding { padding: 4.5rem 0; }
    .display-3 { font-size: 3rem; }
    .hero { min-height: 65vh; text-align: center; }
    .hero-accent-line { margin: 0 auto 2rem; }
}

@media (max-width: 576px) {
    .display-3 { font-size: 2.4rem; }
    .metric-value { font-size: 3rem; }
    .btn-gold, .btn-outline-white { width: 100%; margin-bottom: 1rem; }
}
/* FAQ & Accordion Styling Override */
.accordion-item {
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(10, 47, 31, 0.08) !important;
    background: #fff;
    box-shadow: 0 4px 20px rgba(10, 47, 31, 0.03) !important;
}

.accordion-button {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    color: var(--arvinov-primary) !important;
    padding: 1.5rem 2rem !important;
    background: #fff !important;
    border: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(212, 175, 55, 0.03) !important;
    color: var(--arvinov-secondary) !important;
    box-shadow: none !important;
}

.accordion-button::after {
    filter: brightness(0.5);
}

.accordion-button:not(.collapsed)::after {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23D4AF37'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-body {
    padding: 1.5rem 2rem 2rem !important;
    color: var(--arvinov-text-dark) !important;
    background: rgba(212, 175, 55, 0.01) !important;
    line-height: 1.7;
}
