/* =========================================================
   Wilderness Formation — Brand Stylesheet (Mockup)
   Implementation of the Dec 2022 brand guidelines.
   Brandon Grotesque substituted with Outfit (Google Fonts).
   ========================================================= */

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

:root {
  /* Brand palette */
  --charcoal: #26272B;
  --cream:    #F3DCC9;
  --peach:    #FCC183;
  --rust:     #89321C;
  --yellow:   #FDEB70;
  --olive:    #B4B134;
  --forest:   #024D26;
  --white:    #FFFFFF;

  /* Derived */
  --cream-soft: #FAEEE0;
  --charcoal-soft: rgba(38, 39, 43, 0.7);
  --charcoal-line: rgba(38, 39, 43, 0.12);

  /* Type */
  --font: 'Outfit', 'Brandon Grotesque', Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.15rem; }

p { font-size: 1.0625rem; }
.lead { font-size: 1.25rem; line-height: 1.55; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--rust);
}
.eyebrow.on-dark { color: var(--peach); }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 28px; }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.bg-cream { background: var(--cream); }
.bg-cream-soft { background: var(--cream-soft); }
.bg-white { background: var(--white); }
.bg-charcoal { background: var(--charcoal); color: var(--cream); }
.bg-forest { background: var(--forest); color: var(--cream); }
.bg-charcoal h1, .bg-charcoal h2, .bg-charcoal h3, .bg-forest h1, .bg-forest h2, .bg-forest h3 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--rust); color: var(--white); border-color: var(--rust); }
.btn-primary:hover { background: #6c2715; border-color: #6c2715; }

.btn-secondary { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-secondary:hover { background: var(--charcoal); color: var(--white); }

.btn-light { background: var(--peach); color: var(--charcoal); border-color: var(--peach); }
.btn-light:hover { background: var(--yellow); border-color: var(--yellow); }

.btn-ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-ghost-light:hover { background: var(--cream); color: var(--charcoal); }

/* ---------- Nav ---------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 20px 0;
}
.nav.solid {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--charcoal-line);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}
.nav.solid .nav-logo { color: var(--charcoal); }
.nav-logo svg { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white);
  opacity: 0.92;
}
.nav.solid .nav-links a { color: var(--charcoal); }
.nav-links a:hover { opacity: 1; color: var(--peach); }
.nav.solid .nav-links a:hover { color: var(--rust); }
.nav-links .btn { padding: 10px 22px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38,39,43,0.55) 0%, rgba(38,39,43,0.65) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero .container { position: relative; z-index: 2; padding-top: 100px; padding-bottom: 60px; }
.hero h1 { color: var(--white); max-width: 880px; margin-bottom: 24px; }
.hero .lead { max-width: 680px; color: var(--cream); margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-sub {
  position: relative;
  min-height: 52vh;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--cream);
  padding: 22px 0;
  border-bottom: 1px solid rgba(137,50,28,0.15);
}
.trust-bar .container {
  display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: center;
}
.trust-label {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.75rem; font-weight: 700; color: var(--rust);
}
.trust-churches { display: flex; flex-wrap: wrap; gap: 24px 36px; }
.trust-church {
  font-weight: 700; color: var(--charcoal);
  font-size: 0.95rem; letter-spacing: 0.03em;
}

/* ---------- Sections ---------- */
.section-header { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-header .eyebrow { margin-bottom: 14px; display: block; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.125rem; color: var(--charcoal-soft); }

/* ---------- Offering cards (three pathways) ---------- */
.offerings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.offering {
  background: var(--white);
  border-top: 4px solid var(--peach);
  padding: 36px 32px 32px;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(38,39,43,0.06), 0 8px 30px rgba(38,39,43,0.06);
  display: flex; flex-direction: column;
}
.offering:nth-child(2) { border-top-color: var(--rust); }
.offering:nth-child(3) { border-top-color: var(--forest); }
.offering .tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--rust);
  margin-bottom: 14px;
}
.offering h3 { margin-bottom: 12px; }
.offering .price-line {
  font-size: 0.9rem; color: var(--charcoal-soft);
  margin-bottom: 18px; font-weight: 500;
}
.offering ul {
  list-style: none; margin: 0 0 24px 0;
  border-top: 1px solid var(--charcoal-line);
  padding-top: 18px;
}
.offering ul li {
  font-size: 0.95rem;
  padding: 7px 0;
  display: flex; align-items: flex-start; gap: 10px;
}
.offering ul li::before {
  content: '✓'; color: var(--rust); font-weight: 800; flex-shrink: 0;
}
.offering .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Comparison table ---------- */
.compare-table {
  width: 100%; border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(38,39,43,0.08);
}
.compare-table th, .compare-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--charcoal-line);
  font-size: 0.95rem;
}
.compare-table th {
  background: var(--cream);
  font-weight: 800;
  font-size: 1.05rem;
  border-bottom: 2px solid var(--rust);
}
.compare-table th:first-child { background: var(--charcoal); color: var(--cream); border-bottom-color: var(--charcoal); }
.compare-table td:first-child {
  background: var(--cream-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: var(--rust);
}
.compare-table tr:last-child td { border-bottom: none; }

/* ---------- Big quote ---------- */
.quote-block {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.quote-block .mark {
  font-size: 5rem; line-height: 1;
  color: var(--peach);
  font-weight: 900;
  margin-bottom: -10px;
}
.quote-block blockquote {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--cream);
  margin: 0 0 28px 0;
  letter-spacing: -0.01em;
}
.quote-block cite {
  display: block;
  font-style: normal;
  color: var(--peach);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
}
.quote-block cite span { display: block; font-weight: 500; opacity: 0.8; margin-top: 4px; text-transform: none; letter-spacing: 0.02em; }

/* ---------- Split section (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-text .eyebrow { display: block; margin-bottom: 14px; }
.split-text h2 { margin-bottom: 20px; }
.split-text p { margin-bottom: 16px; color: var(--charcoal-soft); }
.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Theology callout ---------- */
.theology {
  background: var(--charcoal);
  color: var(--cream);
  padding: 96px 0;
  text-align: center;
}
.theology .container-narrow > p {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  font-weight: 500;
  color: var(--cream);
}
.theology .container-narrow > p + p { margin-top: 22px; }

/* ---------- Case study card grid ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.case-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(38,39,43,0.08);
  display: flex; flex-direction: column;
}
.case-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.case-card-img img { width: 100%; height: 100%; object-fit: cover; }
.case-card-body { padding: 28px 28px 32px; }
.case-card .tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--rust);
  margin-bottom: 10px;
}
.case-card h3 { margin-bottom: 10px; }
.case-card p { color: var(--charcoal-soft); margin-bottom: 18px; font-size: 0.98rem; }
.case-card a.link {
  font-weight: 700; color: var(--rust);
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem;
}

/* ---------- Case study page specific ---------- */
.cs-hero {
  background: var(--cream);
  padding: 56px 0 0;
}
.cs-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cs-hero .eyebrow { margin-bottom: 16px; display: block; }
.cs-hero h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 20px; }
.cs-hero p { font-size: 1.125rem; color: var(--charcoal-soft); }
.cs-hero-img {
  aspect-ratio: 5/4;
  background: var(--charcoal);
  border-radius: var(--radius);
  overflow: hidden;
  transform: translateY(40px);
}
.cs-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.cs-stats {
  background: var(--white);
  padding-top: 96px;
}
.cs-stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--charcoal-line);
  border-bottom: 1px solid var(--charcoal-line);
}
.cs-stat {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--charcoal-line);
}
.cs-stat:last-child { border-right: none; }
.cs-stat .num {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 8px;
}
.cs-stat .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--charcoal-soft);
}

