/* ==========================================================================
   Salado Design System Stylesheet — Les Amis de l'Église Sainte Anastasie
   Colors: Navy (#1B2232), Coral (#FF5B2E), Off-White (#F8F9FA)
   Non-Profit Compliance: French Association Loi 1901 (RNA: W153001525)
   ========================================================================== */

:root {
  --color-navy: #1B2232;
  --color-navy-dark: #121722;
  --color-navy-light: #263248;
  --color-coral: #FF5B2E;
  --color-coral-hover: #E0481D;
  --color-coral-light: #FFF0EB;
  --color-bg: #F8F9FA;
  --color-white: #FFFFFF;
  --color-slate: #64748B;
  --color-slate-dark: #334155;
  --color-slate-light: #F1F5F9;
  --color-border: #E5E7EB;
  --color-border-dark: #CBD5E1;
  --color-success: #10B981;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(27,34,50,0.12);
  --transition: all 0.25s ease-in-out;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-slate-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: 2.6rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; margin-top: 1.5rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

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

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

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

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

.section-navy {
  background-color: var(--color-navy);
  color: #E2E8F0;
}

.section-navy h2, .section-navy h3 {
  color: var(--color-white);
}

.text-center { text-align: center; }
.text-coral { color: var(--color-coral); }
.text-muted { color: var(--color-slate); }

/* Utility Top Bar */
.utility-bar {
  background-color: var(--color-navy-dark);
  color: #94A3B8;
  font-size: 0.85rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.utility-bar a {
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  min-width: 44px;
}

.utility-bar a:hover {
  color: var(--color-coral);
  text-decoration: none;
}

.badge-id {
  background-color: rgba(255,255,255,0.12);
  color: #F1F5F9;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Main Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  border: 2px solid var(--color-coral);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}

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

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--color-slate);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 0.5rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  position: relative;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--color-coral);
  text-decoration: none;
}

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

.nav-cta-btn {
  background-color: var(--color-coral) !important;
  color: var(--color-white) !important;
  padding: 0.65rem 1.25rem !important;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(255,91,46,0.3);
  transition: var(--transition);
}

.nav-cta-btn:hover {
  background-color: var(--color-coral-hover) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  color: var(--color-navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-coral);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(255,91,46,0.3);
}

.btn-primary:hover {
  background-color: var(--color-coral-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-navy);
}

.btn-white:hover {
  background-color: #F1F5F9;
  text-decoration: none;
}

/* Documentary Photography Standard */
.doc-figure {
  margin: 1.5rem 0;
}

.doc-image {
  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;
  display: block;
}

figcaption {
  font-size: 0.875rem;
  color: #64748B;
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.4;
  padding: 0 0.25rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(27, 34, 50, 0.92), rgba(27, 34, 50, 0.88)), url('https://images.pexels.com/photos/161853/cathedral-monument-historical-stone-161853.jpeg?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: var(--color-white);
  padding: 5.5rem 0 4.5rem 0;
  position: relative;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3rem;
  max-width: 950px;
  margin-bottom: 1.5rem;
}

.hero-summary {
  font-size: 1.3rem;
  color: #E2E8F0;
  max-width: 850px;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-pill {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #CBD5E1;
}

/* Mandatory Mission Block */
.mission-highlight-card {
  background-color: var(--color-white);
  border: 2px solid var(--color-coral);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin: 3rem 0;
  position: relative;
}

.mission-highlight-card::before {
  content: "OUR MANDATORY NON-PROFIT MISSION (LOI 1901)";
  position: absolute;
  top: -12px;
  left: 2rem;
  background-color: var(--color-coral);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
}

.mission-lead-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-navy);
  font-weight: 500;
}

/* Funding Reinvestment Disclosure Banner */
.reinvestment-banner {
  background-color: #FFF7ED;
  border-left: 5px solid var(--color-coral);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.reinvestment-banner p {
  margin: 0;
  font-weight: 600;
  color: #9A3412;
  font-size: 1.05rem;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
}

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

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

/* Cards */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  width: 52px;
  height: 52px;
  background-color: var(--color-coral-light);
  color: var(--color-coral);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Metrics & Stats */
.stats-strip {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-coral);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: monospace;
}

.stat-label {
  font-size: 0.95rem;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Progress Bar */
.progress-wrapper {
  margin: 1.5rem 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

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

.progress-bar-fill {
  background-color: var(--color-coral);
  height: 100%;
  border-radius: 20px;
  transition: width 0.8s ease;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-slate-dark);
  font-size: 0.98rem;
}

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

.table tr:nth-child(even) {
  background-color: #FAFAFA;
}

/* Badges */
.status-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge.active {
  background-color: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.status-badge.complete {
  background-color: #E0E7FF;
  color: #3730A3;
  border: 1px solid #C7D2FE;
}

/* Forms */
.form-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-slate-dark);
  background-color: #FFFFFF;
  transition: var(--transition);
}

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

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

/* Modal Popup */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 23, 34, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.modal-close-btn {
  background-color: var(--color-navy);
  color: var(--color-white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}

/* Standardized Site Footer */
.site-footer {
  background-color: var(--color-navy);
  color: #CBD5E1;
  padding-top: 4.5rem;
  border-top: 4px solid var(--color-coral);
}

.site-footer a {
  color: #E2E8F0;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--color-coral);
  display: inline-block;
  padding-bottom: 0.35rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  display: inline-block;
  min-height: 36px;
  line-height: 36px;
}

/* Mandatory Non-Profit Footer Disclosure */
.footer-disclosure-block {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem 0 2rem 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #CBD5E1;
}

.footer-bottom-bar {
  background-color: var(--color-navy-dark);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: #94A3B8;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border-bottom: 2px solid var(--color-navy);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
  }
  .primary-nav.nav-open {
    display: block;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .primary-nav a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }
  .primary-nav a:hover {
    background-color: var(--color-slate-light);
  }
  .primary-nav a.active::after {
    display: none;
  }
  .hero h1 {
    font-size: 1.95rem;
  }
  .hero-summary {
    font-size: 1.05rem;
  }
  .utility-bar .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
