:root {
  --navy: #14253b;
  --green: #0f8a6b;
  --green-hover: #0a6650;
  --champagne: #e8d9a8;
  --chalk: #f6f7f4;
  --slate: #1c1e1b;
  --navy-body: #c7d2dd;
  --muted: #67717a;
  --line: rgba(20, 37, 59, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green);
}

a:hover {
  color: var(--green-hover);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  color: #fff;
  font-size: clamp(4.2rem, 17vw, 10.8rem);
  line-height: 0.9;
  max-width: 9ch;
}

h2 {
  color: var(--navy);
  font-size: clamp(2.25rem, 7vw, 4.4rem);
  line-height: 1;
}

h3 {
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.2;
}

.section {
  background: var(--chalk);
  padding: clamp(4rem, 9vw, 7rem) 1.25rem;
}

.section__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  width: fit-content;
  border: 0;
  border-radius: 0;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font: 700 0.86rem/1 var(--sans);
  letter-spacing: 0.08em;
  padding: 1rem 1.35rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--green-hover);
  color: #fff;
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(232, 217, 168, 0.8);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 6rem 1.25rem;
  background: var(--navy);
}

.hero__media,
.hero__scrim,
.hero__wash {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: url("assets/hero-harbor.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__scrim {
  background: linear-gradient(
    180deg,
    rgba(20, 37, 59, 0.72) 0%,
    rgba(20, 37, 59, 0.45) 42%,
    rgba(20, 37, 59, 0.78) 100%
  );
}

.hero__wash {
  background: rgba(15, 138, 107, 0.1);
  mix-blend-mode: overlay;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.eyebrow {
  color: var(--champagne);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.3;
}

.eyebrow-rule {
  width: min(15rem, 58vw);
  height: 1px;
  background: var(--champagne);
  margin: 0.9rem 0 1.55rem;
}

.hero__subhead {
  color: var(--navy-body);
  font-size: clamp(1.15rem, 4vw, 1.7rem);
  line-height: 1.4;
  max-width: 34rem;
  margin-top: 1.45rem;
}

.hero .button {
  margin-top: 2rem;
}

.steps h2 {
  margin-bottom: 2.3rem;
}

.step-list {
  counter-reset: steps;
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-list li {
  min-height: 14rem;
  padding: 1.5rem 0 1.2rem;
  border-top: 1px solid var(--line);
}

.step-list__number {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--champagne);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.step-list p {
  color: var(--muted);
  max-width: 19rem;
  margin-top: 0.6rem;
}

.benefits {
  padding-top: 1rem;
}

.benefits h2 {
  max-width: 11ch;
  margin-bottom: 2.3rem;
}

.benefit-grid {
  display: grid;
  gap: 2.2rem;
}

.benefit-column {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.benefit-column h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.check-list {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--slate);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 0.8rem;
  height: 0.42rem;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

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

.contact__inner {
  display: grid;
  gap: 2.5rem;
}

.contact h2 {
  color: #fff;
  margin-top: 0.9rem;
}

.contact__copy p:not(.eyebrow) {
  max-width: 29rem;
  margin-top: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  color: var(--navy-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(199, 210, 221, 0.26);
  border-radius: 0;
  background: rgba(246, 247, 244, 0.08);
  color: #fff;
  font: 500 1rem/1.4 var(--sans);
  padding: 0.9rem 0.95rem;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(232, 217, 168, 0.72);
  background: rgba(246, 247, 244, 0.12);
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-form .button {
  margin-top: 0.6rem;
}

.hidden {
  display: none;
}

@media (min-width: 680px) {
  .section,
  .hero {
    padding-left: clamp(2rem, 5vw, 4rem);
    padding-right: clamp(2rem, 5vw, 4rem);
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3rem, 8vw, 6rem);
  }
}

@media (min-width: 960px) {
  .step-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact__inner {
    grid-template-columns: minmax(0, 0.86fr) minmax(24rem, 0.72fr);
    align-items: start;
    gap: clamp(4rem, 9vw, 7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
