/* ==========================================================================
   COMITE DES FETES DE VILLARSEN PONS — OFFICIAL DESIGN & THEME SYSTEM
   "Donexa Volunteer" Palette & Public Utility Non-Profit Architecture
   ========================================================================== */

:root {
    --primary-coral: #E06D53;
    --primary-coral-dark: #C87D55;
    --primary-coral-light: #FDEEE9;
    --dark-slate: #18191B;
    --charcoal-secondary: #1C1A17;
    --warm-alabaster: #F8F5F0;
    --pure-white: #FFFFFF;
    --soft-sand: #E8E2D8;
    --sand-border: #E8E2D8;
    --text-primary: #222222;
    --text-muted: #666666;
    --slate-muted: #64748B;
    --font-heading: 'Merriweather', 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--warm-alabaster);
    padding-top: 130px; /* Mandatory safety offset for double-decker header */
    overflow-x: hidden;
}

/* Container Structure */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    text-wrap: balance;
}

h2 {
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
    text-wrap: balance;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.lead-p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333333;
    font-weight: 500;
}

.text-muted {
    color: var(--text-muted);
}

/* Tagline / Eyebrow Styling */
.eyebrow-tag {
    display: inline-block;
    color: var(--primary-coral);
    font-size: 0.825rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

/* Vertical Reading Progress Tracker */
.reading-progress-track {
    position: fixed;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: rgba(224, 109, 83, 0.2);
    z-index: 10001;
    pointer-events: none;
}

.reading-progress-fill {
    width: 100%;
    height: 0%;
    background: var(--primary-coral);
    transition: height 0.05s linear;
}

@media (max-width: 992px) {
    .reading-progress-track {
        display: none !important;
    }
}

/* ==========================================================================
   DOUBLE-DECKER HEADER ARCHITECTURE
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
}

/* Row 1: Utility Top Bar (Height 40px, Dark Slate #18191B) */
.utility-topbar {
    background-color: var(--dark-slate);
    color: var(--warm-alabaster);
    height: 40px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.utility-left, .utility-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.utility-badge {
    background: rgba(224, 109, 83, 0.25);
    color: #F8F5F0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.utility-sep {
    color: rgba(255, 255, 255, 0.3);
}

.utility-item strong {
    color: #FFFFFF;
}

.utility-link {
    color: var(--warm-alabaster);
    text-decoration: none;
    transition: color 0.2s ease;
}

.utility-link:hover {
    color: var(--primary-coral);
}

.utility-phone {
    font-weight: 600;
    color: #FFFFFF;
}

/* Row 2: Main Navigation Bar (Clean White #FFFFFF, Fixed Position) */
.main-navbar {
    background-color: var(--pure-white);
    border-bottom: 1px solid var(--soft-sand);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
    height: 90px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: var(--primary-coral);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(224, 109, 83, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark-slate);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-coral);
    letter-spacing: 0.06em;
}

/* Navigation Links */
.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark-slate);
    text-decoration: none;
    padding: 10px 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover, .nav-link:focus-visible {
    color: var(--primary-coral);
}

.arrow-down {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--pure-white);
    border: 1px solid var(--soft-sand);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    list-style: none;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-link:hover {
    background: var(--warm-alabaster);
    color: var(--primary-coral);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--soft-sand);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background: var(--dark-slate);
    transition: 0.2s ease;
}

/* ==========================================================================
   BUTTONS & CALL TO ACTION
   ========================================================================== */

.btn-pill-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-coral);
    color: var(--pure-white) !important;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(224, 109, 83, 0.28);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-pill-cta:hover {
    background: var(--primary-coral-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(224, 109, 83, 0.35);
}

.btn-pill-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--dark-slate) !important;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid var(--soft-sand);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.btn-pill-secondary:hover {
    background: var(--pure-white);
    border-color: var(--dark-slate);
    transform: translateY(-2px);
}

.cta-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.btn-pill-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   SECTIONS & LAYOUT
   ========================================================================== */

