/* ═══════════════════════════════════════════════════════════
   FONTS
   ═══════════════════════════════════════════════════════════ */
@font-face {
  font-family: 'GeorgiaPro';
  src: url('../fonts/georgia-pro-cond/GeorgiaPro-CondLight.woff') format('woff');
}


/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS  (swap these when real assets arrive)
   ═══════════════════════════════════════════════════════════ */
:root {
  --color-bg:        #6d5a5a;
  --color-cta:       #b56969;
  --color-cta-hover: #c97a7a;
  --color-text:      #ffffff;
  --hero-img:        url('../img/videoheader.jpg');
  --about-img:       url('../img/runningfield.jpg');
  --grid-margin:     14rem;

  --medium-copy:     clamp(1.5rem, 2.2vw, 2.5rem);
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'GeorgiaPro', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
}

em {
  font-family: 'GeorgiaPro', sans-serif;
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════
   12-COLUMN GRID BASE
   ═══════════════════════════════════════════════════════════ */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  padding-inline: var(--grid-margin);
}

/* ═══════════════════════════════════════════════════════════
   CTA BUTTON
   ═══════════════════════════════════════════════════════════ */
.btn-cta {
  font-family: 'GeorgiaPro', sans-serif;
  font-size: 1.1rem;
  color: var(--color-text);
  background-color: var(--color-cta);
  border: none;
  border-radius: 9999px;
  padding: 0.9em 2.5em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
  background-color: var(--color-cta-hover);
  box-shadow: inset 0 0 20px rgba(255, 100, 100, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   TOPBAR NAV
   ═══════════════════════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
}

.topbar-brand {
  font-family: 'GeorgiaPro', serif;
  font-size: 1.1rem;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

.topbar-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.topbar-links a {
  font-family: 'GeorgiaPro', serif;
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.04em;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.topbar-links a:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 1 — HERO
   ═══════════════════════════════════════════════════════════ */
.s-hero {
  background: var(--hero-img) center / cover no-repeat;
  min-height: 100vh;
}

/* Grid: headline+CTA centered, testimonials pinned to bottom */
.s-hero .grid-12 {
  min-height: 100vh;
  padding-block: 2rem;
  /* rows: space | headline | cta | space | testimonials | bottom-pad */
  grid-template-rows: 1fr auto auto 1fr auto 2rem;
  row-gap: 0;
  column-gap: 1.5rem;
}

/* — Headline — */
.hero-headline {
  font-family: 'GeorgiaPro', serif;
  font-weight: normal;
  grid-column: 1 / 11;
  grid-row: 2;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* — CTA — */
.hero-cta-wrap {
  grid-column: 1 / 5;
  grid-row: 3;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 3 — SHADE
   ═══════════════════════════════════════════════════════════ */
.s-shade {
  position: relative;  /* positioning context for headline */
  padding: 0 4em;      /* controls image distance from window edge */
}


.shade-img {
  width: 100%;
  opacity: 0.8;
  display: block;
}

/* Headline is absolute relative to .s-shade (full-width section).
   left: var(--grid-margin) = exactly 14rem from window = same as .hero-headline */
.shade-headline {
  position: absolute;
  top: 3rem;
  left: var(--grid-margin);
  font-family: 'GeorgiaPro', serif;
  font-weight: normal;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.1;
  color: var(--color-text);
  max-width: 60%;
}

.shade-body {
  grid-row: 5/13;
  grid-column: 7/13;
  z-index: 100;
  margin-top: -6rem;
  /* left-pad = grid-margin minus section's 4em padding = content starts at grid col 1 */
  padding: 2rem 2rem 2rem calc(var(--grid-margin) - 4em);
  background: var(--color-bg);
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  line-height: 1.6;
  color: var(--color-text);
  max-width: 75%;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 2 — ABOUT
   ═══════════════════════════════════════════════════════════ */
.s-about {
  min-height: 100vh;
  overflow: hidden;
}

.s-about .grid-12 {
  min-height: 100vh;
  /* rows: top-pad | text | cta | bottom-pad */
  grid-template-rows: 6rem 1fr auto 5rem;
}

/* Image spans the full right half and all rows, offset from top */
.about-img {
  opacity: 0.7;
  grid-column: 6 / 13;
  grid-row: 1 / 4;
  background: var(--about-img) center / cover no-repeat;
  margin-top: 5rem;
  z-index: 0;
}

/* Text overlays the image from the left */
.about-text {
  grid-column: 1 / 9;   /* cols 1–8: overlaps image area */
  grid-row: 2 / 3;
  z-index: 1;
  padding: 2rem 3rem 2rem 2rem;
  align-self: center;
}

.about-text p {
  font-size: var(--medium-copy);
  color: var(--color-text);
}

/* CTA sits below the text, left-aligned */
.about-cta-wrap {
  grid-column: 1 / 6;
  grid-row: 3;
  z-index: 1;
  padding: 0 0 0 2rem;
  align-self: center;
}

/* — Testimonial cards — */
.testimonial {
  padding: 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* desktop: 3 cards across the full 12 columns, pinned to bottom row */
.t1 { grid-column: 1 / 5;  grid-row: 5; }
.t2 { grid-column: 5 / 9;  grid-row: 5; }
.t3 { grid-column: 9 / 13; grid-row: 5; }

.t-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.t-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-cta);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 3 — INTRO VIDEO
   ═══════════════════════════════════════════════════════════ */

.s-intro-video {
  display: none; 
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Iframe wrapper fills the section, below all content */
.iv-video-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Cover-sizing trick for 16:9 iframes */
.iv-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh;   /* 100 / 0.5625 */
  height: 56.25vw;   /* 9/16 as vw */
  min-width: 100%;
  min-height: 100%;
  border: 0;
}

/* Semi-transparent overlay for text legibility */
.iv-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 1;
}

/* Grid: raised above the overlay */
.s-intro-video .grid-12 {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding-block: 2rem;
  /* rows: space | headline | cta | space | testimonials | bottom-pad */
  grid-template-rows: 1fr auto auto 1fr auto 2rem;
  row-gap: 0;
  column-gap: 1.5rem;
}

.iv-headline {
  font-family: 'GeorgiaPro', serif;
  font-weight: normal;
  grid-column: 1 / 11;
  grid-row: 2;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.iv-cta-wrap {
  grid-column: 1 / 5;
  grid-row: 3;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE  (< 1024px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {

  /* — Topbar — */
  .topbar-inner {
    padding: 1rem 1.5rem;
  }

  .topbar-links {
    gap: 1.5rem;
  }

  /* — Hero — */
  .s-hero .grid-12 {
    padding: 1.5rem;
    /* rows: top-pad | headline | cta | gap | t1 | t2 | t3 | bottom-pad */
    grid-template-rows: 1fr auto auto 3rem auto auto auto 1.5rem;
  }

  .hero-headline {
    grid-column: 1 / 13;
    grid-row: 2;
  }

  .hero-cta-wrap {
    grid-column: 1 / 13;
    grid-row: 3;
  }

  /* Testimonials stack vertically */
  .t1 { grid-column: 1 / 13; grid-row: 5; }
  .t2 { grid-column: 1 / 13; grid-row: 6; }
  .t3 { grid-column: 1 / 13; grid-row: 7; }

  /* — Shade — */
  .shade-headline {
    left: 1.5rem;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    max-width: 90%;
  }

  .shade-body {
    margin-top: -3rem;
    max-width: 100%;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  }

  /* — Intro Video — */
  .s-intro-video .grid-12 {
    padding: 1.5rem;
    grid-template-rows: 1fr auto auto 3rem auto auto auto 1.5rem;
  }

  .iv-headline {
    grid-column: 1 / 13;
    grid-row: 2;
  }

  .iv-cta-wrap {
    grid-column: 1 / 13;
    grid-row: 3;
  }

  /* — About — */
  .s-about .grid-12 {
    /* rows: image | text | cta | pad */
    grid-template-rows: 50vw auto auto 3rem;
  }

  .about-img {
    grid-column: 1 / 13;
    grid-row: 1 / 2;
    margin-top: 3rem;
  }

  .about-text {
    grid-column: 1 / 13;
    grid-row: 2 / 3;
    padding: 2rem 1.5rem;
  }

  .about-cta-wrap {
    grid-column: 1 / 13;
    grid-row: 3;
    padding: 0 1.5rem;
  }

}
