/* ==========================================================
   BRAT — Blue Ridge Adventure Touring
   Community Site v0.2

   Six stars. Six principles. One community.

   Visual direction:
   Blue Ridge • Sunrise • Adventure • Community
   ========================================================== */


/* ==========================================================
   01. RESET
   ========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: #071722;
  color: #10212c;

  font-family:
    Inter,
    "Helvetica Neue",
    Arial,
    sans-serif;

  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}


/* ==========================================================
   02. DESIGN TOKENS
   ========================================================== */

:root {

  /* Blue Ridge */

  --navy: #071c2b;
  --navy-deep: #04131e;
  --navy-soft: #102b3d;

  --ridge-blue: #315f83;
  --ridge-blue-bright: #3979a8;
  --ridge-blue-light: #83a7be;

  --sky: #dbe7ed;


  /* Sunrise */

  --sunrise: #efc29d;
  --sunrise-light: #f5ddc5;
  --sunset-glow: #d99158;


  /* Paper */

  --paper: #f3efe5;
  --paper-warm: #e9e1d2;
  --paper-light: #fbf8f1;


  /* Ink */

  --ink: #0b1c27;
  --ink-soft: #344955;
  --muted: #687982;

  --white: #fffdf8;


  /* Structure */

  --max-width: 1180px;

  --shadow:
    0 24px 70px rgba(2, 16, 26, 0.24);

  --shadow-dark:
    0 24px 70px rgba(0, 0, 0, 0.35);
}


/* ==========================================================
   03. GLOBAL
   ========================================================== */

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.section-label {
  margin: 0 0 12px;

  color: var(--ridge-blue-bright);

  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.22em;

  text-transform: uppercase;
}

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

  color: var(--ink);

  line-height: 0.98;

  text-transform: uppercase;
}

h1,
h2 {
  font-weight: 950;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 24px;

  font-size: clamp(2.8rem, 8vw, 5.7rem);
}

p {
  margin-top: 0;
}

.lead {
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.45;
}


/* ==========================================================
   04. HERO
   ========================================================== */

.hero {
  position: relative;

  min-height: 100svh;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  background-image:
    linear-gradient(
      90deg,
      rgba(4, 19, 30, 0.92) 0%,
      rgba(4, 19, 30, 0.72) 38%,
      rgba(4, 19, 30, 0.22) 68%,
      rgba(4, 19, 30, 0.10) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4, 19, 30, 0.15) 0%,
      rgba(4, 19, 30, 0.10) 55%,
      rgba(4, 19, 30, 0.95) 100%
    ),
    url("../images/brat-hero.png");

  background-size: cover;

  /*
     Mobile intentionally favors the vehicles and dog.
     Desktop position is adjusted later.
  */
  background-position: 58% center;
}


/* ---------- HERO PAPER EDGE ---------- */

.hero::after {
  content: "";

  position: absolute;
  z-index: 3;

  right: -5%;
  bottom: -28px;
  left: -5%;

  height: 58px;

  background: var(--paper);

  clip-path: polygon(
    0 45%,
    5% 31%,
    10% 50%,
    16% 29%,
    22% 46%,
    28% 26%,
    35% 43%,
    42% 24%,
    49% 47%,
    56% 28%,
    63% 44%,
    70% 23%,
    77% 48%,
    84% 27%,
    91% 44%,
    96% 30%,
    100% 42%,
    100% 100%,
    0 100%
  );
}


/* ==========================================================
   05. NAVIGATION
   ========================================================== */

.nav {
  position: relative;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-top: 24px;
}

.brand {
  display: flex;
  flex-direction: column;

  color: var(--white);

  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;

  letter-spacing: -0.04em;

  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.35);
}

.brand-stars {
  margin-bottom: 6px;

  color: var(--sunrise-light);

  font-size: 0.53rem;

  letter-spacing: 0.18em;
}

.nav-rsvp {
  border: 1px solid rgba(255, 255, 255, 0.65);

  padding: 9px 18px;

  background: rgba(4, 19, 30, 0.28);

  color: var(--white);

  backdrop-filter: blur(8px);

  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.13em;

  text-transform: uppercase;

  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-rsvp:hover {
  transform: translateY(-2px);

  background: var(--paper-light);
  color: var(--navy);
}


/* ==========================================================
   06. HERO CONTENT
   ========================================================== */

.hero-content {
  position: relative;
  z-index: 2;

  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding-top: 90px;
  padding-bottom: 135px;
}

.eyebrow {
  margin-bottom: 13px;

  color: var(--sunrise-light);

  font-size: clamp(0.7rem, 2vw, 0.9rem);
  font-weight: 900;

  letter-spacing: 0.27em;

  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.45);
}

