:root {
  --forest: #244b3a;
  --forest-deep: #173b2e;
  --teal: #267f70;
  --sage: #8fa88d;
  --sage-soft: #eef4ea;
  --cream: #fff8ef;
  --paper: #fcfdf9;
  --white: #ffffff;
  --copy: #52645c;
  --muted: #73847c;
  --gold: #c7a15b;
  --line: rgba(36, 75, 58, 0.14);
  --shadow: 0 24px 70px rgba(36, 75, 58, 0.12);
  --content: 1180px;
  --page-pad: max(24px, calc((100vw - var(--content)) / 2));
  --floating-height: 74px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: calc(var(--floating-height) + env(safe-area-inset-bottom) + 28px);
  color: var(--forest-deep);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}

body,
button,
input,
textarea,
select,
h1,
h2,
h3,
p,
a {
  font-family: var(--font);
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font-size: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3 {
  margin-bottom: 0;
  color: var(--forest);
  font-weight: 730;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p {
  color: var(--copy);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
  padding: 8px var(--page-pad);
  background: linear-gradient(
    90deg,
    rgba(255, 247, 240, 0.96),
    rgba(252, 253, 249, 0.97) 48%,
    rgba(231, 248, 243, 0.96)
  );
  border-bottom: 1px solid rgba(36, 75, 58, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #435a50;
  font-size: 0.92rem;
}

.site-header nav a {
  position: relative;
  padding: 10px 0;
  text-decoration: none;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 19px;
  color: var(--white);
  background: var(--forest);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
}

main section {
  position: relative;
  scroll-margin-top: 84px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
  min-height: 750px;
  padding: 78px var(--page-pad) 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 22%, rgba(255, 255, 255, 0.78), transparent 30%),
    linear-gradient(112deg, #faeee6 0%, #fff9f2 30%, #fbfdf9 52%, #e1f6f1 78%, #eaf4f8 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  background: linear-gradient(0deg, var(--paper), transparent);
  pointer-events: none;
}

.hero-copy,
.hero-photo {
  position: relative;
  z-index: 2;
}

.hero-copy {
  transform: translateY(-30px);
}

.hero-lockup {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.hero-lockup img {
  width: 146px;
  height: 146px;
  object-fit: contain;
}

.hero h1 {
  max-width: 540px;
  font-size: clamp(3.7rem, 6vw, 5.7rem);
  font-weight: 770;
  line-height: 0.95;
}

.hero-claim {
  margin: 30px 0 12px;
  color: var(--teal);
  font-size: clamp(1.28rem, 2.1vw, 1.58rem);
  font-weight: 730;
  line-height: 1.35;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 28px;
  max-width: 660px;
  margin: 28px 0 30px;
}

.hero-trust span {
  position: relative;
  padding-left: 28px;
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-trust span::before {
  content: "◇";
  position: absolute;
  left: 0;
  color: var(--teal);
}

.hero-photo {
  justify-self: end;
  width: min(100%, 520px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 32px 80px rgba(36, 75, 58, 0.12);
  -webkit-mask-image: radial-gradient(
    circle,
    #000 0%,
    #000 79%,
    rgba(0, 0, 0, 0.82) 87%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle,
    #000 0%,
    #000 79%,
    rgba(0, 0, 0, 0.82) 87%,
    transparent 100%
  );
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 49% 50%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: fit-content;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 730;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--forest);
  box-shadow: 0 14px 30px rgba(36, 75, 58, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--forest-deep);
  box-shadow: 0 18px 36px rgba(36, 75, 58, 0.2);
}

.button-secondary {
  color: var(--forest);
  background: var(--white);
  border-color: rgba(36, 75, 58, 0.2);
  box-shadow: 0 12px 28px rgba(36, 75, 58, 0.1);
}

.button-quiet {
  color: var(--forest);
  background: transparent;
  border-color: var(--line);
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.orientation-section {
  min-height: 780px;
  overflow: hidden;
  background: var(--forest-deep);
}

.orientation-image,
.orientation-image::after {
  position: absolute;
  inset: 0;
}

.orientation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orientation-image::after {
  content: "";
  background: linear-gradient(
    90deg,
    rgba(23, 59, 46, 0.84) 0%,
    rgba(23, 59, 46, 0.62) 42%,
    rgba(23, 59, 46, 0.12) 78%
  );
}

.orientation-card {
  position: relative;
  z-index: 2;
  width: min(620px, calc(100% - 48px));
  margin-left: var(--page-pad);
  padding: 104px 0;
}

.orientation-card .eyebrow,
.orientation-card h2,
.orientation-card p {
  color: var(--white);
}

.orientation-card .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.orientation-card h2 {
  max-width: 600px;
  margin-bottom: 24px;
  font-size: clamp(2.75rem, 5vw, 4.7rem);
  line-height: 1.04;
}

.orientation-card > p:not(.eyebrow) {
  max-width: 590px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.simple-steps {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}

.simple-steps span {
  position: relative;
  padding-left: 30px;
  color: var(--white);
  font-weight: 680;
}

.simple-steps span::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #bfe8d4;
}

.orientation-card .button-primary {
  color: var(--forest);
  background: var(--white);
}

.partner-section {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
  align-items: stretch;
  gap: 0;
  min-height: 700px;
  background: linear-gradient(120deg, #f3f7ef, #fffaf4 58%, #eef8f5);
}

.partner-photo {
  min-height: 700px;
  margin: 0;
  overflow: hidden;
}

.partner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 50%;
}

.partner-copy {
  align-self: center;
  width: min(100%, 650px);
  padding: 86px clamp(42px, 6vw, 92px);
}

.partner-copy h2 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 4.1vw, 3.75rem);
  line-height: 1.06;
}

.partner-copy > p:not(.eyebrow) {
  margin-bottom: 22px;
  font-size: 1.06rem;
}

.partner-copy ul {
  display: grid;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.partner-copy li {
  position: relative;
  padding-left: 27px;
  color: var(--forest);
  font-weight: 680;
}

.partner-copy li::before {
  content: "◇";
  position: absolute;
  left: 0;
  color: var(--teal);
}

.background-section {
  min-height: 690px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 90px var(--page-pad);
  background: #e9f3ed;
}

.background-media,
.background-media::after {
  position: absolute;
  inset: 0;
}

.background-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background-media::after {
  content: "";
  background: linear-gradient(
    90deg,
    rgba(247, 252, 247, 0.94) 0%,
    rgba(247, 252, 247, 0.82) 38%,
    rgba(247, 252, 247, 0.2) 72%
  );
}

.background-card {
  position: relative;
  z-index: 2;
  justify-self: start;
  width: min(650px, 100%);
  padding: clamp(34px, 5vw, 62px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.background-card h2 {
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 4.5vw, 4rem);
  line-height: 1.04;
}

.background-card > p:not(.eyebrow) {
  margin-bottom: 26px;
  font-size: 1.06rem;
}

.background-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.background-links a {
  color: var(--forest);
  font-weight: 720;
  text-underline-offset: 4px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 28px var(--page-pad);
  background: linear-gradient(90deg, #fff6ee, #fcfdf9 48%, #e6f5f1);
  border-top: 1px solid var(--line);
}

.footer-brand img {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 0.88rem;
}

.floating-routes {
  position: fixed;
  right: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 150;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(600px, calc(100vw - 28px));
  min-height: var(--floating-height);
  padding: 7px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(36, 75, 58, 0.12);
  border-radius: 22px;
  box-shadow: 0 18px 54px rgba(36, 75, 58, 0.18);
  backdrop-filter: blur(18px);
  transform: translateX(50%);
}

.floating-routes > a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  padding: 10px 14px;
  color: #55665d;
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 720;
  text-align: center;
  text-decoration: none;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.floating-routes > a:hover,
.floating-routes > a:focus-visible,
.floating-routes > a[aria-current="location"] {
  color: var(--forest);
  background: var(--sage-soft);
}

.route-icon {
  color: var(--gold);
  font-size: 1.08rem;
}

.route-help {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 12px);
  width: max-content;
  max-width: 260px;
  padding: 10px 12px;
  color: var(--white);
  background: var(--forest-deep);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(23, 59, 46, 0.2);
  font-size: 0.8rem;
  font-weight: 560;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.floating-routes > a:hover .route-help,
.floating-routes > a:focus-visible .route-help {
  opacity: 1;
  transform: translate(50%, 0);
}

.partner-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  color: var(--forest-deep);
  background: var(--paper);
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(23, 59, 46, 0.28);
}

.partner-dialog::backdrop {
  background: rgba(23, 59, 46, 0.54);
  backdrop-filter: blur(5px);
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 36px 20px;
}

.dialog-heading h2 {
  max-width: 560px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--forest);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.7rem;
}

.partner-dialog form {
  display: grid;
  gap: 20px;
  padding: 8px 36px 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.partner-dialog label:not(.consent) {
  display: grid;
  gap: 7px;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 720;
}

.partner-dialog input,
.partner-dialog textarea {
  width: 100%;
  color: var(--forest-deep);
  background: var(--white);
  border: 1px solid rgba(36, 75, 58, 0.18);
  border-radius: 12px;
  outline: 0;
}

.partner-dialog input {
  min-height: 50px;
  padding: 11px 13px;
}

.partner-dialog textarea {
  min-height: 130px;
  padding: 13px;
  resize: vertical;
}

.partner-dialog input:focus,
.partner-dialog textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(38, 127, 112, 0.12);
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  color: var(--copy);
  font-size: 0.9rem;
}

.consent input {
  width: 20px;
  min-height: 20px;
  margin: 2px 0 0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.form-status {
  min-height: 1.5em;
  margin-bottom: 0;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 680;
}

@media (max-width: 1040px) {
  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  }

  .hero-lockup {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .hero-lockup img {
    width: 118px;
    height: 118px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 7vw, 4.8rem);
  }

  .partner-section {
    grid-template-columns: minmax(0, 0.88fr) minmax(390px, 1.12fr);
  }
}

@media (max-width: 820px) {
  :root {
    --floating-height: 70px;
  }

  .site-header {
    min-height: 74px;
  }

  .brand img {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .header-cta {
    min-height: 44px;
    padding-inline: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 60px;
  }

  .hero-copy {
    order: 1;
    transform: none;
  }

  .hero-photo {
    order: 2;
    justify-self: center;
    width: min(520px, 86vw);
  }

  .orientation-card {
    margin: 0 auto;
    padding-block: 80px;
  }

  .orientation-image::after {
    background: rgba(23, 59, 46, 0.7);
  }

  .partner-section {
    grid-template-columns: 1fr;
  }

  .partner-photo {
    min-height: 440px;
  }

  .partner-copy {
    width: min(100%, 720px);
    padding: 64px var(--page-pad) 76px;
  }

  .background-media::after {
    background: rgba(247, 252, 247, 0.65);
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: calc(var(--floating-height) + env(safe-area-inset-bottom) + 20px);
  }

  .site-header {
    gap: 12px;
    padding-inline: 16px;
  }

  .brand {
    gap: 8px;
    font-size: 0.92rem;
  }

  .brand img {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .header-cta {
    padding-inline: 13px;
    font-size: 0.8rem;
  }

  .hero {
    gap: 40px;
    padding: 48px 20px 74px;
  }

  .hero-lockup {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 13px;
  }

  .hero-lockup img {
    width: 88px;
    height: 88px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .hero-claim {
    margin-top: 24px;
  }

  .hero-trust {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .hero .button {
    width: 100%;
  }

  .orientation-section {
    min-height: 720px;
  }

  .orientation-card {
    width: calc(100% - 40px);
    padding-block: 70px;
  }

  .orientation-card h2,
  .partner-copy h2,
  .background-card h2 {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  .partner-photo {
    min-height: 350px;
  }

  .partner-copy {
    padding: 54px 20px 72px;
  }

  .partner-copy .button {
    width: 100%;
  }

  .background-section {
    min-height: 650px;
    padding: 64px 20px;
  }

  .background-card {
    padding: 30px 24px;
  }

  .background-links {
    display: grid;
  }

  .floating-routes {
    width: calc(100vw - 16px);
    bottom: calc(8px + env(safe-area-inset-bottom));
    padding: 5px;
    border-radius: 18px;
  }

  .floating-routes > a {
    min-height: 58px;
    gap: 4px;
    padding: 7px 5px;
    font-size: 0.72rem;
    line-height: 1.18;
  }

  .route-icon {
    display: none;
  }

  .route-help {
    display: none;
  }

  .dialog-heading {
    padding: 28px 22px 16px;
  }

  .partner-dialog form {
    padding: 6px 22px 28px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-actions .button {
    width: 100%;
  }
}

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

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