/* ============================================================
   WAHOO MARINE — Teaser Site Styles
   Brand Guide v1.0 | Updated March 2026
   ============================================================
   TABLE OF CONTENTS
   1. Design Tokens (Brand colors, type, spacing)
   2. Base Reset
   3. Utilities
   4. Hero Section
   5. Statement Section
   6. Signup Component
   7. Footer
   8. Responsive — Tablet (≤1100px)
   9. Responsive — Mobile (≤767px)
   ============================================================ */


/* ─── 1. DESIGN TOKENS ────────────────────────────────────── */

:root {
  /* Colors — Wahoo Marine Brand Guide v1.0 */
  --color-hydroflare:   #FFD100;       /* Primary / Signature yellow */
  --color-black:        #000000;
  --color-white:        #FFFFFF;
  --color-gray:         #53565A;       /* PMS Cool Gray 11 */
  --color-page-bg:      #F4F4F1;       /* Off-white page background */
  --color-hero-bg:      #0B1215;       /* Dark fallback behind video */
  --color-footer-bg:    #000000;

  /* Derived / UI tones */
  --color-line:         rgba(255, 209, 0, 0.55);   /* Hydroflare rule lines */
  --color-year:         rgba(0, 0, 0, 0.045);       /* Ghost year numeral */
  --color-muted-white:  rgba(255, 255, 255, 0.38);  /* Footer copyright */

  /* Typography */
  --font-display:  "Normalidad", sans-serif;   /* Headlines / brand statements */
  --font-body:     "Host Grotesk", sans-serif; /* All other copy */

  /* Layout */
  --max-width:     1440px;
  --gutter-xl:     188px;   /* Desktop left/right content margin */
  --gutter-md:     80px;    /* Tablet */
  --gutter-sm:     26px;    /* Mobile */
}


/* ─── 2. BASE RESET ───────────────────────────────────────── */

@font-face {
  font-family: "Normalidad";
  src: url("assets/Normalidad Extended-Medium-Web.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-page-bg);
  color: var(--color-black);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* Keyboard focus indicator — visible only on keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-hydroflare);
  outline-offset: 3px;
  border-radius: 2px;
}

button,
input {
  font: inherit;
}


/* ─── 3. UTILITIES ────────────────────────────────────────── */

/* Visually hidden — accessible labels */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Centered max-width frame */
.frame {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}


/* ─── 4. HERO ─────────────────────────────────────────────── */

.hero {
  position: relative;
  height: 1028px;
  overflow: hidden;
  background: var(--color-hero-bg);
}

/* Full-bleed video layer */
.hero__media,
.hero__video,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Subtle vignette over video */
.hero__overlay {
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.01)),
    linear-gradient(to top,    rgba(0,0,0,0.14),        rgba(0,0,0,0.02));
  pointer-events: none;
}

/* Positioned content layer */
.hero__frame {
  position: relative;
  width: min(100%, var(--max-width));
  height: 100%;
  margin: 0 auto;
}

.hero__logo {
  position: absolute;
  left: 636px;
  top: 48px;
  width: 168px;
}

/* "Ride Above" — 213px italic headline */
.hero__headline {
  position: absolute;
  left: var(--gutter-xl);
  top: 636px;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 20px;
  color: var(--color-white);
  line-height: 1;
}

.hero__ride {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 800;
  font-size: 213px;
  line-height: 1;
}

.hero__above {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 213px;
  line-height: 1;
}


/* ─── 5. STATEMENT ────────────────────────────────────────── */

.statement {
  position: relative;
  min-height: 1760px;
  background: var(--color-page-bg);
  overflow: hidden;
}

/* Texture overlay */
.statement__texture {
  position: absolute;
  inset: 0;
  background-image: url("assets/white-texture.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  opacity: 0.72;
  pointer-events: none;
}

/* Hydroflare horizontal rule lines */
.statement__lines {
  position: absolute;
  inset: 0;
  /* Interval = line-height (120px). Offset = title-top (108px) so lines land on text baselines */
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 119px,
    var(--color-line) 119px,
    var(--color-line) 121px
  );
  background-position: 0 108px;
  pointer-events: none;
}

