/*
Theme Name: PEI Dirt Road Rally
Theme URI: https://example.com/
Author: Codex
Description: A bilingual destination-marketing website for the Eastern PEI Dirt Road Rally.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: pei-dirt-road-rally
*/

:root {
  --black: #111111;
  --off-white: #f5f1e8;
  --red-dirt: #a8431d;
  --fall-orange: #c86a2a;
  --forest-brown: #5e4632;
  --light-beige: #e7dfd1;
  --cream: #fffaf0;
  --green: #324a38;
  --blue: #d8e6e6;
  --ink-soft: rgba(17, 17, 17, 0.72);
  --line: rgba(17, 17, 17, 0.14);
  --shadow: 0 24px 70px rgba(71, 45, 24, 0.16);
  font-family: "Inter", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--off-white);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand,
.date-block,
.eyebrow {
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(4.6rem, 9vw, 9.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.98;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.site-shell {
  overflow: hidden;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.09);
  background: rgba(245, 241, 232, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 300px;
  gap: 16px;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 1.65rem;
}

.brand small {
  color: var(--red-dirt);
  font-size: 1.35rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.35vw, 34px);
  font-size: 1.08rem;
  font-weight: 900;
  text-transform: uppercase;
}

.main-nav a,
.site-footer a,
.stay-card a {
  text-decoration: none;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--red-dirt);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #111111;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.lang-toggle button {
  padding: 7px 10px;
  font-size: 0.74rem;
}

.lang-toggle button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--black);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  text-decoration: none;
  font-weight: 850;
}

.button.primary {
  color: #ffffff;
  background: var(--red-dirt);
}

.button.light {
  color: var(--black);
  background: #ffffff;
}

.button.outline {
  border-color: var(--line);
}

.button.compact {
  min-height: 42px;
  padding: 10px 16px;
}

.hero {
  position: relative;
  min-height: clamp(590px, calc(88vh - 86px), 780px);
  display: grid;
  align-content: end;
  padding: clamp(110px, 13vw, 174px) clamp(20px, 5vw, 72px) 0;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.86), rgba(17, 17, 17, 0.52) 48%, rgba(17, 17, 17, 0.16)),
    linear-gradient(0deg, rgba(17, 17, 17, 0.75), rgba(17, 17, 17, 0.08) 45%),
    url("/wp-content/uploads/2026/06/dirtroadrallyhero-1024x575.webp") center / cover no-repeat;
}

@media (min-width: 1440px) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(17, 17, 17, 0.86), rgba(17, 17, 17, 0.52) 48%, rgba(17, 17, 17, 0.16)),
      linear-gradient(0deg, rgba(17, 17, 17, 0.75), rgba(17, 17, 17, 0.08) 45%),
      url("/wp-content/uploads/2026/06/dirtroadrallyhero-1536x863.webp");
  }
}

.hero-content {
  width: min(1040px, 100%);
  padding-bottom: clamp(42px, 7vw, 72px);
}

.hero-date {
  display: inline-block;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--fall-orange);
  padding-bottom: 8px;
  color: #f8c778;
  font-family: "Oswald", Arial, sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(17, 17, 17, 0.42);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--fall-orange);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f8c778;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 1.8vw, 1.38rem);
  line-height: 1.55;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: calc(clamp(20px, 5vw, 72px) * -1);
  padding: 0 clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(17, 17, 17, 0.58);
  backdrop-filter: blur(14px);
}

.stats-bar div {
  position: relative;
  padding: 22px 20px 24px 0;
}

.stats-bar div + div::before {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: -18px;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.stats-bar strong {
  display: block;
  font-family: "Oswald", Arial, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.stats-bar span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.section {
  padding: clamp(38px, 6vw, 76px) clamp(20px, 5vw, 72px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 760px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
}

.photo-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.content-panel p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.highlights-section,
.accommodations-section,
.faq-section {
  background: #ffffff;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.stay-card,
.contact-card,
.facebook-api-note,
.facebook-post-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.06);
}

.feature-card {
  overflow: hidden;
  min-height: 360px;
}

.feature-photo {
  min-height: 146px;
  background:
    linear-gradient(0deg, rgba(17, 17, 17, 0.15), rgba(17, 17, 17, 0.15)),
    url("/wp-content/uploads/2026/06/dirtroadrallyhero-768x431.webp") center / cover no-repeat;
}

.photo-ride {
  background-image:
    linear-gradient(0deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.08)),
    url("/wp-content/uploads/2026/06/guidedrides-768x642.webp");
  background-position: center;
  background-size: cover;
}

.photo-music {
  background-image:
    linear-gradient(0deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.08)),
    url("/wp-content/uploads/2026/06/music-768x776.webp");
  background-position: 38% 62%;
  background-size: cover;
}

