@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --ink:#172329;
  --muted:#5d6a6e;
  --blue:#315d68;
  --sand:#f3efe6;
  --red:#a24f3c;
  --max:1120px
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth
}

body {
  margin:0;
  color:var(--ink);
  font-family:"DM Sans",sans-serif;
  line-height:1.65
}

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

.container {
  width:min(var(--max),calc(100% - 40px));
  margin:auto
}

.site-header {
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid #e5e6e3
}

.nav-wrap {
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between
}

.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700
}

.brand-mark {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  background:var(--blue);
  color:white;
  border-radius:50%;
  font-size:11px;
  letter-spacing:.08em
}

.site-header nav {
  display:flex;
  gap:25px;
  align-items:center;
  font-size:14px;
  font-weight:600
}

.nav-cta {
  padding:9px 16px;
  border:1px solid var(--ink);
  border-radius:5px
}

.menu-toggle {
  display:none;
  background:none;
  border:0;
  font-size:25px
}

.hero {
  min-height:680px;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
  color:white
}

.hero-image {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 48%
}

.hero-shade {
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(10,25,32,.78),rgba(10,25,32,.48) 42%,rgba(10,25,32,.05) 72%),linear-gradient(0deg,rgba(10,25,32,.35),transparent 45%)
}

.hero-content {
  position:relative;
  z-index:2;
  padding:110px 0
}

.eyebrow {
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:12px;
  font-weight:700;
  color:var(--red);
  margin:0 0 15px
}

.hero .eyebrow {
  color:#dce9e9
}

.hero h1 {
  font-family:"Playfair Display",serif;
  font-size:clamp(48px,7vw,82px);
  line-height:1.03;
  margin:0 0 25px;
  max-width:850px
}

.hero h1 span {
  color:#dbe7e5
}

.hero-copy {
  font-size:20px;
  max-width:650px
}

.actions {
  display:flex;
  gap:12px;
  margin-top:32px
}

.button {
  display:inline-block;
  padding:13px 22px;
  border-radius:5px;
  font-weight:700
}

.primary {
  background:white;
  color:var(--ink)
}

.ghost {
  border:1px solid rgba(255,255,255,.7)
}

.section {
  padding:100px 0
}

.alt {
  background:var(--sand)
}

.split {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:80px;
  align-items:center
}

/* Centered Meet Your Instructor photo */
.portrait-image {
  display:block;
  width:75%;
  max-width:75%;
  height:auto;
  aspect-ratio:4/5;
  object-fit:cover;
  object-position:center;
  margin:0 auto
}

.section h2,
.mountain h2 {
  font-family:"Playfair Display",serif;
  font-size:clamp(35px,5vw,52px);
  line-height:1.1;
  margin:0 0 20px
}

.stats {
  display:flex;
  gap:35px;
  margin-top:30px
}

.stats div {
  display:flex;
  flex-direction:column
}

.stats strong {
  font-size:20px
}

.stats span {
  font-size:12px;
  color:var(--muted)
}

.center {
  text-align:center;
  max-width:720px;
  margin:0 auto 50px
}

.lead {
  font-size:18px;
  color:var(--muted)
}

.pillars,
.cards,
.steps {
  display:grid;
  gap:20px
}

.pillars {
  grid-template-columns:repeat(3,1fr)
}

.pillars article {
  padding:28px;
  background:white;
  border-top:3px solid var(--blue)
}

.pillars span,
.card-number {
  color:var(--red);
  font-weight:700;
  font-size:13px
}

.checkbox {
  display:inline-grid;
  place-items:center;
  width:20px;
  height:20px;
  border:2px solid var(--red);
  border-radius:3px;
  font-size:14px;
  line-height:1;
  color:var(--red)
}

.pillars h3,
.card h3,
.steps h3 {
  margin:8px 0
}

.pillars p,
.card p,
.steps p {
  color:var(--muted)
}

.cards {
  grid-template-columns:repeat(2,1fr)
}

.card {
  padding:34px;
  border:1px solid #dfe3df;
  border-radius:7px
}

/* Mountain Flying training card matches the other cards */
.card.feature {
  background:white;
  color:var(--ink)
}

.card.feature p,
.card.feature li {
  color:var(--muted)
}

.card ul {
  padding-left:20px;
  color:var(--muted)
}

/* Large Train in the San Juan Mountains section stays blue */
.mountain {
  padding:115px 0;
  color:white;
  background:var(--blue)
}

.mountain-content {
  max-width:720px
}

.mountain .eyebrow {
  color:#dce9e9
}

.mountain p {
  font-size:18px;
  max-width:650px
}

.text-link {
  font-weight:700
}

.steps {
  grid-template-columns:repeat(4,1fr)
}

.steps strong {
  font-size:25px;
  color:var(--red)
}

.contact {
  background:var(--blue);
  color:white
}

.contact-box {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:70px;
  align-items:center
}

.contact .eyebrow {
  color:#c8dddd
}

.contact-details {
  display:flex;
  flex-direction:column;
  gap:10px;
  font-size:18px
}

.contact-details a {
  font-weight:700
}

.contact-details a:first-child {
  font-size:25px
}

footer {
  background:#172329;
  color:#c9d1d2;
  padding:24px 0;
  font-size:13px
}

.footer-wrap {
  display:flex;
  justify-content:space-between;
  gap:20px
}

@media(max-width:800px) {
  .site-header nav {
    display:none;
    position:absolute;
    top:72px;
    left:0;
    right:0;
    background:white;
    padding:20px;
    flex-direction:column;
    align-items:stretch;
    border-bottom:1px solid #ddd
  }

  .site-header nav.open {
    display:flex
  }

  .menu-toggle {
    display:block
  }

  .split,
  .contact-box {
    grid-template-columns:1fr;
    gap:40px
  }

  .pillars,
  .cards {
    grid-template-columns:1fr
  }

  .steps {
    grid-template-columns:1fr 1fr
  }

  .hero {
    min-height:620px
  }

  .hero-image {
    object-position:58% center
  }

  .section {
    padding:75px 0
  }

  .footer-wrap {
    flex-direction:column
  }

  .stats {
    gap:20px;
    flex-wrap:wrap
  }
}

@media(max-width:500px) {
  .container {
    width:min(var(--max),calc(100% - 28px))
  }

  .hero {
    min-height:700px
  }

  .hero-image {
    object-position:62% center
  }

  .hero h1 {
    font-size:46px
  }

  .hero-copy {
    font-size:17px
  }

  .actions {
    flex-direction:column;
    align-items:flex-start
  }

  .steps {
    grid-template-columns:1fr
  }

  .brand span:last-child {
    font-size:14px
  }
}
