:root {
  --navy: #173a64;
  --menu: #3a8db8;
  --pale: #d8f1fb;
  --ink-blue: #2f5fa8;
  --white: #f8fbff;
  --soft: #e4dfdc;
  --button: #4aa3cd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  background: var(--navy);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  height: 122px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--menu);
}

.site-nav nav {
  width: min(100%, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 0 36px;
}

.site-nav a {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}

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

.section-pale {
  background: var(--pale);
  color: #325b8c;
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(330px, 470px) minmax(280px, 340px);
  grid-template-rows: 1fr auto;
  column-gap: 66px;
  align-items: center;
  justify-content: center;
  padding: 58px 52px 46px;
}

.kicker {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.hero h1 {
  max-width: 470px;
  margin: 0;
  color: #fff;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.45;
}

.lead {
  max-width: 470px;
  margin: 22px 0 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.42;
}

.hero-image {
  width: 340px;
  height: 396px;
  object-fit: cover;
  align-self: center;
}

.hero-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 44px;
}

.btn {
  min-width: 162px;
  padding: 13px 23px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  letter-spacing: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .15);
}

.btn-blue {
  background: var(--button);
  color: #fff;
}

.btn-light {
  min-width: 229px;
  background: var(--soft);
  color: #474747;
}

.belief {
  min-height: 410px;
  display: grid;
  grid-template-columns: 250px minmax(400px, 520px);
  gap: 54px;
  align-items: center;
  justify-content: center;
  padding: 46px 52px 44px;
}

.logo {
  width: 250px;
  height: 250px;
  object-fit: contain;
}

.belief h2 {
  margin: 0 0 20px;
  color: var(--ink-blue);
  font-size: 22px;
  font-weight: 800;
}

.belief p {
  margin: 0 0 28px;
  font-size: 20px;
  line-height: 1.45;
}

.belief p:last-child {
  margin-bottom: 0;
}

.products {
  padding: 68px 52px 72px;
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.08;
}

.section-heading p {
  max-width: 850px;
  margin: 0 auto;
  color: #fff;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
}

