/* =============================================
   CROSSROADS FELLOWSHIP — Styles
   Template 20 · Church
   Palette: Warm Taupe + Dusty Blue
   Fonts: Lexend (display) + Gelasio (body)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&family=Gelasio:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --cf-taupe:         #6b5b4e;
  --cf-dark:          #3a302a;
  --cf-dusty-blue:    #6b8cae;
  --cf-sky-soft:      #a8c4de;
  --cf-cream:         #faf7f4;
  --cf-warm-gray:     #8b7d72;
  --cf-white:         #ffffff;
  --cf-text:          #3d3530;
  --cf-text-light:    #9e948a;
  --cf-blue-deep:     #4a6f8f;
  --cf-surface:       #f5f2ef;

  --cf-font-display:  'Lexend', sans-serif;
  --cf-font-body:     'Gelasio', serif;

  --cf-nav-height:    72px;
  --cf-banner-height: 36px;
  --cf-radius:        12px;
  --cf-radius-lg:     20px;
  --cf-shadow:        0 4px 24px rgba(107, 91, 78, .08);
  --cf-shadow-lg:     0 12px 40px rgba(107, 91, 78, .12);
  --cf-transition:    .3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--cf-font-body);
  color: var(--cf-text);
  background: var(--cf-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--cf-font-display);
  line-height: 1.2;
  font-weight: 700;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.cf-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Demo Banner ---------- */
.cf-demo-banner {
  background: var(--cf-dark);
  color: var(--cf-sky-soft);
  text-align: center;
  padding: 8px 16px;
  font-family: var(--cf-font-display);
  font-size: .85rem;
  font-weight: 600;
  height: var(--cf-banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.cf-demo-banner a {
  color: var(--cf-dusty-blue);
  text-decoration: underline;
}

/* ---------- Navigation ---------- */
.cf-nav {
  position: fixed;
  top: var(--cf-banner-height);
  left: 0;
  width: 100%;
  height: var(--cf-nav-height);
  z-index: 960;
  display: flex;
  align-items: center;
  transition: background var(--cf-transition), box-shadow var(--cf-transition);
  background: transparent;
}

.cf-nav.scrolled {
  background: rgba(250, 247, 244, .95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(107, 91, 78, .08);
}

.cf-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.cf-logo {
  font-family: var(--cf-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cf-taupe);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cf-logo-icon {
  font-size: 1.5rem;
  color: var(--cf-dusty-blue);
}

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

.cf-nav-links a {
  font-family: var(--cf-font-display);
  font-size: .9rem;
  font-weight: 500;
  color: var(--cf-warm-gray);
  transition: color var(--cf-transition);
}

.cf-nav-links a:hover {
  color: var(--cf-dusty-blue);
}

.cf-nav-cta {
  background: var(--cf-dusty-blue) !important;
  color: var(--cf-white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: all var(--cf-transition) !important;
}

.cf-nav-cta:hover {
  background: var(--cf-blue-deep) !important;
  transform: translateY(-2px);
}

/* Hamburger */
.cf-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 970;
}

.cf-hamburger span {
  width: 26px;
  height: 3px;
  background: var(--cf-taupe);
  border-radius: 3px;
  transition: var(--cf-transition);
}

.cf-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.cf-hamburger.active span:nth-child(2) { opacity: 0; }
.cf-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ---------- Hero: Offset Split ---------- */
.cf-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: calc(var(--cf-banner-height) + var(--cf-nav-height));
  overflow: hidden;
}

.cf-hero-image {
  position: relative;
  overflow: hidden;
}

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

.cf-hero-panel {
  background: var(--cf-taupe);
  display: flex;
  align-items: center;
  padding: 60px 60px 60px 80px;
  position: relative;
}

/* Dark accent bridge — tucks BEHIND the lighter taupe panel */
.cf-hero-panel::before {
  content: '';
  position: absolute;
  top: 40px;
  left: -40px;
  bottom: 40px;
  width: 60px;           /* 40px visible bridge + 20px hidden behind the panel */
  background: var(--cf-dark);
  border-radius: var(--cf-radius) 0 0 var(--cf-radius);
  box-shadow: -4px 0 16px rgba(0, 0, 0, .25);
  z-index: -1;
}

.cf-hero-content {
  max-width: 480px;
  position: relative;
  z-index: 2;
}

.cf-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cf-font-display);
  font-size: .8rem;
  font-weight: 600;
  color: var(--cf-sky-soft);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.cf-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cf-white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.cf-hero h1 span {
  color: var(--cf-sky-soft);
}

.cf-hero-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 32px;
  line-height: 1.8;
}

.cf-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cf-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cf-dusty-blue);
  color: var(--cf-white);
  font-family: var(--cf-font-display);
  font-size: .95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  transition: all var(--cf-transition);
  border: none;
  cursor: pointer;
}

