/* =========================================================
   ACALOOPS
   ========================================================= */


/* ---------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------- */

:root {
  /* Colors */
  --cream: #f4f1e8;
  --green: #142219;
  --white: #ffffff;
  --muted-green: #465248;
  --segment: #BA8E23;
  --footer-text: #bdc4be;

  /* Layout */
  --content-width: 1120px;
  --page-padding: 28px;
}


/* ---------------------------------------------------------
   2. GLOBAL
   --------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

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

  color: var(--green);
  background: var(--cream);
  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
}

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

address {
  font-style: normal;
}

a {
  color: inherit;
}


/* ---------------------------------------------------------
   3. HERO
   --------------------------------------------------------- */

.hero {
  min-height: 88vh;

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

  padding: 72px var(--page-padding);

  color: var(--white);
  text-align: center;

  background:
    linear-gradient(
      rgba(8, 16, 10, 0.12),
      rgba(8, 16, 10, 0.42)
    ),
    url("assets/images/julia-acalanes-ridge-diablo-view.jpeg");

  background-size: cover;
  background-position: center;
}

.hero-content {
  width: 100%;
  max-width: 1100px;

  /* Visually lower the hero copy against the background image. */
  transform: translateY(40px);
}

.hero-title {
  margin: 0;

  font-size: clamp(5rem, 14vw, 10.5rem);
  font-weight: 600;

  line-height: 0.8;
  letter-spacing: -0.03em;
}

.hero-subtitle,
.hero-date-location {
  margin: 28px 0 0;

  font-family: "Roboto Condensed", sans-serif;

  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.65);
}

.hero-subtitle {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 700;
}

.hero-date-location {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 400;
}

.hero .button {
  margin-top: 36px;
}


/* ---------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------- */

.button {
  display: inline-block;

  padding: 12px 24px;

  border: 2px solid currentColor;
  border-radius: 999px;

  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 0.1em;

  text-decoration: none;
  text-transform: uppercase;

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

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

.button-large {
  padding: 18px 36px;
  font-size: 1rem;
}

.button-light {
  color: var(--green);
  background: var(--white);
  border-color: var(--white);
}

.button-dark {
  color: var(--green);
  background: transparent;
}

/* ---------------------------------------------------------
   5. MAIN LAYOUT
   --------------------------------------------------------- */

.site-content {
  width: min(
    calc(100% - (var(--page-padding) * 2)),
    var(--content-width)
  );

  margin: 0 auto;
}

.content-section {
  padding: 72px 0;

  border-bottom: 1px solid rgba(20, 34, 25, 0.28);
}

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

  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 800;

  line-height: 0.95;
  letter-spacing: -0.04em;
}


/* ---------------------------------------------------------
   6. DETAILS
   --------------------------------------------------------- */

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 64px;
}

.detail h3 {
  margin: 0 0 8px;

  font-size: 1.1rem;
  font-weight: 700;

  line-height: 1.6;
}

.detail p,
.detail address {
  margin: 0;

  font-size: 1.1rem;
  line-height: 1.6;
}


/* ---------------------------------------------------------
   7. ROUTE
   --------------------------------------------------------- */

.route-intro {
  max-width: 60ch;
  margin: 0;

  font-size: 1.1rem;
  line-height: 1.6;
}

/* Shared stat grid.
   Defaults to the five-column route summary.
   Segment Showdown overrides this below with three columns. */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);

  gap: 28px;
  margin-top: 64px;
}

.stat strong {
  display: block;

  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;

  line-height: 0.95;
  letter-spacing: -0.05em;

  white-space: nowrap;
}

.stat span {
  display: block;

  margin-top: 12px;

  color: var(--muted-green);

  font-size: 0.75rem;
  font-weight: 700;

  line-height: 1.25;
  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.elevation-profile {
  margin-top: 48px;
}

.elevation-profile img {
  display: block;
  width: 100%;
  height: auto;
}

.route-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  
  gap: 12px;
  margin-top: 28px;
}


/* ---------------------------------------------------------
   8. SEGMENT SHOWDOWN
   --------------------------------------------------------- */

.segments .section-label {
  text-align: center;
  margin-bottom: 48px;
}

.segments-grid {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;

  gap: 48px 96px;
  text-align: center;
}

.segment-number {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  margin: 0 auto 16px;

  border-radius: 50%;
  background: var(--segment);
  color: var(--cream);

  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

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

.segment-start {
  display: block;
  margin-top: 4px;

  font-size: 0.8em;
}

/* Compact three-column version used inside each Strava segment. */
.segments .stats {
  grid-template-columns: repeat(3, max-content);
  justify-content: center;

  gap: 24px;
  margin-top: 24px;
}

.segments .stat strong {
  font-size: 1.4rem;
}


/* ---------------------------------------------------------
   9. RSVP
   --------------------------------------------------------- */

.content-section.rsvp-section {
  padding: 48px 0;
  text-align: center;
}

.rsvp-section .button {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}


/* ---------------------------------------------------------
   10. FOOTER
   --------------------------------------------------------- */

footer {
  padding: 32px var(--page-padding);

  color: var(--footer-text);
  background: var(--green);

  text-align: center;

  font-size: 1rem;
  line-height: 1.6;
}

footer p {
  margin: 0;
}

footer p + p {
  margin-top: 1lh;
}


/* ---------------------------------------------------------
   11. TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

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

  .details-grid {
    gap: 48px;
  }
}

/* ---------------------------------------------------------
   12. SEGMENT GRID BREAKPOINT
   --------------------------------------------------------- */

@media (max-width: 800px) {

  .segments-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ---------------------------------------------------------
   13. MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {

  :root {
    --page-padding: 20px;
  }

  .hero {
    min-height: 82vh;

    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-title {
    font-size: 16vw;
    line-height: 0.82;
    letter-spacing: -0.04em;

    white-space: nowrap;
  }

  .content-section {
    padding: 64px 0;
  }

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

    gap: 32px 24px;
    margin-top: 48px;
  }

  .stat strong {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }
   
  .details-grid {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .route-links {
    flex-direction: column;
    align-items: center;
  }

  .route-links .button {
    width: 100%;
    max-width: 320px;

    text-align: center;
  }

  .button-large {
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
    /* font-size: 0.75rem; */
  }
   
}
