/* =======================================
   PROCLAIM 2025 Stylesheet (style.css)
   ======================================= */

/* === 2025 BEST PRACTICES: CSS === */
:root {
  --primary: #243B6B;  /* Deep sapphire blue */
  --accent: #E2B44C;   /* Royal gold */
  --warm: #D97A3D;     /* Amber */
  --ember: #C64F36;    /* Soft red-orange */
  --light: #F5F2EA;    /* Cream */
  --dark: #1A1A1A;     /* Charcoal */
  --nav-offset: 96px;  /* Fixed nav height offset */
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Figtree', sans-serif;
  
  --border-radius: 8px;
  --shadow-soft: 0 4px 12px rgba(0,0,0,0.04);
  --shadow-medium: 0 6px 20px rgba(0,0,0,0.07);
}

/* === Base Styles === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  line-height: 1.8;
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}
h1 { font-size: clamp(2.5rem, 5vw, 3.2rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.5rem); }
p {
  margin-bottom: 1.5rem;
  max-width: 65ch; /* CRITICAL: Readability */
  text-align: left; /* CRITICAL: No centered paragraphs */
}
a { color: var(--warm); text-decoration: none; font-weight: 600; }
img { max-width: 100%; height: auto; border-radius: var(--border-radius); }
hr {
  border: 0; height: 1px;
  background-color: #ddd;
  margin: 2rem auto 3rem auto;
  max-width: 200px;
}
blockquote {
  font-family: var(--font-heading);
  font-size: 1.4rem; line-height: 1.6;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem; margin: 2rem 0;
  color: #333;
}
cite {
  display: block; margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 600;
  color: var(--primary);
}
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

/* === Main Content Sections === */
section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem auto;
}

/* === Reusable Button Components === */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  cursor: pointer;
  margin: 0.25rem;
  background-color: var(--warm);
  color: #fff;
  border-color: var(--warm);
}
.btn:hover {
  background-color: var(--ember);
  border-color: var(--ember);
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: transparent;
  color: var(--light);
  border: 2px solid var(--light);
}
.btn-secondary:hover {
  background-color: var(--light);
  color: var(--primary);
}
.btn-outline {
  background-color: transparent;
  color: var(--warm);
  border-color: var(--warm);
}
.btn-outline:hover {
  background-color: var(--warm);
  color: #fff;
}

/* === Action-Driven Navbar === */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #ffffff;
  box-shadow: var(--shadow-soft);
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  width: 64px;
  height: 64px;
  margin-right: 0.5rem;
  background: var(--light);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
