/* ===== Design tokens ===== */
:root {
  --brand: #ff6633;
  --brand-dark: #e2551f;
  --text: #222222;
  --heading: #32373c;
  --muted: #777777;
  --surface: #ffffff;
  --surface-alt: #f7f7f7;
  --maxw: 1200px;
  --pad: clamp(1rem, 5vw, 2rem);
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Work Sans", Arial, sans-serif;
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Layout ===== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background: var(--surface-alt); }
.eyebrow {
  font-family: "Work Sans", sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; font-size: .8rem; color: var(--brand); margin: 0 0 .75rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block; font-family: "Work Sans", sans-serif; font-weight: 600;
  font-size: 1rem; padding: .85rem 1.8rem; border-radius: 50px; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s, transform .2s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn--outline { background: transparent; color: #fff; border-color: #fff; }
.btn--outline:hover { background: #fff; color: var(--heading); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px); transition: box-shadow .2s, padding .2s;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }
.site-header__logo img { height: 38px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 1.75rem; }
.nav-menu a { color: var(--heading); font-family: "Work Sans", sans-serif; font-weight: 600; font-size: .95rem; }
.nav-menu a:not(.nav-menu__cta):hover { color: var(--brand); }
.nav-menu__cta { color: #fff; }
.nav-menu__cta:hover { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--heading); border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; padding: 1rem var(--pad); box-shadow: 0 8px 16px rgba(0,0,0,.1);
    transform: translateY(-150%); transition: transform .25s ease; visibility: hidden;
  }
  .nav-menu.is-open { transform: translateY(0); visibility: visible; }
  .nav-menu a { padding: .75rem 0; }
  .nav-menu__cta { margin-top: .5rem; text-align: center; }
}

/* ===== Hero ===== */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(34,34,34,.65) 0%, rgba(34,34,34,.45) 50%, rgba(226,85,31,.55) 100%);
}
.hero__content { position: relative; z-index: 0; padding-block: 6rem; max-width: 820px; }
.hero h1 { color: #fff; }
.hero__subtitle { font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 300; max-width: 620px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero { background: url("../assets/img/hero-poster.jpg") center/cover no-repeat; }
}

/* ===== Cards (shared) ===== */
.cards { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; }
.card h3 { color: var(--brand); }
.section--alt .card { background: #fff; }
@media (max-width: 900px) { .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; } }

/* ===== Split (media + text) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* ===== Programs ===== */
.program-card__meta { font-family: "Work Sans", sans-serif; font-weight: 600; color: var(--muted); margin-top: -.25rem; }
.banner {
  margin-top: 2rem; background: var(--heading); color: #fff; border-radius: var(--radius);
  padding: 2rem clamp(1.5rem, 4vw, 2.5rem); display: flex; gap: 1.5rem;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.banner h3 { color: #fff; }
.banner p { margin: 0; }

/* ===== Book ===== */
.book__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.btn--outline-dark { color: var(--brand); border-color: var(--brand); }
.btn--outline-dark:hover { background: var(--brand); color: #fff; }
.split__media img { max-width: 340px; margin-inline: auto; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; text-align: center; }
.stat { padding: 1.5rem 1rem; border-radius: var(--radius); background: var(--surface-alt); }
.stat__num { display: block; font-family: "Work Sans", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--brand); line-height: 1.1; }
.stat__label { display: block; margin-top: .5rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== Quote ===== */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote__text {
  font-family: "Work Sans", sans-serif; font-weight: 500; font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4; color: var(--heading); margin: 0; position: relative;
}
.quote__author { margin-top: 1.5rem; font-weight: 600; color: var(--brand); }
.quote__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto .75rem; box-shadow: var(--shadow); }

/* ===== About ===== */
.creds { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.creds li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; }
.creds li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* portrait fills its column (override the 340px book-cover cap) */
#about .split__media img { max-width: 100%; }

/* ===== Signup ===== */
.signup { max-width: 720px; margin: 0 auto; text-align: center; }
.signup__form { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.signup__form input {
  flex: 1 1 220px; padding: .85rem 1.1rem; border: 1px solid #d8d8d8; border-radius: 50px;
  font-family: inherit; font-size: 1rem;
}
.signup__form input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.signup__form .btn { flex: 0 0 auto; border: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--heading); color: #cfd3d7; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #cfd3d7; display: inline-block; }
.site-footer__nav a { display: block; padding: .25rem 0; }
.site-footer a:hover { color: var(--brand); }
.site-footer__brand img { margin-bottom: 1rem; filter: brightness(0) invert(1); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-block: 1.5rem; font-size: .85rem; }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ===== Video testimonials ===== */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 2.5rem; }
.video-card { margin: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.video-card__frame { position: relative; padding-top: 56.25%; background: #000; }
.video-card__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__caption { padding: 1rem 1.25rem; display: flex; flex-direction: column; }
.video-card__caption strong { font-family: "Work Sans", sans-serif; font-weight: 600; color: var(--heading); }
.video-card__caption span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

/* ===== How We Help — world map backdrop ===== */
#help { position: relative; overflow: hidden; }
#help::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/img/world-map.svg") no-repeat center;
  background-size: min(1040px, 94%);
  opacity: .6;
  pointer-events: none;
  z-index: 0;
}
#help .container { position: relative; z-index: 1; }

/* ===== Social icon link ===== */
.social-link { display: inline-flex; align-items: center; gap: .45rem; }
.social-link svg { flex: 0 0 auto; }

/* ===== Scroll-to-top button (inspired by beesneo.com) ===== */
.scroll-top {
  position: fixed; right: clamp(1rem, 3vw, 30px); bottom: clamp(1rem, 3vw, 30px);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
  box-shadow: 0 8px 25px rgba(255,102,51,.4); z-index: 999;
  transition: transform .3s ease, box-shadow .3s ease, background .2s ease;
}
.scroll-top:hover {
  background: var(--brand-dark); color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(255,102,51,.5);
}
@media (prefers-reduced-motion: reduce) { .scroll-top { transition: background .2s ease; } }
