/* ==========================================================================
   GIVICO DESIGN SYSTEM - STYLESHEET OFFICIEL SUD ANIMATION
   Association d'Intérêt Général Loi 1901 | Montélimar (Drôme)
   SIREN : 379 250 855 | RNA : W262001429
   Strict Anti-Commercial & High-Accessibility Design System
   ========================================================================== */

:root {
  /* Givico Theme Color Palette */
  --color-primary: #123C26;       /* Dark Forest Green - Top header, primary buttons, footer */
  --color-primary-light: #1b5436; /* Medium Forest Green */
  --color-action: #FF5A36;        /* Vibrant Orange - Main CTAs, progress bars, active highlights */
  --color-action-hover: #e04b29;  /* Darker Action Orange */
  --color-accent: #E9F4EE;        /* Mint Tint - Pill tags, background callouts, active badges */
  --color-canvas: #F7F9F8;        /* Off-White Canvas Background */
  --color-surface: #FFFFFF;       /* Pure White Surface - Cards, sticky header, form inputs */
  --color-border: #E5EFEA;        /* Soft Border - Card borders, dividers, subtle outlines */
  --color-border-hover: #c9e0d3;  /* Enhanced Border on Hover */
  --color-text: #1A231F;          /* Deep Text Charcoal */
  --color-slate: #64748B;         /* Slate Grey for captions, secondary copy */
  --color-muted: #4B5563;         /* Body muted tone */

  /* Typography */
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(18, 60, 38, 0.05);
  --shadow-md: 0 4px 15px rgba(18, 60, 38, 0.06);
  --shadow-lg: 0 10px 30px rgba(18, 60, 38, 0.08);
  --shadow-xl: 0 20px 40px rgba(18, 60, 38, 0.12);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1240px;
  --header-height: 80px;
  --utility-height: 38px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-canvas);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-canvas);
  color: var(--color-text);
  overflow-x: hidden;
}

/* Accessibility: Focus visible outline */
*:focus-visible {
  outline: 3px solid var(--color-action);
  outline-offset: 3px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-action);
  color: #ffffff;
  padding: 12px 20px;
  font-weight: 700;
  z-index: 9999;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.section-alt {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-accent {
  background-color: var(--color-accent);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1.25rem;
  color: #2D3748;
}

p.lead {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--color-text);
  font-weight: 500;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--color-action);
}

/* ==========================================================================
   UI MICRO-COMPONENTS: TOP UTILITY STRIP
   ========================================================================== */
.top-utility-strip {
  background-color: var(--color-primary);
  min-height: var(--utility-height);
  display: flex;
  align-items: center;
  font-size: 0.825rem;
  color: #D1E5DC;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 0;
}

.top-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.utility-credentials {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.utility-badge {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.utility-links a {
  color: #D1E5DC;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.utility-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   FLOATING STICKY HEADER & STREAMLINED 5-NODE NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
  position: relative;
  box-shadow: 0 4px 10px rgba(18, 60, 38, 0.2);
}

.brand-symbol::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--color-action);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: flex;
  align-items: center;
}

.brand-dot {
  color: var(--color-action);
  font-size: 1.4rem;
  margin-left: 2px;
}

.brand-tagline {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-slate);
}

/* Primary 5-Node Navigation */
.primary-nav {
  display: flex;
  align-items: center;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  min-height: 44px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background-color: var(--color-accent);
}

.nav-dropdown-arrow {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 250px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  list-style: none;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1001;
}

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

.nav-item:hover .nav-dropdown-arrow,
.nav-item:focus-within .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.885rem;
  font-weight: 600;
  min-height: 44px;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-link span.dropdown-desc {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-slate);
  margin-top: 2px;
}

.dropdown-link:hover,
.dropdown-link.active {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

/* Standalone Contact Button */
.btn-header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-action);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.885rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  min-height: 44px;
  box-shadow: 0 4px 12px rgba(255, 90, 54, 0.25);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  margin-left: 8px;
  text-decoration: none;
}

.btn-header-contact:hover {
  background-color: var(--color-action-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 90, 54, 0.35);
}

/* Mobile Hamburger Button */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.25rem;
}

/* ==========================================================================
   BUTTONS & ACTION COMPONENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  min-height: 44px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(18, 60, 38, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18, 60, 38, 0.28);
}

.btn-action {
  background-color: var(--color-action);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 90, 54, 0.3);
}

.btn-action:hover {
  background-color: var(--color-action-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 90, 54, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 2px solid #ffffff;
  backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--color-primary) !important;
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   HERO BANNER & OVERLAYS
   ========================================================================== */
.hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 100px 0 90px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(18, 60, 38, 0.92) 0%, rgba(255, 90, 54, 0.68) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: #F3FAF6;
  margin-bottom: 30px;
  font-weight: 400;
}

/* Page Banner Sub-Variant */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 64px 0 60px;
  overflow: hidden;
}

.page-banner .hero-overlay {
  background: linear-gradient(135deg, rgba(18, 60, 38, 0.94) 0%, rgba(20, 70, 44, 0.85) 60%, rgba(255, 90, 54, 0.65) 100%);
}

