/* Offroad Ramblers - colours and fonts from the original demo, fonts self-hosted */
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/lato-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/lato-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/lato-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/merriweather.woff2') format('woff2'); }

:root {
  --grey: #cacaca;
  --grey-light: #dcdcdc;
  --yellow: #ffb400;
  --button: #eba600;
  --dark: #373f43;
  --darker: #262c2f;
  --text: #4a4a4a;
  --input: #f1f1f1;
  --input-border: #8d8d8d;
  --wrap: 1100px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  background: var(--grey);
  color: var(--text);
  font: 17px/1.6 Lato, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Merriweather, serif;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 .5em;
  color: #2b2b2b;
}
h1 { font-size: clamp(32px, 4.5vw, 54px); }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: 21px; }
p { margin: 0 0 .9em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
blockquote { margin: 1.4em 0 0; font: italic 19px/1.5 Lato, sans-serif; }
code, pre { font-family: Consolas, monospace; font-size: 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.centered { text-align: center; }
.lead { font-size: 21px; line-height: 1.55; color: #2b2b2b; }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(202, 202, 202, .94);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 18px rgba(0, 0, 0, .15); }
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font: 28px Merriweather, serif;
  color: #2b2b2b;
}
.brand img { width: 80px; transition: width .3s; }
.scrolled .brand img { width: 56px; }
.menu { display: flex; flex-wrap: wrap; gap: 2px; }
.menu a {
  padding: 6px 12px;
  text-decoration: none;
  font-size: 16px;
  border-radius: 3px;
  position: relative;
}
.menu a::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--button);
  transform: scaleX(0);
  transition: transform .25s;
}
.menu a:hover::after { transform: scaleX(1); }
.menu a.active { background: var(--dark); color: #fff; }
.menu a.active::after { display: none; }
.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--button);
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 11px 24px;
  font: 700 16px/1.2 Lato, sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.btn-dark { background: var(--dark); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; }