.photo-food {
  background-image:
    linear-gradient(0deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.08)),
    url("/wp-content/uploads/2026/06/food2-768x513.webp");
  background-position: 52% 48%;
  background-size: cover;
}

.photo-demo {
  background-image:
    linear-gradient(0deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.08)),
    url("/wp-content/uploads/2026/06/testride-300x257.webp");
  background-position: 50% 50%;
  background-size: cover;
}

.feature-body {
  padding: 22px;
}

.feature-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--red-dirt);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.08);
}

.feature-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.feature-card:hover .feature-icon {
  color: #ffffff;
  background: var(--green);
}

.feature-card p,
.stay-card p,
.map-panel p,
.updates-grid p,
.contact-card p,
.faq-grid p {
  color: var(--ink-soft);
}

.schedule-section {
  background: var(--light-beige);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.date-block {
  display: grid;
  place-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--black);
  text-align: center;
  text-transform: uppercase;
}

.date-block span {
  color: #f8c778;
  font-size: 1.1rem;
}

.date-block strong {
  font-size: 2.4rem;
  line-height: 1;
}

.timeline-copy {
  padding: 10px 0;
}

.timeline-copy ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-copy li {
  border-left: 3px solid var(--red-dirt);
  padding-left: 12px;
  color: var(--ink-soft);
  font-weight: 700;
}

.map-section {
  background: var(--off-white);
}

.map-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.46fr);
  gap: 24px;
  align-items: stretch;
}

.map-frame {
  overflow: hidden;
  min-height: 590px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: var(--light-beige);
  box-shadow: var(--shadow);
}

.rally-map,
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 590px;
  border: 0;
}

.rally-map {
  z-index: 1;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.map-fallback {
  display: grid;
  min-height: 590px;
  place-items: center;
  padding: 28px;
  color: var(--ink-soft);
  text-align: center;
}

.rally-marker-wrap {
  background: transparent;
  border: 0;
}

.rally-marker {
  display: block;
  width: 28px;
  height: 28px;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: var(--marker-color);
  box-shadow: 0 7px 18px rgba(17, 17, 17, 0.28);
  transform: rotate(-45deg);
}

.rally-marker::after {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #ffffff;
  content: "";
}

.leaflet-popup-content {
  width: min(260px, 72vw);
}

.leaflet-popup-content strong,
.leaflet-popup-content span,
.leaflet-popup-content em,
.leaflet-popup-content a {
  display: block;
}

.leaflet-popup-content strong {
  margin-bottom: 4px;
  color: var(--black);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.leaflet-popup-content span {
  margin-bottom: 8px;
  color: var(--red-dirt);
  font-weight: 850;
}

.leaflet-popup-content em {
  margin: -4px 0 10px;
  color: var(--ink-soft);
  font-style: normal;
  font-size: 0.86rem;
  line-height: 1.35;
}

.leaflet-popup-content p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.leaflet-popup-content a {
  color: var(--red-dirt);
  font-weight: 900;
}

.map-panel,
.pass-card {
  border-radius: 8px;
  padding: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.map-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 590px;
}

.map-panel h3 {
  margin-bottom: 8px;
}

.map-panel > p {
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.45;
}

.map-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
  margin: 14px 0 12px;
}

.map-key > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.2;
}

.map-key > span > span:first-child {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--black);
}

.map-key [data-pin-type="staging"] > span:first-child {
  background: var(--red-dirt);
}

.map-key [data-pin-type="food"] > span:first-child {
  background: var(--fall-orange);
}

.map-key [data-pin-type="stay"] > span:first-child {
  background: var(--forest-brown);
}

.map-key [data-pin-type="welcome"] > span:first-child {
  background: var(--green);
}

.map-key [data-pin-type="pitstop"] > span:first-child {
  background: var(--black);
}

.map-list-title {
  margin: 0 0 8px;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
}

.map-location-list {
  display: grid;
  flex: 1 1 180px;
  gap: 6px;
  overflow-y: auto;
  min-height: 140px;
  margin: 0 -8px 12px 0;
  padding-right: 8px;
}

.map-day-heading {
  margin: 12px 0 2px;
  color: var(--red-dirt);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1;
  text-transform: uppercase;
}

