/* ============================================
   OWEN NEISEL MOTORSPORTS
   Dark cinematic motorsports aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

/* --- Custom Properties --- */
:root {
  --black: #050608;
  --dark: #0a0d12;
  --dark-surface: #111419;
  --dark-card: #161a21;
  --dark-border: #1e2330;
  --mid: #2a2f3a;
  --light-mid: #4a5068;
  --muted: #8891a5;
  --light: #c8cdd8;
  --white: #eef0f4;
  --bright-white: #ffffff;

  --red: #d72638;
  --red-glow: #ff2d43;
  --red-dark: #8b1a25;
  --red-subtle: rgba(215, 38, 56, 0.15);

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', sans-serif;
  --font-condensed: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  --header-h: 72px;
  --section-pad: clamp(60px, 10vw, 120px);
  --container: 1200px;
  --radius: 2px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--light);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* --- Utility --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section-label {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--red);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--bright-white);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section-title span { color: var(--red); }

/* --- Noise texture overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(5, 6, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--dark-border);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}
.logo img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bright-white);
}
.logo-text .accent { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--bright-white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-social {
  display: flex;
  gap: 16px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--dark-border);
}
.nav-social a {
  color: var(--light-mid);
  transition: color 0.25s;
  display: flex;
}
.nav-social a:hover { color: var(--bright-white); }
.nav-social svg { width: 18px; height: 18px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bright-white);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.3s, transform 0.3s;
}
.mobile-nav a:hover {
  color: var(--bright-white);
  transform: translateX(8px);
}
.mobile-social {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}
.mobile-social a { color: var(--light-mid); }
.mobile-social svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-links, .nav-social { display: none; }
  .hamburger { display: flex; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-slider {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-slide.active img {
  transform: scale(1);
}
/* Dark overlay gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 6, 8, 0.3) 0%,
    rgba(5, 6, 8, 0.1) 40%,
    rgba(5, 6, 8, 0.6) 70%,
    rgba(5, 6, 8, 0.95) 100%
  );
  z-index: 2;
}
/* Side vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(5, 6, 8, 0.5) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 24px 80px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero-tagline {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-tagline::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--red);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--bright-white);
  margin-bottom: 20px;
}
.hero-title .outline {
  -webkit-text-stroke: 1.5px var(--bright-white);
  color: transparent;
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 32px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bright-white);
  background: var(--red);
  padding: 14px 32px;
  border: none;
  transition: background 0.3s, transform 0.2s;
}
.hero-cta:hover {
  background: var(--red-glow);
  transform: translateY(-2px);
}
.hero-cta svg { width: 16px; height: 16px; }

/* Slide indicators */
.hero-indicators {
  position: absolute;
  bottom: 32px;
  right: 24px;
  z-index: 5;
  display: flex;
  gap: 8px;
}
.hero-indicators button {
  width: 32px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s, width 0.3s;
}
.hero-indicators button.active {
  background: var(--red);
  width: 48px;
}
@media (max-width: 600px) {
  .hero-indicators button {
    width: 40px;
    height: 4px;
    padding: 12px 0;
    background-clip: content-box;
  }
  .hero-indicators button.active {
    width: 56px;
  }
}

/* ============================================
   ABOUT / MEET THE DRIVER
   ============================================ */
.about {
  padding: var(--section-pad) 0;
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--red), transparent);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-wrap::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid var(--red);
  opacity: 0.3;
}
.about-image-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(20%) contrast(1.05);
}
.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--light);
}
.about-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--bright-white);
  line-height: 1.3;
  margin-top: 32px;
  padding-left: 24px;
  border-left: 3px solid var(--red);
  text-transform: uppercase;
}
.about-quote em {
  font-style: normal;
  color: var(--red);
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================
   RACE SCHEDULE
   ============================================ */
.schedule {
  padding: var(--section-pad) 0;
  background: var(--dark);
  position: relative;
}
/* Diagonal stripe accent */
.schedule::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0px,
    var(--red) 40px,
    transparent 40px,
    transparent 80px
  );
}
.schedule-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.schedule-legend {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  margin-bottom: 8px;
  font-family: var(--font-condensed);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-wrap: wrap;
  justify-content: center;
}
.leg-kca { color: #fff; }
.leg-ignite { color: var(--red); }
.leg-gp { color: #4ec94e; }

.schedule-table-wrap {
  width: 100%;
  max-width: 860px;
  margin-top: 16px;
  overflow-x: auto;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-condensed);
  font-size: 1rem;
  text-align: left;
}
.schedule-table tbody tr {
  border-bottom: 1px solid var(--dark-border);
  transition: background 0.15s;
}
.schedule-table tbody tr:nth-child(even) {
  background: var(--dark-surface);
}
.schedule-table tbody tr:hover {
  background: var(--dark-card);
}
.schedule-table th {
  padding: 10px 10px 8px;
  vertical-align: middle;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--dark-border);
  text-align: left;
}
.schedule-table td {
  padding: 12px 10px;
  vertical-align: middle;
}
.evt-name {
  font-weight: 600;
  width: 46%;
}
.evt-date {
  white-space: nowrap;
  width: 18%;
  color: var(--light);
  font-weight: 700;
}
.evt-loc {
  color: var(--muted);
  font-size: 0.9rem;
  width: 36%;
}
.evt-kca td { color: #fff; }
.evt-ignite td.evt-name { color: #ff6b7a; }
.evt-ignite .evt-date { color: #ff8a95; }
.evt-gp td.evt-name { color: #4ec94e; }
.evt-gp .evt-date { color: #4ec94e; }

.schedule-note {
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 24px;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .schedule-legend {
    gap: 16px;
  }
  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    display: block;
  }
  .schedule-table tr {
    padding: 12px 0;
  }
  .schedule-table td {
    padding: 2px 0;
    width: auto;
  }
  .evt-name {
    font-size: 1rem;
  }
  .evt-date {
    white-space: normal;
    font-size: 0.85rem;
  }
  .evt-loc {
    font-size: 0.8rem;
  }
}

/* ============================================
   BLOG
   ============================================ */
.blog {
  padding: var(--section-pad) 0;
}
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
}
.blog-card-image {
  aspect-ratio: 16/11;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}
.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-date {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.blog-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--bright-white);
  line-height: 1.2;
  margin-bottom: 12px;
}
.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.blog-card-link {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}
.blog-card:hover .blog-card-link { gap: 14px; }
.blog-card-link svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  padding: var(--section-pad) 0;
  background: var(--black);
}

.gallery-header {
  margin-bottom: 48px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 20px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 2px var(--red);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5, 6, 8, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.gallery-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--bright-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--red); }
