/* =========================================================
   Mental Healthletics — static rebuild
   ========================================================= */

/* ---------- self-hosted fonts (no external dependency) ---------- */
@font-face {
  font-family: "Fjalla One";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/fjalla-one-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Arvo";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/arvo-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Arvo";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/arvo-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/oswald-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/oswald-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/oswald-latin-700-normal.woff2") format("woff2");
}

:root {
  --navy:        rgb(18, 51, 117);
  --blue:        rgb(39, 98, 216);
  --blue-dark:   rgb(30, 75, 165);
  --blue-accent: rgb(0, 105, 255);
  --purple:      rgb(101, 66, 255);
  --black:       rgb(0, 0, 0);
  --white:       rgb(255, 255, 255);
  --gray:        rgb(236, 236, 236);
  --page-bg:     rgb(203, 228, 246);

  --font-head:   "Fjalla One", sans-serif;
  --font-body:   "Source Sans 3", "Source Sans Pro", sans-serif;
  --font-arvo:   "Arvo", serif;
  --font-oswald: "Oswald", sans-serif;
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  background-color: var(--page-bg);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.4;
}

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

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 920px; }

.section--black       { background: var(--black); }
.section--white       { background: var(--white); }
.section--gray        { background: var(--gray); }
.section--navy        { background: var(--navy); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 2px;
  transition: background .2s linear, border-color .2s linear, transform .15s ease;
}
.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
}
.btn-wrap { display: flex; }
.btn-wrap--center { justify-content: center; }
.btn-wrap--left   { justify-content: flex-start; }

/* shared big centered section heading */
.section-heading {
  font-family: var(--font-head);
  color: var(--black);
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  line-height: 1.1;
}

/* =========================================================
   HERO
   ========================================================= */
.section--dark-image {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero {
  background-image: linear-gradient(rgba(0,0,0,.64), rgba(0,0,0,.64)),
                    url("assets/hero-background.jpg");
  padding: 68px 0;
  color: var(--white);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.hero__logo { width: 100%; max-width: 400px; }

.hero__headline {
  font-family: var(--font-head);
  color: var(--white);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.05;
}
.hero__subhead {
  font-family: var(--font-arvo);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
}
.hero__subhead u { text-underline-offset: 3px; }

.hero__small-subhead {
  font-family: var(--font-arvo);
  font-weight: 400;
  font-size: 1rem;
  max-width: 760px;
  line-height: 1.5;
}

/* =========================================================
   FEATURES (numbered)
   ========================================================= */
.features { padding: 56px 0 24px; }
.features .container { padding-left: 8vw; padding-right: 8vw; }

.feature-row {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 14px 0;
}
.feature-row__num {
  font-family: var(--font-head);
  color: var(--purple);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: .9;
  flex: 0 0 auto;
  min-width: 1.6em;
}
.feature-row__title {
  font-family: var(--font-head);
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
  text-transform: uppercase;
}

/* =========================================================
   PROBLEM / I COMPLETELY UNDERSTAND
   ========================================================= */
.problem { padding: 84px 0; color: var(--black); }

.problem__headline {
  font-family: var(--font-head);
  color: var(--black);
  text-align: center;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
}
.problem__lead {
  font-family: var(--font-arvo);
  text-align: center;
  margin-top: 28px;
  font-size: 1.1rem;
}

.problem__lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 56px;
  margin: 40px auto 8px;
}
.feeling-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-arvo);
}
.feeling-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.feeling-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--black);
}

.problem__understand {
  font-family: var(--font-head);
  color: var(--black);
  text-align: center;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-top: 48px;
}
.problem__body {
  font-family: var(--font-arvo);
  text-align: center;
  line-height: 1.6;
  margin-top: 22px;
}

/* =========================================================
   I SEE YOU
   ========================================================= */