.statement__frame {
  position: relative;
  width: min(100%, var(--max-width));
  min-height: 1760px;
  margin: 0 auto;
}

/* Normalidad Extended — large brand statement */
.statement__title {
  position: absolute;
  left: var(--gutter-xl);
  top: 108px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 100px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 760px;
  color: var(--color-black);
}

/* "Meet the team" block */
.statement__meta {
  position: absolute;
  left: 820px;
  top: 770px;
  width: 260px;
}

.statement__meta p {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}

/* Hydroflare CTA link */
.statement__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-hydroflare);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}

.statement__link img {
  width: 28px;
  height: 18px;
  object-fit: contain;
}

/* Ghost year numeral */
.statement__year {
  position: absolute;
  left: 126px;
  top: 932px;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 320px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--color-year);
  user-select: none;
}


/* ─── 6. SIGNUP ───────────────────────────────────────────── */

.signup-wrap {
  position: absolute;
  left: 524px;
  top: 1180px;
}

/* Circular card with photo background */
.signup {
  width: 392px;
  height: 392px;
  border-radius: 50%;
  overflow: hidden;
  background-image: url("assets/signup-circle-bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.signup__inner {
  width: 100%;
  height: 100%;
  padding: 82px 34px 30px;
  text-align: center;
}

.signup__logo {
  width: 102px;
  margin: 0 auto 16px;
}

.signup__title {
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}

.signup__form {
  display: grid;
  gap: 16px;
}

.signup__form input {
  width: 100%;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-black);
  outline: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
}

.signup__form input::placeholder {
  color: rgba(0, 0, 0, 0.38);
}

/* Hydroflare submit button */
.signup__form button {
  width: 108px;
  height: 42px;
  margin: 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--color-hydroflare);
  color: var(--color-black);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  transition: opacity 0.15s ease;
}

.signup__form button:hover {
  opacity: 0.85;
}

.signup__form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.signup__message {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 14px;
}


/* ─── 7. FOOTER ───────────────────────────────────────────── */

.site-footer {
  background: var(--color-footer-bg);
}

.site-footer__frame {
  position: relative;
  width: min(100%, var(--max-width));
  height: 318px;
  margin: 0 auto;
}

.site-footer__brand {
  position: absolute;
  left: 74px;
  top: 46px;
}

.site-footer__logo {
  width: 108px;
}

.site-footer__copyright {
  margin: 112px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.2;
  color: var(--color-muted-white);
}

.site-footer__socials {
  position: absolute;
  right: 78px;
  top: 70px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer__socials a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.site-footer__socials a:hover img {
  opacity: 1;
}


/* ─── 8. RESPONSIVE — TABLET (≤1100px) ───────────────────── */

@media (max-width: 1100px) {

  .hero {
    height: 860px;
  }

  .hero__logo {
    left: 50%;
    top: 36px;
    width: 140px;
    transform: translateX(-50%);
  }

  .hero__headline {
    left: var(--gutter-md);
    top: 520px;
    gap: 14px;
  }

  .hero__ride,
  .hero__above {
    font-size: 150px;
  }

  .statement {
    min-height: 1450px;
  }

  .statement__frame {
    min-height: 1450px;
    padding: 0 40px;
  }

  .statement__title {
    position: relative;
    left: 0;
    top: 68px;
    font-size: 76px;
    max-width: 680px;
  }

  .statement__lines {
    background: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 90px,
      var(--color-line) 90px,
      var(--color-line) 92px
    );
    background-position: 0 68px;
  }

  .statement__meta {
    left: auto;
    right: 120px;
    top: 640px;
  }

  .statement__year {
    left: 44px;
    top: 840px;
    font-size: 230px;
  }

  .signup-wrap {
    left: 50%;
    top: 1020px;
    transform: translateX(-50%);
  }

  .site-footer__frame {
    height: 250px;
    padding: 0 40px;
  }

  .site-footer__brand {
    left: 40px;
  }

  .site-footer__socials {
    right: 40px;
  }
}


/* ─── 9. RESPONSIVE — MOBILE (≤767px) ────────────────────── */