/* ==========================================================================
   DIRECT SUMMARY & MANDATORY MISSION CALLOUT BOX
   ========================================================================== */
.direct-summary-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-action);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-top: -40px;
  position: relative;
  z-index: 10;
  margin-bottom: 48px;
}

.direct-summary-text {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text);
  font-weight: 600;
  margin: 0;
}

.mission-callout-box {
  background-color: var(--color-accent);
  border: 2px solid #C4E2D3;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin: 40px 0;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.mission-callout-box::before {
  content: "“";
  position: absolute;
  top: 10px;
  left: 24px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(18, 60, 38, 0.12);
  font-family: Georgia, serif;
  pointer-events: none;
}

.mission-callout-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.mission-callout-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.mission-callout-sub {
  font-size: 0.875rem;
  color: var(--color-slate);
  font-style: italic;
  margin-top: 8px;
  margin-bottom: 0;
}

/* ==========================================================================
   PROGRESS TRACKER BARS
   ========================================================================== */
.progress-bar-wrapper {
  margin: 16px 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.progress-pct {
  color: var(--color-action);
  font-weight: 800;
}

.progress-track {
  background-color: var(--color-border);
  height: 12px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-action), var(--color-primary));
  border-radius: 20px;
  transition: width 0.6s ease;
}

/* ==========================================================================
   CARDS & CONTENT GRIDS
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-hover);
}

.card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  border: 1px solid var(--color-border);
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.card-body {
  flex-grow: 1;
}

.card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* Real Documentary Image Frame & Captions */
.doc-figure {
  margin: 24px 0 28px;
  width: 100%;
}

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

.doc-caption {
  font-size: 0.875rem;
  color: var(--color-slate);
  font-style: italic;
  margin-top: 8px;
  margin-bottom: 20px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-caption::before {
  content: "📷";
  font-style: normal;
  font-size: 0.85rem;
}

/* ==========================================================================
   IMPACT IN NUMBERS COUNTER GRID
   ========================================================================== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.impact-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.impact-item::top-border {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--color-action);
}

.impact-number {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.impact-number span.plus {
  color: var(--color-action);
}

.impact-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.impact-desc {
  font-size: 0.825rem;
  color: var(--color-slate);
  margin: 0;
}

/* ==========================================================================
   LEDGER TABLES & AUDIT SPECIFICATIONS
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  background-color: var(--color-surface);
  margin: 28px 0;
}

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

.table-ledger th {
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 800;
  padding: 16px 20px;
  border-bottom: 2px solid var(--color-border);
  text-transform: uppercase;
  font-size: 0.775rem;
  letter-spacing: 0.05em;
}

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

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

.table-ledger tr:hover td {
  background-color: #FAFCFB;
}

.table-ledger tfoot td {
  background-color: var(--color-accent);
  font-weight: 800;
  color: var(--color-primary);
  border-top: 2px solid var(--color-border);
}

.badge-audit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #DCFCE7;
  color: #166534;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
}

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

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

.form-label span.req {
  color: var(--color-action);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-action);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.18);
}

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-check label {
  font-size: 0.825rem;
  color: var(--color-slate);
  line-height: 1.4;
  cursor: pointer;
}

/* ==========================================================================
   MODAL POPUP SYSTEM (VANILLA JS / AJAX FEEDBACK)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(18, 60, 38, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-icon-success {
  width: 64px;
  height: 64px;
  background-color: #DCFCE7;
  color: #166534;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.modal-msg {
  font-size: 1rem;
  color: #4A5568;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ==========================================================================
   GLOBAL FOOTER & COMPLIANCE DISCLOSURE SPECIFICATION
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary);
  color: #D1E5DC;
  padding-top: 64px;
  padding-bottom: 24px;
  margin-top: auto;
  border-top: 4px solid var(--color-action);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background-color: var(--color-action);
  border-radius: 2px;
}

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

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

.footer-nav-list a {
  color: #D1E5DC;
  text-decoration: none;
  font-size: 0.925rem;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}

.footer-nav-list a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.925rem;
}

.footer-contact-item a {
  color: #D1E5DC;
}

.footer-contact-item a:hover {
  color: #ffffff;
}

/* Mandatory Compliance Block */
.footer-compliance-block {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 36px;
}

.footer-compliance-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #E2E8F0;
  margin: 0;
}

/* Bottom Copyright Bar */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.825rem;
  color: #94A3B8;
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .header-inner {
    height: 70px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: calc(var(--header-height) + var(--utility-height));
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    overflow-y: auto;
    display: none;
    box-shadow: var(--shadow-xl);
  }

  .primary-nav.open {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .nav-link {
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-border);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--color-border);
    margin-top: 6px;
    margin-left: 12px;
  }

  .btn-header-contact {
    margin-left: 0;
    margin-top: 20px;
    width: 100%;
  }

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

  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

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

@media (max-width: 768px) {
  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .top-utility-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

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

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

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

  .direct-summary-card {
    margin-top: -20px;
    padding: 20px;
  }

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

  .form-card {
    padding: 24px 20px;
  }
}
