/* Wild Chama Races / Brazos Burnout — site styles */

:root {
  --rust: #b5511f;
  --gold: #e8b62b;
  --dark: #2a2823;
  --dark-2: #3a362c;
  --cream: #f7f3e9;
  --cream-2: #efe8d8;
  --max-w: 1140px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

#details, #venue, #gallery, #sponsors, #resources, #register {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Futura", "Trebuchet MS", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5em;
  line-height: 1.15;
}

a { color: inherit; }

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(42, 40, 35, 0.0);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-nav.scrolled {
  background: rgba(42, 40, 35, 0.92);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.nav-links a:hover { border-color: var(--gold); }
.nav-cta {
  background: var(--rust);
  padding: 8px 18px !important;
  border-radius: 4px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--gold); color: var(--dark); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: #1c1b17;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-cliffs.jpg");
  background-size: cover;
  background-position: 20% 60%;
  transform: scale(1.05);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,14,0.25) 0%, rgba(20,18,14,0.15) 35%, rgba(20,18,14,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
  padding: 0 24px 70px;
}
.hero-content .wrap { padding: 0; }
.eyebrow {
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  margin: 0;
  color: #fff;
}
.hero h1 span { color: var(--gold); }
.hero-sub {
  margin-top: 14px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  max-width: 620px;
  color: #efe8d8;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
  font-size: 0.95rem;
}
.hero-meta div strong {
  display: block;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.hero-ctas {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--gold); color: var(--dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #efe8d8;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0.8;
}

/* ---------- Sections ---------- */
section { padding: 100px 0; position: relative; }
.section-tight { padding: 70px 0; }
.section-label {
  color: var(--rust);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.section-head { max-width: 720px; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-head p { font-size: 1.05rem; color: #565248; }

.bg-dark { background: var(--dark); color: var(--cream); }
.bg-dark .section-label { color: var(--gold); }
.bg-dark h2 { color: #fff; }
.bg-dark .section-head p { color: #cfc8b6; }

/* parallax-ish photo bands */
.photo-band {
  position: relative;
  min-height: 60vh;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}
.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20,18,14,0.45);
}
.photo-band .wrap { position: relative; z-index: 2; }
.photo-band blockquote {
  font-family: "Futura", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  max-width: 760px;
  margin: 0;
}

@media (max-width: 700px) {
  .photo-band { background-attachment: scroll; }
}

/* ---------- Details grid ---------- */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 10px;
}
.stat-card {
  background: var(--cream-2);
  border-left: 4px solid var(--rust);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.stat-card .num {
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 2.1rem;
  color: var(--rust);
  display: block;
  margin-bottom: 4px;
}
.stat-card .label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6557;
}
.lead-text { font-size: 1.12rem; max-width: 760px; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}
.info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.info-card h3 {
  font-size: 1.05rem;
  color: var(--rust);
  margin-bottom: 14px;
}
.info-card ul { padding-left: 20px; margin: 0; color: var(--dark); }
.info-card li { margin-bottom: 8px; }
.info-card p { color: var(--dark); }
.info-card + .info-card { margin-top: 24px; }

/* generic download/text link — used both on dark sections (inside white cards) and light sections */
a.dl {
  color: var(--rust);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-block;
}
a.dl:hover { text-decoration: underline; }
a.dl::after { content: " \2193"; }
.info-card a.dl { margin-top: 12px; }

/* ---------- Registration ---------- */
.reg-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.12);
  max-width: 100%;
  overflow-x: hidden;
}
.reg-fee {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}
.reg-fee .amt { font-size: 2.6rem; font-family: "Futura","Trebuchet MS",sans-serif; color: var(--rust); }
.reg-includes {
  list-style: none;
  padding: 0; margin: 18px 0 28px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.reg-includes li {
  background: var(--cream-2);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
}
#divRRRegStart { min-height: 140px; max-width: 100%; overflow-x: hidden; }
#divRRRegStart * { max-width: 100% !important; box-sizing: border-box !important; }
#divRRRegStart iframe, #divRRRegStart table { width: 100% !important; }
.reg-fallback {
  border: 1.5px dashed #c9c2ac;
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.9rem;
  color: #6b6557;
}

/* ---------- Photo gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.gallery a {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  display: block;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery a:hover img { transform: scale(1.07); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery .wide { grid-column: span 2; }
}

/* ---------- Sponsors ---------- */
.sponsor-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.tier {
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  border: 1px solid #443f33;
}
.tier h4 { margin-bottom: 6px; }
.tier .price { color: var(--gold); font-size: 1.1rem; margin-bottom: 14px; display: block; }
.tier-gold { border-color: var(--gold); }
.tier-names { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: #cfc8b6; }
.tier-names li { padding: 4px 0; }

.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.sponsor-logo-card {
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s ease;
}
.sponsor-logo-card:hover { transform: translateY(-2px); }
.sponsor-logo-card img { display: block; object-fit: contain; }
.sponsor-logo-inset {
  background: #051f29;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 6px 10px;
}
.tier-gold .sponsor-logo-card { width: 152px; height: 84px; }
.tier-gold .sponsor-logo-card img { max-width: 100%; max-height: 100%; }
.tier-silver .sponsor-logo-card { width: 100px; height: 54px; }
.tier-silver .sponsor-logo-card img { max-width: 100%; max-height: 100%; }

/* ---------- Resources / footer cards ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.resource-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.resource-card h3 { overflow-wrap: break-word; word-break: break-word; }
.resource-card .tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
}
.resource-card a.dl {
  margin-top: auto;
  color: var(--dark);
}

footer {
  background: var(--dark);
  color: #b9b2a0;
  padding: 60px 0 30px;
  font-size: 0.9rem;
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
footer h4 { color: #fff; font-size: 0.85rem; margin-bottom: 14px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--gold); }
.footer-col { min-width: 200px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #443f33;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: #79735f;
}

/* secondary page (event-organization-resources) */
.resources-page main { padding-top: 140px; }
.guide-step {
  margin-bottom: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e6dfca;
}
.guide-step:last-child { border-bottom: none; }
.guide-step h3 { color: var(--rust); font-size: 1.15rem; }
.guide-step .sub { font-style: italic; color: #6b6557; font-size: 0.95rem; }
.note-box {
  background: var(--cream-2);
  border-left: 4px solid var(--gold);
  padding: 18px 22px;
  border-radius: 6px;
  margin-bottom: 40px;
  font-size: 0.95rem;
}

/* mobile nav */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--dark);
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-cta {
    margin: 12px 24px;
    text-align: center;
    padding: 12px 18px !important;
  }
  .site-nav:not(.scrolled) {
    background: rgba(20, 18, 14, 0.35);
  }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(20,18,14,0.55) 0%, rgba(20,18,14,0.45) 35%, rgba(20,18,14,0.94) 100%);
  }
  .hero {
    align-items: flex-start;
  }
  .hero-content {
    padding: 132px 24px 60px;
  }
}
