/* ==========================================================================
   ECURIES DE LOU BAYLE - Institutional Non-Profit Portal Stylesheet
   Pure CSS Design System: Institutional Navy, Dark Slate & Gold Accents
   Compliant with Web Accessibility Standards & Mobile Touch Targets (>=44px)
   ========================================================================== */

:root {
  --primary-navy: #001A57;
  --dark-slate-navy: #000D2E;
  --accent-gold: #FFD700;
  --accent-gold-hover: #E6C200;
  --bg-offwhite: #F9F9FB;
  --card-bg: #FFFFFF;
  --text-charcoal: #1C1A17;
  --text-muted: #4B5563;
  --text-slate: #64748B;
  --border-light: #E5E7EB;
  --border-navy: #1E3A8A;
  --success-green: #065F46;
  --success-bg: #ECFDF5;
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-speed: 0.25s ease;
  --shadow-sm: 0 2px 8px rgba(0, 13, 46, 0.04);
  --shadow-md: 0 4px 15px rgba(0, 13, 46, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 13, 46, 0.12);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--bg-offwhite);
  color: var(--text-charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 10px;
  background: var(--accent-gold);
  color: var(--dark-slate-navy);
  padding: 10px 18px;
  font-weight: 700;
  z-index: 99999;
  border-radius: 4px;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus {
  top: 10px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Institutional Banner */
.top-notice-bar {
  background-color: var(--dark-slate-navy);
  color: #E2E8F0;
  font-size: 0.825rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}
.top-notice-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-notice-bar .org-status {
  display: flex;
  align-items: center;
  gap: 12px;
}
.badge-nonprofit {
  background: rgba(255, 215, 0, 0.15);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.top-notice-bar a {
  color: #E2E8F0;
  text-decoration: none;
  transition: color var(--transition-speed);
}
.top-notice-bar a:hover {
  color: var(--accent-gold);
}

/* Header & Navigation */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 2px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

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

.brand-emblem {
  width: 48px;
  height: 48px;
  background: var(--primary-navy);
  color: var(--accent-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  border: 2px solid var(--accent-gold);
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--primary-navy);
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.775rem;
  color: var(--text-slate);
  display: block;
  font-weight: 500;
}

/* Navigation Architecture (4 Categories) */
.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  color: var(--primary-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all var(--transition-speed);
}

.nav-link:hover,
.nav-link:focus,
.nav-item:hover > .nav-link {
  background-color: rgba(0, 26, 87, 0.06);
  color: var(--primary-navy);
}

.nav-link.nav-cta {
  background-color: var(--primary-navy);
  color: #FFFFFF;
  border: 1px solid var(--primary-navy);
  padding: 10px 20px;
}

.nav-link.nav-cta:hover {
  background-color: var(--dark-slate-navy);
  color: var(--accent-gold);
}

.dropdown-arrow {
  font-size: 0.65rem;
  transition: transform var(--transition-speed);
}

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

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent-gold);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-speed);
  z-index: 1001;
}

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

.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  color: var(--text-charcoal);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.925rem;
  min-height: 44px;
  line-height: 1.4;
  transition: background var(--transition-speed), color var(--transition-speed);
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background-color: rgba(0, 26, 87, 0.05);
  color: var(--primary-navy);
  font-weight: 600;
  padding-left: 24px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  color: var(--primary-navy);
}

.mobile-nav-toggle:focus {
  outline: 2px solid var(--accent-gold);
}

/* Main Content Area */
main {
  flex: 1 0 auto;
}

/* Hero Banner */
.hero-banner {
  background: var(--dark-slate-navy);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  border-bottom: 4px solid var(--accent-gold);
}

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

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #CBD5E1;
  margin-bottom: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.hero-summary-box {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--accent-gold);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 1.05rem;
  color: #F1F5F9;
  line-height: 1.55;
  margin-bottom: 28px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: 2px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--dark-slate-navy);
  border-color: var(--accent-gold);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-outline-white {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.btn-outline-white:hover, .btn-outline-white:focus {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--primary-navy);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background-color: var(--dark-slate-navy);
  color: var(--accent-gold);
}

/* Image Frames & Captions Protocol */
.figure-wrapper {
  margin: 28px 0 24px 0;
}

.figure-wrapper img,
.inline-photo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin: 20px 0 8px 0;
  object-fit: cover;
  display: block;
}

.hero-image-frame img {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  display: block;
}

figcaption,
.image-caption {
  font-size: 0.875rem;
  color: #64748B;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.45;
  display: block;
  padding: 0 4px;
}