.cf-btn-primary:hover {
  background: var(--cf-blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 140, 174, .3);
}

.cf-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--cf-white);
  font-family: var(--cf-font-display);
  font-size: .95rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, .25);
  transition: all var(--cf-transition);
  cursor: pointer;
}

.cf-btn-secondary:hover {
  border-color: var(--cf-sky-soft);
  color: var(--cf-sky-soft);
  transform: translateY(-2px);
}

/* ---------- Section Defaults ---------- */
.cf-section {
  padding: 100px 0;
}

.cf-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.cf-section-label {
  display: inline-block;
  font-family: var(--cf-font-display);
  font-size: .8rem;
  font-weight: 600;
  color: var(--cf-dusty-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.cf-section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--cf-taupe);
  margin-bottom: 16px;
}

.cf-section-header p {
  font-size: 1.05rem;
  color: var(--cf-warm-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Welcome Pathway ---------- */
.cf-pathway {
  background: var(--cf-white);
}

.cf-pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

/* Connecting line */
.cf-pathway-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, var(--cf-sky-soft), var(--cf-dusty-blue), var(--cf-sky-soft));
  z-index: 0;
}

.cf-step {
  text-align: center;
  padding: 40px 28px;
  background: var(--cf-cream);
  border-radius: var(--cf-radius-lg);
  position: relative;
  z-index: 1;
  transition: all var(--cf-transition);
  border: 1px solid transparent;
}

.cf-step:hover {
  border-color: rgba(107, 140, 174, .15);
  transform: translateY(-4px);
  box-shadow: var(--cf-shadow);
}

.cf-step-number {
  width: 48px;
  height: 48px;
  background: var(--cf-dusty-blue);
  color: var(--cf-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cf-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.cf-step-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cf-step h3 {
  font-size: 1.1rem;
  color: var(--cf-taupe);
  margin-bottom: 12px;
}

.cf-step p {
  font-size: .95rem;
  color: var(--cf-warm-gray);
  line-height: 1.7;
}

/* ---------- Life Stages ---------- */
.cf-stages {
  background: var(--cf-cream);
}

.cf-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cf-stage-card {
  background: var(--cf-white);
  border-radius: var(--cf-radius-lg);
  overflow: hidden;
  box-shadow: var(--cf-shadow);
  transition: all var(--cf-transition);
}

.cf-stage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cf-shadow-lg);
}

.cf-stage-image {
  height: 160px;
  overflow: hidden;
}

.cf-stage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.cf-stage-card:hover .cf-stage-image img {
  transform: scale(1.05);
}

.cf-stage-body {
  padding: 24px;
}

