/* ==========================================================================
   INTERIOR PAGES — Shared styles for all non-home pages
   ========================================================================== */

/* ------------------------------------------------------------------
   BOOKING STEPS
   ------------------------------------------------------------------ */
.steps-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: var(--sp-12) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-10);
}
.step-item {
  counter-increment: step-counter;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--sp-6);
  align-items: start;
}
.step-item::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-dark);
  font-size: var(--text-xl);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.step-item__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-2);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.step-item__sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-3);
}
.page-section--surface .step-item__title,
.page-section--white .step-item__title {
  color: var(--color-dark);
}
.page-section--surface .step-item__sub,
.page-section--white .step-item__sub {
  color: rgba(0,0,0,0.5);
}

/* ------------------------------------------------------------------
   DOCUMENT DOWNLOAD GRID
   ------------------------------------------------------------------ */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.doc-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
}
.page-section--surface .doc-item {
  background: var(--color-white);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.doc-item__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-1);
}
.doc-item__name {
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--sp-2);
}
.page-section--surface .doc-item__name {
  color: var(--color-text);
}
.doc-item__desc {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  flex: 1;
}
.page-section--surface .doc-item__desc {
  color: rgba(0,0,0,0.45);
}
.doc-item__links {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: var(--sp-2);
}
.doc-item__links a {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 4px;
  background: var(--color-gold);
  color: var(--color-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.doc-item__links a:hover { opacity: 0.85; }

/* ------------------------------------------------------------------
   INFO CARDS (arrangements)
   ------------------------------------------------------------------ */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}
.info-card {
  padding: var(--sp-6);
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--color-gold);
  border-radius: 4px;
}
.info-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--sp-2);
}

/* Page hero — shorter than home hero */
.hero--page {
  height: min(75vh, 720px);
  min-height: 400px;
}

/* Bet-Hesda hero: position to show cross on the hills */
.hero--page .hero__bg {
  object-position: center 25%;
}

.hero--page .hero__overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

/* Visible title shown over the page hero */
.hero__page-title {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--sp-6);
}

.hero__page-eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--sp-3);
}

.hero__page-title h1 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   PAGE INTRO / CONTENT SECTIONS
   ========================================================================== */

.page-intro {
  background-color: var(--color-white);
}

/* Narrow prose column for readability */
.page-content {
  max-width: 780px;
  margin-inline: auto;
}

.page-content p {
  font-size: var(--text-base);
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: var(--sp-6);
}

/* Scripture / pull quote */
.page-quote {
  margin: var(--sp-10) 0 var(--sp-6);
  padding: var(--sp-6) var(--sp-8);
  border-left: 3px solid var(--color-gold);
  background-color: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.page-quote p {
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: var(--sp-3);
}

.page-quote cite {
  display: block;
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: var(--tracking-wide);
}

@media (max-width: 640px) {
  .page-quote {
    padding: var(--sp-5) var(--sp-5);
  }
  .page-quote p {
    font-size: var(--text-base);
  }
}

/* Captioned yt-card — title overlaid, flush with bottom of frame */
.yt-card--captioned {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
}
.yt-card--captioned:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
/* media wrapper fills the full card */
.yt-card--captioned .yt-card__media {
  position: absolute;
  inset: 0;
}
/* title back to overlay, pinned flush to the bottom */
.yt-card--captioned .yt-card__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-10) var(--sp-4) var(--sp-2);
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--leading-snug);
  margin-top: 0;
}
.yt-card--captioned.yt-card--loaded .yt-card__title {
  display: none;
}

/* ==========================================================================
   VIDEOS GRID (mirrors home announcements grid, 3-up)
   ========================================================================== */

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--sp-6);
  row-gap: var(--sp-12);
}

@media (max-width: 900px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .videos-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-inline: auto;
  }
}

/* ==========================================================================
   SECTION EYEBROW + TITLE (reusable across all interior pages)
   ========================================================================== */

.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--sp-3);
}

.section-title {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: inherit;
  margin-bottom: var(--sp-8);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-light));
  margin: var(--sp-4) auto 0;
  border-radius: var(--radius-full);
}

/* Subsection h3 within prose */
.page-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-dark);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-4);
}

/* ==========================================================================
   SECTION COLOUR VARIANTS
   ========================================================================== */

.page-section--dark {
  background-color: var(--color-dark);
}
.page-section--dark .section-title       { color: var(--color-white); }
.section--dark .section-title            { color: var(--color-white); }
.section--warm .section-title            { color: var(--color-white); }
.page-section--dark .page-content p      { color: rgba(255, 255, 255, 0.82); }
.page-section--dark .page-content h3     { color: var(--color-gold); margin-top: var(--sp-10); }
.page-section--dark .page-quote          { background-color: rgba(255, 255, 255, 0.05); }
.page-section--dark .page-quote p        { color: rgba(255, 255, 255, 0.9); }
.page-section--dark .step-item p,
.page-section--dark .step-item li        { color: rgba(255, 255, 255, 0.82); }
.page-section--dark .doc-item__name      { color: rgba(255, 255, 255, 0.90); }
.page-section--dark .doc-item__desc      { color: rgba(255, 255, 255, 0.55); }
.page-section--dark .section-eyebrow     { color: var(--color-gold); }

.page-section--surface {
  background-color: var(--color-surface);
}

.page-section--warm {
  background-color: var(--color-warm);
}
.page-section--warm .section-title   { color: var(--color-white); }
.page-section--warm .page-content p  { color: rgba(255, 255, 255, 0.82); }
.page-section--warm .page-content h3 { color: var(--color-gold); }
.page-section--warm .page-quote      { background-color: rgba(255, 255, 255, 0.07); }
.page-section--warm .page-quote p    { color: rgba(255, 255, 255, 0.9); }

/* ==========================================================================
   TWO-COLUMN CONTENT LAYOUT (text + image)
   ========================================================================== */

.page-two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-16);
  align-items: start;
  margin-top: var(--sp-10);
}

.page-two-col .page-content { max-width: none; }

.page-two-col__img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  position: sticky;
  top: 100px;
}

@media (max-width: 900px) {
  .page-two-col {
    grid-template-columns: 1fr;
  }
  .page-two-col__img {
    position: static;
    order: -1;
    max-height: 380px;
    object-fit: cover;
  }
}

/* ==========================================================================
   CALLING CARDS GRID (3-up)
   ========================================================================== */

.calling-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

.calling-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  border-top: 3px solid var(--color-gold);
  box-shadow: var(--shadow-md);
}

.calling-card__icon {
  font-size: 2rem;
  margin-bottom: var(--sp-4);
  color: var(--color-gold);
  line-height: 1;
}

.calling-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-dark);
  margin-bottom: var(--sp-3);
}

.calling-card p {
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 1.75;
}

@media (max-width: 900px) {
  .calling-grid {
    grid-template-columns: 1fr;
  }
}