nav ul {
  display: flex; list-style: none; align-items: center;
}
nav ul li { margin-left: 2rem; }
nav ul li a {
  font-weight: 600; color: var(--primary);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
nav ul li a:hover, nav ul li a.active { 
  color: var(--warm); 
  border-bottom-color: var(--warm); /* Added active state border */
}
.has-dropdown {
  position: relative;
}
.has-dropdown > a::after {
  content: '▾';
  font-size: 0.75rem;
  margin-left: 0.35rem;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: var(--shadow-medium);
  border-radius: var(--border-radius);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 1001;
}
.dropdown li { margin: 0; }
.dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f3f3;
}
.dropdown li:last-child a { border-bottom: none; }
.has-dropdown:hover .dropdown { display: block; }
.has-dropdown.open .dropdown { display: block; }
.btn-donate {
  background-color: var(--accent); color: var(--primary);
  padding: 0.6rem 1.2rem; margin-left: 2rem;
}
.btn-donate:hover { background-color: #d4a944; }
.menu-toggle {
  font-size: 2rem; display: none;
  cursor: pointer; color: var(--primary);
}

/* === Hero Sections === */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light);
  overflow: hidden;
  margin-top: var(--nav-offset); /* Offset for fixed nav height */
}
.bg-video {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  z-index: -2;
}
.hero::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg,
      rgba(36,59,107,.75),
      rgba(217,122,61,.50),
      rgba(198,79,54,.40));
  z-index: -1;
}
.hero.hero-photo {
  background-image: linear-gradient(135deg,
      rgba(36,59,107,.78),
      rgba(217,122,61,.55),
      rgba(0,0,0,0.35)),
    url("images/office photos/officehero.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-content { max-width: 800px; padding: 2rem; }
.hero h1 {
  color: var(--light);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.hero h3 {
  font-family: var(--font-body);
  font-size: 1.3rem; font-weight: 400;
  color: var(--light); opacity: 0.9;
  margin: 1rem auto 2.5rem;
  max-width: 600px;
}
.hero-actions .btn { margin: 0.5rem; min-width: 180px; }

/* Simple Hero for inner pages */
.simple-hero {
  min-height: 55vh; /* Taller to show more of the image */
  margin-top: var(--nav-offset); /* Offset for fixed nav height */
  background-position: center;
  background-size: cover;
}
.simple-hero h1 { margin-bottom: 0.5rem; }
.simple-hero h3 { font-size: 1.1rem; }

/* === Reusable Components === */
.trust-bar {
  background-color: #fff;
  box-shadow: var(--shadow-medium);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 900px;
  margin: -6rem auto 0 auto; /* Pulls up over bottom of hero */
  position: relative;
  z-index: 10;
}
.trust-point {
  flex: 1; min-width: 200px; text-align: center;
}
.trust-point h4 {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.trust-point p { font-size: 0.9rem; margin-bottom: 0; color: var(--dark); text-align: center; }

.split-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}
.split-section .col { flex: 1; min-width: 300px; }
.split-section .col-image {
  background: #ccc; /* Placeholder */
  min-height: 450px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}
/* This modifier class adds a white background and padding */
.split-section-padded {
  background: #fff;
  padding: 4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}
.donation-hero {
  background: #fff;
  padding: 4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
}
.donation-copy { flex: 1.1; min-width: 280px; }
.donation-form-card {
  flex: 1;
  min-width: 320px;
  background: linear-gradient(135deg, #243B6B, #2f4d8d);
  color: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}
.donation-form-card p { max-width: none; }
.form-kicker {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}
.donation-embed {
  position: relative;
  overflow: hidden;
  height: 520px;
  width: 100%;
  background: #f5f2ea;
  border-radius: var(--border-radius);
  border: 1px solid #e7e0cf;
  box-shadow: var(--shadow-soft);
}
.donation-embed iframe {
  position: absolute;
  border: 0;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
}
.fee-note {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  margin-top: 1rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.donation-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem 0;
}
.donation-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  background: var(--light);
  border: 1px solid #e7e0cf;
  border-radius: 999px;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-soft);
}
.verse-card {
  background: linear-gradient(130deg, #243B6B, #2d4c7f);
  color: #fff;
  padding: 1.5rem 1.75rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}
.verse-card h4 { color: #fff; margin-bottom: 0.5rem; }
.verse-card p {
  color: rgba(255,255,255,0.95);
  margin-bottom: 0;
  max-width: none;
}
.story-highlight { align-items: center; }
.story-copy hr { margin-left: 0; margin-right: auto; }
.story-portrait figure { margin: 0; text-align: center; }
.story-portrait img {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 58% 20%;
  box-shadow: var(--shadow-medium);
}
.story-portrait figcaption {
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.verse-banner {
  background: linear-gradient(110deg, var(--primary), #3a5082);
  color: var(--light);
  text-align: center;
}
.verse-banner h2 {
  margin-bottom: 1rem;
}
.verse-banner blockquote {
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  line-height: 1.6;
  border-left: none;
  max-width: 900px;
  margin: 0 auto 2rem auto;
  opacity: 0.9;
  color: var(--light);
}
.verse-banner cite {
  color: var(--accent);
  display: block;
  margin-top: 0.75rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  margin: 3rem 0;
}
.stat-item {
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}
.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--warm);
  line-height: 1.2;
}
.stat-item .stat-desc {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.slider-nav:hover { background: rgba(0,0,0,0.55); transform: translateY(-50%) scale(1.04); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.leader-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  height: 100%;
}
.leader-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.leader-role {
  font-weight: 700;
  color: var(--warm);
  margin-bottom: 0.75rem;
}
.leader-card p {
  margin-bottom: 1rem;
}
/* === Contact Form === */
form {
  display: grid;
  gap: 1rem;
  max-width: 700px;
  margin: 2rem auto 0 auto;
}
form input, form textarea {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  background: #fff;
}
form input:focus, form textarea:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}
form button.btn {
  width: auto;
  justify-self: start;
}

/* === Footer === */
footer {
  background-color: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem 2rem;
  margin-top: 3rem;
}
.footer-content {
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem; max-width: 1100px;
  margin: 0 auto 3rem auto; text-align: left;
}
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 {
  font-family: var(--font-body); font-weight: 700;
  color: #fff; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 1rem;
}
.footer-col p, .footer-col ul {
  margin-bottom: 0; list-style: none;
  font-size: 0.9rem;
}
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.7); font-weight: 400;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.footer-bottom p {
  font-size: 0.9rem; margin: 0; text-align: center;
}

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive Design === */
@media (max-width: 768px) {
  section { padding: 3rem 1.5rem; }
  .split-section-padded { padding: 2rem; }
  .hero {
    min-height: auto;
    padding: 6rem 1.5rem 5rem;
  }
  
  .trust-bar {
    margin-top: 1rem;
    flex-direction: column;
    gap: 2rem;
  }
  .story-section { padding-top: 4rem; }
  
  .menu-toggle { display: block; z-index: 10; }
  nav ul {
    display: none; position: absolute;
    top: var(--nav-offset); /* Match nav height */
    left: 0; width: 100%;
    background-color: #fff;
    flex-direction: column;
    text-align: center; align-items: stretch;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }
  nav ul.show { display: flex; }
  nav ul li { 
    margin: 0; 
    border-bottom: 1px solid #f0f0f0;
  }
  nav ul li:last-child { border-bottom: none; }
  nav ul li a { 
    font-size: 1.1rem; 
    display: block;
    padding: 1.2rem;
  }
  .has-dropdown { position: static; }
  .dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    display: none;
  }
  .btn-donate { margin: 1rem; }
  
  nav ul li a.active, nav ul li a:hover {
    background-color: var(--light);
    border-bottom-color: transparent;
  }
  .btn-donate:hover {
    background-color: #d4a944;
  }

  .split-section .col-image {
    order: -1; min-height: 250px;
  }
  .story-highlight .story-portrait { order: -1; }
  .donation-hero { padding: 2.5rem; }
  .donation-copy { order: 1; }
  .donation-form-card { order: 2; }
  .donation-embed { height: 420px; }
  .donation-badges { flex-direction: column; }
  .donation-badge { width: 100%; justify-content: center; text-align: center; }
  .footer-content { text-align: center; }
  .footer-content p { margin: 0 auto 1.5rem auto; }
  form button.btn { justify-self: stretch; width: 100%; }
}
