/* Entwistle Rodeo — shared styles
   Palette pulled from the original Webador template:
   clay-rose accent #a5655f / #86504b on a dark rustic background.
   Headings: Merriweather (serif). Body: Lato (sans). */

:root {
  --accent: #a5655f;
  --accent-dark: #86504b;
  --accent-tint: #b78480;
  --bg: #1a1a1a;
  --bg-alt: #242424;
  --bg-card: #2c2c2c;
  --text: #e7e3e1;
  --text-dim: #b3aca9;
  --heading: #ffffff;
  --line: rgba(255, 255, 255, 0.1);
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); }

p { margin: 0 0 1em; }

a { color: var(--accent-tint); }
a:hover { color: #fff; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  font-family: "Merriweather", serif;
  font-weight: 900;
  font-size: clamp(1.1rem, 1rem + 0.8vw, 1.5rem);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.brand span { color: var(--accent-tint); }
.nav-links {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.nav-links a:hover { color: var(--accent-tint); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}
.nav-cta:hover { background: var(--accent-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  border: 2px solid var(--accent);
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; }
.btn-outline:hover { background: var(--accent); }
.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  margin-top: 0.8rem;
}
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(80vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(20,20,20,0.55), rgba(20,20,20,0.85)),
    url("images/saddle-bronc-standard.jpg") center/cover no-repeat;
  padding: 4rem 1rem;
}
.hero-inner { max-width: 760px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-tint);
  font-weight: 700;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}
.hero h1 { margin-bottom: 0.4rem; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.hero .dates {
  font-family: "Merriweather", serif;
  font-size: clamp(1.1rem, 1rem + 1vw, 1.6rem);
  color: #fff;
  margin-bottom: 1.4rem;
}
.hero .lede { font-size: 1.1rem; color: #ece8e6; margin-bottom: 2rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--accent { background: var(--accent-dark); }
.section--accent h2,
.section--accent p { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--text-dim); }

/* ---------- Quick facts ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}
.fact {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.4rem;
  text-align: center;
}
.fact .label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  color: var(--accent-tint);
  font-weight: 700;
}
.fact .value { font-family: "Merriweather", serif; font-size: 1.15rem; color: #fff; margin-top: 0.3rem; }

/* ---------- Event cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.card img { height: 200px; width: 100%; object-fit: cover; }
.card .card-body { padding: 1.2rem 1.3rem 1.5rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--text-dim); margin: 0; }

/* ---------- Split image rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.split + .split { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.split img { border-radius: 8px; width: 100%; object-fit: cover; aspect-ratio: 3/2; }
.split--right .split-media { order: 2; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split--right .split-media { order: 0; }
}

/* ---------- Schedule ---------- */
.schedule { display: grid; gap: 1.4rem; }
.day {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 1.4rem 1.6rem;
}
.day h3 { margin-bottom: 0.2rem; }
.day .time { color: var(--accent-tint); font-weight: 700; margin-bottom: 0.6rem; }
.day ul { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.day ul li { margin-bottom: 0.3rem; }
@media (max-width: 560px) { .day ul { columns: 1; } }

/* ---------- Tables ---------- */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.table-card h3 {
  background: var(--accent-dark);
  margin: 0;
  padding: 0.9rem 1.3rem;
  font-size: 1.15rem;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem 1.3rem; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--accent-tint); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
td:last-child { text-align: right; font-weight: 700; color: #fff; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
.tables-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.note {
  background: rgba(165, 101, 95, 0.15);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.3rem;
  margin-top: 1.5rem;
  text-align: center;
  font-weight: 700;
}

/* ---------- Sponsors ---------- */
.sponsor-cta { text-align: center; }
.sponsor-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}
.tier {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}
.tier h3 { color: #fff; }
.tier .price { font-family: "Merriweather", serif; font-size: 1.6rem; color: #fff; }

/* ---------- Facebook (connect) ---------- */
.connect {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.connect--single {
  max-width: 480px;
  margin: 0 auto;
}
.connect-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.8rem;
  text-align: center;
}

/* ---------- Map embed ---------- */
.map-embed {
  margin-top: clamp(2rem, 5vw, 3rem);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 45vw, 440px);
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--accent-dark);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem 2.5rem;
}
.site-footer h2 { color: #fff; }
.site-footer a { color: #fff; }
.footer-contact { margin: 1rem 0 1.5rem; }
.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}
.footer-credit {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}
.footer-credit a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 2px;
}
.footer-credit a:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #161616;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.2rem;
    gap: 0.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
}
