/* ==========================================================================
   ASSOCIATION 'SUR LES RIVES DU GLAND' - OFFICIAL DESIGN SYSTEM (ALONE THEME)
   Strict Non-Profit (Loi 1901) & Google Ad Grants Compliance Architecture
   Palette:
     Sunshine Gold:   #F3BA2F
     Terracotta Red:  #ED5236
     Deep Navy:       #1F2531
     Soft Off-White:  #F8F9FA
     Pure White:      #FFFFFF
     Slate Border:    #E2E8F0
     Muted Slate:     #64748B
   ========================================================================== */

:root {
  --primary-gold: #F3BA2F;
  --accent-terracotta: #ED5236;
  --deep-navy: #1F2531;
  --navy-surface: #272F3E;
  --soft-bg: #F8F9FA;
  --card-white: #FFFFFF;
  --border-slate: #E2E8F0;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #F8F9FA;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --container-max: 1200px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background-color: var(--soft-bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; margin-top: 1.5rem; }
h3 { font-size: 1.35rem; margin-top: 1.25rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.15rem;
  color: #334155;
  font-size: 1rem;
}

a {
  color: var(--accent-terracotta);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #c93b22;
}

strong {
  font-weight: 600;
  color: var(--deep-navy);
}

/* ==========================================================================
   CONTAINER & LAYOUT GRID
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 60px 0;
}

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

.section-navy {
  background-color: var(--deep-navy);
  color: #E2E8F0;
}
.section-navy h2, .section-navy h3, .section-navy h4 {
  color: #FFFFFF;
}
.section-navy p {
  color: #CBD5E1;
}

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

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

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.utility-strip {
  background-color: #161A23;
  color: #94A3B8;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.utility-strip a {
  color: var(--primary-gold);
  text-decoration: underline;
}

.utility-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(243, 186, 47, 0.15);
  color: var(--primary-gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
}

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

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

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

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--deep-navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-terracotta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--deep-navy);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  min-height: 44px;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-terracotta);
  background-color: rgba(237, 82, 54, 0.06);
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 1010;
}

.dropdown-link {
  display: block;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--deep-navy);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-link:hover {
  background-color: var(--soft-bg);
  color: var(--accent-terracotta);
  padding-left: 22px;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-terracotta);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  margin-left: 12px;
  box-shadow: 0 2px 8px rgba(237, 82, 54, 0.3);
  transition: transform 0.15s ease, background-color 0.2s ease;
  min-height: 44px;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  background-color: #d64024;
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--deep-navy);
  margin: 4px 0;
  transition: 0.2s;
}

/* ==========================================================================
   BUTTONS & ACTION ELEMENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 44px;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-terracotta);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(237, 82, 54, 0.25);
}
.btn-primary:hover {
  background-color: #d64024;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(237, 82, 54, 0.35);
}

.btn-secondary {
  background-color: var(--primary-gold);
  color: var(--deep-navy);
  font-weight: 800;
}
.btn-secondary:hover {
  background-color: #e0aa24;
  color: var(--deep-navy);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--deep-navy);
  color: var(--deep-navy);
}
.btn-outline:hover {
  background-color: var(--deep-navy);
  color: #FFFFFF;
}

.btn-outline-white {
  background-color: transparent;
  border-color: #FFFFFF;
  color: #FFFFFF;
}
.btn-outline-white:hover {
  background-color: #FFFFFF;
  color: var(--deep-navy);
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-banner {
  position: relative;
  background-color: var(--deep-navy);
  color: #FFFFFF;
  padding: 80px 0;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(31, 37, 49, 0.94) 0%, rgba(39, 47, 62, 0.88) 100%);
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

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

.hero-tag {
  display: inline-block;
  background-color: var(--primary-gold);
  color: var(--deep-navy);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.hero-title {
  color: #FFFFFF;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-summary {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #F1F5F9;
  margin-bottom: 28px;
}

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

/* Page Sub-Hero */
.sub-hero {
  position: relative;
  background-color: var(--deep-navy);
  color: #FFFFFF;
  padding: 60px 0;
  overflow: hidden;
}
.sub-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(31, 37, 49, 0.92) 0%, rgba(39, 47, 62, 0.85) 100%);
  z-index: 1;
}
.sub-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.sub-hero h1 {
  color: #FFFFFF;
  font-size: 2.25rem;
}
.sub-hero p {
  color: #E2E8F0;
  font-size: 1.125rem;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 0.875rem;
  color: #94A3B8;
  margin-bottom: 12px;
}
.breadcrumbs a {
  color: var(--primary-gold);
}

