/* ==========================================================================
   DEMO 3: Charifund Template Style (Based on Figma Theme-3)
   Fonts: Caveat (Handwritten), Nunito
   Palette: Kerala Amber-Orange (#ea580c), Slate (#0f172a), Yellow (#f59e0b)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --bg-main: #ffffff;
  --bg-alt: #fff7ed;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #fed7aa;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--secondary);
}

.handwritten {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 700;
}

/* Demo Top Switcher */
.demo-switcher-top {
  background: #0f172a;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.demo-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-pill {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.demo-pill:hover, .demo-pill.active {
  background: #ea580c;
  color: #ffffff;
  font-weight: 700;
}

/* Top Urgent Campaign Notice */
.top-notice-strip {
  background: #ffedd5;
  color: #c2410c;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #fed7aa;
}

/* Charifund Header */
.charifund-header {
  background: #ffffff;
  border-bottom: 2px solid #fed7aa;
  position: sticky;
  top: 41px;
  z-index: 900;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-wrap img {
  height: 48px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  color: #ea580c;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.charifund-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-item {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 6px 4px;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-item:hover {
  color: #ea580c;
}

.btn-orange {
  background: #ea580c;
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-orange:hover {
  background: #c2410c;
  transform: translateY(-2px);
}

.btn-outline-orange {
  background: transparent;
  color: #ea580c;
  border: 2px solid #ea580c;
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline-orange:hover {
  background: #ea580c;
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #ea580c;
}

/* Split-Screen Hero Slider */
.hero-slider-wrap {
  position: relative;
  height: 600px;
  background: #0f172a;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.82) 55%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-grid {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.hero-text {
  color: #ffffff;
}

.hero-text h1 {
  color: #ffffff;
  font-size: 3rem;
  line-height: 1.15;
  margin: 0 0 16px 0;
}

.hero-text p {
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Floating Cause Pledge Card in Hero */
.hero-cause-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-top: 5px solid #ea580c;
}

.progress-bar-wrap {
  background: #f1f5f9;
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
  margin: 12px 0 16px 0;
}

.progress-fill {
  background: linear-gradient(90deg, #ea580c 0%, #f59e0b 100%);
  height: 100%;
  border-radius: 10px;
}

.donation-pill-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.amt-btn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #ea580c;
  padding: 8px 4px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
}

.amt-btn:hover, .amt-btn.active {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.slider-btn:hover {
  background: #ea580c;
  color: #ffffff;
}

.slider-dots {
  display: flex;
  gap: 6px;
  margin-left: 14px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
}

.slider-dot.active {
  background: #ea580c;
  width: 24px;
  border-radius: 8px;
}

/* Causes Grid (Charifund Card Style) */
.causes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.cause-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cause-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(234, 88, 12, 0.1);
  border-color: #fed7aa;
}

.cause-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.cause-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cause-body h3 {
  font-size: 1.25rem;
  margin: 0 0 8px 0;
}

.cause-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 8px;
}

/* Event Calendar Cards */
.event-card {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #fed7aa;
  padding: 16px;
  gap: 16px;
  align-items: center;
  transition: transform 0.2s;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.date-box {
  background: #ea580c;
  color: #ffffff;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  min-width: 60px;
}

.date-box .day {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.date-box .month {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Common Section */
.sec-wrap {
  padding: 70px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.sec-title-wrap {
  text-align: center;
  margin-bottom: 46px;
}

.sec-title-wrap h2 {
  font-size: 2.3rem;
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1100px) {
  .mobile-toggle {
    display: block;
  }
  .charifund-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-bottom: 3px solid #ea580c;
    align-items: stretch;
    box-sizing: border-box;
  }
  .charifund-nav.active {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
  .hero-slider-wrap {
    height: auto;
    min-height: 640px;
    padding-bottom: 60px;
  }
  .hero-cause-card {
    display: none;
  }
}