.tile-grid {
  width: min(100%, 930px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tile,
.course {
  text-align: center;
}

.tile img,
.course img {
  width: 100%;
  aspect-ratio: 302 / 339;
  object-fit: cover;
  display: block;
  background: #bdd9e7;
}

.tile h3,
.course h3 {
  margin: 30px 0 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.tile p,
.course p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.centered {
  display: block;
  width: max-content;
  margin: 42px auto 0;
}

.courses {
  padding: 64px 52px 78px;
}

.section-heading.pale h2 {
  color: var(--ink-blue);
}

.section-heading.pale p {
  color: #325b8c;
}

.course {
  color: #325b8c;
}

.site-nav-pale {
  background: var(--pale);
}

.site-nav-pale a {
  color: #1f1f1f;
  font-size: 18px;
  font-weight: 600;
  text-shadow: none;
}

.workbooks-page {
  background: var(--pale);
}

.workbook-section {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(380px, 460px) minmax(280px, 360px);
  grid-template-rows: 1fr auto;
  column-gap: 46px;
  align-items: center;
  justify-content: center;
  padding: 60px 52px 54px;
}

.workbook-section.section-pale {
  color: var(--ink-blue);
}

.workbook-copy h1 {
  margin: 0 0 30px;
  color: inherit;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.22;
}

.workbook-copy p {
  margin: 0 0 30px;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.62;
}

.workbook-copy p:last-child {
  margin-bottom: 0;
}

.workbook-media {
  text-align: center;
}

.workbook-media img {
  width: min(100%, 360px);
  max-height: 480px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.workbook-vol-one .workbook-media img {
  width: min(100%, 371px);
  aspect-ratio: 557 / 771;
}

.preview-gallery {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
}

.preview-gallery img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.workbook-vol-one .preview-gallery img {
  width: 100%;
  aspect-ratio: auto;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 58, 100, .9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .22);
}

.gallery-prev {
  left: -21px;
}

.gallery-next {
  right: -21px;
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.gallery-dot.is-active {
  background: #fff;
}

.workbook-media span {
  display: block;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
}

.workbook-button {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 252px;
  margin-top: 46px;
}

.workbook-availability {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 42px;
  text-align: center;
}

.workbook-availability p {
  margin: 0 0 22px;
  color: inherit;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
}

.workbook-availability .workbook-button {
  display: block;
  margin-top: 0;
}

.contact-page {
  background: var(--navy);
}

.lead-form-page {
  min-height: calc(100vh - 122px);
  display: grid;
  grid-template-columns: minmax(340px, 520px) minmax(320px, 430px);
  gap: 74px;
  align-items: start;
  justify-content: center;
  padding: 78px 52px 92px;
}

.lead-intro h1 {
  margin: 0 0 30px;
  color: #fff;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.25;
}

.lead-intro p {
  margin: 0 0 28px;
  color: #fff;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.48;
}

.lead-form-wrap h2 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 38px;
  font-weight: 400;
}

.lead-form-wrap > p {
  margin: 0 0 12px;
  color: #fff;
  font-size: 20px;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.social-links a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.lead-form {
  display: grid;
  gap: 18px;
}

.selected-course {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 0;
  padding: 12px 13px;
  color: #fff;
  background: transparent;
  font: inherit;
}

.lead-form textarea {
  min-height: 130px;
  resize: vertical;
}

.lead-form .btn {
  width: 150px;
  min-width: 150px;
  margin-top: 4px;
  border: 0;
  cursor: pointer;
}

.lead-form .btn:disabled {
  cursor: wait;
  opacity: .72;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.form-status.is-error {
  color: #ffd2d2;
}

.online-page {
  background: var(--navy);
}

.online-hero {
  padding: 56px 52px 64px;
  text-align: center;
}

.online-hero .kicker {
  margin-bottom: 26px;
}

.online-hero h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 46px;
  font-weight: 400;
  line-height: 1.1;
}

.online-hero > p {
  max-width: 820px;
  margin: 0 auto 40px;
  color: #fff;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
}

.online-summary-grid .course {
  color: #fff;
}

.online-detail {
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(280px, 340px);
  grid-template-rows: 1fr auto;
  column-gap: 58px;
  align-items: center;
  justify-content: center;
  padding: 52px 52px 50px;
}

.online-detail.image-left {
  grid-template-columns: minmax(280px, 340px) minmax(320px, 420px);
}

.online-detail img {
  width: min(100%, 340px);
  max-height: 410px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.online-detail.section-pale {
  color: var(--ink-blue);
}

.online-copy h2 {
  margin: 0 0 24px;
  color: inherit;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
}

.online-copy p {
  margin: 0 0 22px;
  color: inherit;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.55;
}

.online-button {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 270px;
  margin-top: 28px;
}

@media (max-width: 820px) {
  .site-nav {
    height: auto;
    padding: 24px 0;
  }

  .site-nav nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
    padding: 0 20px;
  }

  .site-nav a {
    font-size: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 40px 28px 42px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.28;
  }

  .lead {
    font-size: 18px;
  }

  .hero-image {
    width: min(100%, 320px);
    height: auto;
    margin: 30px auto 0;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 16px;
  }

  .belief {
    grid-template-columns: 1fr;
    padding: 52px 28px;
    text-align: left;
  }

  .logo {
    margin: 0 auto;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .section-heading p,
  .belief p {
    font-size: 18px;
  }

  .tile-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .workbook-section {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 48px 28px 56px;
  }

  .site-nav-pale a {
    font-size: 16px;
  }

  .workbook-copy h1 {
    font-size: 32px;
  }

  .workbook-copy p {
    font-size: 20px;
    line-height: 1.5;
  }

  .workbook-media {
    margin-top: 34px;
  }

  .preview-gallery {
    max-width: 320px;
  }

  .gallery-prev {
    left: 8px;
  }

  .gallery-next {
    right: 8px;
  }

  .workbook-button {
    margin-top: 32px;
  }

  .workbook-availability {
    margin-top: 32px;
  }

  .workbook-availability p {
    font-size: 20px;
  }

  .lead-form-page {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 52px 28px 70px;
  }

  .lead-intro h1 {
    font-size: 34px;
  }

  .lead-intro p {
    font-size: 20px;
  }

  .online-hero {
    padding: 42px 28px 54px;
  }

  .online-hero h1 {
    font-size: 34px;
  }

  .online-hero > p {
    font-size: 18px;
  }

  .online-detail,
  .online-detail.image-left {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 42px 28px 50px;
  }

  .online-detail.image-left img {
    order: 2;
  }

  .online-detail.image-left .online-copy {
    order: 1;
  }

  .online-copy h2 {
    font-size: 28px;
  }

  .online-copy p {
    font-size: 18px;
    line-height: 1.5;
  }

  .online-detail img {
    margin-top: 28px;
  }

  .online-button {
    margin-top: 32px;
  }
}
