/* =============================================
   Clark Cawthra Coneybeare Foundation
   Main Stylesheet
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* =============================================
   CSS Variables
   ============================================= */
:root {
  --navy:       #1a2b4a;
  --navy-dark:  #111d33;
  --navy-light: #243557;
  --gold:       #c8922a;
  --gold-light: #e8b04a;
  --white:      #ffffff;
  --gray-light: #f5f5f5;
  --gray-mid:   #e0e0e0;
  --gray-text:  #666666;
  --text:       #2d2d2d;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Open Sans', Arial, sans-serif;
  --shadow:     0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.15);
  --radius:     6px;
  --transition: 0.3s ease;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }

/* =============================================
   Typography
   ============================================= */
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { margin-bottom: 1.1rem; color: var(--gray-text); }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.section-title {
  margin-bottom: 1rem;
}
.section-divider {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 0.6rem 0 1.4rem;
}
.section-divider.center { margin: 0.6rem auto 1.4rem; }
.text-center { text-align: center; }
.text-white h1, .text-white h2, .text-white h3,
.text-white p, .text-white { color: var(--white); }

/* =============================================
   Layout
   ============================================= */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt { background: var(--gray-light); }
.section-navy { background: var(--navy); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); border-color: var(--navy-light); color: var(--white); }

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  transition: box-shadow var(--transition), background var(--transition);
}
#site-header.scrolled {
  background: rgba(26,43,74,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-brand img { width: 50px; height: 50px; object-fit: contain; border-radius: 4px; }
.header-brand-text { display: flex; flex-direction: column; }
.header-brand-text .org-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  white-space: nowrap;
}
.header-brand-text .org-tagline {
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.main-nav a {
  display: inline-block;
  padding: 8px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.main-nav a.active {
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
  color: var(--gold);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-dark);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 76px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,43,74,0.82) 0%, rgba(17,29,51,0.65) 60%, rgba(200,146,42,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 860px;
  padding: 60px 24px;
}
.hero-badge {
  display: inline-block;
  background: rgba(200,146,42,0.25);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.hero-content h1 { color: var(--white); margin-bottom: 20px; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 660px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-scroll .arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: bounce 1.6s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}

/* =============================================
   PAGE BANNER (inner pages)
   ============================================= */
.page-banner {
  margin-top: 76px;
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,43,74,0.90) 0%, rgba(26,43,74,0.60) 100%);
}
.page-banner-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.page-banner-content h1 { color: var(--white); margin-bottom: 10px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 28px; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { font-size: 0.92rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 14px;
}
.card-link::after { content: '→'; transition: transform var(--transition); }
.card:hover .card-link::after { transform: translateX(4px); }

/* =============================================
   MISSION & VISION (Homepage)
   ============================================= */
.mission-vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.mission-block, .vision-block {
  padding: 72px 60px;
}
.mission-block { background: var(--navy); }
.vision-block  { background: var(--navy-light); }
.mission-block h2, .vision-block h2 { color: var(--white); margin-bottom: 14px; }
.mission-block p,  .vision-block p  { color: rgba(255,255,255,0.80); }
.mission-icon, .vision-icon {
  width: 56px;
  height: 56px;
  background: rgba(200,146,42,0.2);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* =============================================
   STATS / IMPACT NUMBERS
   ============================================= */
.stats-section { background: var(--gold); }
.stat-item { text-align: center; padding: 20px; }
.stat-number {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  display: block;
}
.stat-number .stat-suffix { font-size: 2rem; }
.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  display: block;
}

/* =============================================
   NEWS TEASERS
   ============================================= */
.news-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.news-tag {
  display: inline-block;
  background: rgba(200,146,42,0.12);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* =============================================
   PROGRAMS PAGE
   ============================================= */
.program-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 400px 1fr;
}
.program-card:nth-child(even) { direction: rtl; }
.program-card:nth-child(even) > * { direction: ltr; }
.program-card-img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.program-card-body { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.program-card-body h3 { font-size: 1.55rem; margin-bottom: 14px; }
.eligibility-list { margin: 16px 0; padding-left: 20px; }
.eligibility-list li { color: var(--gray-text); font-size: 0.92rem; margin-bottom: 6px; position: relative; padding-left: 16px; }
.eligibility-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* =============================================
   IMPACT PAGE
   ============================================= */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--gray-mid);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  position: relative;
  border-left: 4px solid var(--gold);
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-head);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}
.testimonial-author { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.testimonial-author-info strong { display: block; color: var(--navy); font-weight: 700; }
.testimonial-author-info span { font-size: 0.82rem; color: var(--gold); }

/* =============================================
   TEAM PAGE
   ============================================= */
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-card-img { width: 100%; height: 240px; object-fit: cover; object-position: top; }
.team-card-body { padding: 24px 20px; }
.team-card-body h4 { color: var(--navy); margin-bottom: 4px; }
.team-role { font-size: 0.82rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.team-card-body p { font-size: 0.88rem; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.06em; }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,146,42,0.12); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-info-block { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 44px 40px; height: 100%; }
.contact-info-block h3 { color: var(--white); margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,146,42,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text strong { display: block; color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.contact-item-text span, .contact-item-text a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.contact-item-text a:hover { color: var(--gold); }
.map-wrapper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 40px; }
.map-wrapper iframe { width: 100%; height: 380px; border: 0; display: block; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); }
.footer-top { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1.2fr; gap: 48px; }
.footer-brand { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 4px; }
.footer-brand-name { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--white); line-height: 1.3; }
.footer-about p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 14px; color: rgba(255,255,255,0.65); }
.footer-charity-no { font-size: 0.78rem; color: var(--gold); font-weight: 600; letter-spacing: 0.06em; }
.footer-col h5 { font-family: var(--font-head); color: var(--white); font-size: 1rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h5::after { content: ''; position: absolute; bottom: 0; left: 0; width: 32px; height: 2px; background: var(--gold); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color var(--transition), padding-left var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; font-size: 0.88rem; }
.footer-contact-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--gold); }

/* =============================================
   UTILITIES
   ============================================= */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.highlighted { background: rgba(200,146,42,0.08); border-radius: var(--radius); padding: 24px 28px; border-left: 4px solid var(--gold); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .program-card { grid-template-columns: 1fr; }
  .program-card:nth-child(even) { direction: ltr; }
  .program-card-img { min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mission-vision-grid { grid-template-columns: 1fr; }
  .mission-block, .vision-block { padding: 48px 32px; }
  .contact-form { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-banner { height: 240px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .contact-info-block { padding: 28px 20px; }
}
