/* theme.css — Rich Gunderlock — premium live-instrument-for-events brand.
 *
 * Design intent (from build brief): "looks expensive", video-forward, editorial.
 * Midnight base + warm brass accent + cream text. Serif display (Playfair
 * Display) over a clean grotesque body (Inter). Generous whitespace, hairline
 * brass rules, uppercase letter-spaced overlines. Structure is native Bootstrap
 * 5; this file carries the look. Fonts are linked in base.html head_extra.
 */

:root {
  /* --- Brand palette --- */
  --ink:        #0d0e11;   /* page base — near-black, warm */
  --ink-2:      #14161b;   /* raised panels / alt sections */
  --ink-3:      #1c1f26;   /* cards, form fields */
  --brass:      #c6a15b;   /* primary accent — warm gold */
  --brass-soft: #d9bd86;   /* hover / lighter brass */
  --cream:      #f4f1ea;   /* primary text on dark */
  --cream-dim:  #b7b2a8;   /* secondary text on dark */
  --line:       rgba(198,161,91,.28);  /* hairline brass rule */
  --line-soft:  rgba(244,241,234,.10);

  --brand-primary: var(--brass);
  --brand-dark:    var(--ink);
  --brand-light:   var(--cream);
  --brand-accent:  var(--brass);

  /* --- Typography --- */
  --font-base:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-size-base: 1.05rem;

  /* Map onto Bootstrap CSS vars */
  --bs-primary: var(--brass);
  --bs-body-bg: var(--ink);
  --bs-body-color: var(--cream);
  --bs-body-font-family: var(--font-base);
  --bs-body-font-size: var(--font-size-base);
  --bs-emphasis-color: var(--cream);
  --bs-border-color: var(--line-soft);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-base);
  background: var(--ink);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: .005em;
  line-height: 1.12;
}

.display-serif { font-family: var(--font-heading); font-weight: 600; }

p { color: var(--cream-dim); }
strong { color: var(--cream); }

.lead { color: var(--cream); font-weight: 400; }

a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--brass-soft); }

/* Section rhythm */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.bg-ink   { background: var(--ink); }
.bg-ink-2 { background: var(--ink-2); }
.bg-ink-3 { background: var(--ink-3); }

/* Headings on dark inherit cream by default; keep the starter safety net too. */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6 {
  color: #fff;
}

/* ---------- Overline / eyebrow label ---------- */
.overline {
  font-family: var(--font-base);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--brass);
  display: inline-block;
}
.overline::before {
  content: "";
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  background: var(--brass);
  vertical-align: middle;
  margin-right: .8rem;
  opacity: .8;
}
.overline.no-rule::before { display: none; }

.text-brass { color: var(--brass) !important; }
.text-cream-dim { color: var(--cream-dim) !important; }
.hr-brass { border: 0; height: 1px; background: var(--line); opacity: 1; }

/* ---------- Buttons ---------- */
.btn { border-radius: 2px; font-weight: 600; letter-spacing: .02em; padding: .8rem 1.6rem; }
.btn-lg { padding: 1rem 2.1rem; }

.btn-primary {
  --bs-btn-bg: var(--brass);
  --bs-btn-border-color: var(--brass);
  --bs-btn-color: #14110a;
  --bs-btn-hover-bg: var(--brass-soft);
  --bs-btn-hover-border-color: var(--brass-soft);
  --bs-btn-hover-color: #14110a;
  --bs-btn-active-bg: var(--brass-soft);
  --bs-btn-active-color: #14110a;
}
.btn-outline-light {
  --bs-btn-color: var(--cream);
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-bg: rgba(244,241,234,.06);
  --bs-btn-hover-border-color: var(--brass);
  --bs-btn-hover-color: var(--cream);
}
.btn-brass-ghost {
  background: transparent;
  border: 1px solid var(--brass);
  color: var(--brass);
}
.btn-brass-ghost:hover { background: var(--brass); color: #14110a; }

/* ---------- Navbar ---------- */
.site-navbar {
  background: rgba(13,14,17,.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  padding-top: .9rem;
  padding-bottom: .9rem;
}
.site-navbar .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--cream);
}
.site-navbar .navbar-brand .brand-mark { color: var(--brass); }
.site-navbar .nav-link {
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  font-weight: 600;
  padding: .5rem .9rem;
  text-align: center;
}
.site-navbar .nav-link:hover { color: var(--cream); }
.site-navbar .nav-link.active { color: var(--brass); }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c6a15b' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (min-width: 1200px) {     /* matches navbar-expand-xl */
  .site-navbar .nav-link { white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(13,14,17,.55) 0%, rgba(13,14,17,.35) 40%, rgba(13,14,17,.92) 100%),
    linear-gradient(90deg, rgba(13,14,17,.78) 0%, rgba(13,14,17,.30) 70%);
}
.hero__inner { position: relative; z-index: 2; }

/* Muted autoplay background loop (YouTube). Sits above the poster <img>, below the
   scrim. Scaled to cover the hero box; pointer-events off so the CTAs stay clickable. */
