/*
  Victory Over Pornography -- shared site stylesheet.
  Extracted from Design/Mockups/VOP_Homepage_Mockup.html and converted to a mobile-first
  structure per responsive-spec.md. Every page reads this file rather than redeclaring
  the design tokens; page-specific rules belong in that page's own small <style> block.
*/

:root {
  --charcoal: #15110d;
  --charcoal-2: #1c1712;
  --walnut: #2b1d13;
  --walnut-light: #3d2a1a;
  --gold: #c19a44;
  --gold-bright: #d4af5a;
  --cream: #efe6d3;
  --sand: #b8ab90;
  --red: #9c2b1f;
  --red-bright: #b8382a;
  --line: rgba(239, 230, 211, 0.12);
}

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

body {
  background: var(--charcoal);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: 100%;
  max-width: 73.75rem; /* 1180px */
  margin-inline: auto;
  padding-inline: 1.25rem;
}

h1, h2, h3 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.eyebrow {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  color: var(--gold-bright);
}

.accent-script {
  font-family: 'Caveat', cursive;
  color: var(--red-bright);
  font-weight: 700;
}

/* ===== Mountain divider ===== */
.mountain-divider { width: 100%; height: 3.5rem; display: block; }
.mountain-divider path { fill: var(--charcoal-2); }
.mountain-divider.flip path { fill: var(--walnut); }

/* ===== Buttons ===== */
.btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9375rem;
  padding: 0.85rem 1.75rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--gold); color: var(--charcoal); }
.btn-primary:hover { background: var(--gold-bright); }
.btn-secondary { border: 2px solid var(--sand); color: var(--cream); }
.btn-secondary:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* ===== Header / nav ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 17, 13, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.nav-logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo-img { height: 2.25rem; width: auto; }
footer .logo-img { height: 2.75rem; }

/* Desktop flat nav: its own separate list, never wrapped in <details>, so it can never
   be affected by a closed-details content-hiding quirk in any browser. Hidden below the
   48em breakpoint in favor of the hamburger menu. */
.navlinks-desktop {
  display: none;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sand);
}
.navlinks-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.navlinks-desktop a:hover { color: var(--gold-bright); }

.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  color: var(--cream);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-inline: 0.75rem;
}
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle summary::marker { content: ''; }
.nav-toggle[open] summary { color: var(--gold-bright); }

/* Anchored to header (already position:sticky, so it is a valid containing block) with
   left and right both set instead of a fixed min-width off a right:0 anchor, so the panel
   can never extend past either edge of the viewport regardless of button/label width. */
.navlinks {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 100%;
  margin-top: 0.5rem;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  padding: 0.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sand);
}
.navlinks a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
}
.navlinks a:hover { color: var(--gold-bright); }

.nav-cta {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  background: var(--gold);
  color: var(--charcoal);
  padding: 0.6rem 1rem;
  border-radius: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-cta:hover { background: var(--gold-bright); }

@media (min-width: 48em) {
  .navlinks-desktop { display: flex; gap: 2.125rem; }
  .nav-toggle { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 34rem;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(100deg, rgba(21,17,13,0.9) 0%, rgba(21,17,13,0.65) 48%, rgba(21,17,13,0.3) 100%),
    url('/images/hero-community-climbing.jpg');
  background-size: cover;
  background-position: center right;
  padding-block: 3.5rem;
}
.hero-content { max-width: 35rem; }
.hero h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  color: var(--cream);
  margin: 1.1rem 0 1.35rem;
}
.hero h1 .line2 { color: var(--gold-bright); }
.hero p.sub {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  color: var(--sand);
  max-width: 29rem;
  margin-bottom: 2rem;
}
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.35rem; }
.trust-line { font-size: 0.9375rem; color: var(--sand); letter-spacing: 0.01em; }
.trust-line strong { color: var(--cream); font-weight: 600; }

@media (min-width: 64em) {
  .hero { min-height: 92vh; padding-block: 5rem; }
}

/* ===== Trust bar ===== */
.trustbar {
  background: var(--charcoal-2);
  border-block: 1px solid var(--line);
  padding-block: 2.25rem;
}
.trustbar .wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.trustbar .item .num {
  font-family: 'Anton', sans-serif;
  font-size: 1.625rem;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 0.375rem;
}
.trustbar .item .label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sand);
}
@media (min-width: 48em) {
  .trustbar .wrap { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Problem section ===== */
.problem { background: var(--walnut); padding-block: 5rem; }
.problem .wrap { max-width: 47.5rem; text-align: center; }
.problem h2 { font-size: clamp(1.625rem, 1.4rem + 1vw, 2.125rem); color: var(--cream); margin-bottom: 1.375rem; }
.problem p {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--sand);
  line-height: 1.65;
}
.problem p + p { margin-top: 1rem; }
.problem .highlight { color: var(--gold-bright); font-family: 'Oswald', sans-serif; }

/* ===== Six levels ===== */
.levels { background: var(--charcoal); padding-block: 5.5rem; }
.section-head { text-align: center; max-width: 37.5rem; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); color: var(--cream); margin: 0.875rem 0 1rem; }
.section-head p { font-family: 'Oswald', sans-serif; color: var(--sand); font-size: 1.125rem; }