/* Mandatory Mission Callout Box */
.mission-callout {
  background: #FFFFFF;
  border: 2px solid var(--primary-navy);
  border-left: 8px solid var(--accent-gold);
  border-radius: 12px;
  padding: 36px 40px;
  margin: 48px 0;
  box-shadow: var(--shadow-md);
}

.mission-callout h2 {
  font-size: 1.75rem;
  color: var(--primary-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mission-callout h2::before {
  content: "★";
  color: var(--accent-gold);
  font-size: 1.6rem;
}

.mission-callout p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-charcoal);
  font-weight: 500;
}

/* Content Sections */
.section {
  padding: 64px 0;
}

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

.section-header {
  margin-bottom: 40px;
  text-align: left;
}

.section-header h2 {
  font-size: 2.1rem;
  color: var(--primary-navy);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 12px;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 800px;
}

/* Prose Typography */
.prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2D3748;
}

.prose p {
  margin-bottom: 22px;
}

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

.prose h3 {
  font-size: 1.4rem;
  color: var(--dark-slate-navy);
  margin: 32px 0 12px 0;
  font-weight: 700;
}

.prose ul, .prose ol {
  margin: 16px 0 24px 28px;
}

.prose li {
  margin-bottom: 8px;
}

.prose blockquote {
  border-left: 4px solid var(--accent-gold);
  padding: 16px 24px;
  background: #F1F5F9;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
  font-style: italic;
  color: #334155;
}

/* Metric / Pillar Grid */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.metric-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-navy);
  margin-bottom: 8px;
  line-height: 1;
}

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

.metric-desc {
  font-size: 0.85rem;
  color: var(--text-slate);
  line-height: 1.4;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin: 32px 0;
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.card-img-wrapper {
  height: 220px;
  overflow: hidden;
  background: #E2E8F0;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  margin: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

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

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-navy);
  background: rgba(0, 26, 87, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
  align-self: flex-start;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

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

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

/* Institutional Disclosure Box */
.disclosure-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-left: 6px solid var(--primary-navy);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 36px 0;
}

.disclosure-box h4 {
  font-size: 1.15rem;
  color: var(--primary-navy);
  margin-bottom: 8px;
  font-weight: 700;
}

.disclosure-box p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

/* Form Styles */
.form-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 36px;
  box-shadow: var(--shadow-md);
}

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

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

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--text-charcoal);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(0, 26, 87, 0.15);
}

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

/* Modal Popup (AJAX Form Response) */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 13, 46, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-content {
  background: #FFFFFF;
  border-radius: 16px;
  border: 2px solid var(--accent-gold);
  max-width: 540px;
  width: 100%;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalEnter 0.3s ease-out;
}

@keyframes modalEnter {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px auto;
  border: 2px solid var(--success-green);
}

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

.modal-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Mega Footer */
.site-footer {
  background-color: var(--dark-slate-navy);
  color: #E2E8F0;
  padding: 64px 0 0 0;
  margin-top: auto;
  border-top: 4px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.925rem;
  color: #94A3B8;
  line-height: 1.65;
  margin-bottom: 16px;
}

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

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

.footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.925rem;
  display: inline-block;
  min-height: 32px;
  line-height: 32px;
  transition: color var(--transition-speed), padding-left var(--transition-speed);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--accent-gold);
  padding-left: 6px;
}

.footer-contact-list {
  list-style: none;
  font-size: 0.925rem;
  color: #CBD5E1;
}

.footer-contact-list li {
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
}

.footer-contact-list a {
  color: #CBD5E1;
  text-decoration: none;
}
.footer-contact-list a:hover {
  color: var(--accent-gold);
}

/* Mandatory Compliance Disclosure in Footer */
.footer-disclosure-block {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-disclosure-block .disclosure-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  padding: 20px 24px;
}

.footer-disclosure-block p {
  font-size: 0.9rem;
  color: #E2E8F0;
  line-height: 1.6;
  margin: 0;
}

/* Bottom Copyright Bar */
.footer-bottom-bar {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #94A3B8;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border-bottom: 3px solid var(--accent-gold);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    display: none;
    padding: 20px 24px;
  }

  .main-nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    background: #F8FAFC;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--accent-gold);
    background: #F1F5F9;
    border-radius: 0 8px 8px 0;
    margin: 8px 0 12px 16px;
    display: block;
  }

  .dropdown-menu li a {
    padding: 10px 16px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.85rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }

  .section {
    padding: 44px 0;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

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

  .mission-callout h2 {
    font-size: 1.4rem;
  }

  .mission-callout p {
    font-size: 1.05rem;
  }

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

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

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