.see-you { padding: 64px 0; text-align: center; color: var(--white); }
.see-you__headline {
  font-family: var(--font-oswald);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 22px;
}
.see-you__headline u { text-underline-offset: 6px; }
.see-you__body {
  font-family: var(--font-arvo);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { padding: 64px 0; }
.testimonials .section-heading { margin-bottom: 44px; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--white);
  margin: 0;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
}
.testimonial__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 26px;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-arvo);
  font-size: .95rem;
  line-height: 1.55;
  color: var(--black);
  flex: 1 1 auto;
}
.testimonial figcaption {
  margin-top: 22px;
  font-family: var(--font-arvo);
  font-size: .95rem;
  color: var(--black);
}

/* =========================================================
   AS FEATURED ON
   ========================================================= */
.featured { padding: 40px 0 56px; }
.featured__label {
  text-align: center;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgb(48,48,48);
  font-size: .95rem;
  margin-bottom: 34px;
}
.featured__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 64px;
  margin-bottom: 36px;
}
.featured__row img {
  height: 46px;
  width: auto;
  object-fit: contain;
}
.featured__row--secondary { margin-bottom: 0; }

/* =========================================================
   TOOL BOX
   ========================================================= */
.toolbox { padding: 72px 0; }
.toolbox .section-heading { margin-bottom: 28px; }
.toolbox__intro {
  font-family: var(--font-arvo);
  color: var(--black);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 48px;
  line-height: 1.6;
}
.toolbox__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tool-card {
  background: var(--white);
  padding: 32px 28px 40px;
}
.tool-card__icon {
  color: var(--blue-accent);
  width: 46px;
  height: 46px;
  display: block;
  margin-bottom: 22px;
}
.tool-card__title {
  font-family: var(--font-oswald);
  font-weight: 700;
  color: var(--black);
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 16px;
}
.tool-card p {
  font-family: var(--font-arvo);
  color: var(--black);
  font-size: .95rem;
  line-height: 1.55;
}

/* =========================================================
   HOW TO GET STARTED
   ========================================================= */
.getstarted { padding: 64px 0; }
.getstarted__heading {
  font-family: var(--font-oswald);
  font-weight: 700;
  color: var(--black);
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 44px;
}
.step { margin-bottom: 40px; }
.step__label {
  display: block;
  font-family: var(--font-head);
  color: var(--purple);
  font-size: 1.25rem;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.step__title {
  font-family: var(--font-oswald);
  font-weight: 700;
  color: var(--black);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  margin-bottom: 16px;
}
.step__body {
  font-family: var(--font-arvo);
  color: var(--black);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* =========================================================
   BUT YOU ARE HUMAN, TOO
   ========================================================= */
.human {
  background-image: url("assets/human-background.png");
  padding: 56px 0 110px;
  color: var(--white);
}
.human__card { padding: 12px 8px; }
.human p {
  font-family: var(--font-arvo);
  line-height: 1.6;
  margin-bottom: 22px;
}
.human__headline {
  font-family: var(--font-oswald);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 28px 0 22px;
}

/* =========================================================
   BIO
   ========================================================= */
.bio { padding: 68px 0; color: var(--white); }
.bio__inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
}
.bio__photo img { width: 100%; max-width: 300px; }
.bio__name {
  font-family: var(--font-head);
  color: var(--white);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  margin-bottom: 22px;
}
.bio__text p {
  font-family: var(--font-arvo);
  line-height: 1.6;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 22px 0; }
.footer__copy {
  text-align: center;
  color: rgba(255,255,255,.64);
  font-size: .95rem;
}

/* =========================================================
   REVEAL ANIMATION (progressive enhancement)
   The hiding only applies once JS confirms it can run and
   adds .reveal-on to <html>. If script.js fails to load or
   errors, the flag is never set and all content stays visible.
   ========================================================= */
html.reveal-on .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
html.reveal-on .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .testimonial-grid,
  .toolbox__grid { grid-template-columns: 1fr; }
  .bio__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .problem__lists { grid-template-columns: 1fr; gap: 4px; }
  .features .container { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { padding: 48px 0; }
  .feature-row { gap: 16px; }
  .featured__row { gap: 28px 36px; }
  .featured__row img { height: 36px; }
  .btn-wrap--left { justify-content: center; }
}
