/* TrainYourWay.AI marketing site
   Design tokens ported from the Webflow build (Sept 2026).
   Font: Inter (Google Fonts) stands in for Sequel Sans — see README. */

:root {
  --primary: #1d1d1d;   /* page background */
  --secondary: #2d2d2d; /* alternating section background */
  --tertiary: #151515;  /* footer */
  --white: #fff;
  --text: #b5b5b5;
  --gold: #a98600;
  --gold-40: rgba(169, 134, 0, 0.4);
  --blue: #0050bd;
  --font: "Inter", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --pad-x: 3.75rem;
  --pad-y: 5rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--primary);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding-left: 1.5em; }
h1, h2, h3 { margin: 0; color: var(--white); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 10px; color: var(--text); font-size: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.padding-global { padding: var(--pad-y) var(--pad-x); }
.padding-global.is-tight { padding-top: 0; padding-bottom: 0; }

/* ---------- navbar ---------- */
.navbar {
  position: relative;
  z-index: 100;
  width: 100%;
  height: 80px;
  padding: 1.75rem var(--pad-x);
  background: var(--primary);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
  height: 100%;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 257px; height: auto; }
.nav-menu { display: flex; justify-content: center; align-items: center; gap: 1.5rem; }
.nav-link {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--gold); }
.nav-right { justify-self: end; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  justify-self: end;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px;
  border-radius: 12px; background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 90svh;
  min-height: 560px;
  padding-left: 5.9375rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--secondary) url("../img/hero.webp") center / cover no-repeat;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  max-width: 800px;
}
.heading-h1 {
  width: 100%;
  font-size: 4rem;
  line-height: 1;
  font-weight: 700;
}
.heading-h1.is-highlight {
  background: var(--gold-40);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.text-large { font-size: 1.5rem; line-height: 1.44; color: var(--text); }
.text-large.is-white { color: var(--white); font-size: 1.8rem; font-weight: 400; }

.button {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid var(--gold);
  border-radius: 100px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.button:hover {
  background: transparent;
  border-color: var(--white);
  box-shadow: 0 2px 12px rgba(29, 29, 29, 0.45);
}

/* ---------- statement band ---------- */
.section-statement {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 31.875rem;
}
.statement-block {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}
.heading-h2 { font-size: 3rem; line-height: 1.2; font-weight: 700; }

/* ---------- feature (portal) sections ---------- */
.section-feature { background: var(--secondary); }
.section-feature.is-dark { background: var(--primary); }
.feature-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.75rem;
  width: 100%;
}
.feature-copy {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}
.feature-copy .heading-h2 { margin-bottom: 0.25rem; }
.feature-media { flex: 1 1 0; min-width: 0; }
.feature-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.lede { font-size: 1.8rem; line-height: 1.44; }
.lede.is-medium { font-weight: 500; }
.feature-list {
  margin: 0;
  padding-left: 1.4em;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1.4;
}
.feature-list li { margin: 0; }

/* ---------- about ---------- */
.about-block {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: 70.625rem;
  margin: 0 auto;
}
.about-holder { display: flex; flex-direction: column; gap: 3rem; }
.about-item { display: flex; flex-direction: column; gap: 0.5rem; }
.heading-h3 { font-size: 2rem; line-height: 1.2; font-weight: 700; }
.text-normal { color: var(--text); font-size: 1.125rem; line-height: 1.36; }
.text-normal strong, .text-normal b { color: var(--white); font-weight: 500; }
.about-goals { display: flex; justify-content: space-between; gap: 3.75rem; }
.about-goals > div { width: 100%; max-width: 28.5rem; }
.about-goals p { color: var(--text); font-size: 1.125rem; line-height: 1.36; margin: 0 0 1.5rem; }
.about-goals p:last-child { margin-bottom: 0; }

/* ---------- legal ---------- */
.legal-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 46.5rem;
  margin: 0 auto;
}
.legal-body p { color: var(--text); font-size: 1rem; line-height: 1.55; margin-bottom: 12px; }
.legal-body p strong { color: var(--white); }
.legal-body h3 {
  margin: 1.75rem 0 0.5rem;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}
.legal-body a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--gold); }

/* ---------- footer ---------- */
.footer { background: var(--tertiary); }
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 70.625rem;
  margin: 0 auto;
}
.footer-data { display: flex; gap: 60px; align-items: flex-start; }
.footer-data .brand img { width: 37px; }
.footer-links-holder { display: flex; gap: 26px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-heading { color: var(--white); font-size: 0.75rem; font-weight: 700; }
.footer-col nav { display: flex; flex-direction: column; gap: 4px; }
.footer-link { color: var(--text); font-size: 0.75rem; font-weight: 500; transition: color 0.2s ease; }
.footer-link:hover { color: var(--gold); }
.text-small { font-size: 0.75rem; font-weight: 400; }
.is-grey { color: var(--text); }

/* ---------- 404 ---------- */
.section-utility {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh; text-align: center;
}
.section-utility .heading-h1 { display: inline-block; width: auto; padding: 0 0.25em; }

/* ---------- scroll reveal (replaces GSAP/SplitType) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media screen and (max-width: 991px) {
  :root { --pad-x: 2.5rem; --pad-y: 4rem; }
  .navbar { padding-left: 2.5rem; padding-right: 2.5rem; }
  .nav-inner { display: flex; justify-content: space-between; }
  .nav-toggle { display: flex; }
  .nav-right { display: none; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2.5rem;
    background: var(--primary);
    border-bottom: 1px solid #3d3d3d;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu .nav-link.is-mobile-only { display: inline-block; }
  .hero-block {
    padding: 2.5rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/hero-mobile.webp");
  }
  .hero-content { align-items: center; text-align: center; margin: 0 auto; }
  .heading-h1 { font-size: 3.5rem; }
  .feature-block { flex-direction: column; }
  .feature-copy, .about-block, .about-item, .legal-block { align-items: center; text-align: center; }
  .feature-list { text-align: left; }
  .about-goals { text-align: left; }
}
@media screen and (min-width: 992px) {
  .nav-menu .nav-link.is-mobile-only { display: none; }
}
@media screen and (max-width: 767px) {
  :root { --pad-x: 1rem; --pad-y: 3rem; }
  .navbar { padding-left: 1rem; padding-right: 1rem; }
  .brand img { width: 200px; }
  .hero-block { padding: 1.5rem; min-height: 520px; }
  .heading-h1 { font-size: 2.9rem; }
  .text-large, .text-large.is-white { font-size: 1.25rem; }
  .section-statement { height: auto; padding: 2.5rem 0; }
  .statement-block { padding: 0 1.5rem; }
  .heading-h2 { font-size: 2.5rem; }
  .lede { font-size: 1.35rem; }
  .feature-list { font-size: 1.1rem; }
  .text-normal, .about-goals p { font-size: 1rem; }
  .footer-content { flex-direction: column; gap: 2.5rem; }
  .about-holder { gap: 2rem; }
  .about-goals { flex-direction: column; gap: 2rem; }
}
@media screen and (max-width: 479px) {
  .heading-h1.for-about { word-break: break-word; }
  .footer-data { flex-direction: column; gap: 2rem; align-items: center; }
  .footer-links-holder { justify-content: center; }
}