.hero__video { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.hero__video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw;             /* 16:9 sized by width */
  min-height: 100vh; min-width: 177.78vh;    /* …and cover by height */
  border: 0; pointer-events: none;
}
/* Phones: skip the autoplay video (data + iOS quirks) — the poster <img> shows. */
@media (max-width: 767.98px) { .hero__video { display: none; } }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.04;
  margin-bottom: 1.1rem;
}
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 40ch; }

/* Placeholder media block when no hero video/photo exists yet */
.media-placeholder {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 100% at 50% 0%, #23262e 0%, var(--ink-2) 55%, var(--ink) 100%);
  border: 1px solid var(--line-soft);
  color: var(--cream-dim);
  text-align: center;
}
.media-placeholder .ph-icon { font-size: 2.4rem; color: var(--brass); }

/* ---------- Cards / panels ---------- */
.card {
  background: var(--ink-3);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--cream);
}
.card .card-title { color: var(--cream); }
.card p { color: var(--cream-dim); }

.feature-card {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 2rem;
  height: 100%;
  transition: border-color .25s ease, transform .25s ease;
}
.feature-card:hover { border-color: var(--line); transform: translateY(-3px); }
.feature-card .fc-icon { color: var(--brass); font-size: 1.6rem; margin-bottom: 1rem; display: block; }
.feature-card h3 { font-size: 1.35rem; margin-bottom: .6rem; }

/* Price / package tier card */
.tier {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 2rem;
  height: 100%;
}
.tier.is-flagship { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass) inset; }
.tier .tier-from { font-family: var(--font-heading); color: var(--brass); font-size: 1.9rem; }
.tier .tier-name { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--cream-dim); }

/* Numbered step */
.step-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--brass);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 3rem; height: 3rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Forms ---------- */
.form-control, .form-select {
  background: var(--ink-3);
  border: 1px solid var(--line-soft);
  color: var(--cream);
  border-radius: 2px;
  padding: .8rem 1rem;
}
.form-control::placeholder { color: #7d796f; }
.form-control:focus, .form-select:focus {
  background: var(--ink-3);
  color: var(--cream);
  border-color: var(--brass);
  box-shadow: 0 0 0 .15rem rgba(198,161,91,.18);
}
.form-label { color: var(--cream); font-weight: 600; font-size: .9rem; letter-spacing: .02em; }
.form-select option { color: #14110a; }

/* ---------- Links list (/links — Linktree replacement) ---------- */
.link-stack { max-width: 460px; margin: 0 auto; }
.link-btn {
  display: flex; align-items: center; gap: .9rem;
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1.05rem 1.3rem;
  color: var(--cream);
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: .85rem;
  transition: border-color .2s ease, background .2s ease;
}
.link-btn:hover { border-color: var(--brass); background: var(--ink-3); color: var(--cream); }
.link-btn i { color: var(--brass); font-size: 1.2rem; width: 1.4rem; text-align: center; }
.link-btn .link-sub { display: block; font-weight: 400; font-size: .8rem; color: var(--cream-dim); letter-spacing: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #090a0c;
  color: var(--cream-dim);
  border-top: 1px solid var(--line-soft);
  padding-top: 3.5rem;
}
.site-footer h5 { color: var(--cream); font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; font-family: var(--font-base); margin-bottom: 1.1rem; }
.site-footer a:not(.btn) { color: var(--cream-dim); }
.site-footer a:not(.btn):hover, .site-footer a:not(.btn):focus { color: var(--brass); }
.site-footer .footer-brand { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .14em; color: var(--cream); font-size: 1.1rem; }
.site-footer .social a { font-size: 1.2rem; margin-right: 1rem; }
.site-footer .btn-link { color: var(--cream); }

/* ---------- Embeds ---------- */
.ratio iframe { border: 0; border-radius: 4px; }
.embed-frame { border: 1px solid var(--line-soft); border-radius: 6px; overflow: hidden; }

/* ---------- Image-fit helpers (kept from scaffold — do not remove) ---------- */
picture { display: contents; }
.ratio > picture > img,
.ratio > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
img { max-width: 100%; height: auto; }
.object-cover   { object-fit: cover;   }
.object-contain { object-fit: contain; background: transparent; }
.card img, .feature-card img { object-fit: contain; max-width: 100%; }
.photo-frame { background: transparent; border-radius: 4px; overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame img.object-contain { object-fit: contain; }
.photo-frame--square { aspect-ratio: 1 / 1; }
@media (max-width: 767.98px) {
  .photo-frame:not(.photo-frame--square) { height: auto !important; aspect-ratio: 4 / 3; }
}

/* ---------- Misc ---------- */
.divider-dot { color: var(--brass); padding: 0 .6rem; }
.list-check { list-style: none; padding-left: 0; }
.list-check li { position: relative; padding-left: 1.8rem; margin-bottom: .7rem; color: var(--cream-dim); }
.list-check li::before {
  content: "\2014";  /* em dash */
  position: absolute; left: 0; color: var(--brass); font-weight: 700;
}
.eyebrow-quote { font-family: var(--font-heading); font-style: italic; font-size: clamp(1.4rem,2.6vw,2.1rem); color: var(--cream); line-height: 1.4; }