.cf-stage-age {
  font-family: var(--cf-font-display);
  font-size: .75rem;
  font-weight: 600;
  color: var(--cf-dusty-blue);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.cf-stage-body h4 {
  font-size: 1.05rem;
  color: var(--cf-taupe);
  margin-bottom: 8px;
}

.cf-stage-body p {
  font-size: .9rem;
  color: var(--cf-warm-gray);
  line-height: 1.6;
}

/* ---------- Campus Info ---------- */
.cf-campus {
  background: var(--cf-dark);
  color: var(--cf-white);
}

.cf-campus .cf-section-label {
  color: var(--cf-sky-soft);
}

.cf-campus .cf-section-header h2 {
  color: var(--cf-white);
}

.cf-campus .cf-section-header p {
  color: rgba(255, 255, 255, .6);
}

.cf-campus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cf-campus-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(107, 140, 174, .15);
  border-radius: var(--cf-radius);
  padding: 32px;
  text-align: center;
  transition: all var(--cf-transition);
}

.cf-campus-card:hover {
  background: rgba(255, 255, 255, .08);
  transform: translateY(-4px);
}

.cf-campus-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cf-campus-card h4 {
  font-size: 1.05rem;
  color: var(--cf-white);
  margin-bottom: 8px;
}

.cf-campus-card p {
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.6;
}

/* ---------- CTA ---------- */
.cf-cta {
  background: var(--cf-dusty-blue);
  padding: 80px 0;
  text-align: center;
}

.cf-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--cf-white);
  margin-bottom: 16px;
}

.cf-cta p {
  color: rgba(255, 255, 255, .8);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

.cf-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cf-white);
  color: var(--cf-taupe);
  font-family: var(--cf-font-display);
  font-size: .95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  transition: all var(--cf-transition);
}

.cf-btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.cf-btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--cf-white);
  font-family: var(--cf-font-display);
  font-size: .95rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, .3);
  transition: all var(--cf-transition);
}

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

/* ---------- Footer ---------- */
.cf-footer {
  background: var(--cf-dark);
  color: rgba(255, 255, 255, .5);
  padding: 60px 0 30px;
}

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

.cf-footer-brand h3 {
  font-family: var(--cf-font-display);
  font-size: 1.3rem;
  color: var(--cf-white);
  margin-bottom: 12px;
}

.cf-footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 280px;
}

.cf-footer h4 {
  font-family: var(--cf-font-display);
  font-size: .8rem;
  font-weight: 600;
  color: var(--cf-sky-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.cf-footer ul li { margin-bottom: 10px; }
.cf-footer ul li a { font-size: .9rem; transition: color var(--cf-transition); }
.cf-footer ul li a:hover { color: var(--cf-sky-soft); }

.cf-footer-bottom {
  border-top: 1px solid rgba(107, 140, 174, .1);
  padding-top: 24px;
  text-align: center;
  font-size: .85rem;
  font-family: var(--cf-font-display);
}

/* ---------- Scroll Reveal ---------- */
.cf-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.cf-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cf-hero {
    grid-template-columns: 1fr;
  }

  .cf-hero-image {
    height: 50vh;
  }

  .cf-hero-panel::before {
    display: none;
  }

  .cf-hero-panel {
    padding: 48px 40px;
    justify-content: center;
  }

  .cf-hero-content {
    text-align: center;
    max-width: 100%;
  }

  .cf-hero-actions {
    justify-content: center;
  }

  .cf-stage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cf-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cf-pathway-grid::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .cf-hamburger { display: flex; }

  .cf-nav-links {
    position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px;
    height: 100vh; background: var(--cf-cream); flex-direction: column;
    justify-content: center; gap: 24px; transition: right var(--cf-transition);
    box-shadow: -4px 0 20px rgba(107, 91, 78, .15); z-index: 950;
  }

  .cf-nav-links.open { right: 0; }
  .cf-nav-links a { font-size: 1.1rem; color: var(--cf-taupe); }

  .cf-pathway-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .cf-campus-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cf-section { padding: 70px 0; }
  .cf-stage-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  .cf-footer-grid { grid-template-columns: 1fr; }
  .cf-hero-panel { padding: 36px 24px; }
}