section {
    padding: 75px 0;
}

.bg-alabaster {
    background-color: var(--warm-alabaster);
}

.bg-white {
    background-color: var(--pure-white);
}

.bg-slate {
    background-color: var(--dark-slate);
    color: var(--warm-alabaster);
}

.bg-slate h1, .bg-slate h2, .bg-slate h3, .bg-slate p {
    color: #FFFFFF;
}

/* Hero Section */
.hero-section {
    padding: 50px 0 70px 0;
    background: var(--warm-alabaster);
    border-bottom: 1px solid var(--soft-sand);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid var(--soft-sand);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--primary-coral);
    margin-bottom: 20px;
    width: fit-content;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 20px;
    color: var(--dark-slate);
}

.hero-summary {
    font-size: 1.15rem;
    line-height: 1.68;
    color: #333333;
    margin-bottom: 28px;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-phone-callout {
    display: flex;
    flex-direction: column;
}

.callout-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.callout-number {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-slate);
    text-decoration: none;
}

.callout-number:hover {
    color: var(--primary-coral);
}

/* Impact Progress Widget */
.hero-impact-widget {
    background: var(--pure-white);
    border: 1px solid var(--soft-sand);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.widget-stat {
    color: var(--primary-coral);
    font-family: var(--font-mono);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: var(--soft-sand);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-coral);
    border-radius: 4px;
}

.widget-sub {
    font-size: 0.775rem;
    color: var(--text-muted);
}

/* Hero Media */
.hero-media {
    position: relative;
}

.hero-banner-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--soft-sand);
}

/* ==========================================================================
   CARDS & GRID PATTERNS
   ========================================================================== */

.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.action-card {
    background: var(--pure-white);
    border-radius: 12px;
    border: 1px solid var(--soft-sand);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.card-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-coral-light);
    color: var(--primary-coral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-slate);
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-coral);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.card-link:hover {
    gap: 10px;
    color: var(--primary-coral-dark);
}

/* Mandatory "Our Mission" Block */
.mission-highlight-box {
    background: var(--pure-white);
    border-left: 6px solid var(--primary-coral);
    border-radius: 0 12px 12px 0;
    border-top: 1px solid var(--soft-sand);
    border-right: 1px solid var(--soft-sand);
    border-bottom: 1px solid var(--soft-sand);
    padding: 36px 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.mission-highlight-box .box-eyebrow {
    color: var(--primary-coral);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.mission-highlight-box .mission-heading {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark-slate);
}

.mission-highlight-box .mission-prose {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #222222;
    margin-bottom: 0;
}

/* Documentary Photography Frames */
.doc-photo-frame {
    margin: 24px 0 12px 0;
}

.doc-photo-frame img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 0;
    object-fit: cover;
    display: block;
}

.doc-photo-frame figcaption {
    font-size: 0.875rem;
    color: var(--slate-muted);
    font-style: italic;
    margin-top: 8px;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Stats Counter Row */
.stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.stat-item {
    background: var(--pure-white);
    border: 1px solid var(--soft-sand);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-coral);
    line-height: 1.1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 0;
}

/* Data Tables */
.transparency-table-wrapper {
    background: var(--pure-white);
    border: 1px solid var(--soft-sand);
    border-radius: 12px;
    overflow-x: auto;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.transparency-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.925rem;
    text-align: left;
}

.transparency-table th {
    background: var(--warm-alabaster);
    color: var(--dark-slate);
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 2px solid var(--soft-sand);
}

.transparency-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--soft-sand);
    color: var(--text-primary);
}

.transparency-table tr:last-child td {
    border-bottom: none;
}

.transparency-table td.numeric {
    font-family: var(--font-mono);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Interactive Forms */
.form-card {
    background: var(--pure-white);
    border: 1px solid var(--soft-sand);
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark-slate);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    border: 1px solid var(--soft-sand);
    border-radius: 8px;
    background: var(--pure-white);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-coral);
    box-shadow: 0 0 0 3px rgba(224, 109, 83, 0.15);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-help {
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* FAQ Accordion UI */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 30px 0;
}