@media (max-width: 767px) {

  .hero {
    height: 724px;
  }

  .hero__frame {
    width: 100%;
  }

  .hero__logo {
    left: 50%;
    top: 46px;
    width: 110px;
    transform: translateX(-50%);
  }

  .hero__headline {
    left: var(--gutter-sm);
    top: 290px;
    gap: 0;
    display: block;
  }

  .hero__ride {
    display: block;
    font-size: 98px;
  }

  .hero__above {
    display: block;
    font-size: 98px;
    margin-left: 214px;
    margin-top: -6px;
  }

  /* ── Statement: flow layout on mobile ── */
  .statement {
    min-height: unset;
  }

  .statement__texture {
    background-position: top right;
    background-size: 1200px auto;
    opacity: 0.68;
  }

  .statement__lines {
    /* Interval = 40px font × 1.2 lh = 48px. Offset = padding-top (40px) so lines hit text baselines */
    background: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 47px,
      var(--color-line) 47px,
      var(--color-line) 49px
    );
    background-position: 0 40px;
  }

  .statement__frame {
    min-height: unset;
    padding: 40px var(--gutter-sm) 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .statement__title {
    position: relative;
    left: unset;
    top: unset;
    font-size: 40px;
    max-width: 100%;
    line-height: 1.2;
    margin-bottom: 32px;
  }

  .statement__meta {
    position: relative;
    left: unset;
    top: unset;
    width: auto;
    align-self: flex-end;
    margin-bottom: 48px;
  }

  .statement__meta p {
    margin-bottom: 16px;
    font-size: 14px;
  }

  .statement__link {
    gap: 8px;
    font-size: 14px;
  }

  .statement__link img {
    width: 24px;
    height: 14px;
  }

  /* Year sits below the text in flow */
  .statement__year {
    position: relative;
    left: unset;
    top: unset;
    font-size: 120px;
    align-self: center;
    margin-bottom: 40px;
  }

  /* Signup circle centered below year */
  .signup-wrap {
    position: relative;
    left: unset;
    top: unset;
    transform: none;
    align-self: center;
  }

  .signup {
    width: 300px;
    height: 300px;
  }

  .signup__inner {
    padding: 52px 24px 20px;
  }

  .signup__logo {
    width: 80px;
    margin-bottom: 12px;
  }

  .signup__title {
    margin-bottom: 14px;
    font-size: 17px;
  }

  .signup__form {
    gap: 12px;
  }

  .signup__form input {
    height: 34px;
    font-size: 15px;
  }

  .signup__form button {
    width: 100px;
    height: 38px;
    font-size: 16px;
  }

  .site-footer__frame {
    height: 212px;
    width: 100%;
  }

  .site-footer__brand {
    left: 30px;
    top: 36px;
  }

  .site-footer__logo {
    width: 76px;
  }

  .site-footer__copyright {
    margin-top: 88px;
    font-size: 11px;
  }

  .site-footer__socials {
    right: 30px;
    top: 44px;
    gap: 16px;
  }

  .site-footer__socials a img {
    width: 21px;
    height: 21px;
  }
}


/* ============================================================
   ADDITIONAL COMPONENTS — Nav, Team Page
   ============================================================ */


/* ─── SITE NAV ────────────────────────────────────────────── */
/*
   Positioned absolutely over the hero video on the home page.
   On the team page (site-nav--light) it sits over the
   light-background team hero, so logo swaps to dark variant.
*/

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.site-nav__frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max-width));
  height: 80px;
  margin: 0 auto;
  padding: 0 var(--gutter-xl);
}

