/* =========================================================
   Tim Malloys Website Stylesheet
   Cleaned & Consolidated with Comments
   ========================================================= */

/* === Base Variables ===
   Define all reusable colors and sizes here for consistency */
:root {
  --accent: #2fbf71;        /* primary green accent */
  --accent-hover: #28a864;  /* hover/focus shade */
  --accent-dark: #1f8a52;   /* darker green for hero button hover */
  --text-primary: #f5f5f5;  /* main text color */
  --text-secondary: #dddddd;/* supporting text color */
  --bg-dark: #111111;       /* dark background */
  --bg-medium: #222222;     /* slightly lighter background */
  --border: #333;           /* border color */
  --muted: #999;            /* muted text color */
  --fg: #f5f5f5;            /* footer foreground */
  --maxw: 1200px;           /* max content width */
}

* { box-sizing: border-box; }
html { scroll-padding-top: 270px; } /* equal to header height */

/* === Global Typography === */
body {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
}

h1, h2, h3 {
  font-family: 'Oswald', 'Arial Black', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Secondary text (venues, descriptions) */
.show-venue, .music p {
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* === Buttons ===
   Unified button styles with modifiers */
.btn, .event-link {
  display: inline-block;
  font-family: 'Montserrat', Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Primary button */
.btn {
  background: var(--accent);
  color: #111;
  border: 1px solid var(--accent);
}
.btn:hover, .btn:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Outline button */
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--accent);
  color: #111;
}

/* Hero-specific button */
.btn-hero {
  background: var(--accent);
  color: #fff;
}
.btn-hero:hover {
  background: var(--accent-dark);
}

/* === Accessibility === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--accent);
  color: #000;
  padding: .5rem .75rem;
  border-radius: .25rem;
}

/* === Layout Helpers === */
.wrap {
  width: min(var(--maxw), 92%);
  margin: 0 auto;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.site-header .brand img {
  max-height: 200px;
  width: auto;
}
.nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
.nav a:hover { color: var(--accent); }

/* === Social Icons === */
.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}
.social-link svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  transition: transform 0.2s ease, fill 0.2s ease;
}
.social-link:hover svg {
  transform: scale(1.1);
  fill: var(--accent);
}

/* === Hero === */
.hero {
  position: relative;
  background: url("images/bg-splash.jpg") center/cover no-repeat;
  width: 100%;
  color: #fff;
  text-align: center;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.hero h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* === Sections === */
section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
section h3 {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  margin: 0 0 .75rem;
}

/* === Upcoming Shows === */
.shows {
  background: var(--bg-dark);
  color: var(--text-primary);
  padding: 2rem 1rem;
}
.shows h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.show-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.show-list li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: 6px;
  transition: transform 0.2s ease;
}
.show-list li:hover { transform: translateY(-4px); }
.show-date {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
}
/* Event link buttons (for shows list) */
.event-link {
  align-self: flex-start;
  background: var(--accent);
  color: #111;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-family: 'Montserrat', Verdana, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s ease;
}
.event-link:hover,
.event-link:focus {
  background: var(--accent-hover);
  outline: none;
}

/* === Music Section === */
.music {
  background: var(--bg-medium);
  color: var(--text-primary);
  padding: 2rem 1rem;
}
.music h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--accent);
}
.music .player, .music .video {
  margin: 1.5rem auto;
  max-width: 700px;
}
.music iframe {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  color: var(--muted);
}
.footer-social {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.footer-social a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: .3rem .6rem;
  border-radius: .35rem;
}
.footer-social a:hover, .footer-social a:focus-visible {
  color: var(--fg);
}

/* === Responsive === */
@media (max-width: 480px) {
  .social-link svg { width: 24px; height: 24px; }
  .hero { padding: 4rem 1rem; }
}