/* =========================================================
   Wellspring Fellowship — shared stylesheet
   Bold contemporary color-block. One committed accent: cobalt.
   ========================================================= */

:root{
  --cobalt:        #2A3EFF;
  --cobalt-hi:     #4658FF;
  --cobalt-deep:   #10186B;
  --cobalt-ink:    #0A0F52;
  --cobalt-tint:   #E3E7FF;
  --cobalt-tint-2: #C9D1FF;

  --ink:           #0B0B14;
  --ink-soft:      #3A3A46;
  --paper:         #F6F3EA;
  --paper-2:       #EFEADC;
  --white:         #FFFFFF;
  --line:          rgba(11,11,20,.12);
  --line-on-dark:  rgba(255,255,255,.18);

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --container: 1220px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;

  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  overflow-x: clip;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font: inherit; cursor: pointer; }
h1,h2,h3,h4,p,figure{ margin: 0; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, .display{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.eyebrow{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 3px;
  background: var(--cobalt);
  border-radius: 2px;
  display: inline-block;
}
.eyebrow.on-dark{ color: var(--cobalt-tint-2); }
.eyebrow.on-dark::before{ background: var(--cobalt-tint-2); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 2px solid transparent;
  transition: transform .35s var(--ease-spring), background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-3px); }
.btn-primary{ background: var(--cobalt); color: var(--white); }
.btn-primary:hover{ background: var(--ink); }
.btn-dark{ background: var(--ink); color: var(--white); }
.btn-dark:hover{ background: var(--cobalt); }
.btn-outline{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--white); }
.btn-outline-light{ background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover{ background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-ghost{ background: var(--cobalt-tint); color: var(--cobalt-ink); }
.btn-ghost:hover{ background: var(--cobalt); color: var(--white); }

/* ---------- Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,243,234,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .mark{
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--cobalt);
  position: relative;
  flex-shrink: 0;
}
.brand .mark::before, .brand .mark::after{
  content:"";
  position: absolute;
  background: var(--white);
}
.brand .mark::before{
  width: 14px; height: 3px;
  top: 15.5px; left: 10px;
  border-radius: 2px;
}
.brand .mark::after{
  width: 3px; height: 14px;
  top: 10px; left: 15.5px;
  border-radius: 2px;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a{
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--cobalt);
  transition: width .3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active{ color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after{ width: 100%; }

.nav-cta{ display: flex; align-items: center; gap: 18px; }
.nav-cta .btn{ padding: 12px 22px; font-size: 0.88rem; }

.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--ink);
  border: none;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span{
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-toggle span:nth-child(1){ top: 16px; }
.nav-toggle span:nth-child(2){ top: 21.5px; }
.nav-toggle span:nth-child(3){ top: 27px; }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav{
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--ink);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px var(--gutter);
  transform: translateY(-100%);
  transition: transform .5s var(--ease-out);
}
.mobile-nav.is-open{ transform: translateY(0); }
.mobile-nav a{
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 700;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-on-dark);
}
.mobile-nav .btn{ margin-top: 28px; align-self: flex-start; }

/* ---------- Marquee (signature) ---------- */
.marquee{
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}
.marquee-track{
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 26s linear infinite;
}
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}
.marquee-track span{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}
.marquee-track span::after{
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cobalt-hi);
  display: inline-block;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
section{ position: relative; }
.section{ padding: clamp(64px, 9vw, 128px) 0; }
.section-tight{ padding: clamp(40px, 6vw, 80px) 0; }
.section-dark{ background: var(--ink); color: var(--white); }
.section-cobalt{ background: var(--cobalt); color: var(--white); }
.section-tint{ background: var(--cobalt-tint); }
.section-paper2{ background: var(--paper-2); }

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 5vw, 56px);
  flex-wrap: wrap;
}
.section-head h2{ font-size: clamp(2rem, 4.4vw, 3.4rem); }
.section-head p{ max-width: 420px; color: var(--ink-soft); font-size: 1.05rem; }
.section-dark .section-head p, .section-cobalt .section-head p{ color: rgba(255,255,255,.78); }

/* ---------- Diagonal / color-block shapes (signature) ---------- */
.diag-clip{
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}
.diag-clip-r{
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
}
.block-corner{
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  background: var(--cobalt);
  z-index: 0;
}

