/* First Encounter | Encounter Church STL
   Shared styles for index.html, training.html and leaders.html */

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

:root {
  --black:      #000000;
  --coal:       #1A1A1A;
  --orange:     #E05A1A;
  --orange-dk:  #B8440C;
  --yellow:     #F5C200;
  --white:      #FFFFFF;
  --off-white:  #F7F7F7;
  --line:       #E2E2E2;
  --text:       #1A1A1A;
  --muted:      #555555;
  --display:    'Oswald', 'Arial Narrow', sans-serif;
  --body:       'Open Sans', Arial, sans-serif;
  --wrap:       1040px;
  --header-h:   66px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
}

img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 22px); }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--black);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-header .bar {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px; min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-header img { height: 38px; width: auto; display: block; }
.site-nav { display: flex; gap: 2px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  font-family: var(--display);
  font-size: .82rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.8); text-decoration: none;
  padding: 8px 13px; border-radius: 2px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav a.is-cta { background: var(--orange); color: #fff; margin-left: 8px; }
.site-nav a.is-cta:hover { background: var(--orange-dk); }

/* ---------- HERO ---------- */
.hero {
  background: var(--black); color: #fff;
  text-align: center;
  padding: 72px 24px 64px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 700; line-height: 1.02;
  text-transform: uppercase; letter-spacing: .02em;
}
.hero h1 span { color: var(--yellow); }
.hero .sub {
  font-family: var(--display);
  font-size: clamp(.95rem, 2vw, 1.25rem); font-weight: 400;
  color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .14em;
  margin-top: 12px;
}
.hero.has-video .sub { margin-bottom: 36px; }

/* ---------- VIDEO ---------- */
.video-wrap {
  max-width: 760px; margin: 0 auto;
  aspect-ratio: 16/9; position: relative; overflow: hidden;
  background: #1c1c1c; cursor: pointer;
  box-shadow: 0 8px 50px rgba(0,0,0,.7);
}
.video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.video-placeholder {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: none; border: 0; width: 100%; cursor: pointer; color: inherit;
}
.play-circle {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.video-wrap:hover .play-circle { transform: scale(1.08); background: var(--orange-dk); }
.play-circle svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.video-placeholder span {
  font-family: var(--display); font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.video-wrap.playing .video-placeholder { display: none; }
.video-wrap.playing { cursor: default; }

/* ---------- MISSION ---------- */
.mission { background: var(--coal); padding: 40px 24px; text-align: center; }
.mission p {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.3vw, 1.6rem); font-weight: 600;
  color: #fff; text-transform: uppercase;
  letter-spacing: .04em; line-height: 1.4;
  max-width: 840px; margin: 0 auto;
}
.mission span { color: var(--orange); }

/* ---------- BANDS + TYPE ---------- */
.band { padding: 76px 24px; }
.band.gray { background: var(--off-white); }
.band.dark { background: var(--black); color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; }

h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 700; line-height: 1.08;
  text-transform: uppercase; letter-spacing: .03em;
}
.rule { width: 48px; height: 4px; background: var(--orange); margin: 14px 0 24px; }
.lede { color: var(--muted); max-width: 68ch; font-size: 1.03rem; }
.lede + .lede { margin-top: 14px; }
.band.dark .lede { color: rgba(255,255,255,.68); }
.band.dark .lede strong { color: #fff; }

h3 {
  font-family: var(--display);
  font-size: 1.12rem; font-weight: 600; line-height: 1.25;
  text-transform: uppercase; letter-spacing: .05em;
}

/* ---------- CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.card {
  background: var(--white);
  border: 1px solid var(--line); border-top: 4px solid var(--black);
  padding: 26px 26px 28px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .94rem; color: var(--muted); line-height: 1.65; }
.card p + p { margin-top: 10px; }
.card .big-time { font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1.25; color: var(--text); }
.card .big-time + p { margin-top: 10px; }

/* ---------- THINGS TO SAY ---------- */
.say {
  margin-top: 14px; padding: 13px 18px 15px;
  background: var(--off-white);
  border-left: 4px solid var(--orange);
  font-size: 1.04rem; font-weight: 600; line-height: 1.5; color: var(--text);
  max-width: 62ch;
}
.band.gray .say { background: var(--white); }
.say b {
  display: block;
  font-family: var(--display); font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; color: var(--orange-dk);
  margin-bottom: 2px;
}

.note {
  margin-top: 16px; padding: 14px 18px;
  border: 1px solid var(--line); background: var(--white);
  font-size: .93rem; color: var(--muted); max-width: 62ch;
}
.note strong { color: var(--text); }

/* ---------- NUMBERED SEQUENCE (cheat sheet, training order) ---------- */
.sequence { list-style: none; counter-reset: seq; margin-top: 32px; border-top: 2px solid var(--black); }
.sequence li {
  counter-increment: seq;
  display: grid; grid-template-columns: 62px 1fr; gap: 0 18px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.sequence li::before {
  content: counter(seq);
  font-family: var(--display); font-size: 2.2rem; font-weight: 700;
  color: var(--orange); line-height: 1;
}
.sequence h3 { margin-bottom: 4px; }
.sequence p { font-size: .96rem; color: var(--muted); max-width: 64ch; }
.sequence p em { font-style: normal; font-weight: 600; color: var(--text); }

/* ---------- THE SUNDAY TIMELINE ---------- */
.stage {
  display: grid; grid-template-columns: 190px 1fr; gap: 52px;
  padding: 60px 0; border-top: 1px solid var(--line);
}
.stage:first-of-type { border-top: 0; padding-top: 44px; }
.stage:last-of-type { padding-bottom: 0; }
.stage-rail { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
.stage-rail .n {
  display: block;
  font-family: var(--display); font-size: 5rem; font-weight: 700; line-height: .9;
  color: var(--orange);
}
@supports (-webkit-text-stroke: 1px black) {
  .stage-rail .n { color: transparent; -webkit-text-stroke: 2px var(--orange); }
}
.stage-rail .when {
  display: block; margin-top: 12px;
  font-family: var(--display); font-size: .95rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
}
.stage-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.stage-body > p { color: var(--muted); margin-top: 12px; max-width: 64ch; }
.stage-body > h2 + p { margin-top: 16px; font-size: 1.03rem; }
.stage-body h3 { margin-top: 34px; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.trio p {
  background: var(--black); color: #fff;
  padding: 18px 18px 20px;
  font-size: 1rem; font-weight: 600; line-height: 1.4;
}

/* ---------- PRACTICE SCENARIOS ---------- */
.scenarios { margin-top: 30px; border-top: 2px solid var(--black); }
.scenarios details { border-bottom: 1px solid var(--line); }
.scenarios summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 20px 48px 20px 0;
  font-size: 1.06rem; font-weight: 600; line-height: 1.45;
}
.scenarios summary::-webkit-details-marker { display: none; }
.scenarios summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 1.7rem; font-weight: 400; color: var(--orange-dk);
}
.scenarios details[open] summary::after { content: '\2212'; }
.scenarios summary:hover { color: var(--orange-dk); }
.scenarios .answer { padding: 0 0 26px; }
.scenarios .answer p { color: var(--muted); font-size: .97rem; max-width: none; }
.scenarios .answer p + p { margin-top: 12px; }
.scenarios .answer .say { color: var(--text); font-size: 1.04rem; max-width: none; }

.checks { list-style: none; margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 36px; }
.checks li { position: relative; padding-left: 30px; font-size: .97rem; color: var(--muted); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .42em;
  width: 15px; height: 15px; border: 2px solid var(--orange);
}
.band.dark .checks li { color: rgba(255,255,255,.72); }
.subhead { margin-top: 52px; }

/* ---------- ROTATION ---------- */
.rot-layout { display: grid; grid-template-columns: 340px 1fr; gap: 52px; margin-top: 38px; align-items: start; }
.rot-calendar { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 24px; }
.cal-label {
  font-family: var(--display); font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: 14px;
}
.cal-grid { display: flex; flex-direction: column; gap: 6px; }
.cal-week { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 6px; }
.cal-day {
  padding: 10px 12px;
  font-family: var(--display); font-size: .84rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  display: flex; flex-direction: column; gap: 2px;
}
.cal-day span { font-size: .7rem; font-weight: 400; letter-spacing: .06em; opacity: .85; }
.cal-day.wk { color: rgba(255,255,255,.55); font-size: .74rem; justify-content: center; align-items: center; padding: 10px 4px; }
.cal-day.on  { background: var(--orange); color: #fff; }
.cal-day.off { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }

.rot-details > div { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.rot-details > div:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.rot-details h3 { color: #fff; margin-bottom: 6px; font-size: 1.02rem; }
.rot-details p { font-size: .94rem; color: rgba(255,255,255,.68); line-height: 1.65; max-width: 60ch; }
.rot-details p strong { color: #fff; font-weight: 600; }

/* ---------- STANDARDS + CONTACT ---------- */
.standards { margin-top: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 44px; border-top: 2px solid var(--black); }
.standards > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.standards dt { font-family: var(--display); font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.standards dd { color: var(--muted); font-size: .95rem; margin-top: 4px; }

.contact {
  margin-top: 36px; padding: 24px 28px;
  background: var(--off-white); border-left: 4px solid var(--orange);
}
.band.gray .contact { background: var(--white); }
.contact h3 { margin-bottom: 6px; }
.contact p { color: var(--muted); font-size: .96rem; max-width: 68ch; }
.contact p strong { color: var(--text); }

/* ---------- WELCOME SONG ---------- */
.song { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 34px; align-items: start; }
.player { background: var(--white); border: 1px solid var(--line); padding: 28px; }
.player-title { font-family: var(--display); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.player-sub { font-size: .86rem; color: var(--muted); }
.player-controls { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.play-btn {
  width: 54px; height: 54px; flex-shrink: 0;
  background: var(--orange); border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .12s;
}
.play-btn:hover { background: var(--orange-dk); transform: scale(1.05); }
.play-btn svg { width: 18px; height: 18px; fill: #fff; }
.progress-area { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.progress-bar { width: 100%; height: 8px; background: var(--line); cursor: pointer; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--black); transition: width .1s linear; }
.time-display { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }

.lyrics { background: var(--white); border: 1px solid var(--line); padding: 26px 30px; }
.lyrics p { font-style: italic; font-size: .98rem; line-height: 1.6; margin-bottom: 10px; }
.lyrics p.cue {
  font-style: normal; font-family: var(--display); font-size: .86rem; font-weight: 600;
  letter-spacing: .06em; color: var(--orange-dk);
  margin: 18px 0 6px;
}
.lyrics-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--display); font-size: .86rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dk);
}
.lyrics-toggle svg { transition: transform .2s; }
.lyrics-toggle.open svg { transform: rotate(180deg); }

/* ---------- LEADERS: TRAITS + GOALS ---------- */
.traits { margin-top: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 44px; border-top: 2px solid var(--black); }
.traits > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.traits dt { font-family: var(--display); font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.traits dd { color: var(--muted); font-size: .95rem; margin-top: 3px; }

.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.16); margin-top: 38px; }
.goal { background: var(--black); padding: 32px 28px 34px; }
.goal .fig { font-family: var(--display); font-size: clamp(3.2rem, 7vw, 4.8rem); font-weight: 700; color: var(--yellow); line-height: 1; }
.goal h3 { color: #fff; margin: 12px 0 8px; }
.goal p { color: rgba(255,255,255,.68); font-size: .94rem; line-height: 1.6; }
.band.dark .subhead { color: #fff; }

/* ---------- CTA + FOOTER ---------- */
.cta { background: var(--black); color: #fff; padding: 64px 24px; text-align: center; }
.cta p { color: rgba(255,255,255,.68); max-width: 54ch; margin: 14px auto 28px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 30px;
  font-family: var(--display); font-size: .9rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dk); }
.btn-secondary { color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.3); }
.btn-secondary:hover { border-color: #fff; color: #fff; }

footer {
  background: var(--black); text-align: center;
  padding: 36px 24px; color: rgba(255,255,255,.55);
  font-size: .82rem; border-top: 1px solid rgba(255,255,255,.1);
}
footer img { height: 34px; width: auto; margin: 0 auto 14px; opacity: .6; display: block; }
footer p + p { margin-top: 6px; }
footer a { color: rgba(255,255,255,.75); text-decoration: none; }
footer a:hover { color: #fff; }

/* ---------- ONE LOAD MOMENT ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1 { animation: rise .45s ease both; }
.hero .sub { animation: rise .45s .08s ease both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .hero .sub { animation: none; }
  * { transition: none !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .rot-layout { grid-template-columns: 1fr; gap: 32px; }
  .stage { grid-template-columns: 1fr; gap: 18px; padding: 48px 0; }
  .stage-rail { position: static; display: flex; align-items: baseline; gap: 14px; }
  .stage-rail .n { font-size: 3.4rem; }
  .stage-rail .when { margin-top: 0; }
  .goals { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --header-h: 96px; }
  .site-header .bar { flex-direction: column; align-items: flex-start; gap: 0; padding: 0 16px; }
  .site-header img { height: 32px; margin: 12px 0 6px; }
  .site-nav { width: 100%; padding-bottom: 10px; }
  .site-nav a { font-size: .76rem; padding: 6px 10px; }
  .site-nav a.is-cta { margin-left: 4px; }
  .hero { padding: 48px 20px 44px; }
  .band { padding: 52px 18px; }
  .cards, .song, .checks, .standards, .traits { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; gap: 8px; }
  .sequence li { grid-template-columns: 44px 1fr; gap: 0 12px; }
  .sequence li::before { font-size: 1.8rem; }
  .cal-week { grid-template-columns: 40px 1fr 1fr; }
  .cal-day { padding: 8px; font-size: .76rem; }
  .player, .lyrics { padding: 22px 18px; }
  .contact { padding: 20px 18px; }
  .cta { padding: 52px 20px; }
}

@media print {
  .site-header, .video-wrap, .cta, .player { display: none; }
  .band, .hero, .mission { padding: 24px 0; }
  .band.dark, .hero, .mission, .goal, .trio p { background: #fff !important; color: #000 !important; }
  .band.dark .lede, .goal p, .goal h3, .mission p, .hero h1, .hero .sub { color: #000 !important; }
  .scenarios details .answer { display: block; }
}
