/* =========================
   Base / Reset
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

:root {
  --brand: #00000000;
  --brand-deep: #fff000;
  --bg: #000000;
  --ink: #ffffff;
  --ink-strong: #000;
  --text: #fff000;
  --text-muted: #555;
  --border: #fff000;

  --heading-font: "Bevan", serif;

  --radius-lg: 14px;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.08);
  --container: 1100px;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg) url("assets/Bodega-Talks-background-4.jpg") no-repeat
    center / cover;
  line-height: 1.6;
}

/* Better default links */
a {
  color: inherit;
  text-decoration: none;
}

/* SR-only utility */
.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;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================
   Typography
========================= */
h1,
h2,
h3,
.logo-text,
.nav-links a,
.hero h1,
.hero h2 {
  font-family: var(--heading-font);
}

/* =========================
   Header / Nav
========================= */
header {
  background: var(--brand);
  border-bottom: 0px solid var(--border);
}

nav,
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-text {
  font-size: 1.125rem;
}

.logo-svg {
  display: block;
  height: auto;
}
.logo-svg path,
.logo-svg text {
  fill: var(--ink);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 500;
  font-size: 1.25rem;
}

/* =========================
   Header Social Links (fixed spacing)
========================= */
header .social-links {
  display: flex;
  align-items: center;
  gap: 0.4rem; /* smaller spacing between icons */
  margin-top: 0;
}

header .social-links a {
  --size: 40px;
  width: var(--size);
  height: var(--size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff000;
  color: #000000;
  font-size: 1.25rem;
  transition: background-color 0.3s, transform 0.2s;
}

header .social-links a:hover {
  background: var(--brand);
  color: #000;
  transform: scale(1.1);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* =========================
   Hero – Episodes
========================= */
.hero-episodes {
  text-align: center;
  padding: 2rem 2rem 2rem;
  background: var(--brand);
  color: var(--ink);
}
.hero-episodes h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}
.hero-episodes p {
  max-width: 50ch;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Episodes Section wrapper */
.episodes-section {
  background: var(--brand);
  padding: 3rem 3rem 3rem;
}

/* Episodes Grid */
.episodes-grid {
  display: grid;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Video Cards */
.episodes-grid .video {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  cursor: pointer;
  background: #000;
}

/* Embedded YouTube */
.episodes-grid iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Thumbnails */
.episodes-grid .video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Play button overlay */
.episodes-grid .video::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Hide overlay when playing */
.episodes-grid .video.playing::after {
  opacity: 0;
}

/* Responsive breakpoints */
@media (max-width: 767px) {
  .episodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .episodes-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Hero – General
========================= */
.hero {
  text-align: center;
  padding: 7rem 2rem 6rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.hero p {
  max-width: 60ch;
  margin: 0 auto 2rem;
  color: var(--text); /* ✅ brand color */
}

/* =========================
   Merch Hero + Products
========================= */
.hero-merch {
  position: relative;
  background: var(--brand);
  color: var(--ink);
  padding: 2rem 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.hero-merch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
}
.hero-merch .hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  padding: 1rem;
}
.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.hero-copy p {
  max-width: 45ch;
  color: #222;
  margin: 0 0 1.25rem 0;
}
.hero-copy .cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #000;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 0.25s, transform 0.15s ease-out;
}
.hero-copy .cta:hover {
  background: #333;
}
.hero-copy .cta:active {
  transform: translateY(1px);
}

/* =========================
   Shop – Hoodie Item Bigger
========================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(400px, 1fr));
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
}

.product-card {
  aspect-ratio: 1 / 1.2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.2;
  object-fit: cover;
}

.product-info {
  padding: 1.2rem 1rem;
  text-align: center;
}

.product-title {
  font-size: 1.5rem;
}

.product-price {
  font-size: 1.25rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* =========================
   Footer
========================= */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #00000000;
  border-top: 0px solid var(--border);
  font-size: 0.9rem;
  color: #ffffff;
  font-family: Helvetica, Arial, sans-serif;
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px) {
  .hero-merch .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* exactly 3 cards per row */
    gap: 2rem;
    max-width: var(--container);
    margin: 0 auto;
  }
  .hide-on-mobile {
    display: none;
  }
}
@media (max-width: 768px) {
  body {
    background-image: url("assets/Bodega-Talks-mobile-2.jpg");
    background-repeat: repeat-y; /* 👈 vertical repeat */
    background-size: auto 100%;
    background-position: center top;
  }
}

@media (max-width: 720px) {
  nav,
  .nav {
    flex-direction: column;
    padding: 1rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .hero {
    padding: 4rem 1.25rem;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Subtle hovers
========================= */
.nav-links a:hover {
  color: var(--brand);
}
