/* ===== Kill horizontal overflow & clamp rogue widths ===== */
html,
body {
  overflow-x: hidden;
  /* band-aid to hide any residual overflow */
}

/* Make sure core containers never exceed the viewport */
.container,
.container-meet,
.wrap {
  max-width: min(1200px, 92%);
  margin-inline: auto;
}

/* Any wide grids/rows should never overflow */
.achievements-grid,
.genz-list,
.principles,
.connect-grid,
.footer-grid,
.footer-bottom,
.pete-container,
.timeline,
.NewsLettercontainer {
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* HERO (Meet Pete D) – remove hard width from wrapper if present */
.Meethero>div {
  width: auto !important;
  margin: 0 auto !important;
}

/* Footer: remove negative margins that push content outside the viewport */
.site-footer .footer-brand,
footer .footer-brand {
  margin: 0 !important;
}

/* Footer bottom bar: avoid fixed widths that overflow */
footer .footer-bottom {
  width: 100% !important;
}

/* Avoid 100vw traps (if used anywhere); prefer 100% */
[class*="fullwidth"],
.nav,
header,
footer,
section {
  max-width: 100%;
}

/* If any element is using 100vw, force it to respect the viewport */
*[style*="100vw"] {
  width: 100% !important;
  max-width: 100% !important;
}

@font-face {
  font-family: 'Norwester';
  src: url('/fonts/norwester.woff') format('woff');
  font-style: normal;
}

body {
  font-family: 'Norwester', sans-serif;
}

/* -------------------------
       THEME
    --------------------------*/
:root {
  --white: #FFFFFF;
  --green: #2E7D32;
  /* sustainability green */
  --blue: #1E90FF;
  /* ocean blue */
  --gold: #f59e0b;
  /* warm gold */
  --ink: #0C1723;
  /* deep ink for text */
  --paper: #F8FAFC;
  /* off-white section bg */
  --radius: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .12);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: "Norwester", sans-serif, -apple-system, Segoe UI, Roboto, 'Norwester', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}

h1,
h2,
h3,
.impact {
  font-family: "Norwester", sans-serif, Haettenschweiler, 'Norwester', sans-serif;
  margin: 1.1rem 0rem 0rem;
}

h1 {
  font-size: clamp(0.2rem, 3vw, 3.2rem);
  font-family: "Norwester", sans-serif, -apple-system, Segoe UI, Roboto, 'Norwester', sans-serif;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-family: "Norwester", sans-serif, -apple-system, Segoe UI, Roboto, 'Norwester', sans-serif;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-family: "Norwester", sans-serif, -apple-system, Segoe UI, Roboto, 'Norwester', sans-serif;
}

p {
  margin: .35em 0 0.5em;
  font-family: "Norwester", sans-serif, -apple-system, Segoe UI, Roboto, 'Norwester', sans-serif;
}

a {
  color: inherit;
  text-decoration: none
}

img,
video {
  max-width: 100%;
  display: block
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto
}

.herogold {
  background: #ff6c00 !important;
  color: #0a0a0a;
  font-weight: 100;
  padding: 0rem 1rem;
  border-radius: 84px;
  box-shadow: 0 3px 23px rgb(0 0 0) !important;
  transition: transform .3s ease, box-shadow .3s ease !important;
  font-family: 'Norwester', sans-serif;
  width: 9rem;
}

.btn.green {
  --bg: var(--green)
}

.btn.ghost {
  --bg: rgba(255, 255, 255, .16);
  --fg: #fff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .35)
}

.badge {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .82rem
}

.onebooktxt {
  color: #ff4e00;
  font-family: "Norwester", sans-serif, -apple-system, Segoe UI, Roboto, 'Norwester', sans-serif;
}

/* -------------------------
       PROGRAMS
    --------------------------*/
.programs {
  padding: clamp(2rem, 6vw, 4rem) 0
}

.grid3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr
}

@media (min-width:900px) {
  .grid3 {
    grid-template-columns: repeat(3, 1fr)
  }
}

.prog {
  background: #fff;
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  perspective: 600px
}

.prog:hover {
  transform: translateY(-4px) rotateX(2deg);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .14)
}

.prog .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), #8dd39a);
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: .6rem
}

/* -------------------------
       NEWSLETTER STRIP
    --------------------------*/

/* -------------------------
       FOOTER (wave)
    --------------------------*/