.six-stars {
  margin-bottom: 18px;

  color: var(--white);

  font-size: clamp(0.85rem, 3vw, 1.2rem);

  letter-spacing: 0.35em;

  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  max-width: 930px;

  margin-bottom: 28px;

  color: var(--white);

  font-size: clamp(3.8rem, 15vw, 9.5rem);
  line-height: 0.8;

  text-shadow:
    0 6px 32px rgba(0, 0, 0, 0.45);
}

.hero h1 span {
  color: var(--sunrise-light);
}

.hero-copy {
  max-width: 610px;

  margin-bottom: 36px;

  color: #f5eee4;

  font-size: clamp(1.02rem, 3vw, 1.3rem);

  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;
}


/* ==========================================================
   07. BUTTONS
   ========================================================== */

.button {
  display: inline-flex;

  min-height: 52px;

  align-items: center;
  justify-content: center;

  border: 1px solid transparent;

  padding: 13px 23px;

  cursor: pointer;

  font-weight: 950;
  letter-spacing: 0.075em;

  text-align: center;
  text-transform: uppercase;

  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ridge-blue-bright);
  color: var(--white);

  box-shadow:
    0 10px 28px rgba(12, 74, 112, 0.25);
}

.button-primary:hover {
  background: #4489b8;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.65);

  background: rgba(4, 19, 30, 0.30);

  color: var(--white);

  backdrop-filter: blur(8px);
}

.button-secondary:hover {
  border-color: var(--white);

  background: rgba(255, 255, 255, 0.13);
}

.button-full {
  width: 100%;
}


/* ==========================================================
   08. FIRST GATHERING
   ========================================================== */

.event-section {
  position: relative;

  overflow: hidden;

  padding: 115px 0 125px;

  background:
    radial-gradient(
      ellipse at 82% 20%,
      rgba(49, 95, 131, 0.08),
      transparent 32%
    ),
    var(--paper);

  color: var(--ink);
}


/* ---------- TOPOGRAPHIC PAPER TEXTURE ---------- */

.event-section::before {
  content: "";

  position: absolute;
  inset: 0;

  opacity: 0.07;

  pointer-events: none;

  background:
    repeating-radial-gradient(
      ellipse at 85% 30%,
      transparent 0,
      transparent 23px,
      var(--ridge-blue) 24px,
      transparent 25px,
      transparent 42px
    );
}

.event-grid {
  position: relative;
  z-index: 1;

  display: grid;

  gap: 60px;
}

.event-section h2 {
  max-width: 700px;
}

.event-section p:not(.section-label):not(.event-kicker) {
  max-width: 680px;
}


/* ---------- EVENT CARD ---------- */

.event-card {
  position: relative;

  overflow: hidden;

  border-top: 6px solid var(--ridge-blue-bright);

  padding: 36px;

  background:
    linear-gradient(
      145deg,
      var(--navy-soft),
      var(--navy-deep)
    );

  color: var(--white);

  box-shadow: var(--shadow-dark);
}

.event-card::before {
  content: "";

  position: absolute;

  top: -70px;
  right: -70px;

  width: 220px;
  height: 220px;

  border: 1px solid rgba(131, 167, 190, 0.14);
  border-radius: 50%;

  box-shadow:
    0 0 0 28px rgba(131, 167, 190, 0.04),
    0 0 0 58px rgba(131, 167, 190, 0.025);
}

.event-card::after {
  content: "★★★★★★";

  position: absolute;

  top: 27px;
  right: 27px;

  color: var(--sunrise-light);

  font-size: 0.5rem;

  letter-spacing: 0.12em;
}

.event-kicker {
  position: relative;

  margin-bottom: 27px;

  color: var(--ridge-blue-light);

  font-size: 0.7rem;
  font-weight: 900;

  letter-spacing: 0.18em;
}

.event-card h3 {
  position: relative;

  margin-bottom: 30px;

  color: var(--white);

  font-size: clamp(2.6rem, 8vw, 4.6rem);
}

.event-details {
  position: relative;

  margin-bottom: 30px;

  border-top:
    1px solid rgba(255, 255, 255, 0.18);

  padding-top: 23px;

  color: #dce5e8;
}

.event-details strong {
  color: var(--sunrise-light);

  font-size: 1.2rem;
}


/* ==========================================================
   09. SIX PRINCIPLES
   ========================================================== */

.principles {
  position: relative;

  overflow: hidden;

  padding: 115px 0 130px;

  background:
    linear-gradient(
      180deg,
      var(--paper-light),
      #e5e9e8
    );

  color: var(--ink);
}


