/* ============================================
   CHRIST ON PURPOSE — Global Styles
   Colors: Rust #C75B39, Gold #D4A843, Teal #2A9D8F
   ============================================ */

/* --- CSS Variables --- */
:root {
  --rust: #C75B39;
  --rust-light: #e8815f;
  --gold: #D4A843;
  --gold-light: #e6c36a;
  --teal: #2A9D8F;
  --teal-dark: #1A7A6D;
  --teal-light: #3dbdad;
  --white: #FFFFFF;
  --off-white: #FAF8F5;
  --cream: #F5F0EB;
  --charcoal: #2D2D2D;
  --gray-dark: #4A4A4A;
  --gray-mid: #717171;
  --gray-light: #B0B0B0;
  --gray-border: #E0DCD7;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --section-padding: 100px 0;
  --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(--charcoal);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; }

p { margin-bottom: 16px; color: var(--gray-dark); font-size: 1.05rem; }
.lead { font-size: 1.2rem; color: var(--gray-dark); max-width: 700px; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  display: block;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(42, 157, 143, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-rust {
  background: var(--rust);
  color: var(--white);
  border-color: var(--rust);
}
.btn-rust:hover {
  background: var(--rust-light);
  border-color: var(--rust-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(199, 91, 57, 0.3);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
  padding: 16px 0;
}

.navbar.scrolled {
  border-bottom-color: var(--gray-border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--rust); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-dark);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--teal-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--cream) 100%);
  padding-top: 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text { max-width: 580px; }

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero-tagline .line { display: block; }
.hero-tagline .highlight-rust { color: var(--rust); }
.hero-tagline .highlight-gold { color: var(--gold); }
.hero-tagline .highlight-teal { color: var(--teal); }

.hero-description {
  font-size: 1.15rem;
  color: var(--gray-dark);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}

.hero-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-accent {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0.15;
  z-index: -1;
}
.hero-accent-1 { background: var(--rust); top: -40px; right: -40px; }
.hero-accent-2 { background: var(--gold); bottom: -60px; left: -60px; width: 250px; height: 250px; }

/* --- Section Styles --- */
.section {
  padding: var(--section-padding);
}
.section-alt { background: var(--off-white); }
.section-dark {
  background: var(--charcoal);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--gray-light); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

/* --- D4 Path Cards --- */
.d4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.d4-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--gray-border);
}
.d4-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: transparent;
}

.d4-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.d4-card.discover::before { background: var(--rust); }
.d4-card.disciple::before { background: var(--gold); }
.d4-card.develop::before { background: var(--teal); }
.d4-card.disperse::before { background: var(--teal-dark); }

.d4-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.discover .d4-icon { background: rgba(199, 91, 57, 0.1); color: var(--rust); }
.disciple .d4-icon { background: rgba(212, 168, 67, 0.1); color: var(--gold); }
.develop .d4-icon { background: rgba(42, 157, 143, 0.1); color: var(--teal); }
.disperse .d4-icon { background: rgba(26, 122, 109, 0.1); color: var(--teal-dark); }

.d4-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.d4-card p {
  font-size: 0.95rem;
  color: var(--gray-mid);
  margin-bottom: 20px;
}

.d4-card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.discover .card-link { color: var(--rust); }
.disciple .card-link { color: var(--gold); }
.develop .card-link { color: var(--teal); }
.disperse .card-link { color: var(--teal-dark); }

/* --- About / Founder Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gold);
  opacity: 0.2;
  border-radius: 50%;
  z-index: -1;
}

.founder-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--rust);
  border-left: 3px solid var(--rust);
  padding-left: 20px;
  margin: 24px 0;
}

/* --- Events Section --- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.event-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-border);
  transition: all var(--transition);
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border-color: transparent;
}

.event-date {
  background: var(--rust);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.event-date .day {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
}

.event-body {
  padding: 24px;
}

.event-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.tag-discover { background: rgba(199,91,57,0.1); color: var(--rust); }
.tag-disciple { background: rgba(212,168,67,0.1); color: var(--gold); }
.tag-develop { background: rgba(42,157,143,0.1); color: var(--teal); }
.tag-disperse { background: rgba(26,122,109,0.1); color: var(--teal-dark); }

/* --- Testimonial Section --- */
.testimonial-section {
  background: var(--charcoal);
  color: var(--white);
  padding: var(--section-padding);
  text-align: center;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 24px;
  color: var(--white);
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--teal);
  display: block;
  line-height: 0.5;
  margin-bottom: 16px;
}

.testimonial-author {
  color: var(--gray-light);
  font-size: 1rem;
}

/* --- Give Banner --- */
.give-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.give-banner h2 { color: var(--white); margin-bottom: 16px; }
.give-banner p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 32px; font-size: 1.1rem; }

/* --- Values Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 32px 24px;
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(42, 157, 143, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  color: var(--teal);
}

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

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--charcoal);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.contact-form textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-info-card {
  background: var(--off-white);
  border-radius: 16px;
  padding: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(42, 157, 143, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1.1rem;
}
.social-link:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  color: var(--white);
}

/* --- Newsletter --- */
.newsletter {
  background: var(--off-white);
  padding: 60px 0;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 24px auto 0;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--gray-border);
  border-radius: 50px;
  font-size: 1rem;
  font-family: var(--font-body);
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--teal);
}

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  color: var(--gray-light);
  padding: 80px 0 32px;
}

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

.footer-brand .nav-logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.95rem; margin-bottom: 20px; }
.footer-brand .footer-501 {
  font-size: 0.8rem;
  color: var(--gray-mid);
  margin-top: 16px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--gray-light);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --- Animations (scroll reveal) --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* --- D4 Path Detail Page --- */
.d4-journey {
  position: relative;
}

.d4-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  position: relative;
}
.d4-stage:nth-child(even) { direction: rtl; }
.d4-stage:nth-child(even) > * { direction: ltr; }

.d4-stage-number {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  opacity: 0.08;
  position: absolute;
  top: 40px;
  left: 0;
}

.d4-stage-content h3 { font-size: 2rem; }

.d4-stage-visual {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.d4-stage-visual img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.d4-list {
  list-style: none;
  margin: 20px 0 28px;
}
.d4-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--gray-dark);
}
.d4-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  font-weight: 700;
}
.discover-list li::before { color: var(--rust); }
.disciple-list li::before { color: var(--gold); }
.develop-list li::before { color: var(--teal); }
.disperse-list li::before { color: var(--teal-dark); }

/* --- Stats Bar --- */
.stats-bar {
  background: var(--charcoal);
  padding: 50px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal-light);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Mobile Navigation --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 100px 32px 40px;
  flex-direction: column;
}
.mobile-menu.active { display: flex; }

.mobile-menu a {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-border);
  display: block;
}
.mobile-menu .btn {
  margin-top: 24px;
  justify-content: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .d4-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-content { gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 60px 0; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-image-wrapper img { height: 300px; }

  .d4-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .events-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  #testimonials .container > div { grid-template-columns: 1fr !important; justify-items: center; text-align: center; gap: 32px !important; }
  #testimonials video { max-width: 260px; }

  .d4-stage { grid-template-columns: 1fr; gap: 32px; padding: 50px 0; }
  .d4-stage:nth-child(even) { direction: ltr; }

  .newsletter-form { flex-direction: column; }

  .btn-group { flex-direction: column; align-items: stretch; text-align: center; }
  .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-tagline { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .container { padding: 0 16px; }
}