.faq-card {
    background: var(--pure-white);
    border: 1px solid var(--soft-sand);
    border-radius: 10px;
    padding: 24px;
}

.faq-question {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-slate);
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ==========================================================================
   FOOTER ARCHITECTURE
   ========================================================================== */

.site-footer {
    background: var(--dark-slate);
    color: var(--warm-alabaster);
    padding-top: 60px;
    border-top: 3px solid var(--primary-coral);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-title {
    color: #FFFFFF;
    font-size: 1.15rem;
    line-height: 1.2;
}

.footer-title small {
    font-size: 0.8rem;
    color: var(--primary-coral);
    font-family: var(--font-body);
    font-weight: 700;
}

.footer-desc {
    color: #A0A5AD;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #F8F5F0;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 3px 8px;
    border-radius: 4px;
}

.footer-contact-summary {
    font-size: 0.85rem;
    color: #CBD5E1;
}

.footer-contact-summary p {
    margin-bottom: 6px;
    color: #CBD5E1;
}

.footer-contact-summary a {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-contact-summary a:hover {
    color: var(--primary-coral);
}

.footer-heading {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #CBD5E1;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--primary-coral);
}

.funding-notice {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary-coral);
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    margin-top: 16px;
}

.funding-title {
    color: var(--primary-coral);
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.funding-text {
    color: #94A3B8;
    font-size: 0.775rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Mandatory Main Disclosure Text Block */
.footer-middle {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    background: #141517;
}

.official-disclosure-box {
    text-align: center;
}

.disclosure-text {
    font-size: 0.85rem;
    color: #CBD5E1;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

/* Bottom Copyright Line */
.footer-bottom {
    background: #0F1012;
    padding: 18px 0;
    font-size: 0.8rem;
    color: #64748B;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.copyright-line {
    margin-bottom: 0;
    color: #94A3B8;
}

.footer-meta-host {
    font-family: var(--font-mono);
    color: #64748B;
}

/* ==========================================================================
   MODAL POPUP (AJAX THANK YOU CONFIRMATION)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(24, 25, 27, 0.7);
    backdrop-filter: blur(4px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-dialog {
    background: var(--pure-white);
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    padding: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    border: 1px solid var(--soft-sand);
    animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.modal-close:hover {
    color: var(--dark-slate);
}

.modal-icon-badge {
    width: 56px;
    height: 56px;
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-body p {
    font-size: 0.95rem;
    color: #444444;
    margin-bottom: 14px;
}

.modal-note {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    font-style: italic;
}

.modal-meta-box {
    background: var(--warm-alabaster);
    border: 1px solid var(--soft-sand);
    border-radius: 8px;
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 0.775rem;
    color: var(--dark-slate);
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MEDIA QUERIES
   ========================================================================== */

@media (max-width: 992px) {
    body {
        padding-top: 100px;
    }

    .utility-topbar {
        display: none;
    }

    .main-navbar {
        height: 70px;
        top: 0;
    }

    .nav-container {
        height: 70px;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--pure-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .main-nav.nav-open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--soft-sand);
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 14px 0;
        font-size: 1rem;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: var(--warm-alabaster);
        border-radius: 6px;
        padding: 4px 0;
        margin-bottom: 8px;
        display: none;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .has-dropdown.dropdown-open .dropdown-menu {
        display: block;
    }

    .dropdown-link {
        padding: 10px 14px;
    }

    .nav-cta-wrapper {
        margin-top: 24px;
        width: 100%;
    }

    .nav-cta-wrapper .btn-pill-cta {
        width: 100%;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-banner-img {
        height: 360px;
    }

    .cards-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .cards-grid-3, .cards-grid-2, .cards-grid-4 {
        grid-template-columns: 1fr;
    }

    .stats-bar-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mission-highlight-box {
        padding: 24px 20px;
    }

    .footer-bottom-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}
