/* Homepage styles (index.html): tokens, nav, buttons, FAQ, footer, and the live rosary art. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  color-scheme: dark;
  --navy: #1a1f36;
  --navy-deep: #0f1222;
  --navy-light: #252b47;
  --navy-mid: #2e3555;
  --gold: #d4a574;
  --gold-light: #e8c99a;
  --gold-dim: rgba(212,165,116,0.12);
  --gold-border: rgba(212,165,116,0.18);
  --white: #ffffff;
  --text-soft: rgba(255,255,255,0.74);
  --text-muted: rgba(255,255,255,0.46);
  --serif: 'Playfair Display', Georgia, serif;
  --body: 'Crimson Pro', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--navy-deep);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── NAV (from index.html) ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 1.25rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(15,18,34,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212,165,116,0.08);
}
.nav-logo { font-family: var(--serif); font-size: 1.3rem; font-weight: 900; letter-spacing: 5px; color: var(--gold); text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 1px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.6rem; opacity: 0.55; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: -0.75rem; min-width: 200px; background: rgba(15,18,34,0.97);
  border: 1px solid rgba(212,165,116,0.18); border-radius: 6px; padding: 0.75rem 0 0.4rem;
  display: none; flex-direction: column; z-index: 300; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.nav-dropdown:hover .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a { padding: 0.55rem 1.1rem; font-size: 0.72rem; color: rgba(255,255,255,0.45); white-space: nowrap; letter-spacing: 0; }
.nav-dropdown-menu a:hover { color: var(--gold); background: rgba(255,255,255,0.04); }
.nav-dropdown-menu a::after { display: none; }
.nav-drop-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 0.3rem 0; }
.nav-cta {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--navy-deep); background: var(--gold); padding: 0.55rem 1.35rem; border-radius: 5px; text-decoration: none;
}
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.7); border-radius: 2px; transition: all 0.2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-menu {
  display: none; position: fixed; left: 0; right: 0; z-index: 199; background: rgba(15,18,34,0.97);
  border-bottom: 1px solid rgba(212,165,116,0.15); flex-direction: column; padding: 0.5rem 0 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); max-height: calc(100vh - 60px); overflow-y: auto;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a { padding: 0.85rem 1.5rem; font-family: var(--sans); font-size: 0.88rem; font-weight: 500; color: rgba(255,255,255,0.65); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.04); }
.nav-mobile-cta { margin: 0.75rem 1.5rem 0 !important; background: var(--gold); color: var(--navy) !important; border-radius: 4px; text-align: center; font-weight: 600 !important; font-size: 0.75rem !important; letter-spacing: 1.5px; text-transform: uppercase; border-bottom: none !important; }
@media (max-width: 640px) {
  .site-nav { padding: 1rem 1.25rem; }
  .nav-hamburger { display: flex; }
  .nav-links, .nav-cta { display: none !important; }
}

/* ── BUTTONS ── */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 2rem; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 1.2px;
  text-decoration: none; border-radius: 5px; transition: all 0.2s;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); font-weight: 700; text-transform: uppercase; border: 2px solid var(--gold); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(212,165,116,0.28); }
.btn-ghost { background: transparent; color: var(--gold); font-weight: 600; border: 1.5px solid rgba(212,165,116,0.3); }
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-dim); }

/* ── SHARED TYPE ── */
.eyebrow { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 3.5px; text-transform: uppercase; color: var(--gold); }
.link-arrow { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px; color: var(--gold); text-decoration: none; }
.link-arrow:hover { color: var(--gold-light); }

/* ── FAQ ── */
.faq { max-width: 760px; margin: 0 auto; padding: 5rem 1.5rem; }
.faq h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; margin: 0.6rem 0 2rem; }
.faq details { border-top: 1px solid var(--gold-border); }
.faq details:last-of-type { border-bottom: 1px solid var(--gold-border); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2rem 1.15rem 0; position: relative; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0.25rem; top: 1.05rem; color: var(--gold); font-family: var(--sans); font-size: 1.2rem; font-weight: 300; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { font-size: 1.12rem; line-height: 1.65; color: var(--text-soft); padding: 0 0 1.3rem; }
.faq details a { color: var(--gold); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--gold-border); padding: 2.5rem 2rem; max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-family: var(--serif); font-size: 1.3rem; font-weight: 900; letter-spacing: 5px; color: var(--gold); }
.footer-links { display: flex; gap: 0.75rem 2rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-family: var(--sans); font-size: 0.75rem; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-family: var(--sans); font-size: 0.7rem; color: var(--text-muted); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Live rosary art ── */
.rosary-art .chain { fill: none; stroke: rgba(212,165,116,0.32); stroke-width: 1.3; stroke-dasharray: 2.2 2.6; stroke-linecap: round; }
.rosary-art .part { transition: opacity 0.5s ease; }
.rosary-art.praying .part { opacity: 0.38; }
.rosary-art.praying .part.metal { opacity: 0.85; }
.rosary-art .part.done { opacity: 1; }

h1, h2, h3 { text-wrap: balance; }

/* Grouped nav: four groups with a one-line description under each link */
.nav-links .nav-dropdown-menu { min-width: 270px; }
.nav-dropdown-menu a b { display: block; font-weight: 600; color: rgba(255,255,255,0.85); }
.nav-dropdown-menu a small { display: block; font-size: 0.68rem; color: var(--text-muted); margin-top: 0.15rem; }
.nav-dropdown-menu a:hover b { color: var(--gold); }
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
.nav-mobile-group { font-family: var(--sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); padding: 1rem 1.5rem 0.2rem; }
.nav-mobile-menu a { padding: 0.65rem 1.5rem 0.65rem 2rem; }
.nav-mobile-menu { background: #0f1222; }
