/* ──────────────────────────────────────────────────────────────────
   Sedona Star Show — Red Rock Twilight
   ────────────────────────────────────────────────────────────────── */

:root {
  /* Red Rock Twilight palette — default */
  --c-night: #07111F;
  --c-twilight: #182A46;
  --c-rock: #B65A3C;
  --c-clay: #D47A4A;
  --c-sand: #E8CFA8;
  --c-juniper: #556B52;
  --c-moon: #F4D27A;
  --c-star: #F8F4E8;

  /* Derived */
  --c-ink: #0B0F1A;
  --c-paper: #FAF6EC;
  --c-paper-2: #F2EAD6;
  --c-line: rgba(11, 15, 26, 0.12);
  --c-line-soft: rgba(11, 15, 26, 0.06);
  --c-line-night: rgba(248, 244, 232, 0.18);
  --c-mute: rgba(11, 15, 26, 0.62);
  --c-mute-night: rgba(248, 244, 232, 0.66);

  /* Type — distinctive pairing */
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-body: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --f-ui: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Scale */
  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 18px;
  --r-xl: 28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

/* ── Type ───────────────────────────────────────────────── */

.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

.display em {
  font-style: italic;
  font-weight: 300;
}

.eyebrow {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mute);
}

.eyebrow.on-night { color: rgba(248, 244, 232, 0.7); }

.lead {
  font-family: var(--f-body);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
  font-weight: 300;
}

/* ── Layout helpers ─────────────────────────────────────── */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.wrap-wide {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: clamp(56px, 8vw, 120px) 0; }

.section--tight { padding: clamp(40px, 5vw, 72px) 0; }

.rule {
  height: 1px;
  background: var(--c-line);
  border: 0;
  margin: 0;
}

.rule--night { background: var(--c-line-night); }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-rock);
  color: var(--c-star);
}
.btn--primary:hover { background: var(--c-clay); }

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn--ghost:hover { border-color: var(--c-ink); }

.btn--ghost-night {
  background: transparent;
  color: var(--c-star);
  border-color: rgba(248, 244, 232, 0.32);
}
.btn--ghost-night:hover { border-color: var(--c-star); background: rgba(248, 244, 232, 0.06); }

.btn--moon {
  background: var(--c-moon);
  color: var(--c-night);
}
.btn--moon:hover { background: #FFE39A; }

.btn--sm { padding: 9px 16px; font-size: 12.5px; }

/* ── Pills / tags ───────────────────────────────────────── */

.tag {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-mute);
}

.tag--solid {
  background: var(--c-ink);
  color: var(--c-star);
  border-color: transparent;
}

.tag--moon {
  background: rgba(244, 210, 122, 0.18);
  color: #8b6a1f;
  border-color: rgba(244, 210, 122, 0.5);
}

.tag--rock {
  background: rgba(182, 90, 60, 0.12);
  color: var(--c-rock);
  border-color: rgba(182, 90, 60, 0.32);
}

.tag--juniper {
  background: rgba(85, 107, 82, 0.12);
  color: var(--c-juniper);
  border-color: rgba(85, 107, 82, 0.32);
}

.tag--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* ── Cards ──────────────────────────────────────────────── */

.card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card--ink {
  background: var(--c-ink);
  color: var(--c-star);
  border-color: transparent;
}

.card:hover { border-color: rgba(11, 15, 26, 0.28); }

/* ── Header ─────────────────────────────────────────────── */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  background: rgba(250, 246, 236, 0.78);
  border-bottom: 1px solid var(--c-line-soft);
}

.hdr--night {
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid var(--c-line-night);
  color: var(--c-star);
}

.hdr-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hdr-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 21px;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.hdr-logo small {
  font-family: var(--f-ui);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  display: block;
  line-height: 1;
}

.hdr-logo-stack { display: flex; flex-direction: column; gap: 3px; line-height: 1; }

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: var(--f-ui);
  font-size: 13.5px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  opacity: 0.78;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.nav a:hover { opacity: 1; background: rgba(0,0,0,0.04); }
