/* ==========================================================================
   The Grind — site-wide styles
   Mobile-first. Breakpoints: 600px (tablet), 900px (desktop)
   ========================================================================== */

:root {
  --bg: #131110;
  --bg-alt: #1c1815;
  --bg-card: #201b17;
  --text: #f3ede3;
  --text-muted: #b7ac9d;
  --gold: #c9a227;
  --gold-bright: #e3bc42;
  --red: #8a2c2c;
  --red-bright: #b23a3a;
  --border: #34291d;
  --max-width: 1120px;
  --radius: 4px;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-bright);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 8vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--gold);
  color: #14110f;
  padding: 0.5rem 1rem;
  z-index: 200;
  transition: top 0.15s ease;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #14110f;
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--gold-bright);
  color: #14110f;
}

.btn-outline {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: transparent;
}

.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--gold);
  color: #14110f;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 17, 16, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.logo span {
  color: var(--gold-bright);
}

.nav-toggle {
  background: none;
  border: 2px solid var(--gold);
  color: var(--gold-bright);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold-bright);
  position: relative;
}

.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--gold-bright);
}

.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after { top: 6px; }

.main-nav {
  position: fixed;
  top: 68px;
  right: 0;
  left: 30%;
  /* .site-header uses backdrop-filter, which makes it the containing block for
     fixed-position descendants — so `bottom: 0` would resolve against the header's
     own short height, not the viewport. Use an explicit viewport-relative height instead. */
  height: calc(100vh - 68px);
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.main-nav.is-open {
  transform: translateX(0);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-nav a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.15rem;
  color: var(--text);
}

.main-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .main-nav {
    position: static;
    inset: auto;
    height: auto;
    background: none;
    border: none;
    padding: 0;
    transform: none;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 2rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 162, 39, 0.16), transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(138, 44, 44, 0.22), transparent 50%),
    var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 48px
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.eyebrow {
  font-family: var(--font-head);
  color: var(--gold-bright);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.hero p.lede {
  max-width: 46ch;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.page-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(201, 162, 39, 0.14), transparent 55%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

/* ---------- Sections ---------- */

section {
  padding: 4rem 0;
}

section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

/* ---------- Instrument / feature grid ---------- */

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card .icon {
  width: 36px;
  height: 36px;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}

/* ---------- Shows ---------- */

.show-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.show-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.show-date {
  font-family: var(--font-head);
  color: var(--gold-bright);
  min-width: 9rem;
  font-size: 1.05rem;
}

.show-details {
  flex: 1 1 260px;
}

.show-venue {
  font-weight: 600;
  font-size: 1.05rem;
}

.show-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.show-empty {
  padding: 2rem 0;
  color: var(--text-muted);
}

/* ---------- Music embeds ---------- */

.embed-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.embed-wrap iframe {
  width: 100%;
  border: 0;
  display: block;
}

/* ---------- Booking / contact form ---------- */

.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

form.booking-form {
  display: grid;
  gap: 1.1rem;
}

.field label {
  display: block;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.field-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 600px) {
  .field-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-info-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-list .label {
  display: block;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.2rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-grid h4 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.social-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.social-links a {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.8rem;
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Utility banner ---------- */

.cta-banner {
  background: linear-gradient(120deg, rgba(138,44,44,0.35), rgba(201,162,39,0.18));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-banner .container {
  max-width: 760px;
}
