/* =========================================================================
   ADONAI — styles.css
   Static site for the ADONAI music group (Udruga „Ima Nade").
   Dark, poster-forward concert aesthetic. Mobile-first.
   Fonts: Oswald (display) + Inter (body), self-hosted woff2 (GDPR-clean).
   ========================================================================= */

/* ------------------------------- Fonts ---------------------------------- */
/* Oswald — display / headings */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/oswald-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/oswald-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/oswald-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/oswald-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter — body */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------- Tokens --------------------------------- */
:root {
  --bg:         #0e0e11;
  --bg-alt:     #131318;
  --surface:    #1a1a21;
  --surface-2:  #20202a;
  --border:     rgba(255, 255, 255, 0.10);
  --border-2:   rgba(255, 255, 255, 0.16);
  --text:       #f3f1ea;
  --muted:      #a8a6b0;
  --muted-2:    #7d7b86;
  --gold:       #dda94e;
  --gold-soft:  #ecc885;
  --gold-ink:   #14110a;

  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap:      1160px;
  --wrap-narrow: 760px;
  --radius:    14px;
  --radius-sm: 10px;

  --header-h:  68px;
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* -------------------------- Accessibility utils ------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  transform: translateY(-150%);
  background: var(--gold);
  color: var(--gold-ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------- Layout --------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: var(--wrap-narrow); }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.kicker {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .82rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(2rem, 6vw, 3rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 28px; }
.lead { font-size: 1.18rem; color: #e6e4dc; }
.note { color: var(--muted-2); font-size: .9rem; margin: 4px 0 18px; }
.note code, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85em;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 5px;
}
.subhead {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 1.15rem;
  margin: 40px 0 6px;
  color: var(--text);
}

/* ------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
/* Outlined pill — the reference's signature "Listen" button */
.btn-pill {
  border-radius: 999px;
  padding: 14px 30px;
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-pill:hover { background: var(--gold); color: var(--gold-ink); }
.btn-pill-icon { font-size: .78em; transform: translateY(.5px); }

/* Solid accent button — nav "Doniraj", Donate */
.btn-solid {
  border-radius: 999px;
  padding: 12px 26px;
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold);
}
.btn-solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* Ghost / text button */
.btn-ghost {
  border-radius: 999px;
  padding: 14px 22px;
  color: var(--text);
  border-color: var(--border-2);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text); }

.btn-mini {
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .82rem;
  border-color: var(--gold);
  color: var(--gold);
}
.btn-mini:hover { background: var(--gold); color: var(--gold-ink); }

/* aria-disabled stubs (links awaiting a real destination) */
.btn[aria-disabled="true"] { opacity: .78; cursor: not-allowed; }

/* ------------------------------- Header --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(14, 14, 17, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .14em;
  color: var(--text);
}
.brand-sub {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: color .15s ease;
}
.nav-menu a:hover { color: var(--text); }
.nav-menu .nav-cta { color: var(--gold-ink); }
.nav-menu .nav-cta:hover { color: var(--gold-ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

/* ------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  padding: 48px 0 64px;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(221, 169, 78, 0.16), rgba(221, 169, 78, 0) 55%),
    linear-gradient(180deg, #101014 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  /* minmax(0, 1fr) forces the track minimum to 0 so the poster image's
     intrinsic width can't blow the column out past the viewport. */
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.hero-text, .hero-poster { min-width: 0; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .8rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(4.5rem, 22vw, 9rem);
  letter-spacing: .04em;
  margin: 0 0 12px;
  line-height: .92;
}
.hero-tagline {
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  color: #e6e4dc;
  max-width: 22ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-poster {
  order: -1;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.hero-poster img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}

/* ------------------------------- Dates ---------------------------------- */
.dates {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: .98rem;
}
.dates th, .dates td {
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.dates thead th {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--muted-2);
}
.dates-date {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold-soft);
  white-space: nowrap;
}
.dates-action { text-align: right; white-space: nowrap; }
.tag {
  display: inline-block;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ----------------------------- Tracklist -------------------------------- */
.tracklist { display: grid; gap: 14px; margin-top: 6px; }
.track {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.track-meta { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.track-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: .06em;
}
.track-title { font-weight: 600; }
.track-flag {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted-2);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 6px;
}
.track audio { width: 100%; height: 40px; }

/* ------------------------------ Gallery --------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.gallery li { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease;
}
.gallery img:hover { transform: scale(1.02); border-color: var(--border-2); }

/* ------------------------- Contact / Donate ----------------------------- */
.contact-card, .donate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  margin-top: 6px;
}
.contact-org { font-weight: 600; margin-bottom: 18px; }
.contact-fine, .donate-fine { color: var(--muted-2); font-size: .9rem; margin-top: 16px; }
.donate-text { color: #e6e4dc; margin-bottom: 22px; max-width: 54ch; }

/* ------------------------------- Footer --------------------------------- */
.site-footer {
  background: #0a0a0d;
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner { display: flex; flex-direction: column; gap: 20px; }
.footer-brand { display: flex; flex-direction: column; line-height: 1; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px 24px; }
.footer-nav a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { color: var(--muted-2); font-size: .86rem; }

/* ============================ Breakpoints =============================== */

/* --- 700px+ : two-up gallery grows, hero side-by-side prep --- */
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* --- 860px+ : desktop hero, full nav --- */
@media (min-width: 860px) {
  .section { padding: 88px 0; }
  .hero { padding: 72px 0 88px; }
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
  }
  .hero-text { order: 0; }
  .hero-poster { order: 0; max-width: 460px; margin: 0; justify-self: end; }
  .hero-tagline { max-width: 26ch; }
}

/* --- Mobile nav (below 860px) --- */
@media (max-width: 859px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(14, 14, 17, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px 22px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-menu li { border-bottom: 1px solid var(--border); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a { display: block; padding: 15px 4px; font-size: 1.05rem; }
  .nav-menu .nav-cta {
    display: inline-flex;
    margin-top: 16px;
    padding: 12px 26px;
  }
  /* animate hamburger into an X when open */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --- Below 600px: stack the concert table into cards (avoids horizontal overflow) --- */
@media (max-width: 599px) {
  /* Column headers are redundant once each row reads top-to-bottom as a card */
  .dates thead {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
  }
  .dates, .dates tbody, .dates tr, .dates td { display: block; width: 100%; }
  .dates tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-top: 12px;
  }
  .dates td { padding: 3px 0; border-bottom: 0; white-space: normal; }
  .dates-date { font-size: 1.05rem; margin-bottom: 4px; }
  .dates-action { text-align: left; margin-top: 12px; }
}

/* --- 1024px+ : larger gallery --- */
@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* --------------------- Reduced motion preference ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .gallery img:hover { transform: none; }
}
