/* ===========================================================================
   Trackside Rehearsal Studios — shared stylesheet  (v1.1: light theme)
   Clean, minimal light look matching the original site: white background,
   charcoal text, black buttons, with a warm gold accent used sparingly.
   The hero keeps a dark photographic slideshow with white text on top.
   =========================================================================== */

:root {
  --bg:        #ffffff;
  --surface:   #ffffff;
  --surface-2: #f5f5f3;
  --border:    #e6e6e2;
  --text:      #1a1a1a;
  --text-dim:  #6a6a6a;
  --accent:    #b5852f;   /* warm gold, used sparingly */
  --ink:       #1a1a1a;   /* primary button / strong elements */
  --ink-dk:    #000000;
  --danger:    #c0392b;
  --success:   #2e7d52;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 6px 24px rgba(0,0,0,.08);
  --maxw:      1140px;
  --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* --- Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .3px; color: var(--text); text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active-link { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent;
  transition: transform .05s ease, background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* --- Layout helpers -------------------------------------------------------- */
.section { padding: 60px 0; }
.page-title { font-size: clamp(28px, 5vw, 42px); margin: 0 0 8px; letter-spacing: -.5px; }
.page-sub { color: var(--text-dim); margin: 0 0 28px; max-width: 660px; }
.muted { color: var(--text-dim); }
.center { text-align: center; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.spacer { flex: 1; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 13px; }

/* --- Cards / panels -------------------------------------------------------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.card a { text-decoration: none; color: inherit; }
.card .thumb { aspect-ratio: 4/3; background: var(--surface-2); display: block; object-fit: cover; width: 100%; }
.card .thumb-empty { display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 13px; }
.card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .title { font-weight: 700; font-size: 16px; margin: 0; }
.card .price { color: var(--text); font-weight: 800; font-size: 18px; }
.card .meta { color: var(--text-dim); font-size: 13px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--border); color: var(--text-dim); }
.badge.pending  { color: #946200; border-color: #e6c577; background: #fdf6e6; }
.badge.approved { color: var(--success); border-color: #a9d8bf; background: #eef8f2; }
.badge.rejected { color: var(--danger); border-color: #e6b3ad; background: #fbeeec; }
.badge.sold     { color: var(--text-dim); }

/* --- Forms ----------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--border); color: var(--text); font-size: 15px; font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); }
.textarea { min-height: 120px; resize: vertical; }
.form-narrow { max-width: 460px; margin: 0 auto; }
.help { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* --- Alerts ---------------------------------------------------------------- */
.alert { padding: 12px 15px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; display: none; }
.alert.show { display: block; }
.alert-error   { background: #fbeeec; border: 1px solid #e6b3ad; color: #8c2c20; }
.alert-success { background: #eef8f2; border: 1px solid #a9d8bf; color: #1e5d3b; }

/* --- Tabs ------------------------------------------------------------------ */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab { padding: 10px 16px; cursor: pointer; color: var(--text-dim); font-weight: 600; border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-bottom-color: var(--ink); }

/* --- Gallery --------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 10px; }
.gallery img { border-radius: var(--radius-sm); aspect-ratio: 1; object-fit: cover; }

/* --- Footer ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--text-dim); font-size: 14px; margin-top: 40px; background: var(--surface-2); }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.pay-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pay-row img { height: 26px; width: auto; border: 1px solid var(--border); border-radius: 4px; background: #fff; }

/* --- Utility --------------------------------------------------------------- */
.hidden { display: none !important; }
.loading { text-align: center; color: var(--text-dim); padding: 40px 0; }

/* --- HERO slideshow -------------------------------------------------------- */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; background: #111; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease-in-out; will-change: opacity;
}
.hero-slide.show { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(15,15,15,.55), rgba(15,15,15,.78)); }
.hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; padding: 90px 20px; text-align: center; color: #fff; }
.hero-inner .logo { width: 120px; height: auto; margin: 0 auto 22px; filter: brightness(0) invert(1); }
.hero-inner h1 { font-size: clamp(36px, 7vw, 64px); margin: 0 0 14px; letter-spacing: -1px; line-height: 1.04; color: #fff; }
.hero-inner p { font-size: clamp(16px, 2.4vw, 20px); color: #ededed; margin: 0 auto 30px; max-width: 580px; }
.hero-inner .eyebrow { color: var(--accent); }
.hero-inner .row { justify-content: center; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 8px 0; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 20px; }
  .nav-toggle { display: block; }
}