.map-day-heading:first-child {
  margin-top: 0;
}

.map-location-list button {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  padding: 8px 9px;
  background: var(--off-white);
  color: var(--black);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.map-location-list button:hover,
.map-location-list button.is-active {
  border-color: var(--marker-color);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.08);
}

.location-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--marker-color);
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.05);
}

.map-location-list strong,
.map-location-list small {
  display: block;
}

.map-location-list strong {
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.18;
}

.map-location-list small {
  margin-top: 1px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.map-resource-links {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.map-resource-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--cream);
  text-decoration: none;
}

.map-resource-links a {
  color: #ffffff;
  border-color: var(--red-dirt);
  background: var(--red-dirt);
}

.map-resource-links strong {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1;
  text-transform: uppercase;
}

.fine-print {
  margin: 9px 0 0;
  font-size: 0.74rem;
  line-height: 1.35;
}

.registration-band {
  padding: clamp(64px, 9vw, 110px) clamp(20px, 5vw, 72px);
  color: #ffffff;
  background:
    linear-gradient(110deg, rgba(94, 70, 50, 0.96), rgba(168, 67, 29, 0.9)),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 42px);
}

.registration-band .eyebrow {
  color: #f8c778;
}

.registration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
  gap: 36px;
  align-items: center;
}

.registration-grid p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.pass-card {
  color: var(--black);
}

.pass-card div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-weight: 850;
}

.pass-card strong {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 2rem;
}

.pass-card .button {
  width: 100%;
  margin-top: 20px;
}

.stay-card {
  padding: 24px;
}

.stay-planner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.stay-intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: clamp(24px, 4vw, 44px);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.28), rgba(17, 17, 17, 0.86)),
    url("/wp-content/uploads/2026/06/2022-22-980x980-1-768x768.webp") center / cover;
  border-radius: 8px;
  overflow: hidden;
}

.stay-intro h3 {
  max-width: 620px;
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4.3vw, 3.65rem);
  line-height: 0.96;
  color: #ffffff;
}

.stay-intro p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.6;
}

.stay-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.stay-notes > span {
  display: grid;
  gap: 6px;
  padding: 15px;
  background: rgba(17, 17, 17, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.stay-notes strong {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--sunset);
  text-transform: uppercase;
}

.stay-notes span span {
  font-size: 0.88rem;
  line-height: 1.35;
}

.stay-links {
  display: grid;
  gap: 18px;
}

.stay-links .stay-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(24px, 3vw, 34px);
  background: var(--cream);
}

.stay-label {
  margin-bottom: 14px;
  color: var(--red-dirt);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stay-links .stay-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.05rem);
}

.stay-links .stay-card p {
  margin-bottom: 22px;
  font-size: 1rem;
  line-height: 1.55;
}

.stay-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  align-self: flex-start;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(168, 67, 29, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: var(--red-dirt);
  font-weight: 900;
}

.stay-card a:hover {
  background: var(--red-dirt);
  color: #ffffff;
}

.sponsor-section {
  background: var(--black);
  color: #ffffff;
}

.sponsor-section .eyebrow {
  color: #f8c778;
}

.sponsor-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 8px 0;
}

.sponsor-carousel::before,
.sponsor-carousel::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: min(120px, 18vw);
  pointer-events: none;
  content: "";
}

.sponsor-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--black), rgba(17, 17, 17, 0));
}

.sponsor-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--black), rgba(17, 17, 17, 0));
}

.sponsor-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: sponsor-scroll 34s linear infinite;
}

.sponsor-carousel:hover .sponsor-track {
  animation-play-state: paused;
}

.sponsor-tile {
  display: grid;
  width: clamp(170px, 18vw, 240px);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.sponsor-tile img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.sponsor-tile.placeholder {
  color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.06);
}

.sponsor-tile.placeholder span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.sponsor-note {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

@keyframes sponsor-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 8px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
}

.updates-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.6fr);
  gap: 32px;
  align-items: center;
}

.updates-layout {
  display: grid;
  gap: 28px;
}

.updates-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 32px;
  align-items: end;
}

.updates-copy .eyebrow,
.updates-copy h2,
.updates-copy p {
  grid-column: 1;
}

.updates-copy .button {
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: center;
}

.facebook-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.facebook-embed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.facebook-video-frame {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.06);
}

.facebook-page-frame {
  width: 340px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
}

.facebook-video-frame iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}