.hdr--night .nav a:hover { background: rgba(255,255,255,0.06); }
.nav a.is-active { opacity: 1; font-weight: 600; }

@media (max-width: 880px) {
  .nav { display: none; }
}

.hdr-actions { display: flex; gap: 8px; align-items: center; }

/* ── Mobile sticky CTA ──────────────────────────────────── */

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 60;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--c-rock);
  color: var(--c-star);
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  border: 0;
  box-shadow: 0 12px 36px rgba(11, 15, 26, 0.35);
  letter-spacing: 0.02em;
}

@media (max-width: 880px) {
  .mobile-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
}

/* ── Hamburger / mobile menu ────────────────────────────── */

.hamburger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: transparent;
  align-items: center; justify-content: center;
}
.hdr--night .hamburger { border-color: var(--c-line-night); color: var(--c-star); }

@media (max-width: 880px) {
  .hamburger { display: inline-flex; }
}

.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--c-paper);
  display: flex;
  flex-direction: column;
}

.mobile-sheet .nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 24px;
  font-size: 24px;
  font-family: var(--f-display);
}

/* ── Footer ─────────────────────────────────────────────── */

.ftr {
  background: var(--c-ink);
  color: var(--c-star);
  padding: 80px 0 36px;
}

.ftr-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px 32px;
}

@media (max-width: 880px) {
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}

.ftr h5 {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 244, 232, 0.5);
  margin: 0 0 16px;
}

.ftr ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ftr ul a { opacity: 0.85; font-family: var(--f-ui); font-size: 14px; }
.ftr ul a:hover { opacity: 1; color: var(--c-moon); }

.ftr-legal {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line-night);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--f-ui);
  font-size: 12px;
  color: rgba(248, 244, 232, 0.5);
}

/* ── Reticle (decorative crosshair) ─────────────────────── */

.reticle-wrap { position: relative; }

/* ── Generic image placeholder ──────────────────────────── */

.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1d1a, #4a2f24 60%, #1a1410);
  border-radius: var(--r-lg);
  color: rgba(248, 244, 232, 0.5);
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ph-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.45);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-family: var(--f-ui);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(248, 244, 232, 0.86);
  text-transform: uppercase;
}

/* ── Modal ──────────────────────────────────────────────── */

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.modal {
  background: var(--c-paper);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}

.modal-hd {
  padding: 22px 28px;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 32px 36px;
  overflow-y: auto;
  flex: 1;
}

.modal-foot {
  padding: 18px 28px;
  border-top: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* ── FAQ accordion ──────────────────────────────────────── */

.faq-item {
  border-bottom: 1px solid var(--c-line);
}

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 22px 0;
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: inherit;
}

.faq-a {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-mute);
  max-width: 720px;
  padding-bottom: 24px;
  font-weight: 300;
}

/* ── Forms ──────────────────────────────────────────────── */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--f-ui);
}

.field label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-mute);
}

.field input, .field select, .field textarea {
  font-family: var(--f-ui);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-ink);
}

/* ── Stars (subtle, twinkling) ──────────────────────────── */

@keyframes twinkle {
  0%, 100% { opacity: var(--star-max, 0.9); }
  50% { opacity: var(--star-min, 0.35); }
}

.star {
  position: absolute;
  background: var(--c-star);
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .star { animation: none; }
}

/* ── Utility ────────────────────────────────────────────── */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.stack { display: flex; flex-direction: column; }
.row { display: flex; }
.center { display: flex; align-items: center; justify-content: center; }

.muted { color: var(--c-mute); }
.muted-night { color: var(--c-mute-night); }

.divider-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  display: inline-block;
  margin: 0 10px;
  vertical-align: middle;
}

/* Page transition */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page { animation: pageIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* Number ticker style */
.num {
  font-family: var(--f-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Star map / constellation small SVG strokes */
.constellation-line { stroke: var(--c-star); stroke-width: 0.6; opacity: 0.35; fill: none; }
.constellation-dot  { fill: var(--c-star); }