footer {
  background: #0b1a26;
  color: #b6c4cf;
  position: relative;
  overflow: hidden;
  padding-top: 50px
}

.wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: radial-gradient(100% 60px at 50% 0, #0b1a26 60px, transparent 61px) repeat-x;
  background-size: 120px 60px;
  opacity: .9;
  transform: translateY(-60px);
  animation: wave 18s linear infinite;
}

@keyframes wave {
  to {
    background-position: 120px 0
  }
}

footer .container {
  display: grid;
  gap: 1.2rem;
  padding: 2rem 0
}

.social {
  display: flex;
  gap: .75rem
}

.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  transition: transform .2s ease, background .2s ease;
  font-family: "Norwester", sans-serif, -apple-system, Segoe UI, Roboto, 'Norwester', sans-serif;
}

.social a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .14)
}

/* -------------------------
       Reveal Animations
    --------------------------*/
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease
}

.reveal.show {
  opacity: 1;
  transform: none
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .btn,
  .card,
  .prog,
  .slides,
  .reveal {
    transition: none
  }

  .hero video {
    filter: none
  }
}

.nav-logo {
  height: 100px;
  /* match your nav height */
  width: 100px;
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  /* space between logo + text */
  font-size: 2rem;
}

.book-title {
  color: #ff7917;
  font-family: "Norwester", sans-serif, -apple-system, Segoe UI, Roboto, 'Norwester', sans-serif;
}

/* Mobile */
@media (max-width: 768px) {
  nav .menu {
    display: none;
    /* hide full menu */
  }

  nav .mobile-menu-toggle {
    display: block;
    /* show hamburger */
  }

  .about-section>div {
    grid-template-columns: 1fr;
    /* stack columns */
    text-align: center;
    width: 26rem !important;
  }

  .hero h1 {
    font-size: 2rem;
    font-family: "Norwester", sans-serif, -apple-system, Segoe UI, Roboto, 'Norwester', sans-serif;
  }

  .hero .cta-row {
    gap: 1rem;
  }

  .author-container {
    flex-direction: column;
    text-align: center;
  }

  .skip-video {

    top: 56rem !important;
    right: 0rem !important;

  }

  .ag-courses_item {
    flex: auto !important;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
}

/* ===== Programs & Initiatives (Responsive) ===== */
:root {
  --paper: #ecfdf5;
  --paper-2: #f0fdfa;
  --ink: #111827;
  --muted: #374151;
  --green: #10b981;
  --blue: #1e3a8a;
  --gold: #92400e;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.text-center {
  text-align: center;
}

.programs-section {
  background: linear-gradient(135deg, var(--paper), var(--paper-2));
  padding-block: clamp(40px, 6vw, 96px);
}

.programs-title {
  font-size: clamp(28px, 5vw, 84px);
  font-weight: 800;
  letter-spacing: .5px;
  margin: 0 0 clamp(16px, 2.5vw, 40px);
  color: #065f46;
  text-wrap: balance;
}

/* Grid: 3 -> 2 -> 1 */
.programs-grid {
  display: grid;
  gap: clamp(14px, 2.4vw, 32px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 992px) {
  .programs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.program-card {
  background: #fff;
  border-radius: 16px;
  padding: clamp(16px, 2.4vw, 28px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .12);
}

.program-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  font-size: 2rem;
}

.icon-green {
  background: #d1fae5;
  color: #065f46;
}

.icon-blue {
  background: #dbeafe;
  color: #1e3a8a;
}

.icon-gold {
  background: #fef3c7;
  color: #92400e;
}

.program-name {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  margin: 0 0 .5rem;
  color: var(--ink);
}

.program-copy {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: clamp(14px, 1.4vw, 16px);
}

/* CTA */
.programs-cta {
  margin-top: clamp(18px, 3vw, 40px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: .2s ease;
}

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, .35);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(16, 185, 129, .45);
}

/* Optional: soften huge headings on very small phones */
@media (max-width:420px) {
  .programs-title {
    font-size: clamp(26px, 10vw, 44px);
  }
}

/* === Email Gate Modal (Black & Gold) === */
.email-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1400;
}

.email-modal[aria-hidden="false"] {
  display: block;
}

.email-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.email-modal__dialog {
  position: relative;
  width: min(540px, 92vw);
  margin: 8vh auto 0;
  background: linear-gradient(180deg, #0b0b0b, #111);
  color: #f6f6f6;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .45);
  padding: clamp(18px, 3vw, 28px);
  isolation: isolate;
}

.email-modal__dialog::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from 120deg, #ffd166, #ffb300 35%, #d4af37 70%, #ffd166);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .65;
  pointer-events: none;
}