.cs-body { padding: 80px 0; background: var(--white); }
.cs-body h2 { margin-bottom: 20px; }
.cs-body h2 + p { color: var(--charcoal-soft); margin-bottom: 36px; }
.cs-body p { font-size: 1.0625rem; margin-bottom: 18px; }
.cs-body ul { margin: 12px 0 28px 24px; }
.cs-body ul li { margin-bottom: 10px; font-size: 1.0625rem; }
.cs-section { margin-bottom: 64px; }
.cs-section .eyebrow { display: block; margin-bottom: 14px; }

.cs-pullquote {
  background: var(--cream);
  padding: 56px 36px;
  margin: 40px 0;
  border-left: 4px solid var(--rust);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.cs-pullquote blockquote {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.cs-pullquote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}
.cs-pullquote cite span { display: block; font-weight: 500; color: var(--charcoal-soft); text-transform: none; letter-spacing: 0.02em; margin-top: 4px; }

.cs-cta {
  background: var(--forest);
  color: var(--cream);
  padding: 80px 0;
  text-align: center;
}
.cs-cta h2 { color: var(--white); margin-bottom: 16px; }
.cs-cta p { color: var(--cream); font-size: 1.125rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 64px 0 32px;
}
.footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--peach);
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: var(--cream); opacity: 0.85; font-size: 0.95rem; }
.footer ul li a:hover { opacity: 1; color: var(--peach); }
.footer-brand p { color: var(--cream); opacity: 0.8; font-size: 0.95rem; margin-top: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(243,220,201,0.15);
  margin-top: 48px;
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: var(--cream); opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .offerings { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .cs-hero .container { grid-template-columns: 1fr; }
  .cs-hero-img { transform: none; margin-bottom: 0; }
  .cs-stats .container { grid-template-columns: repeat(2, 1fr); }
  .cs-stat:nth-child(2) { border-right: none; }
  .cs-stat { border-bottom: 1px solid var(--charcoal-line); }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links .btn { display: inline-block; }
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 12px 14px; }
}
