/* ==========================================================================
   LE GRATIN - OFFICIAL ASSOCIATION LOI 1901 PORTAL STYLESHEET
   Design System: Salado Palette (#1B2232 Navy, #FF5B2E Coral, #F8F9FA Off-White)
   Compliant with High-Accessibility Standards (WCAG 2.1 AA)
   ========================================================================== */

:root {
  --color-navy: #1B2232;
  --color-navy-dark: #121722;
  --color-navy-light: #2A344A;
  --color-coral: #FF5B2E;
  --color-coral-hover: #E04A1F;
  --color-coral-soft: #FFF1ED;
  --color-offwhite: #F8F9FA;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-900: #111827;
  --color-slate: #64748B;
  --color-success: #10B981;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: Georgia, Cambria, "Times New Roman", Times, serif;
  --max-width: 1200px;
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --transition: all 0.25s ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-offwhite);
  color: var(--color-navy);
}

body {
  font-family: var(--font-main);
  line-height: 1.7;
  background-color: var(--color-offwhite);
  color: #2D3748;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--color-coral);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus-visible {
  color: var(--color-coral-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Image frame and caption styling strictly as specified */
.doc-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin: 20px 0 8px 0;
  object-fit: cover;
  max-height: 480px;
}

.doc-caption {
  font-size: 0.875rem;
  color: #64748B;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.5;
  display: block;
}

/* Utility bar */
.top-utility-bar {
  background-color: var(--color-navy-dark);
  color: #CBD5E1;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-utility-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-reg-badge strong {
  color: #FFFFFF;
  font-weight: 600;
}

.top-utility-link {
  color: #E2E8F0;
  font-weight: 500;
}

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

/* Header & Sticky Navigation */
.site-header {
  background-color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--color-gray-200);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-decoration: none !important;
}

.brand-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-coral);
  font-weight: 700;
  margin-top: 3px;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
  padding: 8px 4px;
  position: relative;
  text-decoration: none;
}

.nav-link:hover, .nav-link:focus-visible, .nav-link.active {
  color: var(--color-coral);
  text-decoration: none;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-coral);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  line-height: 1.2;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none !important;
}

.btn-primary {
  background-color: var(--color-coral);
  color: #FFFFFF !important;
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--color-coral-hover);
  box-shadow: 0 4px 12px rgba(255, 91, 46, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-navy) !important;
  border-color: var(--color-navy);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: var(--color-navy);
  color: #FFFFFF !important;
}

.btn-white {
  background-color: #FFFFFF;
  color: var(--color-navy) !important;
}

.btn-white:hover {
  background-color: #F1F5F9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Mobile Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-gray-300);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-navy);
}

/* Layout Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 60px 0;
}

.section-padding-lg {
  padding: 90px 0;
}

/* Hero Section */
.hero-banner {
  background-color: var(--color-navy);
  color: #FFFFFF;
  padding: 70px 0 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  line-height: 1.2;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.hero-summary {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #E2E8F0;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 3px solid var(--color-coral);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap img {
  border-radius: var(--border-radius-md);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Subpage Hero */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: #FFFFFF;
  padding: 55px 0 45px 0;
  border-bottom: 3px solid var(--color-coral);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  margin-bottom: 12px;
  line-height: 1.2;
}

.page-hero p {
  font-size: 1.1rem;
  color: #CBD5E1;
  max-width: 800px;
  line-height: 1.6;
}

/* Section Titles */
.section-title-wrap {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px auto;
}

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-coral);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.075rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* Mission Highlight Callout Box (Mandatory 120+ words) */
.mission-callout {
  background: #FFFFFF;
  border-radius: var(--border-radius-md);
  border: 2px solid #E2E8F0;
  border-left: 6px solid var(--color-coral);
  padding: 35px 32px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
}

.mission-callout-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mission-callout-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-navy);
}

.mission-callout-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