/* ---------- Hero ---------- */
.hero{
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: clip;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero h1{
  font-size: clamp(2.6rem, 6vw, 4.7rem);
}
.hero-copy p{
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 460px;
  margin-top: 20px;
}
.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero-media{
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 4/5;
  clip-path: polygon(8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%, 0 8%);
}
.hero-media img{ width: 100%; height: 100%; object-fit: cover; }
.hero-media .tag{
  position: absolute;
  left: 20px; bottom: 20px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-media .tag .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cobalt);
}
.hero-stats{
  display: flex;
  gap: clamp(20px, 4vw, 44px);
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stats .stat b{
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  display: block;
  color: var(--cobalt);
}
.hero-stats .stat span{
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- Cards ---------- */
.card-grid{
  display: grid;
  gap: 24px;
}
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }

.card{
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-spring), box-shadow .4s var(--ease-out);
}
.card:hover{
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(10,15,60,.14);
}
.card-media{
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.card-media img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.card:hover .card-media img{ transform: scale(1.07); }
.card-body{ padding: 22px 22px 26px; }
.card-body h3{ font-size: 1.3rem; margin-bottom: 8px; }
.card-body p{ color: var(--ink-soft); font-size: 0.96rem; }
.card-tag{
  position: absolute;
  top: 14px; left: 14px;
  background: var(--cobalt);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.card-duration{
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(11,11,20,.72);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}
.card-play{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.card:hover .card-play{ opacity: 1; }
.card-play span{
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
}
.card-play svg{ width: 20px; height: 20px; margin-left: 3px; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--cobalt-ink);
  color: var(--white);
  padding: clamp(56px, 8vw, 88px) 0 28px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand .brand{ color: var(--white); }
.footer-brand p{
  margin-top: 18px;
  color: rgba(255,255,255,.68);
  max-width: 300px;
  font-size: 0.95rem;
}
.footer-social{ display: flex; gap: 12px; margin-top: 22px; }
.footer-social a{
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s;
}
.footer-social a:hover{ background: var(--cobalt); border-color: var(--cobalt); }
.footer-col h4{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt-tint-2);
  margin-bottom: 18px;
}
.footer-col a, .footer-col p{
  display: block;
  color: rgba(255,255,255,.78);
  font-size: 0.95rem;
  padding: 6px 0;
}
.footer-col a:hover{ color: var(--white); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,.6);
  font-size: 0.85rem;
}
.footer-bottom a{ color: rgba(255,255,255,.85); font-weight: 600; }
.footer-bottom a:hover{ color: var(--cobalt-tint-2); }

/* ---------- Utility ---------- */
.text-center{ text-align: center; }
.mt-0{ margin-top: 0 !important; }
/* Reveal elements are fully visible by default (safe fallback for no-JS / stalled JS).
   The .js-anim class is added by main.js only once GSAP has confirmed it can run,
   and only for the brief window before each element's tween completes. */
.reveal{ opacity: 1; transform: none; }
html.js-anim .reveal{ opacity: 0; transform: translateY(36px); }
.pill-list{ display: flex; flex-wrap: wrap; gap: 10px; }
.pill{
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.88rem;
}
.pill.is-cobalt{ background: var(--cobalt); color: var(--white); border-color: var(--cobalt); }

/* ---------- Responsive ---------- */
/* Utility for two-up layouts built with an inline `grid-template-columns` (varying
   fr ratios per section) — inline styles can't be reached by a plain class media
   query, so this forces a single column on narrow screens regardless of what ratio
   was set inline. Used on visit/index.html's split sections and the home CTA band. */
.split-grid{ display: grid; }
@media (max-width: 860px){
  .split-grid{ grid-template-columns: 1fr !important; }
}

@media (max-width: 980px){
  .nav-links, .nav-cta .btn-outline{ display: none; }
  .nav-toggle{ display: block; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-media{ order: -1; aspect-ratio: 16/11; }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .grid-3, .grid-2{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
  .section-head{ align-items: flex-start; }
  .hero-actions .btn{ width: 100%; }
  .hero-stats{ gap: 24px; }
}