.facebook-video-frame iframe {
  aspect-ratio: 560 / 314;
  height: auto;
}

.facebook-page-frame iframe {
  display: block;
  width: 340px;
  max-width: 100%;
  height: 314px;
}

.facebook-post-card {
  overflow: hidden;
  background: #ffffff;
}

.facebook-post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.facebook-post-card div,
.facebook-api-note,
.facebook-status {
  padding: 20px;
}

.facebook-post-card time {
  display: block;
  margin-bottom: 10px;
  color: var(--red-dirt);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.facebook-post-card p,
.facebook-api-note p {
  color: var(--ink-soft);
}

.facebook-post-card a,
.facebook-api-note a {
  color: var(--red-dirt);
  font-weight: 900;
}

.facebook-api-note {
  grid-column: 1 / -1;
  background: #ffffff;
}

.facebook-api-note strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.45rem;
  text-transform: uppercase;
}

.facebook-api-note code {
  font-size: 0.92em;
}

.facebook-status {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  background: #ffffff;
  border-radius: 8px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--cream);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
}

.contact-section {
  background: var(--light-beige);
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #ffffff;
}

.contact-item {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  text-decoration: none;
}

.contact-label {
  color: var(--red-dirt);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-item strong {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
}

.contact-card a,
.faq-grid a {
  color: var(--red-dirt);
  font-weight: 900;
}

.contact-card a {
  overflow-wrap: anywhere;
}

.contact-item:hover {
  border-color: rgba(168, 67, 29, 0.34);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.08);
}

.site-footer {
  padding: 44px clamp(20px, 5vw, 72px) 22px;
  color: rgba(255, 255, 255, 0.82);
  background: #111111;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.45fr) minmax(220px, 0.55fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-logo img {
  width: 112px;
}

.site-footer strong,
.site-footer h3 {
  color: #ffffff;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.site-footer p {
  margin: 4px 0 0;
  max-width: 520px;
}

.site-footer nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-weight: 850;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, 100%);
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

[data-lang="fr"] {
  display: none;
}

.map-resource-links [data-lang="fr"] {
  display: none;
}

body.lang-fr [data-lang="en"] {
  display: none;
}

body.lang-fr .map-resource-links [data-lang="en"] {
  display: none;
}

body.lang-fr [data-lang="fr"] {
  display: initial;
}

body.lang-fr .map-resource-links [data-lang="fr"] {
  display: block;
}