/* Strips */
.strip { padding: 80px 0; }
.strip-yellow { background: var(--yellow); }
.strip-yellow .lead, .strip-yellow h2 { color: #1e1e1e; }
.strip-dark { background: var(--dark); color: #eee; }
.strip-dark h2 { color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-wide { grid-template-columns: 3fr 2fr; align-items: start; }
.split-form { grid-template-columns: 2fr 3fr; align-items: start; }

/* Page title band on sub pages */
.page-hero {
  background: var(--yellow);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -60px; top: -40px;
  width: 300px; height: 300px;
  background: url('/img/logo.png') center / contain no-repeat;
  opacity: .12;
  transform: rotate(-12deg);
}
.page-hero h1 { margin: 0; color: #1e1e1e; }
.page-hero p { margin: 6px 0 0; font: 19px Merriweather, serif; color: #3b3b3b; }

/* Home hero */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* heads sit at the top of the photo; crop from the bottom */
  animation: hero-zoom 18s ease-out both;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 14, 6, .9) 0%, rgba(18, 14, 6, .45) 40%, rgba(18, 14, 6, 0) 70%);
}
.hero-content { position: relative; z-index: 1; padding-bottom: 64px; width: 100%; }
.hero h1 { color: #fff; max-width: 17ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}
.tagline { font: clamp(20px, 2.2vw, 28px) Merriweather, serif; color: var(--yellow); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Next gig card, overlapping the hero */
.next-gig { position: relative; z-index: 2; margin-top: -40px; }
.next-gig-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 28px;
}
.next-gig-text { flex: 1; }
.next-gig-text h3 { margin: 0 0 2px; }
.next-gig-text p { margin: 0; }
.label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--button); }

.date-badge {
  flex: none;
  width: 72px;
  text-align: center;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 10px 0 8px;
  line-height: 1;
}
.date-badge .day { display: block; font: 700 30px Merriweather, serif; }
.date-badge .month { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }

/* Discover tiles on a photo */
.discover { position: relative; padding: 110px 0; overflow: hidden; background: var(--darker); }
.discover-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.discover-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 170px;
  justify-content: flex-end;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(20, 20, 20, .55);
  backdrop-filter: blur(4px);
  border-top: 4px solid var(--yellow);
  color: #fff;
  text-decoration: none;
  transition: transform .25s, background .25s;
}
.tile strong { font: 22px Merriweather, serif; }
.tile span { color: #ddd; font-size: 15px; }
.tile:hover { transform: translateY(-6px); background: rgba(235, 166, 0, .9); }
.tile:hover span { color: #fff; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 30px; }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #111 url('/img/band-truck.jpg') center / cover;
  cursor: pointer;
  overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute;
  left: 50%; top: 50%;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: var(--button);
  transition: transform .2s;
}
.play::after {
  content: '';
  position: absolute;
  left: 29px; top: 22px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
}
.video:hover .play { transform: scale(1.1); }

/* Call to action above the footer */
.cta { background: var(--yellow); padding: 70px 0; text-align: center; }
.cta h2 { color: #1e1e1e; }
.cta p { font-size: 19px; color: #2b2b2b; margin-bottom: 26px; }

/* Footer */
.site-footer { background: var(--dark); color: #cfd3d5; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 24px; }
.site-footer .brand { color: #fff; font-size: 20px; margin-bottom: 12px; }
.brand-small img { width: 40px; }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--yellow); }
.socials { display: flex; gap: 12px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--button); }
.footer-bottom { background: var(--darker); padding: 16px 0; font-size: 14px; }

/* Next page link */
.next-page {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding: 22px 28px;
  background: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.next-page span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--button); font-weight: 700; }
.next-page strong { font: 22px Merriweather, serif; color: #2b2b2b; }
.next-page:hover { transform: translateX(6px); }

/* Over de band */
.prose p { margin-bottom: 1.1em; }

/* Bandleden */
figure { margin: 0; }
.zoomable { cursor: zoom-in; transition: transform .3s; }
.zoomable:hover { transform: scale(1.02); }
.caption { text-align: center; font-size: 14px; margin-top: 12px; }
.members { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.members li {
  background: #fff;
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.members strong { font: 18px Merriweather, serif; color: #2b2b2b; }
.members span { font-size: 15px; text-align: right; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}
.lightbox:target { display: flex; }
.lightbox img { max-height: 95vh; width: auto; border-radius: var(--radius); }

/* Optredens */
.year { margin: 40px 0 20px; padding-bottom: 8px; border-bottom: 3px solid var(--yellow); display: inline-block; }
.year:first-child { margin-top: 0; }
.gig {
  display: flex;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}
.gig h3 { margin-bottom: 4px; }
.gig p { margin: 0 0 4px; font-size: 16px; }
.gig .meta { font-weight: 700; color: #2b2b2b; }

/* Repertoire */
.songs {
  list-style: none;
  counter-reset: song;
  columns: 3 260px;
  column-gap: 40px;
  padding: 0;
  margin: 0;
}
.songs li {
  counter-increment: song;
  break-inside: avoid;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.songs li::before {
  content: counter(song, decimal-leading-zero);
  display: inline-block;
  width: 36px;
  font: 700 14px Merriweather, serif;
  color: var(--button);
}
.note { margin-top: 30px; font-style: italic; }

/* Boekingen and forms */
.contact-head h3 { margin-bottom: .5em; }
.contact-head p { margin-top: 24px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.form label { display: block; margin: 16px 0 6px; font-size: 15px; font-weight: 700; }
.form input, .form textarea {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--input-border);
  border-radius: 3px;
  padding: 10px 14px;
  font: 17px/1.5 Lato, sans-serif;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--button); box-shadow: 0 0 0 3px rgba(235, 166, 0, .25); }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { margin-top: 20px; }
.form .trap { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border-radius: 3px; }
.notice p:last-child { margin: 0; }
.notice.ok { background: #e6f4e0; color: #2a5a1a; }
.notice.err { background: #f8e0e0; color: #7a1a1a; }

/* Admin */
.admin-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.admin .form { max-width: 520px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.admin-grid .form { max-width: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cancel { margin-left: 14px; }
.admin-list { list-style: none; padding: 0; margin: 0 0 16px; }
.admin-list li { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 3px; padding: 10px 14px; margin-bottom: 8px; }
.admin-list li > div { flex: 1; display: flex; flex-direction: column; }
.admin-list li.past { opacity: .5; }
.admin-list form { margin: 0; }
.link-danger { background: none; border: 0; color: #a01c1c; text-decoration: underline; cursor: pointer; font: inherit; }
.hint { font-size: 14px; }
.hash { background: #fff; padding: 14px; border-radius: 3px; white-space: pre-wrap; word-break: break-all; }

/* Fade-in on scroll (only when JavaScript runs) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet */
@media (max-width: 960px) {
  .discover-grid { grid-template-columns: 1fr 1fr; }
  .split, .split-wide, .split-form, .admin-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 800px) {
  .wrap { padding: 0 16px; }
  .header-inner { padding: 10px 16px; }
  .brand { font-size: 22px; }
  .brand img { width: 56px; }
  .scrolled .brand img { width: 44px; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: #2b2b2b; transition: transform .25s, opacity .25s; }
  .open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .open .menu-toggle span:nth-child(2) { opacity: 0; }
  .open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--grey);
    padding: 8px 16px 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
    display: none;
  }
  .open .menu { display: flex; }
  .menu a { padding: 12px; font-size: 18px; }
  .strip { padding: 56px 0; }
  .hero { min-height: 78vh; }
  .hero-content { padding-bottom: 72px; }
  .next-gig-card { flex-wrap: wrap; gap: 18px; padding: 20px; }
  .next-gig-text { flex-basis: calc(100% - 100px); }
  .discover { padding: 60px 0; }
  .discover-grid { grid-template-columns: 1fr; }
  .tile { min-height: 120px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 16px; }
  .page-hero { padding: 48px 0 40px; }
  .gig { padding: 18px; gap: 16px; }
  .members li { flex-direction: column; gap: 2px; }
  .members span { text-align: left; }
  .card { padding: 22px; }
  .row { grid-template-columns: 1fr; gap: 0; }
}
