/* ==========================================================================
   Association Fière Haïti — Site Styles
   Brand Colors (from WordPress theme.json):
     Primary: #C14B36 (warm red)
     Secondary: #a15142 (muted red)
     Tertiary: #d48620 (gold/amber)
   Typography: Roboto Slab (body), Changa One (headings)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Changa+One&family=Roboto+Slab:wght@300;400;500;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 400;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #C14B36; text-decoration: none; transition: color 0.3s; }
a:hover { color: #d48620; }
h1, h2, h3, h4 {
  font-family: 'Changa One', 'Impact', sans-serif;
  font-weight: 400;
  line-height: 1.25;
  color: #222;
}
h1 { font-size: 2.4rem; margin-bottom: 0.5em; }
h2 { font-size: 1.8rem; margin-bottom: 0.75em; }
h3 { font-size: 1.3rem; margin-bottom: 0.5em; }
p { margin-bottom: 1.1em; }

@media (max-width: 768px) {
  body { font-size: 17px; line-height: 1.75; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}
ul { list-style: none; }

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

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.header {
  background: #fff;
  border-bottom: 3px solid #C14B36;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}
.header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  gap: 16px;
}
.navbar-brand .logo {
  height: 52px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links li { list-style: none; }
.nav-links a {
  color: #333;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover {
  color: #C14B36;
  border-bottom-color: #C14B36;
  background: rgba(193,75,54,0.06);
}
.nav-links a.active {
  background: #C14B36;
  color: #fff;
  border-bottom-color: #C14B36;
}

/* Donate CTA button */
.btn-donate {
  background: #d48620 !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: background 0.3s, transform 0.3s !important;
  display: inline-block;
  border-bottom: none !important;
}
.btn-donate:hover {
  background: #b8720f !important;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; }
  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    gap: 4px;
    padding-top: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 16px; font-size: 1rem; width: 100%; }
}

/* ==========================================================================
   HERO (Homepage)
   ========================================================================== */