/* Mandatory funding disclosure */
.funding-disclosure {
  background-color: var(--color-coral-soft);
  border: 1px solid #FFD4C6;
  border-radius: var(--border-radius-sm);
  padding: 16px 20px;
  font-weight: 600;
  color: #9A2C10;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Stats bar */
.stats-bar {
  background-color: #FFFFFF;
  border-radius: var(--border-radius-md);
  padding: 36px 24px;
  margin-top: -35px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-200);
}

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

.stat-item {
  padding: 8px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-coral);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-navy);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-desc {
  font-size: 0.8125rem;
  color: var(--color-slate);
  margin-top: 4px;
}

/* 4 Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.pillar-card {
  background: #FFFFFF;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-gray-200);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-coral);
}

.pillar-badge {
  display: inline-block;
  background-color: var(--color-coral-soft);
  color: var(--color-coral-hover);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.pillar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.pillar-card p {
  color: var(--color-gray-600);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Events & Activities Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 36px 0;
}

.event-card {
  background: #FFFFFF;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.event-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--color-navy);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}

.event-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-date {
  font-size: 0.8125rem;
  color: var(--color-coral);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.event-card h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

.event-card p {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
}

.event-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-gray-200);
  font-size: 0.8125rem;
  color: var(--color-slate);
  display: flex;
  justify-content: space-between;
}

/* Progress bars */
.progress-container {
  margin: 18px 0;
}

.progress-label-wrap {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-track {
  background-color: var(--color-gray-200);
  border-radius: 100px;
  height: 10px;
  overflow: hidden;
}

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

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-sm);
  background: #FFFFFF;
}

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

.finance-table th {
  background-color: var(--color-navy);
  color: #FFFFFF;
  padding: 14px 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

.finance-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-gray-200);
  color: var(--color-gray-700);
}

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

.finance-table tr:hover {
  background-color: #F8FAFC;
}

/* Forms */
.form-card {
  background: #FFFFFF;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-gray-200);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--color-coral);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius-sm);
  background-color: #FFFFFF;
  color: var(--color-gray-900);
  transition: var(--transition);
  min-height: 44px;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(255, 91, 46, 0.2);
}

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

.form-help {
  font-size: 0.8125rem;
  color: var(--color-slate);
  margin-top: 6px;
}

/* Modal Popup */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(27, 34, 50, 0.75);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--border-radius-md);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from {
    transform: translateY(20px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

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

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

.modal-text {
  font-size: 0.975rem;
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Content Block Typography */
.prose-content {
  font-size: 1.025rem;
  line-height: 1.85;
  color: #334155;
}

.prose-content h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  color: var(--color-navy);
  margin: 40px 0 16px 0;
  line-height: 1.3;
}

.prose-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-navy);
  margin: 32px 0 14px 0;
  line-height: 1.35;
}

.prose-content p {
  margin-bottom: 20px;
}

.prose-content ul, .prose-content ol {
  margin: 18px 0 24px 28px;
}

.prose-content li {
  margin-bottom: 10px;
}

/* Footer Styles */
.site-footer {
  background-color: var(--color-navy);
  color: #CBD5E1;
  padding: 60px 0 30px 0;
  margin-top: auto;
  border-top: 4px solid var(--color-coral);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 45px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-disclosure-block {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--color-coral);
  padding: 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  line-height: 1.65;
  color: #CBD5E1;
  margin-top: 14px;
}

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

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

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

.footer-menu a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-menu a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-contact-info p {
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: #CBD5E1;
}

.footer-contact-info a {
  color: #E2E8F0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  text-align: center;
  font-size: 0.8125rem;
  color: #94A3B8;
  line-height: 1.6;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .top-utility-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .mobile-nav-toggle {
    display: inline-flex;
  }
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-lg);
    gap: 12px;
  }
  .main-navigation.active {
    display: flex;
  }
  .nav-link {
    width: 100%;
    padding: 12px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: var(--border-radius-sm);
  }
  .nav-link:hover, .nav-link:focus {
    background-color: var(--color-gray-100);
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.1rem;
  }
}
