/* ==========================================================================
   The Jazzengers – one-page layout: dark textured page, centered black
   wrapper, B/W banner with blue title bar, light/dark boxes in two columns,
   zigzag dividers between rows.
   ========================================================================== */

:root {
  --accent: #2288bd;
  --accent-dark: #1a6d98;
  --hover: #ff0066;
  --page-bg: #343d46;
  --wrapper: #000;
  --noise: #262626;
  --box-light: #f9f9f9;
  --box-dark: #222;
  --border: #3a3a3a;
  --text: #555;
  --text-strong: #333;
  --text-on-dark: #ccc;
  --row-bg: #eee;
  --font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 50px; }
body {
  margin: 0;
  font: 14px/1.6 var(--font);
  color: var(--text);
  /* Subtle woven texture built from gradients (no image needed) */
  background-color: var(--page-bg);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.18) 0 2px, transparent 2px 6px);
}
a { color: var(--text-strong); font-weight: bold; text-decoration: none; }
a:hover { color: var(--hover); }
p { margin: 0 0 12px; text-align: justify; }
h3 { color: #444; font-size: 15px; margin: 18px 0 8px; }

/* ---------- Top menu bar ---------- */
#menu-wrap {
  position: sticky; top: 0; z-index: 20;
  background: var(--box-dark); border-bottom: 1px solid var(--border);
}
.menu {
  max-width: 1000px; margin: 0 auto; min-height: 38px;
  display: flex; align-items: center; gap: 14px; padding: 0 16px;
}
.to-top {
  align-self: flex-start; background: var(--accent); color: #fff; font-size: 11px; line-height: 1.15;
  text-transform: uppercase; text-align: center; padding: 8px 14px 9px; border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.to-top:hover { color: #fff; background: var(--accent-dark); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: #fff; font-size: 11px; text-transform: uppercase; padding: 4px 9px;
  background: #111; border-radius: 2px;
}
.nav a::before { content: '› '; color: var(--accent); font-size: 14px; }
.nav a:hover { background: #000; color: #fff; }
.nav a:hover::before { color: var(--hover); }
.book-now { margin-left: auto; color: #fff; font-weight: bold; font-size: 15px; white-space: nowrap; }
.book-now a { color: #7cc4ea; font-weight: bold; }
.nav-toggle { display: none; background: #111; color: #fff; border: 0; padding: 6px 10px; font: bold 12px var(--font); cursor: pointer; }

/* ---------- Wrapper ---------- */
#wrapper {
  max-width: 960px; margin: 0 auto; background: var(--wrapper);
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  box-shadow: 0 0 20px #000;
}

/* ---------- Banner ---------- */
#banner { position: relative; }
#banner img { display: block; width: 100%; height: 400px; object-fit: cover; object-position: center 55%; filter: grayscale(1) contrast(1.1); }
.banner-title {
  background: linear-gradient(#2a95cc, var(--accent) 60%, var(--accent-dark));
  text-align: center; padding: 6px 16px 10px; border-top: 3px solid #fff;
}
.banner-title h1 {
  margin: 0; color: #fff; text-transform: uppercase; letter-spacing: -1px; line-height: 1;
  font-size: clamp(36px, 9vw, 82px); font-weight: 900; text-shadow: 2px 3px 0 rgba(0,0,0,.35);
}
.banner-title p { margin: 4px 0 0; text-align: center; color: #fff; font-weight: bold; font-size: 14px; text-shadow: 1px 1px 0 rgba(0,0,0,.4); }

/* ---------- Rows & columns ---------- */
.row { display: grid; gap: 20px; padding: 20px 20px 0; }
.row:has(> .col-wide:first-child) { grid-template-columns: 1.55fr 1fr; }
.row:has(> .col-narrow:first-child) { grid-template-columns: 1fr 1.55fr; }
.row-black { background: var(--wrapper); }
.row-noise {
  background-color: var(--noise);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 3px);
}
.row > * { min-width: 0; }

/* Zigzag divider between rows */
.zigzag {
  height: 16px; margin-top: 20px;
  background:
    linear-gradient(135deg, var(--wrapper) 25%, transparent 25%) -8px 0 / 16px 16px,
    linear-gradient(225deg, var(--wrapper) 25%, transparent 25%) -8px 0 / 16px 16px,
    var(--noise);
}

/* ---------- Boxes ---------- */
.box { margin: 0 0 25px; padding: 20px; }
.box-light { background: var(--box-light); }
.box-dark { background: var(--box-dark); border: 1px solid #555; color: var(--text-on-dark); }
.box-dark p { color: var(--text-on-dark); }

.box-title {
  margin: 0 0 14px; border-bottom: 2px solid var(--accent); color: var(--accent);
  font-size: 25px; font-weight: bold; letter-spacing: -1px; line-height: 1.6;
}
.box-title span { display: inline-block; background: var(--accent); color: #fff; padding: 0 8px; }
.box-dark .box-title { color: #fff; }

.info { color: #444; font-size: 15px; font-weight: bold; line-height: 1.3; text-align: left; }
.small { font-size: 12px; margin-top: 10px; }

.rows { list-style: none; padding: 0; margin: 0 0 8px; }
.rows li { background: var(--row-bg); margin: 0 0 4px; padding: 5px 8px; font-size: 13px; }
.rows strong { color: var(--text-strong); }

/* SoundCloud & video */
.soundcloud { width: 100%; height: 300px; border: 0; display: block; }
.video { width: 100%; aspect-ratio: 16 / 9; border: 1px solid #222; display: block; margin-bottom: 12px; }

/* Set list */
.setlist {
  list-style: none; margin: 0; padding: 0 8px 0 0; max-height: 330px; overflow-y: auto;
  font-size: 12px; scrollbar-color: var(--accent) #111;
}
.setlist li { padding: 3px 4px; color: #eee; }
.setlist li span { color: #888; }
.setlist li:hover { color: #7cc4ea; }

/* Venue tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tile {
  background: #fff; color: #222; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 8px; font: bold 16px/1.2 Georgia, 'Times New Roman', serif;
}
/* If the accent tile would sit alone in the last row, let it span both columns */
.tile-accent:nth-child(odd) { grid-column: span 2; aspect-ratio: auto; min-height: 90px; }
.tile-accent { background: var(--accent); color: #fff; font: bold 17px/1.15 var(--font); justify-content: flex-start; align-items: flex-end; text-align: left; }

/* Gigs */
.gig-list { list-style: none; padding: 0; margin: 0 0 6px; }
.gig {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center;
  background: var(--row-bg); margin-bottom: 4px; padding: 6px 8px; font-size: 13px;
}
.gig.has-flyer { grid-template-columns: 56px 150px 1fr auto; }
.gig-list:has(.has-flyer) .gig:not(.has-flyer) { padding-left: calc(56px + 18px); }
.gig-date { color: var(--accent); font-weight: bold; }
.gig-main { display: flex; flex-direction: column; }
.gig-main strong { color: var(--text-strong); }
.gig-main span { color: #777; font-size: 12px; }
.gig-link { font-size: 12px; white-space: nowrap; color: var(--accent); }
.gig-flyer img {
  width: 100%; height: auto; max-height: 76px; object-fit: contain; display: block;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: zoom-in; transition: transform .15s;
}
.gig-flyer:hover img { transform: scale(1.08) rotate(-2deg); }

/* Quotes */
.quote { background: var(--row-bg); padding: 10px; margin: 0 0 10px; font-size: 13px; color: var(--text); }
.quote cite { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: #777; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #2b2b2b; padding: 6px; }
.gallery a { padding: 6px; border: 1px solid #1c1c1c; }
.gallery img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; border: 3px solid #fff; transition: opacity .2s; }
.gallery a:hover img { opacity: .8; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: grid; place-items: center; z-index: 50; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 90vh; border: 6px solid #fff; box-shadow: 0 0 30px #000; }

/* ---------- Contact ---------- */
.row-contact { background: var(--box-dark); padding: 25px 20px 40px; }
.contact-title { color: #fff; font-size: 20px; margin: 0 0 20px; padding-bottom: 4px; border-bottom: 1px solid var(--accent); }
.form { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px 20px; align-items: center; max-width: 760px; }
.form label { color: #777; font-size: 12px; font-weight: bold; padding-left: 10px; }
.form input, .form textarea {
  width: 100%; max-width: 380px; padding: 9px 10px; border: 1px solid #ccc; border-radius: 6px; font: 14px var(--font); background: #fff;
}
.form textarea { max-width: none; align-self: start; }
.form label[for="f-message"] { align-self: start; padding-top: 8px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); }
.form button {
  justify-self: start; background: #444; color: #fff; border: 0; border-radius: 6px; padding: 10px 16px;
  font: bold 14px var(--font); cursor: pointer; box-shadow: 0 1px 0 #555 inset;
}
.form button:hover { background: var(--accent); }
.hp { position: absolute; left: -9999px; }
.alert { padding: 10px 14px; margin-bottom: 16px; font-size: 13px; max-width: 760px; }
.alert.success { background: #234d2b; color: #d7f2db; border: 1px solid #3c8a49; }
.alert.error { background: #5a1f1f; color: #f6d6d6; border: 1px solid #a33; }

/* ---------- Footer ---------- */
#footer-wrap { background: var(--noise); padding: 18px 16px 14px; border-top: 1px solid #111; }
.footer-tags { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 960px; }
.footer-tags li { background: #333; color: #888; font-size: 10px; font-weight: bold; padding: 3px 7px; border-radius: 3px; }
.footer-tags a { color: #aaa; }
.copyright { text-align: center; color: #666; font-size: 11px; margin: 12px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .row:has(> .col-wide:first-child), .row:has(> .col-narrow:first-child) { grid-template-columns: 1fr; }
  .row { padding: 16px 16px 0; gap: 0; }
  .book-now { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--box-dark); padding: 8px 16px; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 10px; font-size: 13px; }
  #banner img { height: 240px; }
  .gig, .gig.has-flyer { grid-template-columns: 1fr; gap: 2px; }
  .gig.has-flyer { grid-template-columns: 56px 1fr; column-gap: 12px; }
  .gig.has-flyer .gig-flyer { grid-row: span 3; }
  .gig-list:has(.has-flyer) .gig:not(.has-flyer) { padding-left: 8px; }
  .form { grid-template-columns: 1fr; gap: 6px; }
  .form label { padding-left: 0; margin-top: 6px; }
  .form input { max-width: none; }
  p { text-align: left; }
}