/* ---------- RIDGE DIVIDER ---------- */

.principles::before {
  content: "";

  position: absolute;

  top: -1px;
  right: 0;
  left: 0;

  height: 58px;

  background: var(--paper);

  clip-path: polygon(
    0 0,
    100% 0,
    100% 28%,
    92% 48%,
    85% 29%,
    77% 55%,
    68% 32%,
    60% 60%,
    52% 35%,
    44% 56%,
    35% 30%,
    27% 52%,
    18% 29%,
    9% 49%,
    0 30%
  );
}

.principles h2 {
  max-width: 900px;
}

.principles-intro {
  max-width: 680px;

  margin-bottom: 55px;

  color: var(--ink-soft);

  font-size: 1.15rem;
}


/* ---------- PRINCIPLE GRID ---------- */

.principle-grid {
  display: grid;

  grid-template-columns: 1fr;

  gap: 14px;
}

.principle-grid article {
  position: relative;

  min-height: 200px;

  overflow: hidden;

  border: 1px solid rgba(49, 95, 131, 0.16);

  padding: 31px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.85),
      rgba(237, 239, 235, 0.78)
    );

  box-shadow:
    0 10px 35px rgba(9, 36, 52, 0.07);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.principle-grid article:hover {
  transform: translateY(-4px);

  box-shadow:
    0 18px 45px rgba(9, 36, 52, 0.12);
}

.principle-grid article::after {
  content: "";

  position: absolute;

  right: -35px;
  bottom: -55px;

  width: 140px;
  height: 140px;

  border:
    1px solid rgba(49, 95, 131, 0.09);

  border-radius: 50%;
}

.principle-grid article > span {
  display: block;

  margin-bottom: 22px;

  color: var(--ridge-blue-bright);

  font-size: 1.45rem;
}

.principle-grid h3 {
  margin-bottom: 9px;

  color: var(--navy);

  font-size: 1.55rem;

  letter-spacing: -0.02em;
}

.principle-grid p {
  margin-bottom: 0;

  color: var(--muted);
}


/* ==========================================================
   10. RSVP
   ========================================================== */

.rsvp-section {
  position: relative;

  overflow: hidden;

  padding: 120px 0;

  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(57, 121, 168, 0.25),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      #0c3148,
      var(--navy-deep) 60%
    );

  color: var(--white);
}


/* ---------- SUBTLE MOUNTAIN SILHOUETTE ---------- */

.rsvp-section::before {
  content: "";

  position: absolute;

  right: -5%;
  bottom: 0;
  left: -5%;

  height: 150px;

  opacity: 0.25;

  background: #06141e;

  clip-path: polygon(
    0 100%,
    0 72%,
    8% 48%,
    14% 64%,
    23% 35%,
    30% 59%,
    38% 29%,
    47% 62%,
    57% 32%,
    65% 54%,
    73% 25%,
    82% 58%,
    91% 37%,
    100% 64%,
    100% 100%
  );
}

.rsvp-grid {
  position: relative;
  z-index: 1;

  display: grid;

  gap: 55px;
}

.rsvp-section h2 {
  color: var(--white);
}

.rsvp-section .section-label {
  color: var(--ridge-blue-light);
}

.rsvp-grid > div > p:not(.section-label) {
  max-width: 590px;

  color: #d6e0e4;
}


/* ==========================================================
   11. RSVP FORM
   ========================================================== */

.rsvp-form {
  padding: 29px;

  border:
    1px solid rgba(255, 255, 255, 0.16);

  background:
    rgba(4, 19, 30, 0.68);

  backdrop-filter: blur(10px);

  box-shadow: var(--shadow-dark);
}

.field-row {
  display: grid;

  gap: 18px;
}

.rsvp-form label {
  display: block;

  margin-bottom: 20px;

  color: #e4eaeb;

  font-size: 0.76rem;
  font-weight: 900;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;

  margin-top: 8px;

  border: 1px solid #b8c5c9;
  border-radius: 0;

  outline: none;

  padding: 14px 15px;

  background: var(--paper-light);
  color: var(--ink);

  text-transform: none;

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--ridge-blue-bright);

  box-shadow:
    0 0 0 3px rgba(57, 121, 168, 0.22);
}

.rsvp-form textarea {
  resize: vertical;
}


/* ---------- CHECKBOX ---------- */

.checkbox {
  display: grid !important;

  grid-template-columns: 22px 1fr;

  gap: 11px;

  align-items: start;

  text-transform: none !important;

  letter-spacing: normal !important;

  font-weight: 600 !important;

  line-height: 1.45;
}

.checkbox input {
  width: 18px;
  height: 18px;

  margin: 2px 0 0;

  accent-color: var(--ridge-blue-bright);
}

