/* ========================================
   TRAIL Hub v3 — Review-hardened version
   Private club invitation aesthetic.
   Dark, typographically confident, gold as foil.
   ======================================== */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --gold: #c9a84c;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --gold-glow: rgba(201, 168, 76, 0.06);
  --text: #e8e4dc;
  --text-dim: #8a8578;
  --text-muted: #5a5549;
  --rule: rgba(201, 168, 76, 0.2);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ========================================
   NOISE TEXTURE — subtle grain for depth
   ======================================== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.022;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* ========================================
   DIVIDERS — gold foil line, fades at edges
   ======================================== */
.divider {
  display: block;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--rule) 20%,
    var(--gold) 50%,
    var(--rule) 80%,
    transparent 100%
  );
  border: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--text);
}

h2 {
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

p {
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
  color: var(--text);
  max-width: 65ch;
}

/* ========================================
   CTA BUTTON — gold bar, black text
   ======================================== */
.cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 1rem 2.6rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.cta:hover {
  background: #d4b55a;
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: 10rem 0 6rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero .container {
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.eyebrow-line {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin-bottom: 2rem;
  max-width: 16ch;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 52ch;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* ========================================
   HERO DETAILS — event facts strip
   ======================================== */
.hero-details {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-detail {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  position: relative;
}

.hero-detail:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ========================================
   STATS ROW — big gold numbers
   ======================================== */
.stat-row {
  display: flex;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  min-width: 200px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.6rem;
  display: block;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 28ch;
}

.stat-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ========================================
   THE DAY — italic lead-in
   ======================================== */
.the-day-lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-style: italic;
  color: var(--text) !important;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  max-width: 40ch;
}

/* ========================================
   FORMAT COMPARISON — two-column editorial
   ======================================== */
.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 2rem;
}

.format-col-header {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--rule);
}

.format-col-header.old {
  color: var(--text-muted);
}

.format-col-header.new {
  color: var(--gold);
}

.format-cell {
  padding: 1.4rem 1.6rem;
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.format-cell.old {
  color: var(--text-muted);
}

.format-cell.new {
  color: var(--text);
}

/* ========================================
   REQUEST FORM — bottom-border inputs
   ======================================== */
.request-section {
  padding-bottom: 4rem;
}

.request-section h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1.2rem;
}

.form-intro {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 54ch;
}

.request-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 2.5rem;
  max-width: 640px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.form-group input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.7rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus {
  border-bottom-color: var(--gold);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.12);
}

.form-submit-row {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.form-submit-row button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 1rem 2.6rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-submit-row button:hover {
  background: #d4b55a;
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
}

.form-note {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  padding: 3rem 0;
  text-align: center;
}

footer .divider {
  margin-bottom: 2.5rem;
}

footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  max-width: none;
  margin: 0 auto;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--text-dim);
}

/* ========================================
   THANK YOU PAGE
   ======================================== */
.thanks-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.thanks-card {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  padding: 2.25rem;
  max-width: 760px;
}

.thanks-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

/* ========================================
   ANIMATIONS — staggered hero entrance
   ======================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.2s;
}

.hero h1 {
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.4s;
}

.hero-sub {
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.6s;
}

.hero-details {
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.7s;
}

.hero .cta {
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.8s;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .hero {
    padding: 7rem 0 4rem;
    min-height: auto;
  }

  .hero-details {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero-detail:not(:last-child)::after {
    display: none;
  }

  .stat-row {
    flex-direction: column;
    gap: 2rem;
  }

  /* On mobile, hide the "old" column and show
     contrast labels above each "new" cell */
  .format-grid {
    grid-template-columns: 1fr;
  }

  .format-col-header.old,
  .format-cell.old {
    display: none;
  }

  .format-col-header.new {
    display: none;
  }

  .format-cell.new {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .format-cell.new::before {
    content: attr(data-contrast);
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
  }

  .request-form {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .container {
    padding: 0 1.4rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 5rem 0 3rem;
  }

  h1 {
    font-size: 2rem;
  }

  section {
    padding: 3rem 0;
  }
}