@media (max-width: 600px) {
  .lightbox-close {
    font-size: 2.5rem;
    padding: 16px;
    top: 12px;
    right: 12px;
  }
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(215, 38, 56, 0.15);
  border: 1px solid var(--red);
  color: var(--bright-white);
  font-size: 2.5rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--red); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 600px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-prev,
  .lightbox-next { width: 40px; height: 40px; font-size: 1.8rem; }
}

/* ============================================
   DONATIONS
   ============================================ */
.donations {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
/* Red diagonal stripe background accent */
.donations::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--red-subtle), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.donations-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.donations-text h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  color: var(--bright-white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.donations-text h2 span { color: var(--red); }
.donations-text p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 500px;
}
.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bright-white);
  background: var(--red);
  padding: 18px 40px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.btn-donate:hover {
  background: var(--red-glow);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(215, 38, 56, 0.35);
}
.donations-visual {
  display: flex;
  justify-content: center;
}
.donations-visual img {
  max-width: 280px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
  .donations-inner { grid-template-columns: 1fr; text-align: center; }
  .donations-text p { margin-left: auto; margin-right: auto; }
  .donations-visual { order: -1; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--dark-border);
  position: relative;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 300px;
}
.footer-col h4 {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bright-white);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--bright-white); }
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.footer-social a {
  display: flex;
  padding: 0;
}
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--dark-border);
  font-size: 0.8rem;
  color: var(--light-mid);
}
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--bright-white); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease-out,
              transform 0.25s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   BLOG POST PAGE STYLES
   ============================================ */
.blog-post {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: var(--section-pad);
}
.blog-post-header {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0 24px;
}
.blog-post-back {
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  transition: color 0.25s;
}
.blog-post-back:hover { color: var(--red); }
.blog-post-back svg { width: 16px; height: 16px; }
.blog-post-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  color: var(--bright-white);
  line-height: 1.1;
  margin-bottom: 16px;
}
.blog-post-meta {
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.blog-post-hero {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 0 24px;
}
.blog-post-hero img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border: 1px solid var(--dark-border);
}
.blog-post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.blog-post-content p {
  font-size: 1.05rem;
  color: var(--light);
  margin-bottom: 24px;
  line-height: 1.75;
}
.blog-post-content img {
  margin: 32px 0;
  border: 1px solid var(--dark-border);
}
.blog-post-content .image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 32px 0;
}
.blog-post-content .image-row img { margin: 0; }

@media (max-width: 600px) {
  .blog-post-content .image-row { grid-template-columns: 1fr; }
}

/* ============================================
   ACCESSIBILITY — :focus-visible
   ============================================ */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.hamburger:focus-visible {
  outline-offset: 8px;
}
.lightbox-close:focus-visible {
  outline-offset: 6px;
}
.hero-indicators button:focus-visible {
  outline-offset: 4px;
}

/* ============================================
   ACCESSIBILITY — Skip to content
   ============================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--red);
  color: var(--bright-white);
  padding: 12px 24px;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.visible {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .hero-slide img {
    transition: none;
    transform: scale(1.05);
  }
  .hero-slide.active img {
    transform: scale(1.05);
  }
  .blog-card-image img,
  .gallery-item img {
    transition: none;
    transform: none !important;
  }
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  .hero-cta:hover,
  .btn-donate:hover {
    transform: none;
  }
}

/* ============================================
   MOBILE POLISH — Hero title clamp
   ============================================ */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.4rem, 12vw, 3rem);
  }
  .about-quote {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }
}

/* ============================================
   MOBILE POLISH — Schedule table stacking
   ============================================ */
@media (max-width: 600px) {
  .schedule-table tr {
    border-bottom: 1px dashed var(--dark-border);
    padding: 14px 0;
  }
  .schedule-table tr:last-child {
    border-bottom: none;
  }
  .schedule-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .evt-name::before { content: 'Event'; }
  .evt-date::before { content: 'Date'; }
  .evt-loc::before { content: 'Location'; }
}

/* ============================================
   MOBILE POLISH — Lightbox touch targets
   ============================================ */
@media (max-width: 600px) {
  .lightbox-prev,
  .lightbox-next {
    min-height: 48px;
    min-width: 48px;
  }
}