body.lang-fr div[data-lang="fr"],
body.lang-fr section[data-lang="fr"] {
  display: block;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 78px;
  }

  .split,
  .map-heading,
  .map-grid,
  .registration-grid,
  .stay-planner,
  .updates-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .brand {
    min-width: 0;
  }

  .brand-lockup {
    justify-content: space-between;
    width: 100%;
  }

  .site-header {
    position: relative;
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }

  .brand img {
    width: 72px;
    height: 72px;
  }

  .brand strong {
    font-size: 1.22rem;
  }

  .brand small {
    font-size: 1.02rem;
  }

  .lang-toggle button {
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .header-actions {
    position: fixed;
    z-index: 80;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: block;
  }

  .button.compact {
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
    padding: 14px 18px;
    font-size: 1rem;
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.24);
  }

  .stats-bar,
  .card-grid.three,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .stats-bar div {
    padding: 10px 0;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .date-block {
    min-height: 130px;
  }

  .timeline-copy ul {
    grid-template-columns: 1fr;
  }

  .map-frame,
  .rally-map,
  .map-frame iframe {
    min-height: 430px;
  }

  .map-panel {
    max-height: none;
  }

  .map-location-list {
    max-height: 360px;
  }

  .map-resource-links {
    flex-direction: column;
  }

  .updates-copy,
  .facebook-posts,
  .facebook-embed-grid {
    grid-template-columns: 1fr;
  }

  .stay-intro {
    min-height: 360px;
  }

  .stay-notes {
    grid-template-columns: 1fr;
  }

  .facebook-page-frame {
    width: 340px;
    justify-self: start;
  }

  .updates-copy .button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .sponsor-tile {
    width: 170px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .brand span {
    font-size: 0.92rem;
  }

  .brand strong {
    font-size: 1.06rem;
  }

  .brand small {
    font-size: 0.94rem;
  }

  .brand-lockup {
    gap: 10px;
  }

  .lang-toggle button {
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .button.compact {
    min-height: 50px;
  }

  .hero {
    min-height: 680px;
    align-content: end;
    padding: 82px 18px 0;
    background-position: 58% center;
  }

  h1 {
    font-size: clamp(3.25rem, 15vw, 4.65rem);
    line-height: 0.92;
    margin-bottom: 16px;
  }

  .hero-date {
    margin-bottom: 14px;
    border-bottom-width: 2px;
    padding-bottom: 7px;
    font-size: 1.24rem;
  }

  .hero-lede {
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-content {
    padding-bottom: 32px;
  }

  .stats-bar div {
    padding: 13px 0;
  }

  .stats-bar strong {
    font-size: 1.75rem;
  }

  .stats-bar span {
    font-size: 0.86rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .stats-bar,
  .card-grid.four {
    grid-template-columns: 1fr;
  }

}

/* Header reset: keep navigation predictable after mobile refinements. */
.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand {
  min-width: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-actions {
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 82px;
  }

  .site-header {
    display: block;
    position: relative;
    padding: 12px 16px;
  }

  .brand-lockup {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  .brand {
    flex: 1 1 auto;
    gap: 12px;
  }

  .brand img {
    width: 68px;
    height: 68px;
  }

  .brand strong {
    font-size: 1.18rem;
  }

  .brand small {
    font-size: 0.98rem;
  }

  .lang-toggle {
    flex: 0 0 auto;
  }

  .lang-toggle button {
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .site-header .header-actions {
    position: fixed;
    z-index: 100;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: block;
  }

  .site-header .button.compact {
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    border-radius: 999px;
    font-size: 1rem;
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.24);
  }
}

@media (max-width: 430px) {
  .site-header {
    padding: 10px 12px;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.86rem;
  }

  .lang-toggle button {
    padding: 5px 8px;
    font-size: 0.64rem;
  }
}

/* Final header layout: logo left, actions right, no floating mobile CTA. */
body {
  padding-bottom: 0;
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  padding: 14px clamp(18px, 4vw, 56px);
}

.brand-lockup,
.brand,
.header-actions,
.lang-toggle,
.main-nav {
  min-width: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
}

.brand span {
  min-width: 0;
}

.brand strong {
  font-size: clamp(1.22rem, 1.4vw, 1.58rem);
}

.brand small {
  font-size: clamp(1rem, 1.1vw, 1.2rem);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
}

.header-actions {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.site-header .button.compact {
  width: auto;
  min-height: 42px;
  padding: 11px 17px;
  font-size: 0.92rem;
  box-shadow: none;
  white-space: nowrap;
}

.lang-toggle {
  display: inline-flex;
  flex: 0 0 auto;
}

.lang-toggle button {
  padding: 7px 10px;
  color: #111111;
  font-size: 0.7rem;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 0;
  }

  .site-header {
    position: sticky;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
  }

  .brand-lockup {
    width: auto;
    justify-content: flex-start;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 62px;
    height: 62px;
  }

  .brand strong {
    font-size: 1.03rem;
  }

  .brand small {
    font-size: 0.82rem;
  }

  .site-header .header-actions {
    position: static;
    z-index: auto;
    inset: auto;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .site-header .button.compact {
    width: auto;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    box-shadow: none;
  }

  .lang-toggle button {
    padding: 6px 8px;
    color: #111111;
    font-size: 0.62rem;
  }
}

@media (max-width: 460px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .brand-lockup {
    width: auto;
    grid-column: 1;
    grid-row: 1;
  }

  .site-header .header-actions {
    display: contents;
  }

  .site-header .button.compact {
    grid-column: 1 / -1;
    grid-row: 2;
    flex: 1 1 auto;
    text-align: center;
  }

  .lang-toggle {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }
}

/* Final CTA polish. */
.button {
  min-height: 56px;
  padding: 15px 26px;
  font-size: 1.02rem;
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.12);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button.primary {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, var(--red-dirt), var(--fall-orange));
  box-shadow: 0 18px 34px rgba(168, 67, 29, 0.28);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(168, 67, 29, 0.34);
}

.hero .button.primary {
  min-height: 62px;
  padding-inline: 34px;
  font-size: 1.08rem;
}

.pass-card .button {
  min-height: 60px;
  font-size: 1.05rem;
}

.site-header .button.compact {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 0.96rem;
}

@media (max-width: 820px) {
  .site-header .button.compact {
    display: none;
  }

  .hero .button.primary,
  .pass-card .button {
    min-height: 56px;
  }
}

/* Final spacing and mobile hero polish. */
.section {
  padding-top: clamp(34px, 5vw, 68px);
  padding-bottom: clamp(42px, 6vw, 82px);
}

@media (max-width: 820px) {
  .hero {
    background-position: center center;
  }

  .stats-bar div + div::before {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 560px) {
  .section {
    padding-top: 32px;
  }
}

/* Responsive audit pass: keep every section stable from desktop to narrow phones. */
img,
iframe {
  max-width: 100%;
}

.site-shell,
.section,
.registration-band,
.site-footer {
  overflow-x: clip;
}

@media (max-width: 1180px) {
  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-grid {
    grid-template-columns: 1fr;
  }

  .map-panel {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .split,
  .registration-grid,
  .stay-planner,
  .updates-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .updates-copy {
    grid-template-columns: 1fr;
  }

  .updates-copy .button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .facebook-embed-grid {
    grid-template-columns: 1fr;
  }

  .facebook-page-frame {
    width: min(340px, 100%);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-bar div {
    padding: 16px 16px 18px 0;
  }

  .stats-bar div + div::before {
    top: 18%;
    bottom: 18%;
    left: -10px;
    width: 1px;
    height: auto;
  }
}

@media (max-width: 700px) {
  h1 {
    font-size: clamp(3.35rem, 13vw, 5.5rem);
  }

  h2 {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .hero {
    min-height: 640px;
    padding-top: 72px;
    background-position: center center;
  }

  .hero-content {
    padding-bottom: 28px;
  }

  .card-grid.four,
  .card-grid.three,
  .faq-grid,
  .stay-notes {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .map-frame,
  .rally-map {
    min-height: 390px;
  }

  .map-key {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-header .header-actions {
    position: static;
    inset: auto;
    z-index: auto;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small {
    font-size: 0.78rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-bar div:nth-child(odd)::before {
    display: none;
  }

  .stats-bar div + div::before {
    left: -8px;
  }

  .stats-bar strong {
    font-size: 1.55rem;
  }

  .stats-bar span {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .stay-intro {
    min-height: 430px;
    padding: 22px;
  }

  .map-panel,
  .pass-card {
    padding: 20px;
  }

  .contact-item strong {
    font-size: 1.28rem;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .brand span {
    display: block;
  }

  .brand strong {
    font-size: 0.82rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .hero {
    min-height: 600px;
  }

  .site-header .header-actions {
    position: static;
    inset: auto;
    z-index: auto;
  }

  .button {
    width: 100%;
    padding-inline: 18px;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stats-bar div + div::before {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 1px;
  }
}

/* Final audit guards. */
.brand strong {
  font-size: clamp(1.45rem, 1.7vw, 1.85rem);
}

.brand small {
  font-size: clamp(1.16rem, 1.35vw, 1.42rem);
}

.pass-card {
  padding-top: 16px;
}

.pass-card div:first-child {
  padding-top: 0;
}

.stay-notes > span {
  min-width: 0;
}

.stay-notes span span {
  overflow-wrap: normal;
}

.contact-item[href^="mailto:"] strong,
.footer-contact a[href^="mailto:"] {
  text-transform: none;
}

.contact-item strong {
  font-size: 1.42rem;
}

.contact-item[href^="mailto:"] strong {
  font-size: 1.5rem;
  letter-spacing: 0;
}

@media (max-width: 820px) {
  .site-header .header-actions {
    position: static;
    inset: auto;
    z-index: auto;
  }

  .brand span {
    display: block;
  }

  .brand strong {
    font-size: 1.18rem;
  }

  .brand small {
    font-size: 0.98rem;
  }
}

@media (max-width: 700px) {
  .stay-notes {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stay-notes > span {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .stay-notes strong {
    font-size: 1.25rem;
  }

  .stay-notes span span {
    font-size: 0.84rem;
  }
}

@media (max-width: 520px) {
  .brand strong {
    font-size: 1.02rem;
  }

  .brand small {
    font-size: 0.84rem;
  }

  .contact-item[href^="mailto:"] strong {
    font-size: clamp(0.96rem, 4.2vw, 1.16rem);
    letter-spacing: 0;
    white-space: nowrap;
  }

  .pass-card {
    padding-top: 14px;
  }
}

@media (max-width: 380px) {
  .brand strong {
    font-size: 0.9rem;
  }

  .brand small {
    font-size: 0.74rem;
  }
}

@media (max-width: 820px) {
  .site-header .button.compact {
    display: none;
  }
}