.form-note {
  margin: 14px 0 0;

  color: #8ea4ae;

  font-size: 0.78rem;

  text-align: center;
}

.form-message {
  min-height: 24px;

  margin-top: 14px;

  color: var(--sunrise-light);

  font-weight: 800;

  text-align: center;
}


/* ==========================================================
   12. FOOTER
   ========================================================== */

footer {
  padding: 48px 0;

  border-top:
    1px solid rgba(255, 255, 255, 0.07);

  background: #030d14;

  color: #81949d;
}

.footer-content {
  display: grid;

  gap: 22px;
}

.footer-content > div:first-child {
  display: flex;

  flex-direction: column;
}

.footer-content strong {
  color: var(--paper-light);

  font-size: 1.8rem;

  line-height: 1;
}

.footer-content span {
  margin-top: 5px;

  font-size: 0.68rem;
  font-weight: 800;

  letter-spacing: 0.15em;

  text-transform: uppercase;
}

.footer-stars {
  color: var(--ridge-blue-light);

  letter-spacing: 0.22em;
}

footer p {
  max-width: 500px;

  margin: 0;

  font-size: 0.76rem;
}


/* ==========================================================
   13. RESPONSIVE — TABLET
   ========================================================== */

@media (min-width: 700px) {

  .container {
    width:
      min(calc(100% - 70px), var(--max-width));
  }

  .field-row {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .principle-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .rsvp-form {
    padding: 40px;
  }

}


/* ==========================================================
   14. RESPONSIVE — DESKTOP
   ========================================================== */

@media (min-width: 950px) {

  .hero {
    background-position: center 58%;
  }

  .nav {
    padding-top: 32px;
  }

  .hero-content {
    padding-top: 110px;
  }

  .event-grid {
    grid-template-columns:
      1.15fr 0.85fr;

    align-items: center;
  }

  .principle-grid {
    grid-template-columns:
      repeat(3, 1fr);
  }

  .rsvp-grid {
    grid-template-columns:
      0.85fr 1.15fr;

    align-items: start;
  }

  .footer-content {
    grid-template-columns:
      1fr auto 1fr;

    align-items: center;
  }

  footer p {
    justify-self: end;

    text-align: right;
  }

}




/* ==========================================================
   16. DESKTOP COMPOSITION REFINEMENTS
   Hero + principles only. Mobile/tablet remain unchanged.
   ========================================================== */

@media (min-width: 1100px) {

  .hero {
    min-height: 100vh;
    max-height: 1000px;
    background-position: center 56%;
  }

  .hero-content {
    justify-content: center;
    padding-top: 55px;
    padding-bottom: 90px;
  }

  .hero h1 {
    max-width: 780px;
    margin-bottom: 22px;
    font-size: clamp(5rem, 7.2vw, 7.4rem);
    line-height: 0.82;
  }

  .hero-copy {
    max-width: 590px;
    margin-bottom: 28px;
    font-size: 1.12rem;
  }

  .eyebrow { margin-bottom: 10px; }
  .six-stars { margin-bottom: 14px; }

  .principles {
    padding: 90px 0 95px;
  }

  .principles > .container {
    display: grid;
    grid-template-columns: minmax(330px, 0.75fr) minmax(0, 1.25fr);
    column-gap: 60px;
    align-items: center;
  }

  .principles .section-label,
  .principles h2,
  .principles-intro {
    grid-column: 1;
  }

  .principles h2 {
    max-width: 480px;
    margin-bottom: 22px;
    font-size: clamp(3.5rem, 4.5vw, 5rem);
    line-height: 0.91;
  }

  .principles-intro {
    max-width: 430px;
    margin-bottom: 0;
    font-size: 1.05rem;
  }

  .principle-grid {
    grid-column: 2;
    grid-row: 1 / span 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .principle-grid article {
    min-height: 180px;
    padding: 24px;
  }

  .principle-grid article > span { margin-bottom: 16px; }
  .principle-grid h3 { font-size: 1.2rem; }
  .principle-grid p { font-size: 0.9rem; line-height: 1.42; }
}

@media (min-width: 1500px) {
  .hero h1 { font-size: 7.2rem; }
  .hero-content { padding-top: 45px; }
  .principles > .container { column-gap: 75px; }
}


/* ==========================================================
   15. ACCESSIBILITY / MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

}

.park-map {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.park-map summary {
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.park-map summary:hover {
  opacity: 0.8;
}

.park-map-panel {
  padding: 0 0 1.25rem;
}

.park-map-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.35rem;
}

.park-map-panel p {
  margin: 0.85rem 0 0;
}