/* =====================================================
   INALA FOUNDATION — Main Stylesheet
   Colors and fonts are placeholders; update via CSS vars
   ===================================================== */

:root {
  /* Primary brand colors */
  --color-primary:   #C96432;   /* Orange — CTAs rgb(201,100,50) */
  --color-orange-lt: #FDA14A;   /* Light Orange — footer accents (5.0:1 on navy ✓) */
  --color-brown:     #834636;   /* Warm Brown — secondary brand primary */
  --color-navy:      #0A436F;   /* Deep Navy — footer, CTA band, page heroes */
  --color-ocean:     #056BA0;   /* Ocean Blue — secondary */
  --color-cyan:      #0FAFD6;   /* Bright Cyan — supporting */
  /* Earth & neutral */
  --color-dark:      #111119;   /* Near-black — body text, button text on orange */
  --color-warm-dark: #473D35;   /* Dark warm brown */
  --color-warm-mid:  #BB977B;   /* Warm tan */
  --color-warm-lt:   #D1B49F;   /* Light warm beige — muted text on navy */
  --color-light:     #FFE0AE;   /* Warm golden cream — light section bgs */
  --color-ivory:     #FCF0D5;   /* Very light warm cream */
  --color-white:     #ffffff;
  --color-gray:      #834636;   /* Warm brown — secondary text (7.25:1 on white ✓) */
  --color-border:    #D1B49F;   /* Light warm beige border */
  --color-footer-bg: #0A436F;   /* Deep Navy */
  --font-heading: 'Georgia', serif;
  --font-body:    'Arial', sans-serif;
  --max-width:    1200px;
  --nav-height:   100px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--color-dark); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: opacity 0.2s; }
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--color-primary); color: var(--color-dark); }
.btn-outline { border: 2px solid var(--color-navy); color: var(--color-navy); }
.btn-donate { background: var(--color-primary); color: var(--color-dark); padding: 10px 22px; border-radius: 4px; font-weight: bold; }
.section-title { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 12px; }
.section-subtitle { color: var(--color-gray); font-size: 1.1rem; margin-bottom: 40px; }
.text-center { text-align: center; }
.placeholder-img {
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* =====================================================
   HEADER / NAV
   ===================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo-img {
  height: 90px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s;
  display: block;
}

.nav-links > li > a:hover { background: var(--color-light); }

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 200;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.dropdown-open .dropdown-menu { display: block; }

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.dropdown-menu li a:hover { background: var(--color-light); }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-dark); transition: all 0.3s; }

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  background: #D9C7B2;
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-gray);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Hero Cards */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-white);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

.card-image { height: 200px; }
.card-image.placeholder-img { height: 200px; }

.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 8px; }
.card-body p { font-size: 0.9rem; color: var(--color-gray); margin-bottom: 16px; flex: 1; }

/* =====================================================
   MISSION SECTION
   ===================================================== */
.mission { padding: 80px 0 50px; }

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.mission-image { height: 380px; border-radius: 8px; overflow: hidden; }
.mission-image.placeholder-img { border-radius: 8px; }

.mission-content h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 16px; }
.mission-content p { color: var(--color-gray); margin-bottom: 16px; }

/* =====================================================
   STATS SECTION
   ===================================================== */
.stats {
  background: var(--color-primary);
  color: var(--color-dark);
  padding: 60px 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: bold;
  display: block;
}

.stat-item .stat-label {
  font-size: 1rem;
  margin-top: 4px;
}
.stat-item .stat-sub {
  display: block;
  font-size: 0.8rem;
  margin-top: 6px;
  opacity: 0.75;
}

/* =====================================================
   PROJECTS SECTION
   ===================================================== */
.projects { padding: 80px 0; background: var(--color-light); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =====================================================
   BLOG SECTION
   ===================================================== */
.blog { padding: 80px 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card { border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.blog-card-image { height: 180px; }
.blog-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body .blog-date { font-size: 0.8rem; color: var(--color-gray); margin-bottom: 6px; }
.blog-card-body h3 { font-size: 1rem; font-family: var(--font-heading); margin-bottom: 8px; }
.blog-card-body p { font-size: 0.875rem; color: var(--color-gray); flex: 1; }
.blog-card-body .btn { margin-top: 16px; }

/* =====================================================
   CTA BAND
   ===================================================== */
.cta-band {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 60px 0;
  text-align: center;
}

.cta-band h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 12px; }
.cta-band p { color: var(--color-warm-lt); margin-bottom: 28px; }

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--color-footer-bg);
  color: var(--color-warm-lt);
  padding: 60px 0 30px;
}

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