.email-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  color: #111;
  background: #ffd166;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
}

.email-modal h3 {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight: 800;
}

.email-modal__sub {
  margin: 0 0 16px;
  color: #cfd3da;
  font-size: 14px;
}

.email-modal__label {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
  color: #dcdcdc;
}

.email-modal__input {
  width: 100%;
  margin-top: 6px;
  background: #0f0f0f;
  color: #f6f6f6;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

.email-modal__input:focus {
  border-color: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, .18);
}

.email-modal__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 8px 0 6px;
  color: #d6d6d6;
}

.email-modal__error {
  color: #ff6b6b;
  font-size: 13px;
  margin: 6px 0 0;
}

.email-modal__success {
  color: #d4af37;
  font-size: 14px;
  margin-top: 12px;
}

.email-modal__submit {
  --gold1: #ffd166;
  --gold2: #ffb300;
  --ink: #0b0b0b;
  width: 100%;
  margin-top: 12px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: 800 14px/1 "Norwester", system-ui, sans-serif;
  letter-spacing: .2px;
  color: #0b0b0b;
  background: linear-gradient(135deg, var(--gold1), var(--gold2));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.email-modal__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .34);
}

/* Small screens */
@media (max-width: 520px) {
  .email-modal__dialog {
    margin-top: 12vh;
    padding: 18px;
  }
}

/* ====== GLOBAL NORMALIZE & FLUID SCALES ====== */
:root {
  --container: min(1200px, 92vw);
  --space-section: clamp(32px, 6vw, 88px);
  --radius-xl: 20px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, .18);
  --fs-h1: clamp(28px, 5.2vw, 56px);
  --fs-h2: clamp(22px, 3.8vw, 38px);
  --fs-body: clamp(14px, 1.4vw, 18px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  /* kill stray horizontal scroll */
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.container,
.container-meet,
.container-home,
.Joinhero-wrap,
.section-wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 3.2vw, 28px);
}

/* ====== TYPOGRAPHY ====== */
h1 {
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -.02em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: -.01em;
}

body {
  font-size: var(--fs-body);
  line-height: 1.6;
}

/* ====== SECTION SPACING ====== */
section {
  padding-block: var(--space-section);
}

/* ====== GRID HELPERS ====== */
.grid {
  display: grid;
  gap: clamp(16px, 3.6vw, 36px);
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ====== CARD BASE ====== */
.card {
  border-radius: var(--radius-xl);
  background: #fff;
  /* your preference: white cards on dark */
  color: #000;
  box-shadow: var(--shadow-soft);
  padding: clamp(16px, 3.2vw, 28px);
}

/* ====== NAVBAR SAFETY (avoid layout shifts/overflow) ====== */
.nav,
.navbar,
header nav {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 24px);
}

.menu {
  flex-wrap: wrap;
}

/* ====== HERO VIDEO (was too large on mobile) ====== */
.hero-media,
.Joinhero-media,
#heroVideoWrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  /* keeps proportion on all screens */
}

#heroVideo,
.hero-media video,
.Joinhero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* fills without distortion */
}


/* ====== “MEET PETE” LAYOUT (remove fixed widths) ====== */
.Meethero {
  min-height: auto;
  height: auto;
  padding-block: clamp(40px, 6vw, 90px);
}

.Meethero>.container-meet {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}

@media (min-width: 900px) {
  .Meethero>.container-meet {
    grid-template-columns: minmax(280px, 560px) 1fr;
  }
}

/* ====== MEDIA & IMAGES ALIGNMENT ====== */
.figure,
.Joinhero-media,
.hero-figure {
  margin: 0;
}

img.fit-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====== COMMON “SIDE GAP” CAUSES ====== */
/* 1) Any element accidentally wider than viewport */
[class*="row"],
[class*="wrap"],
[class*="rail"],
[class*="wide"] {
  max-width: 100%;
}

/* 2) Transforms creating overflow — hide it at section level */
section,
header,
footer {
  overflow-x: clip;
}

/* ====== RESPONSIVE TABLES (if any) ====== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ====== UTILITIES ====== */
.hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hidden-mobile {
    display: initial;
  }
}

.center {
  display: grid;
  place-items: center;
}