/* ==========================================================================
   The Church of Jesus the Christ — Homepage Styles
   Design tokens: gold-on-black celestial, jewel-tone accents (ruby/emerald)
   ========================================================================== */

:root {
  /* Core palette */
  --black: #060606;
  --near-black: #0a0a0b;
  --charcoal: #121214;
  --charcoal-2: #17171a;

  --gold: #c9a227;
  --gold-light: #e8ce7a;
  --gold-dim: #8a7127;
  --gold-glow: rgba(201, 162, 39, 0.35);

  --ruby: #7a1228;
  --ruby-light: #a8203f;
  --emerald: #0f5233;
  --emerald-light: #1c7a4e;

  --offwhite: #f3f0e8;
  --body-text: #bdb9b0;
  --body-text-dim: #918d84;
  --muted: #6f6c64;
  --border-hairline: rgba(201, 162, 39, 0.18);

  /* Type */
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --header-height: 92px;
  --radius: 3px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
::selection { background: var(--gold); color: var(--black); }

/* ---- Jewel ribbon ---- */
.jewel-ribbon {
  height: 4px;
  width: 100%;
  display: flex;
}
.jewel-ribbon span { flex: 1; }
.jewel-ribbon .ruby { background: linear-gradient(90deg, var(--ruby), var(--ruby-light)); }
.jewel-ribbon .gold { background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-light)); }
.jewel-ribbon .emerald { background: linear-gradient(90deg, var(--emerald), var(--emerald-light)); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: var(--header-height);
  background: rgba(6, 6, 6, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-hairline);
  transition: background 0.3s var(--ease);
}
.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--offwhite);
  display: none;
}
.main-nav { display: none; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-text);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover { color: var(--gold-light); }
.main-nav a:hover::after { width: 100%; }

.header-cta {
  display: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 22px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.header-cta:hover { background: var(--gold); color: var(--black); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--offwhite);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 6, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--offwhite);
  letter-spacing: 0.02em;
}
.mobile-nav a:hover { color: var(--gold-light); }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 96px 24px 100px;
  text-align: center;
  overflow: hidden;
  background: #05040a;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-cosmic-gold.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,4,8,0.55) 0%, rgba(5,4,8,0.35) 35%, rgba(5,4,8,0.75) 78%, var(--black) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-emblem {
  width: min(280px, 62vw);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 46px var(--gold-glow));
  -webkit-mask-image: radial-gradient(circle, black 52%, rgba(0,0,0,0.75) 66%, transparent 82%);
  mask-image: radial-gradient(circle, black 52%, rgba(0,0,0,0.75) 66%, transparent 82%);
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.tagline-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.tagline-row .rule { width: 28px; height: 1px; background: var(--gold-dim); }
.tagline-row span.label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  white-space: nowrap;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.08;
  color: var(--offwhite);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--body-text);
  max-width: 600px;
  margin-bottom: 40px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  box-shadow: 0 8px 30px -8px var(--gold-glow);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px var(--gold-glow); }
.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover { background: var(--gold); color: var(--black); transform: translateY(-2px); }

.scroll-cue {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--gold), transparent);
  margin-left: auto;
  margin-right: auto;
  opacity: 0.7;
}

/* ---- Scripture band ---- */
.scripture-band {
  padding: 70px 24px;
  text-align: center;
  background: var(--black);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}
.scripture-band blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--offwhite);
  max-width: 760px;
  margin: 0 auto 16px;
  line-height: 1.5;
}
.scripture-band cite {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- Generic section ---- */
.section {
  position: relative;
  padding: 110px 24px;
  text-align: center;
  overflow: hidden;
}
.section-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section.bg-black { background: var(--near-black); }
.section.bg-charcoal { background: var(--charcoal); }
.section.bg-image {
  background-image: linear-gradient(180deg, rgba(6,6,6,0.86), rgba(6,6,6,0.93)), url('assets/section-gold-texture.jpg');
  background-size: cover;
  background-position: center;
}
.divider {
  width: 48px;
  height: 2px;
  margin: 0 auto 22px;
  background: var(--gold);
}
.divider.ruby { background: var(--ruby-light); }
.divider.emerald { background: var(--emerald-light); }
.section .eyebrow { margin-bottom: 18px; }
.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: var(--offwhite);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--body-text);
}
.section p + p { margin-top: 16px; }

/* ---- Media teaser ---- */
.media-card {
  border: 1px solid var(--border-hairline);
  background: linear-gradient(160deg, rgba(201,162,39,0.06), transparent 60%);
  border-radius: 6px;
  padding: 70px 40px;
}
.badge {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid var(--gold);
  border-radius: 30px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 26px;
}

/* ---- Give / Connect CTA ---- */
.give-section {
  background: radial-gradient(ellipse at 50% 20%, rgba(201,162,39,0.14), transparent 60%), var(--black);
}
.give-section h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }

/* ---- Footer ---- */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border-hairline);
  padding: 60px 24px 40px;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; }
.footer-brand img { height: 30px; width: auto; opacity: 0.9; }
.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  padding: 0;
  margin: 0 0 34px;
}
.footer-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--body-text-dim);
  transition: color 0.25s var(--ease);
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 18px;
}
.footer-copy { font-size: 0.75rem; color: var(--muted); }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ---- */
@media (min-width: 720px) {
  .footer-disclaimer { font-size: 0.8rem; }
}

@media (min-width: 900px) {
  .brand .brand-name { display: block; }
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .section { padding: 150px 24px; }
  .hero { padding: 150px 24px 130px; }
}

@media (max-width: 480px) {
  .btn { padding: 15px 24px; font-size: 0.78rem; }
  .section { padding: 80px 20px; }
  .media-card { padding: 48px 24px; }
  .eyebrow { letter-spacing: 0.2em; font-size: 0.72rem; margin-bottom: 20px; }
}