.footer-brand-logo { display: flex; align-items: center; gap: 0; margin-bottom: 4px; line-height: 1; }
.footer-orb { height: 56px; width: 56px; object-fit: contain; object-position: left center; display: block; flex-shrink: 0; }
.footer-brand .logo-name { color: var(--color-white); font-family: var(--font-heading); font-size: 1.3rem; line-height: 1; }
.footer-brand .logo-tagline { color: var(--color-orange-lt); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }

.footer-col h4 { color: var(--color-white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--color-orange-lt); }

.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { color: var(--color-warm-lt); font-size: 0.875rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--color-orange-lt); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #bbb;
}

/* =====================================================
   INNER PAGE HERO (for About, Projects, etc.)
   ===================================================== */
.page-hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 { font-family: var(--font-heading); font-size: 2.4rem; margin-bottom: 10px; }
.page-hero p { color: var(--color-warm-lt); font-size: 1.05rem; }

/* =====================================================
   DONATE PAGE
   ===================================================== */
.donate-section { padding: 80px 0; }

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.donate-info h2 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 16px; }
.donate-info p { color: var(--color-gray); margin-bottom: 16px; }
.donate-info ul { padding-left: 20px; list-style: disc; color: var(--color-gray); }
.donate-info ul li { margin-bottom: 8px; }

.donate-form-box {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px;
}

.donate-form-box h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.amount-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.amount-btn {
  padding: 10px 20px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.amount-btn:hover,
.amount-btn.active { border-color: var(--color-navy); color: var(--color-navy); }

.paypal-note { font-size: 0.8rem; color: var(--color-gray); margin-top: 12px; text-align: center; }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-section { padding: 80px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 16px; }
.contact-info p { color: var(--color-gray); margin-bottom: 24px; }

.contact-detail { display: flex; gap: 12px; margin-bottom: 20px; align-items: flex-start; }
.contact-detail-icon { font-size: 1.2rem; }
.contact-detail-text h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 2px; }
.contact-detail-text p { color: var(--color-gray); font-size: 0.875rem; }

.contact-form-box {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px;
}
.contact-form-box h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 24px; }

/* =====================================================
   BLOG POST MEDIA CAROUSEL (Swiper.js)
   ===================================================== */
.post-media { margin-bottom: 40px; }

.post-swiper {
  --swiper-theme-color: #C96432;
  --swiper-navigation-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.post-slide {
  height: 420px !important;
  overflow: hidden;
  display: block;
}

.post-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.post-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.post-slide-placeholder {
  background: #1a2f45;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8aabb8;
  text-align: center;
  padding: 32px;
  gap: 10px;
  font-size: 0.95rem;
}

.post-slide-placeholder .placeholder-icon { font-size: 2rem; }

.swiper-button-prev,
.swiper-button-next {
  background: #C96432;
  border-radius: 50%;
  width: 44px !important;
  height: 44px !important;
  --swiper-navigation-color: #fff;
}

.swiper-button-prev::after,
.swiper-button-next::after { font-size: 16px !important; font-weight: bold; }

.swiper-button-prev:hover,
.swiper-button-next:hover { background: #a8511f; }

@media (max-width: 640px) { .post-slide { height: 260px; } }

/* Slide label overlay */
.slide-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.9);
  color: #111119;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 20px;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Project page carousel — matches mission-image height */
.project-swiper { border-radius: 8px; }
.project-swiper .post-slide { height: 380px; }
@media (max-width: 640px) { .project-swiper .post-slide { height: 260px; } }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px) {
  .hero-cards,
  .projects-grid,
  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  .mission-grid,
  .donate-grid,
  .contact-grid { grid-template-columns: 1fr; }

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

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

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }

  .hero-cards,
  .projects-grid,
  .blog-grid,
  .stats-grid { grid-template-columns: 1fr; }

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

  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }
}