/* ==========================================================================
   MISSION STATEMENT BLOCK (MANDATORY 120+ WORDS)
   ========================================================================== */
.mission-statement-box {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 2px solid var(--primary-gold);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin: 40px 0;
  box-shadow: 0 4px 20px rgba(243, 186, 47, 0.15);
  position: relative;
}

.mission-statement-badge {
  display: inline-block;
  background-color: var(--deep-navy);
  color: var(--primary-gold);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.mission-statement-title {
  color: var(--deep-navy);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.mission-statement-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #1E293B;
  font-weight: 500;
  margin-bottom: 0;
}

/* ==========================================================================
   CARDS & IMPACT MODULES
   ========================================================================== */
.card {
  background-color: var(--card-white);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

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

.badge-civic {
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

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

/* Impact progress bar */
.impact-tracker {
  margin: 16px 0;
}

.impact-tracker-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-gold) 0%, var(--accent-terracotta) 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ==========================================================================
   DOCUMENTARY PHOTOGRAPHY & CAPTIONS
   ========================================================================== */
.doc-figure {
  margin: 24px 0 16px 0;
  width: 100%;
}

.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: 0 0 8px 0;
  object-fit: cover;
  display: block;
}

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

/* ==========================================================================
   NUMERICAL IMPACT COUNTERS
   ========================================================================== */
.impact-counter-card {
  text-align: center;
  padding: 30px 20px;
  background: #FFFFFF;
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.impact-counter-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent-terracotta);
  line-height: 1;
  margin-bottom: 8px;
}

.impact-counter-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--deep-navy);
}

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

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
}

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

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-terracotta);
  box-shadow: 0 0 0 3px rgba(237, 82, 54, 0.15);
}

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

/* Notice box */
.notice-box {
  background-color: #EFF6FF;
  border-left: 4px solid #3B82F6;
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
}

.notice-box.notice-gold {
  background-color: #FFFBEB;
  border-left-color: var(--primary-gold);
}

.notice-box.notice-green {
  background-color: #F0FDF4;
  border-left-color: #22C55E;
}

/* ==========================================================================
   MODAL POPUP
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-gold);
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-icon {
  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 18px auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #1F2531;
  color: #CBD5E1;
  border-top: 4px solid var(--primary-gold);
  padding: 60px 0 0 0;
  font-size: 0.9375rem;
}

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

.footer-col h4 {
  color: var(--primary-gold);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.footer-col p {
  color: #94A3B8;
  font-size: 0.875rem;
  line-height: 1.6;
}

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

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

.footer-links a {
  color: #CBD5E1;
  font-size: 0.875rem;
  display: inline-block;
  min-height: 32px;
  line-height: 32px;
}

.footer-links a:hover {
  color: var(--primary-gold);
  padding-left: 4px;
}

.footer-disclosure-block {
  background-color: #161A23;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 30px;
  margin-bottom: 30px;
}

.footer-disclosure-text {
  color: #CBD5E1;
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
}

.footer-bottom {
  background-color: #161A23;
  padding: 22px 0;
  font-size: 0.8125rem;
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@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;
  }
}

@media (max-width: 768px) {
  .utility-strip {
    text-align: center;
  }
  .utility-strip .container {
    justify-content: center;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 2px solid var(--border-slate);
    box-shadow: var(--shadow-lg);
    padding: 20px;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: var(--soft-bg);
    border-radius: var(--radius-sm);
    margin-top: 6px;
    padding: 6px 12px;
  }
  
  .nav-cta-btn {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }

  .hero-title {
    font-size: 2rem;
  }
  .hero-summary {
    font-size: 1rem;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
}