.level-path {
  display: flex;
  flex-direction: column;
  gap: 2.125rem;
  position: relative;
  padding-top: 0.625rem;
}
.level { flex: 1; text-align: center; position: relative; }
.level .marker {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--charcoal-2);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
}
.level .marker svg { width: 1.625rem; height: 1.625rem; }
.level .lvl-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--cream);
  margin-bottom: 0.375rem;
}
.level .lvl-desc { font-size: 0.875rem; color: var(--sand); line-height: 1.5; }

@media (min-width: 56.25em) {
  .level-path { flex-direction: row; justify-content: space-between; gap: 0.875rem; }
  .level-path::before {
    content: '';
    position: absolute;
    top: 2.125rem;
    left: 5%;
    right: 5%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
  }
}

/* ===== Pillar grid ===== */
.pillars { background: var(--charcoal-2); padding-block: 5.5rem; scroll-margin-top: 6rem; }
.pillar-grid { display: grid; grid-template-columns: 1fr; gap: 1.375rem; }
.pillar-card {
  background: var(--walnut);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  display: block;
  transition: transform .15s ease, border-color .15s ease;
}
.pillar-card:hover, .pillar-card:focus-visible { transform: translateY(-4px); border-color: var(--gold); }
.pillar-thumb {
  height: 7.5rem;
  background: linear-gradient(135deg, var(--walnut-light), var(--charcoal-2));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.pillar-thumb svg { width: 2.125rem; height: 2.125rem; opacity: 0.7; }
.pillar-body { padding: 1.375rem; }
.pillar-body .tag {
  font-family: 'Oswald', sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
  display: block;
}
.pillar-body h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: none;
  font-size: 1.0625rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.pillar-body p { font-size: 0.9375rem; color: var(--sand); }

@media (min-width: 40em) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .pillar-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== CTA blocks ===== */
.cta-block { padding-block: 5rem; text-align: center; }
.cta-block.community { background: var(--walnut); scroll-margin-top: 6rem; }
.cta-block.program { background: var(--charcoal); border-block: 1px solid var(--line); }
.cta-block .wrap { max-width: 40rem; }
.cta-block h2 { font-size: clamp(1.625rem, 1.4rem + 1vw, 2.125rem); color: var(--cream); margin: 0.875rem 0 1.125rem; }
.cta-block p {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  color: var(--sand);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.cta-block .btn { font-size: 1rem; padding: 1.125rem 2.5rem; }

/* ===== FAQ ===== */
.faq { background: var(--charcoal-2); padding-block: 5.5rem; scroll-margin-top: 6rem; }
.faq-list { max-width: 47.5rem; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding-block: 1.625rem; }
.faq-item h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: none;
  font-size: 1.125rem;
  color: var(--cream);
  margin-bottom: 0.625rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.faq-item h3::before { content: '\203A'; color: var(--gold-bright); flex-shrink: 0; }
.faq-item p { font-size: 0.96875rem; color: var(--sand); padding-left: 1.5rem; }

/* ===== Final CTA ===== */
.final-cta {
  background: linear-gradient(120deg, var(--red) 0%, #6e1f16 100%);
  padding-block: 4.375rem;
  text-align: center;
}
.final-cta h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 1.875rem); color: var(--cream); margin-bottom: 1.625rem; }
.final-cta .btn-primary { background: var(--cream); color: var(--charcoal); }
.final-cta .btn-primary:hover { background: #fff; }

/* ===== Footer ===== */
footer { background: var(--charcoal); padding: 3.5rem 0 1.875rem; }
.footer-top { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 2.25rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.84375rem;
  color: var(--sand);
}
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.78125rem;
  color: var(--sand);
}
@media (min-width: 48em) {
  .footer-top { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

section > .wrap { position: relative; z-index: 1; }

/* ===== Forms ===== */
.form-field { margin-bottom: 1.25rem; text-align: left; }
.form-field label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.5rem;
}
.form-field input, .form-field textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--cream);
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.75rem 0.875rem;
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-family: 'Oswald', sans-serif; font-size: 0.9375rem; }
.form-status.success { color: #8fbf8f; }
.form-status.error { color: var(--red-bright); }
.form-submit { min-height: 44px; }

/* ===== Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
