/* The Fourtunate Sons - Band Website */
:root {
  --bg: #0a0a0a;
  --bg-alt: #141414;
  --text: #f5f5f5;
  --muted: #b0b0b0;
  --accent: #c9a87c;   /* wood/gold tone from logo */
  --accent-dark: #a07d52;
  --border: #2a2a2a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #e0c9a0; }

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

/* Header / Nav */
header {
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 60px;
  width: auto;
}

.logo-large {
  filter: drop-shadow(0 0 15px rgba(201,168,124,0.25));
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--accent);
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: radial-gradient(ellipse at center, #1a120c 0%, #0a0a0a 70%);
}

.hero img.logo-large {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 20px rgba(201,168,124,0.3));
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.hero p.tagline {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Content sections */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  border-bottom: 2px solid var(--accent-dark);
  display: inline-block;
  padding-bottom: 0.3rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dark);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #111;
}

.card-body {
  padding: 1.2rem;
}

.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Gigs list */
.gig-list { list-style: none; }
.gig-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gig-date { color: var(--accent); font-weight: 600; min-width: 140px; }
.gig-venue { flex: 1; }
.gig-location { color: var(--muted); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: opacity 0.2s;
}
.gallery-grid img:hover { opacity: 0.85; }

/* Contact form */
.contact-form {
  max-width: 560px;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
button, .btn {
  background: var(--accent);
  color: #111;
  border: none;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover, .btn:hover {
  background: #e0c9a0;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 700px) {
  .nav-container { flex-direction: column; gap: 0.8rem; }
  nav ul { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 1.8rem; }
  .hero img.logo-large { max-width: 90%; }
}

/* Past gigs and map links */
.gig-list.past li { opacity: 0.55; }
.gig-list.past .gig-date { color: var(--muted); }
.past-heading { margin-top: 3rem; }
.past-tag { display:inline-block; font-size:0.75rem; text-transform:uppercase; letter-spacing:0.05em; border:1px solid var(--border); border-radius:4px; padding:0 0.4rem; margin-left:0.4rem; color:var(--muted); }
.gig-location a { white-space: nowrap; }

/* Videos page */
.video-section { margin-bottom: 2.5rem; }
.video-section-title { color: var(--text); font-size: 1.3rem; margin-bottom: 0.5rem; }
.video-card video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.video-card:hover { transform: none; }

/* Band member photos */
.member-card img { height: 340px; object-fit: cover; object-position: center 20%; }

/* Next gigs ticker under the menu */
.gig-ticker {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  color: var(--text, #eee);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.45rem 0;
}
.gig-ticker:hover { color: var(--accent); }
.gig-ticker-track {
  display: inline-block;
  padding-left: 1rem;
  animation: gig-ticker-scroll 40s linear infinite;
}
.gig-ticker:hover .gig-ticker-track { animation-play-state: paused; }
.gig-ticker-label {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 1.5rem;
}
.gig-ticker-item { margin-right: 3rem; }
.gig-ticker-item strong { color: var(--accent); }
@keyframes gig-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .gig-ticker-track { animation: none; padding-left: 1rem; }
}

/* Fade the ticker text in and out at the edges */
.gig-ticker-track {
  -webkit-mask-image: none;
}
.gig-ticker {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
}

/* Big home page logo: centred, 55% of the page width */
.hero img.logo-large {
  display: block;
  width: 55%;
  max-width: none;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/* Hidden on screen, still read by search engines and screen readers */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Logo sits a bit higher on the home page */
.hero { padding-top: 2rem; }
@media (max-width: 700px) { .hero img.logo-large { width: 90%; } }

/* Pull Next Gigs up closer to the logo */
.hero { padding-bottom: 1.5rem; }
.hero + .container, .hero + section, .hero + main > .container:first-child { padding-top: 1rem; }

/* Rotating home page tagline */
.hero p.tagline { min-height: 1.6em; transition: opacity 0.6s ease, transform 0.6s ease; letter-spacing: 0.03em; }
.hero p.tagline.fade-out { opacity: 0; transform: translateY(6px); }

/* Departures-board tagline */
.hero p.tagline.flapboard {
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 0;
  margin-top: 0.6rem;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: clamp(0.8rem, 1.5vw, 1.25rem);
  letter-spacing: 0;
}
.flap-row { display: flex; gap: 2px; }
.flap {
  position: relative;
  display: inline-block;
  width: 0.95em;
  line-height: 1.55em;
  text-align: center;
  color: #f0c27a;
  background: linear-gradient(#1f1f1f 0%, #161616 49%, #0b0b0b 51%, #151515 100%);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 1px 2px rgba(0,0,0,0.8);
}
.flap::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: rgba(0,0,0,0.85);
}
.flap.flipping { animation: flap-flip 70ms linear; }
@keyframes flap-flip { 0% { transform: scaleY(1); } 50% { transform: scaleY(0.15); } 100% { transform: scaleY(1); } }
@media (max-width: 700px) { .hero p.tagline.flapboard { font-size: 1rem; } }

/* Rock-style font for the departures board (Black Ops One, SIL Open Font Licence) */
@font-face { font-family: "Black Ops One"; src: url("fonts/BlackOpsOne-Regular.ttf") format("truetype"); font-display: swap; }
.hero p.tagline.flapboard { font-family: "Black Ops One", Impact, sans-serif; font-weight: normal; }
.flap { color: #f3c477; text-shadow: 0 0 6px rgba(240,160,60,0.35); }
