/* ==========================================================================
   Mini MBA | The Rick Goings Institute
   ========================================================================== */

/* Fonts ------------------------------------------------------------------- */
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham-book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/gotham-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Tokens ------------------------------------------------------------------ */
:root {
  --rgi-blue: #0071BA;
  --rgi-navy: #0E3956;
  --rgi-gold: #FACF00;
  --rgi-gold-hover: #E0B900;
  --rgi-mist: #E8EBEA;
  --rgi-white: #FFFFFF;

  --rule-light: #D9D9D9;
  --rule-on-blue: #0F5E9B;
  --rule-on-navy: #1E5581;
  --stat-divider: #80B8DD;

  --font-brand: 'Gotham', Arial, sans-serif;

  --container: 1296px;
  --gutter: clamp(24px, 5vw, 72px);
  --section-pad: clamp(64px, 7vw, 96px);
}

/* Base -------------------------------------------------------------------- */
body {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--rgi-navy);
  background: var(--rgi-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }

a { color: var(--rgi-blue); }
a:hover { color: var(--rgi-navy); }

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

strong { font-weight: 500; }

/* Layout ------------------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  scroll-margin-top: 96px;
  padding: var(--section-pad) 0;
}
.section--mist { background: var(--rgi-mist); }
.section--white { background: var(--rgi-white); }

/* Type -------------------------------------------------------------------- */
.eyebrow {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow--blue { color: var(--rgi-blue); }

.label {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 16px;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lead {
  font-size: 22px;
  line-height: 1.45;
}

.pretty { text-wrap: pretty; }

.rule-gold {
  width: 72px;
  height: 4px;
  margin-top: 24px;
  background: var(--rgi-gold);
}
.rule-blue {
  width: 48px;
  height: 3px;
  background: var(--rgi-blue);
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.btn--gold {
  background: var(--rgi-gold);
  color: var(--rgi-navy);
  transition: background-color 120ms ease-out;
}
.btn--gold:hover {
  background: var(--rgi-gold-hover);
  color: var(--rgi-navy);
}
.btn--blue {
  background: var(--rgi-blue);
  color: var(--rgi-white);
  border: 1px solid var(--rgi-blue);
  transition: background-color 120ms ease-out, border-color 120ms ease-out;
}
.btn--blue:hover {
  background: var(--rgi-navy);
  border-color: var(--rgi-navy);
  color: var(--rgi-white);
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--rgi-white);
  border-bottom: 1px solid var(--rule-light);
}
.site-header__bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo { display: block; flex: none; }

.logo {
  display: block;
  width: 184px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-right: 32px;
}

.nav-link {
  padding: 16px 0;
  color: var(--rgi-navy);
  text-decoration: none;
  transition: color 120ms ease-out;
}
.nav-link:hover { color: var(--rgi-blue); }

/* Menu toggle: navy square with a hamburger icon, swaps to an X when open.
   Stretches to the Enroll button's height so the two always line up. */
.menu-toggle {
  display: none;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  width: 45px;
  min-height: 42px;
  padding: 0;
  background: var(--rgi-navy);
  border: 1px solid var(--rgi-navy);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 120ms ease-out, border-color 120ms ease-out;
}
.menu-toggle:hover {
  background: var(--rgi-blue);
  border-color: var(--rgi-blue);
}
.menu-toggle__icon { display: block; }
.menu-toggle__icon--close,
.menu-toggle[aria-expanded="true"] .menu-toggle__icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon--close { display: block; }

.mobile-nav {
  border-top: 1px solid var(--rule-light);
  background: var(--rgi-white);
  padding: 8px var(--gutter) 16px;
  display: flex;
  flex-direction: column;
}
.mobile-nav[hidden] { display: none; }

/* Hero -------------------------------------------------------------------- */
.hero {
  background: var(--rgi-navy);
  color: var(--rgi-white);
}
.hero__stage {
  position: relative;
  overflow: hidden;
}
/* Graphic device: the mark at 25% on navy, cropped off the top, right and
   bottom, softened with a navy fade. */
.hero__mark {
  position: absolute;
  right: -12%;
  top: -45%;
  width: max(720px, 64%);
  height: auto;
  opacity: 0.25;
  pointer-events: none;
}
.hero__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__fade--x {
  background: linear-gradient(to right, #0E3956 0%, #0E3956 34%, rgba(14, 57, 86, 0.6) 56%, rgba(14, 57, 86, 0) 82%);
}
.hero__fade--y {
  background: linear-gradient(to bottom, rgba(14, 57, 86, 0.9) 0%, rgba(14, 57, 86, 0) 30%, rgba(14, 57, 86, 0) 75%, rgba(14, 57, 86, 0.85) 100%);
}
.hero__content {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px var(--gutter) 48px;
}
.hero__title {
  margin-top: 24px;
  max-width: 1100px;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
  margin-top: 48px;
}
.hero__lede {
  flex: 1 1 640px;
  max-width: 780px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  text-wrap: balance;
}
.hero__cta { flex: none; }

/* Stats band */
.stats-band {
  background: var(--rgi-blue);
  color: var(--rgi-white);
}
.stats {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: 0 32px;
  border-left: 1px solid var(--stat-divider);
}
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat__figure {
  flex: none;
  font-size: clamp(32px, 2.8vw, 40px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.stat__label {
  min-width: 0;
  max-width: 150px;
  line-height: 1.35;
}
.stat__label--wide {
  max-width: none;
  white-space: nowrap;
}

/* Overview ---------------------------------------------------------------- */
.overview__intro {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  align-items: flex-start;
}
.overview__heading {
  flex: 1 1 420px;
  min-width: 0;
}
.overview__body {
  flex: 1 1 480px;
  min-width: 0;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.feature {
  display: flex;
  flex-wrap: wrap;
  margin-top: clamp(48px, 6vw, 96px);
}
.feature__img {
  flex: 1 1 440px;
  min-width: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 40% 60%;
  display: block;
}
.feature__card {
  flex: 1 1 440px;
  min-width: 0;
  background: var(--rgi-mist);
  padding: clamp(32px, 4.5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature__title {
  margin-top: 24px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 400;
  text-wrap: balance;
}
.feature__text { margin-top: 24px; }

/* What you'll gain -------------------------------------------------------- */
.gain {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  align-items: center;
}
.gain__copy {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 720px;
}
.gain__intro {
  margin-top: 24px;
  max-width: 640px;
}
.gain__img {
  flex: 1 1 400px;
  min-width: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 51% 50%;
  display: block;
}

.checklist {
  list-style: none;
  margin-top: 48px;
  padding: 0;
  border-top: 1px solid var(--rule-light);
}
.checklist__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule-light);
}
/* Centred on the first line of text: (line height − bullet size) / 2.
   Keep in step with .checklist__text's font-size and line-height. */
.checklist__bullet {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: calc((18px * 1.55 - 8px) / 2);
  background: var(--rgi-blue);
}
.checklist__text {
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* The program ------------------------------------------------------------- */
.program__title { max-width: 820px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
}
.card {
  background: var(--rgi-blue);
  color: var(--rgi-white);
  padding: 40px 32px;
}
.card__label {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-on-blue);
}
.card__title {
  margin-top: 24px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.card__text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Heritage ---------------------------------------------------------------- */
.heritage {
  background: var(--rgi-navy);
  color: var(--rgi-white);
}
.heritage__inner {
  display: flex;
  flex-wrap: wrap;
}
.heritage__img {
  flex: 1 1 480px;
  min-width: 0;
  width: 100%;
  height: auto;
  min-height: 384px;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}
.heritage__content {
  flex: 1 1 480px;
  min-width: 0;
  padding: var(--section-pad) clamp(24px, 5vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.heritage__figure {
  font-size: clamp(96px, 9vw, 128px);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.heritage__title {
  margin-top: 32px;
  max-width: 560px;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.heritage__text {
  margin-top: 24px;
  max-width: 560px;
}

/* Enroll ------------------------------------------------------------------ */
.enroll {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 96px;
  align-items: flex-start;
}
.enroll__copy {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 560px;
}
.enroll__text { margin-top: 24px; }
.enroll__cta { margin-top: 48px; }

.cohort {
  flex: 1 1 460px;
  min-width: 0;
  background: var(--rgi-navy);
  color: var(--rgi-white);
  padding: clamp(32px, 4vw, 64px);
}
.cohort__title {
  margin-top: 16px;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.cohort__details {
  margin-top: 32px;
  border-top: 1px solid var(--rule-on-navy);
}
.cohort__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule-on-navy);
}
.cohort__term {
  flex: 0 0 144px;
  line-height: 1.6;
}
.cohort__desc { flex: 1 1 240px; }
.cohort__value {
  display: block;
  font-size: 22px;
  line-height: 1.35;
}
.cohort__note {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.5;
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--rgi-navy);
  color: var(--rgi-white);
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
}
.site-footer__copy {
  font-size: 16px;
  line-height: 1.5;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 900px) {
  .site-nav__links { display: none; }
  .menu-toggle { display: flex; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (min-width: 901px) {
  /* Never leave the mobile panel open after widening the window. */
  .mobile-nav { display: none; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .stat { padding: 0; border-left: 0; }
}

/* Phones: logo, Enroll and the menu button on one row without overflowing. */
@media (max-width: 480px) {
  .site-header__bar { gap: 12px; }
  .site-header__logo .logo { width: 128px; }
  .site-nav { gap: 4px; }
  .site-nav .btn--blue { padding: 12px 14px; letter-spacing: 0.12em; }
}
