/* ==========================================================================
   Louis Structures
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1b3738;
  --teal: #25494a;
  --teal-deep: #184b4d;
  --lime: #99f36c;
  --lime-soft: #c9f9b0;
  --paper: #efefef;
  --white: #fff;
  --text: #5c6767;
  --line: rgb(27 55 56 / 0.12);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 20px 40px -24px rgb(27 55 56 / 0.45);
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-space: clamp(4rem, 9vw, 7.5rem);
  --header-height: 72px;
}

/* Base ------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3.25rem);
}

h3 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem);
}

p {
  margin: 0 0 1.1em;
}

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

a {
  color: inherit;
}

strong {
  font-weight: 600;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  top: 1rem;
}

/* Layout ----------------------------------------------------------------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.section--tight-bottom {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.section--flush {
  padding-top: 0;
}

.section--light {
  background: var(--white);
}

.section--dark {
  background: var(--ink);
  color: rgb(255 255 255 / 0.85);
}

/* Full-bleed photo with a tinted overlay. Set the photo with style="--bg: url(...)". */
.section--image {
  --overlay: rgb(27 55 56 / 0.8);
  background: linear-gradient(var(--overlay), var(--overlay)), var(--bg) center / cover no-repeat;
  color: rgb(255 255 255 / 0.88);
}

.section--teal {
  --overlay: rgb(24 75 77 / 0.89);
}

.section--dark :is(h1, h2, h3),
.section--image :is(h1, h2, h3) {
  color: var(--white);
}

.section__title--center {
  text-align: center;
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.stack > * + * {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.measure {
  max-width: 62ch;
}

.lead {
  max-width: 52ch;
  margin-inline: auto;
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem);
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--lime);
}

.highlight {
  color: var(--lime);
}

/* Media ------------------------------------------------------------------ */

.media {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.media--card {
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--white);
}

.media--portrait {
  max-width: 380px;
  justify-self: center;
}

.figure {
  margin: 0 0 1.5rem;
}

.figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.75;
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: use;
}

