/* ==========================================================================
   GBHEP - Salado Design System Stylesheet
   Grand Besançon Hold'em Poker (Loi 1901 Non-Profit Portal)
   Colors: Navy (#1B2232), Coral (#FF5B2E), Off-White (#F8F9FA)
   ========================================================================== */

:root {
  --color-navy: #1B2232;
  --color-navy-dark: #111622;
  --color-navy-light: #263147;
  --color-coral: #FF5B2E;
  --color-coral-hover: #E4481D;
  --color-coral-light: #FFF0EB;
  --color-offwhite: #F8F9FA;
  --color-white: #FFFFFF;
  --color-text-main: #2D3748;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --color-border-light: #EDF2F7;
  --color-success: #10B981;
  --color-success-bg: #ECFDF5;
  --color-accent-blue: #2563EB;
  --color-accent-blue-bg: #EFF6FF;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, Cambria, serif;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-offwhite);
  color: var(--color-text-main);
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

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

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

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.95rem;
  letter-spacing: -0.015em;
  margin-top: 1.5rem;
}

h3 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1.25rem;
}

p.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-navy-light);
}

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

li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Utility Container & Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
}

.section-padding {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section-padding-sm {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-bar {
  background-color: var(--color-navy-dark);
  color: #94A3B8;
  font-size: 0.8125rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-bar-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  color: #CBD5E1;
  font-weight: 500;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-success);
}

.top-bar-link {
  color: #CBD5E1;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-link:hover {
  color: var(--color-coral);
  text-decoration: underline;
}

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

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-navy);
  text-decoration: none;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  background: var(--color-navy);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.125rem;
  border: 2px solid var(--color-coral);
}

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

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

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

.nav-link {
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-coral);
}

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

.nav-btn {
  background-color: var(--color-coral);
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

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

.nav-btn-secondary {
  background-color: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-navy);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: all 0.2s ease;
}

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

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

/* ==========================================================================
   Hero Banners
   ========================================================================== */
.hero-banner {
  background: linear-gradient(135deg, var(--color-navy) 0%, #222B3F 100%);
  color: var(--color-white);
  padding: 4.5rem 0 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 91, 46, 0.12) 0%, rgba(255, 91, 46, 0) 70%);
  pointer-events: none;
}

.hero-title {
  color: var(--color-white);
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-summary {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #CBD5E1;
  max-width: 780px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-subpage {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 3.5rem 0 3rem 0;
  border-bottom: 3px solid var(--color-coral);
}

.hero-subpage h1 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.hero-subpage p {
  color: #CBD5E1;
  font-size: 1.125rem;
  max-width: 720px;
  margin-bottom: 0;
}

/* ==========================================================================
   Non-Profit Disclosure Boxes & Banners
   ========================================================================== */
.reinvestment-banner {
  background-color: var(--color-coral-light);
  border-left: 4px solid var(--color-coral);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

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

.mission-highlight-card {
  background: var(--color-white);
  border: 2px solid #E2E8F0;
  border-left: 6px solid var(--color-navy);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 2.5rem 0;
}

.mission-highlight-card h3 {
  color: var(--color-navy);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mission-highlight-card p {
  font-size: 1.075rem;
  line-height: 1.8;
  color: var(--color-text-main);
  margin-bottom: 0;
}

/* ==========================================================================
   Grids, Cards & Modules
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 1.75rem;
  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-lg);
}

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

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

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

/* Stats Counter Bar */
.stats-bar {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-number.coral {
  color: var(--color-coral);
}

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

/* ==========================================================================
   Documentary Photography & Figcaption Styling
   ========================================================================== */
.doc-figure {
  margin: 1.75rem 0 1.25rem 0;
  width: 100%;
}

.doc-img {
  width: 100%;
  height: 380px;
  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;
}

.doc-img-sm {
  height: 240px;
}

.doc-caption {
  font-size: 0.875rem;
  color: #64748B;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   Badges, Status Tags & Progress Bars
   ========================================================================== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.785rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

.status-pill-blue {
  background-color: var(--color-accent-blue-bg);
  color: var(--color-accent-blue);
  border-color: rgba(37, 99, 235, 0.3);
}

.progress-container {
  margin: 1.5rem 0;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background-color: var(--color-border);
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-navy) 0%, var(--color-coral) 100%);
  border-radius: 5px;
}

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

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

.table-custom th {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.table-custom td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-main);
}

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

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

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

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

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

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

.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 {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  background-color: var(--color-coral);
  color: var(--color-white);
  border: none;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.btn-submit:hover {
  background-color: var(--color-coral-hover);
}

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

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

.modal-box {
  background: var(--color-white);
  max-width: 520px;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.25s ease-out;
}

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

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

.modal-title {
  font-size: 1.5rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.modal-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.btn-modal-close {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

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

.footer-disclosure-block {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 3rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-title {
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

.footer-links a {
  color: #94A3B8;
  font-size: 0.925rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--color-border);
    align-items: stretch;
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
  }
  
  .nav-link:hover {
    background-color: var(--color-offwhite);
  }
  
  .nav-btn {
    width: 100%;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 1.95rem;
  }
  
  .stats-bar .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .doc-img {
    height: 260px;
  }
}