.hero {
  position: relative;
  background-color: #C14B36;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  min-height: 520px;
  display: flex;
  align-items: center;
}
@media (max-width: 768px) {
  .hero { background-attachment: scroll; min-height: 400px; }
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(193,75,54,0.55) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}
.hero h1 {
  color: #fff;
  font-size: 3.2rem;
  margin-bottom: 0.4em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-subtitle {
  font-size: 1.1rem;
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 1.2em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero .btn-donate {
  font-size: 1.05rem !important;
  padding: 12px 32px !important;
  margin-top: 8px;
}

/* ==========================================================================
   PAGE HEADER BANNER (interior pages)
   ========================================================================== */
.page-header {
  background: linear-gradient(135deg, #C14B36 0%, #a15142 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d48620, #C14B36, #d48620);
}
.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header p, .header-content p { font-size: 1.05rem; opacity: 0.9; color: #fff; }
.header-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   POEM / ANTHEM BLOCK
   ========================================================================== */
.poem-block {
  background: #faf6f2;
  border-left: 5px solid #d48620;
  padding: 48px 32px;
  margin: 0;
  font-style: italic;
  line-height: 2;
  text-align: center;
  position: relative;
}
.poem-content { max-width: 600px; margin: 0 auto; position: relative; }
.poem-content::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: #d48620;
  opacity: 0.25;
  position: absolute;
  top: -28px;
  left: -32px;
  line-height: 1;
}
.poem-content::after {
  content: '\201D';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: #d48620;
  opacity: 0.25;
  position: absolute;
  bottom: 8px;
  right: -24px;
  line-height: 1;
}
.poem-block .attribution {
  font-style: normal;
  font-weight: 600;
  margin-top: 16px;
  color: #C14B36;
  font-size: 0.9rem;
}

/* ==========================================================================
   KEY AREAS / CARDS (Homepage)
   ========================================================================== */
.key-areas {
  padding: 80px 0;
}
.key-areas h2 {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  padding-bottom: 14px;
}
.key-areas h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: #d48620;
  border-radius: 2px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 768px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card p { flex: 1; }
.card h3 { padding: 16px 20px 0; }
.card p { padding: 0 20px; font-size: 0.92rem; color: #555; }
.card-link {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 20px;
  background: #C14B36;
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.3s;
}
.card-link:hover { background: #a15142; color: #fff; transform: scale(1.04); }

/* ==========================================================================
   ABOUT / GENERAL SECTIONS
   ========================================================================== */
.about-section {
  padding: 72px 0;
}
.about-section:nth-of-type(even) { background: #faf6f2; }
.mission-list {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 1em;
}
.mission-list li { margin-bottom: 8px; list-style: disc; }

/* Founders */
.founders-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.founders-image img { border-radius: 10px; }
@media (max-width: 768px) { .founders-content { grid-template-columns: 1fr; } }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  background: #fff;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
  border-top: 4px solid #C14B36;
}
.value-card h3 { color: #C14B36; }

/* ==========================================================================
   CEFIH (Centre Éducatif)
   ========================================================================== */
.cefih-intro { padding: 72px 0; }
.logo-section { text-align: center; margin-bottom: 24px; }
.cefih-logo { max-width: 160px; margin: 0 auto; }

.objectives-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 32px 0;
}
@media (max-width: 768px) { .objectives-grid { grid-template-columns: 1fr; } }
.objective-card {
  background: #fff;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid #C14B36;
}
.objective-number {
  display: inline-block;
  background: #C14B36;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-weight: 700;
  font-family: 'Changa One', sans-serif;
  margin-bottom: 12px;
}
.infrastructure-note {
  background: #fdf0db;
  color: #4a2e05;
  border-left: 4px solid #d48620;
  padding: 24px 28px;
  border-radius: 10px;
  margin: 32px 0;
  font-weight: 500;
}

/* Staff grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.staff-card {
  text-align: center;
  background: #fff;
  padding: 24px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.staff-card img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid #C14B36;
}
.staff-name { font-family: 'Roboto Slab', serif; font-weight: 600; font-size: 0.95rem; color: #222; }
.staff-role { font-size: 0.85rem; color: #666; margin-top: 4px; }

/* Creole block */
.creole-block {
  background: #1a5276;
  color: #fff;
  padding: 40px;
  border-radius: 10px;
  margin-top: 40px;
}
.creole-block h3 { color: #ffd89b; }

/* ==========================================================================
   NEWS / ACTUS
   ========================================================================== */
.news-section { padding: 72px 0; }
.news-item {
  border-bottom: 1px solid #eee;
  border-left: 4px solid #C14B36;
  padding: 28px 0 28px 24px;
  margin-bottom: 8px;
  transition: border-left-color 0.3s;
}
.news-item:hover { border-left-color: #d48620; }
.news-item:last-child { border-bottom: none; }
.news-item h3 { color: #C14B36; }
.news-date { font-size: 0.85rem; color: #888; margin-bottom: 8px; }

/* ==========================================================================
   DONATEURS
   ========================================================================== */
.donation-intro {
  padding: 40px 0;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.donation-regions { padding: 0 0 60px; }
.donation-region-card {
  background: #fff;
  border-radius: 10px;
  padding: 28px 28px 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-top: 4px solid #C14B36;
  transition: box-shadow 0.3s;
}
.donation-region-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.donation-region-card h3 {
  color: #C14B36;
  display: flex;
  align-items: center;
  gap: 10px;
}
.region-flag {
  font-size: 1.4rem;
  line-height: 1;
}
.donation-details { margin-top: 12px; }
.donation-method { margin-bottom: 12px; }
.btn-external {
  display: inline-block;
  background: #C14B36;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 500;
  margin-top: 12px;
  transition: background 0.3s, transform 0.3s;
}
.btn-external:hover { background: #a15142; color: #fff; transform: scale(1.04); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-intro {
  padding: 40px 0 20px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  padding: 0 0 60px;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h3 { color: #C14B36; margin-bottom: 16px; }
.contact-location { margin-bottom: 20px; }
.contact-location h4 {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}
.contact-method { margin-bottom: 16px; }
.contact-social { margin-top: 16px; }
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #C14B36;
  color: #fff;
  transition: background 0.3s, transform 0.3s;
}
.social-icon svg { fill: #fff; }
.social-icon:hover { background: #d48620; color: #fff; transform: scale(1.1); }

/* Contact form */
.contact-form-wrapper { padding: 32px; background: #faf6f2; border-radius: 10px; }
.contact-form h3 { color: #C14B36; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.required { color: #C14B36; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #C14B36;
  box-shadow: 0 0 0 3px rgba(193,75,54,0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.btn-submit {
  background: #C14B36;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  margin-top: 8px;
}
.btn-submit:hover { background: #a15142; transform: scale(1.03); }

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-box {
  background: #fff;
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  animation: modalIn 0.25s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  color: #C14B36;
}
.modal-box h2 {
  margin-bottom: 12px;
}
.modal-box p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}
.modal-hint {
  font-size: 0.85rem !important;
  color: #888 !important;
  margin-top: 4px;
}
.modal-box .btn-submit {
  margin-top: 20px;
  min-width: 180px;
}

.form-error {
  background: #fce4e4;
  border: 1px solid #e57373;
  border-radius: 8px;
  padding: 14px 20px;
  color: #c62828;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.form-success {
  background: #e8f5e9;
  border: 1px solid #66bb6a;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: #2e7d32;
  font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 48px 0 24px;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 32px;
}
@media (max-width: 768px) { .footer-content { grid-template-columns: 1fr; } }

.footer-column h4 {
  font-family: 'Changa One', sans-serif;
  color: #d48620;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-logo {
  height: 52px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.6));
}
.footer-column a {
  color: #ccc;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.footer-column a:hover {
  color: #d48620;
  border-bottom-color: #d48620;
}
.footer-column ul { padding: 0; }
.footer-column li { margin-bottom: 8px; list-style: none; }
.footer-column p { font-size: 0.9rem; margin-bottom: 6px; }

.footer-bottom {
  border-top: 1px solid #333;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

/* ==========================================================================
   SCROLL-TO-TOP BUTTON
   ========================================================================== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #C14B36;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
  z-index: 90;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: #d48620;
  transform: translateY(-2px);
}

/* ==========================================================================
   FADE-IN ANIMATION
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