.site-nav__logo {
  width: 120px;
  display: block;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav__link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

.site-nav__link:hover,
.site-nav__link--active {
  opacity: 1;
}

/* Team page: nav over light background — swap logo to dark */
.site-nav--light .site-nav__logo {
  /* Use the black wordmark on light backgrounds */
  filter: invert(1);
}

.site-nav--light .site-nav__link {
  color: var(--color-black);
}

@media (max-width: 767px) {
  .site-nav__frame {
    padding: 0 var(--gutter-sm);
    height: 64px;
  }

  .site-nav__logo {
    width: 90px;
  }

  .site-nav__link {
    font-size: 13px;
  }
}


/* ─── TEAM HERO ───────────────────────────────────────────── */

.team-hero {
  position: relative;
  min-height: 560px;
  background: var(--color-page-bg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Reuse the same texture + line system from statement section */
.team-hero__texture {
  position: absolute;
  inset: 0;
  background-image: url("assets/white-texture.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  opacity: 0.72;
  pointer-events: none;
}

.team-hero__lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 120px,
    var(--color-line) 120px,
    var(--color-line) 122px
  );
  pointer-events: none;
}

.team-hero__frame {
  position: relative;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 120px var(--gutter-xl) 80px;
}

.team-hero__eyebrow {
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-hydroflare);
}

/* Normalidad Extended — same voice as the statement section */
.team-hero__title {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 80px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.team-hero__sub {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-gray);
  max-width: 620px;
}

@media (max-width: 1100px) {
  .team-hero__frame {
    padding: 120px 40px 72px;
  }

  .team-hero__title {
    font-size: 60px;
  }
}

@media (max-width: 767px) {
  .team-hero {
    min-height: 420px;
  }

  .team-hero__frame {
    padding: 100px var(--gutter-sm) 52px;
  }

  .team-hero__title {
    font-size: 40px;
  }

  .team-hero__sub {
    font-size: 16px;
  }

  .team-hero__lines {
    background: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 58px,
      var(--color-line) 58px,
      var(--color-line) 60px
    );
  }
}


/* ─── TEAM GRID SECTION ───────────────────────────────────── */

.team-grid-section {
  background: var(--color-page-bg);
  padding: 80px 0 120px;
}

.team-grid-section__frame {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 var(--gutter-xl);
}

/* 3-column grid desktop, 2 tablet, 1 mobile */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
  margin-bottom: 100px;
}

@media (max-width: 1100px) {
  .team-grid-section__frame {
    padding: 0 40px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
}

@media (max-width: 767px) {
  .team-grid-section {
    padding: 52px 0 80px;
  }

  .team-grid-section__frame {
    padding: 0 var(--gutter-sm);
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}


/* ─── TEAM CARD ───────────────────────────────────────────── */

.team-card {
  display: flex;
  flex-direction: column;
}

/* Placeholder photo — square aspect ratio with brand color accent */
.team-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background-color: #D8D8D4;
  background-size: cover;
  background-position: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

/* Hydroflare accent bar at bottom of each placeholder photo */
.team-card__photo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-hydroflare);
}

/* Unique placeholder tones per card — swap for real photos */
.team-card__photo--1 { background-color: #C8CACC; }
.team-card__photo--2 { background-color: #BEC4C8; }
.team-card__photo--3 { background-color: #D0CCCA; }
.team-card__photo--4 { background-color: #C4C8CC; }
.team-card__photo--5 { background-color: #CCCAC6; }
.team-card__photo--6 { background-color: #C8CCD0; }

.team-card__body {
  flex: 1;
}

.team-card__name {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: var(--color-black);
}

.team-card__title {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-hydroflare);
}

.team-card__bio {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-gray);
}


/* ─── TEAM JOIN CTA ───────────────────────────────────────── */
/*
   Full-width dark band with centered content —
   mirrors the circular signup energy but in a linear format.
*/

.team-cta {
  background: var(--color-black);
  border-radius: 8px;
  padding: 80px 48px;
  text-align: center;
}

.team-cta__inner {
  max-width: 520px;
  margin: 0 auto;
}

.team-cta__mark {
  width: 52px;
  margin: 0 auto 24px;
  opacity: 0.6;
}

/* Normalidad Extended for the CTA headline */
.team-cta__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.team-cta__body {
  margin: 0 0 36px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

/* Hydroflare pill button */
.team-cta__btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--color-hydroflare);
  color: var(--color-black);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease;
}

.team-cta__btn:hover {
  opacity: 0.85;
}

@media (max-width: 767px) {
  .team-cta {
    padding: 52px 28px;
    border-radius: 6px;
  }

  .team-cta__title {
    font-size: 34px;
  }

  .team-cta__body {
    font-size: 15px;
  }
}
