/* ==========================================================================
   FEDERATION DEPT CHASSEURS DE L ARDECHE - DUKE INSTITUTIONAL PORTAL STYLESHEET
   Strict adherence to Duke.edu Design System & French Public Interest Standards
   ========================================================================== */

:root {
  --duke-royal-blue: #001A57;
  --duke-deep-navy: #051C48;
  --duke-action-blue: #00539B;
  --duke-action-hover: #0073D1;
  --duke-light-gray: #F3F4F6;
  --duke-border-gray: #E5E7EB;
  --pure-white: #FFFFFF;
  --text-primary: #111827;
  --text-muted: #6B7280;
  --text-light: #FFFFFF;
  --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 24px rgba(0, 26, 87, 0.12);
  --font-serif: "Georgia", "Garamond", "Playfair Display", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--duke-light-gray);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--duke-light-gray);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* Typography Standards */
h1, h2, h3, h4, .serif-heading {
  font-family: var(--font-serif);
  color: var(--duke-royal-blue);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-bottom: 2px solid var(--duke-border-gray); padding-bottom: 0.5rem; margin-top: 2rem; }
h3 { font-size: 1.45rem; margin-top: 1.5rem; }
h4 { font-size: 1.15rem; color: var(--duke-deep-navy); }

p {
  margin-bottom: 1.25rem;
  max-width: 75ch;
  color: var(--text-primary);
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Level 1: Utility Strip */
.top-utility-strip {
  background-color: var(--duke-deep-navy);
  color: #E2E8F0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.utility-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.utility-items {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.utility-items span, .utility-items a {
  color: #CBD5E1;
}

.utility-items a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.utility-status-badge {
  background-color: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Level 2: Main Navigation Bar */
.main-header {
  background-color: var(--duke-royal-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 26, 87, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand-link {
  display: flex;
  flex-direction: column;
  color: var(--pure-white);
  text-decoration: none;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: #93C5FD;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Navigation Links & Dropdowns */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--pure-white);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  min-height: 44px;
}

.nav-link:hover, .nav-item:hover .nav-link {
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  text-decoration: none;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--duke-deep-navy);
  min-width: 260px;
  border-radius: 0 0 6px 6px;
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-item a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: #E2E8F0;
  font-size: 0.85rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-item a:hover {
  background-color: var(--duke-action-blue);
  color: #FFFFFF;
  text-decoration: none;
}

/* Header Action CTA */
.nav-cta-btn {
  background-color: var(--duke-action-blue);
  color: #FFFFFF !important;
  padding: 0.55rem 1.15rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-cta-btn:hover {
  background-color: var(--duke-action-hover);
  text-decoration: none;
}

/* Mobile Toggle */
.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 1.25rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

/* Hero Showcase Banner */
.hero-showcase {
  position: relative;
  background-color: var(--duke-deep-navy);
  color: var(--pure-white);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.hero-banner-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  opacity: 0.75;
  filter: brightness(0.9);
}

.hero-overlay-card {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  background-color: rgba(5, 28, 72, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 6px solid var(--duke-action-blue);
  padding: 2.25rem;
  max-width: 680px;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.hero-overlay-card h1 {
  color: var(--pure-white);
  font-size: 2.15rem;
  margin-bottom: 0.75rem;
}

.hero-overlay-card p {
  color: #E2E8F0;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--duke-action-blue);
  color: var(--pure-white);
}

.btn-primary:hover {
  background-color: var(--duke-action-hover);
  color: var(--pure-white);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--pure-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--pure-white);
  text-decoration: none;
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--duke-royal-blue);
  border-color: var(--duke-royal-blue);
}

.btn-outline-dark:hover {
  background-color: var(--duke-royal-blue);
  color: var(--pure-white);
  text-decoration: none;
}

/* Pills & Tags */
.badge-pill {
  display: inline-block;
  background-color: var(--duke-action-blue);
  color: var(--pure-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.badge-pill-outline {
  background-color: transparent;
  border: 1px solid var(--duke-action-blue);
  color: var(--duke-action-blue);
}

/* 120+ Word Mission Callout Container */
.mission-callout-block {
  background-color: var(--pure-white);
  border: 1px solid var(--duke-border-gray);
  border-left: 5px solid var(--duke-action-blue);
  padding: 2.25rem;
  border-radius: 8px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 3rem;
}

.mission-callout-block h2 {
  border-bottom: none;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--duke-royal-blue);
}

.mission-statement-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #1F2937;
  font-family: var(--font-serif);
  font-style: italic;
}

/* Reinvestment & Funding Notice Boxes */
.institutional-notice-box {
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-left: 4px solid var(--duke-action-blue);
  padding: 1.25rem 1.75rem;
  border-radius: 6px;
  margin: 1.75rem 0 2.5rem 0;
  font-size: 0.95rem;
  color: #1E3A8A;
}

.institutional-notice-box strong {
  color: var(--duke-deep-navy);
}

/* Asymmetric Duke Split Grid */
.duke-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.card-white {
  background-color: var(--pure-white);
  border: 1px solid var(--duke-border-gray);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.card-white img {
  margin-bottom: 1.25rem;
  width: 100%;
}

.stacked-editorial-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 4 Activity Preview Cards Grid */
.four-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.activity-preview-card {
  background-color: var(--pure-white);
  border: 1px solid var(--duke-border-gray);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.activity-preview-card h3 {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.activity-preview-card p {
  font-size: 0.925rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Large Serif Quote Section */
.serif-quote-section {
  background-color: #E2E8F0;
  padding: 3rem 2rem;
  border-top: 2px solid var(--duke-border-gray);
  border-bottom: 2px solid var(--duke-border-gray);
  margin-bottom: 3.5rem;
  text-align: center;
}

.serif-quote-text {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--duke-royal-blue);
  line-height: 1.45;
  max-width: 900px;
  margin: 0 auto 1.25rem auto;
}

.serif-quote-author {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 3-Column Horizontal Content Cards */
.three-column-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.content-card-col {
  background-color: var(--pure-white);
  border: 1px solid var(--duke-border-gray);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.content-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.content-card-body h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.content-card-body p {
  font-size: 0.925rem;
  flex-grow: 1;
}

/* Statistical Indicator Panel */
.stats-panel {
  background-color: var(--pure-white);
  border: 1px solid var(--duke-border-gray);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 3.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  padding: 1rem;
  border-right: 1px solid var(--duke-border-gray);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  color: var(--duke-action-blue);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

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

/* Testimonial Profile Frame */
.testimonial-section {
  background-color: var(--duke-royal-blue);
  color: var(--pure-white);
  border-radius: 8px;
  padding: 3rem;
  margin-bottom: 3.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.testimonial-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--duke-action-blue);
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-content blockquote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-size: 0.95rem;
  color: #93C5FD;
  font-weight: 600;
}

/* Content Page Layouts */
.content-wrapper {
  background-color: var(--pure-white);
  border: 1px solid var(--duke-border-gray);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 3rem;
}

.content-wrapper h2 {
  margin-top: 2.25rem;
}

.content-wrapper ul, .content-wrapper ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.content-wrapper li {
  margin-bottom: 0.5rem;
}

.table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table.civic-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

table.civic-table th {
  background-color: var(--duke-royal-blue);
  color: var(--pure-white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-sans);
}

table.civic-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--duke-border-gray);
}

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

/* Forms */
.civic-form-group {
  margin-bottom: 1.25rem;
}

.civic-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--duke-deep-navy);
}

.civic-form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--duke-border-gray);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.civic-form-control:focus {
  outline: none;
  border-color: var(--duke-action-blue);
  box-shadow: 0 0 0 3px rgba(0, 83, 155, 0.2);
}

/* Universal 4-Column Duke Dark Footer */
.main-footer {
  background-color: var(--duke-royal-blue);
  color: var(--pure-white);
  margin-top: auto;
  border-top: 4px solid var(--duke-action-blue);
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.footer-col p, .footer-col address {
  font-style: normal;
  font-size: 0.875rem;
  color: #CBD5E1;
  line-height: 1.6;
}

.footer-col address p {
  margin-bottom: 0.5rem;
}

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

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

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

.footer-links a:hover {
  color: #60A5FA;
  text-decoration: underline;
}

.legal-compliance-text {
  font-size: 0.8rem !important;
  color: #94A3B8 !important;
  line-height: 1.55;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #94A3B8;
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom-links a {
  color: #CBD5E1;
}

/* ==========================================================================
   MOBILE-RESPONSIVE MEDIA QUERIES (STRICT REQUIREMENT)
   ========================================================================== */

@media (max-width: 992px) {
  .duke-split-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-overlay-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    margin-top: -3rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .mobile-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--duke-deep-navy);
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .dropdown-menu {
    position: static;
    display: block;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }

  .four-card-grid {
    grid-template-columns: 1fr;
  }

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

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

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--duke-border-gray);
  }

  .testimonial-section {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

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

  .content-wrapper {
    padding: 1.5rem;
  }

  .utility-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