.use {
  counter-increment: use;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.use img {
  display: block;
  width: 100%;
  height: auto;
}

.use__label {
  padding: 0.75rem 1rem 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.use__label::before {
  content: counter(use) ". ";
}

.figure-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Images with a baked-in white background blend into the page */
.media-blend {
  width: 100%;
  mix-blend-mode: multiply;
}

.image-band {
  height: clamp(220px, 40vw, 520px);
  background: var(--bg) center / cover no-repeat;
}

.map {
  width: 100%;
  height: clamp(320px, 45vw, 480px);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.video {
  max-width: 960px;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.site-header__brand {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.site-nav a:hover {
  background: rgb(27 55 56 / 0.07);
}

.site-nav a[aria-current="page"] {
  color: var(--teal-deep);
  box-shadow: inset 0 -2px 0 var(--lime);
  border-radius: 0;
}

.site-nav .site-nav__cta {
  margin-left: 0.5rem;
  padding-inline: 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}

.site-nav .site-nav__cta:hover,
.site-nav .site-nav__cta[aria-current="page"] {
  background: var(--teal-deep);
  color: var(--lime);
  box-shadow: none;
  border-radius: 999px;
}

.site-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.site-header__toggle-bar,
.site-header__toggle-bar::before,
.site-header__toggle-bar::after {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

.site-header__toggle-bar {
  position: relative;
}

.site-header__toggle-bar::before,
.site-header__toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-header__toggle-bar::before {
  top: -7px;
}

.site-header__toggle-bar::after {
  top: 7px;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar {
  background: transparent;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar::before {
  transform: translateY(7px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  .site-header__toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.1rem;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--lime);
    padding-left: 0.85rem;
  }

  .site-nav .site-nav__cta {
    margin: 1rem 0 0;
    border: 0;
    text-align: center;
  }
}

/* Buttons ---------------------------------------------------------------- */

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
  padding: 0.4rem 0.4rem 0.4rem 1.6rem;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
}

.btn__icon {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 13px;
  border-radius: 50%;
  background: var(--lime);
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s;
}

.btn:hover .btn__icon {
  transform: rotate(45deg);
}

/* Home hero -------------------------------------------------------------- */

.home-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(88svh, 820px);
  padding-block: 6rem;
  overflow: hidden;
  background: var(--ink);
  color: rgb(255 255 255 / 0.9);
}

.home-hero__slides {
  position: absolute;
  inset: 0;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  background: var(--bg) center / cover no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s linear;
}

.home-hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.home-hero__slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgb(27 55 56 / 0.92) 10%, rgb(27 55 56 / 0.55) 60%, rgb(27 55 56 / 0.35));
}

.home-hero__content {
  position: relative;
}

.home-hero__title {
  max-width: 16ch;
  color: var(--lime);
}

.home-hero__lead {
  max-width: 48ch;
  margin-bottom: 2.5rem;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
}

/* Page hero -------------------------------------------------------------- */

.page-hero {
  --overlay: rgb(10 22 22 / 0.68);
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 48vw, 520px);
  padding: 5rem 0 6rem;
  background: linear-gradient(var(--overlay), var(--overlay)), var(--bg) center / cover no-repeat;
  text-align: center;
}

.page-hero__title {
  max-width: 22ch;
  margin: 0 auto;
  color: var(--white);
}

.breadcrumb {
  position: absolute;
  bottom: 0;
  left: 50%;
  padding: 0.55rem 1.5rem 0.4rem;
  border-radius: 16px 16px 0 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  white-space: nowrap;
  transform: translateX(-50%);
}

.breadcrumb a {
  text-underline-offset: 3px;
}

/* Stats ------------------------------------------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 0;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  padding: 1.75rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.04);
}

.stat__title {
  color: var(--lime);
  font-size: 1.3rem;
  font-weight: 500;
}

.stat__figure {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0 0 0.25rem;
  color: var(--white);
  font-size: clamp(2.75rem, 2rem + 2.5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat__value {
  white-space: nowrap;
}

.stat__value--range {
  font-size: 0.7em;
}

.stat__unit {
  margin-left: 0.5rem;
  color: rgb(255 255 255 / 0.75);
  font-size: 1rem;
  font-weight: 400;
}

.panel {
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
}

.panel--dark {
  margin-top: var(--section-space);
  background: var(--ink);
}

/* Cards ------------------------------------------------------------------ */

.card-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 760px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: var(--radius-lg);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card--dark {
  background: var(--ink);
  color: rgb(255 255 255 / 0.82);
}

.card--dark h3 {
  color: var(--white);
}

.card--lime {
  background: var(--lime);
  color: var(--ink);
}

.card--outline {
  border: 1px solid var(--line);
  background: var(--white);
}

.card__number {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--lime);
  font-size: clamp(2.5rem, 2rem + 1.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
}

.card--lime .card__number {
  color: var(--ink);
}

/* Lists ------------------------------------------------------------------ */

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

.check-list li {
  position: relative;
  padding-left: 1.75rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgb(153 243 108 / 0.2);
}

.section--image .check-list strong {
  color: var(--white);
}

.check-list--dark {
  color: var(--ink);
}

.check-list--dark li::before {
  background: var(--ink);
  box-shadow: 0 0 0 4px rgb(27 55 56 / 0.12);
}

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

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    column-gap: 1.75rem;
  }
}

.steps li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Contact ---------------------------------------------------------------- */

.contact-line {
  display: inline-flex;
  flex-direction: column;
  margin-top: 0.5rem;
  color: var(--ink);
  text-decoration: none;
}

.contact-line__label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-line__value {
  font-size: 1.4rem;
  font-weight: 500;
}

.contact-line:hover .contact-line__value {
  color: var(--teal-deep);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-underline-offset: 4px;
}

.contact-layout {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(300px, 0.8fr) 1.2fr;
  }
}

.contact-card {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--ink);
  list-style: none;
}

.contact-card__item {
  display: grid;
  gap: 0.35rem;
}

.contact-card__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.95rem;
}

.contact-card__label svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card__value {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

a.contact-card__value {
  text-decoration-color: var(--lime);
  text-underline-offset: 4px;
}

/* Form ------------------------------------------------------------------- */

.form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.form__row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field__label {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgb(27 55 56 / 0.2);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 4px rgb(153 243 108 / 0.45);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #c2410c;
}

.form .btn {
  justify-self: start;
}

.form__status {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: var(--lime-soft);
  color: var(--ink);
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: #122627;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.98rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--lime);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.site-footer__brand {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 600;
}

.site-footer__contact {
  font-style: normal;
  line-height: 1.9;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.6rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__legal {
  padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.88rem;
}

/* Motion ----------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
