:root {
  --green: #2f6c4d;
  --green-dark: #0f2e24;
  --green-soft: #e8f0ec;
  --text: #10231d;
  --muted: #5e6965;
  --line: rgba(16, 35, 29, .14);
  --white: #fff;
  --shadow: 0 18px 50px rgba(0, 0, 0, .15);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 clamp(24px, 5vw, 62px);
  color: var(--white);
}

.brand {
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: -.04em;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  opacity: .95;
  transition: opacity .18s ease, transform .18s ease;
}

.nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.hero {
  min-height: 720px;
  height: 100svh;
  max-height: 960px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image: url("../img/squarerhib-yacht.webp");
  background-size: cover;
  background-position: center center;
  transform: scale(1.015);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.34) 34%, rgba(0,0,0,.14) 72%, rgba(0,0,0,.05) 100%),
    linear-gradient(180deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,.05) 42%, rgba(0,0,0,.42) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(780px, calc(100% - 48px));
  margin-left: clamp(24px, 5vw, 70px);
  padding-top: 74px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: clamp(44px, 8vw, 82px);
  line-height: .95;
  letter-spacing: -.075em;
  font-weight: 400;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(33px, 5vw, 57px);
  line-height: 1.05;
  letter-spacing: -.05em;
  font-weight: 380;
}

.lead {
  margin: 26px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  opacity: .96;
}

.actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 34px;
  border-radius: 6px;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn--primary {
  color: var(--white);
  background: var(--green);
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: #367a58;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
}

.btn-link {
  color: var(--white);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.72);
  padding-bottom: 6px;
}

.benefits {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 92px) 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.benefit {
  text-align: center;
  padding: 0 clamp(20px, 4vw, 54px);
  min-height: 190px;
}

.benefit + .benefit {
  border-left: 1px solid var(--line);
}

.benefit__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--green-dark);
}

.benefit__icon svg {
  width: 64px;
  height: 64px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit__icon .accent {
  stroke: #b9473e;
}

.benefit h2 {
  margin: 0;
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -.04em;
  font-weight: 420;
  color: var(--green-dark);
}

.benefit p {
  margin: 18px auto 0;
  max-width: 245px;
  color: var(--muted);
  line-height: 1.55;
}

.story {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.55fr);
  min-height: 520px;
  background: #f8faf8;
}

.story__text {
  padding: clamp(60px, 8vw, 104px) clamp(32px, 7vw, 86px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story__text h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.07em;
  font-weight: 380;
  color: var(--green-dark);
}

.story__claim {
  margin: 32px 0 24px;
  font-size: clamp(23px, 2.3vw, 32px);
  line-height: 1.17;
  letter-spacing: -.045em;
  color: var(--green);
  max-width: 500px;
}

.story__text p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 17px;
}

.story__image {
  display: block;
  min-height: 520px;
  overflow: hidden;
}

.story__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.cta {
  text-align: center;
  padding: clamp(70px, 9vw, 110px) 24px;
  background: linear-gradient(180deg, #fff 0%, #f7faf8 100%);
}

.cta h2 {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: -.06em;
  font-weight: 380;
  color: var(--green-dark);
}

.cta p {
  margin: 6px 0 30px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -.06em;
  color: var(--green);
  font-weight: 380;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(24px, 5vw, 62px);
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--green-dark);
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .site-header {
    height: 72px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 680px;
    height: 92svh;
  }

  .hero__media {
    background-position: 58% center;
  }

  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.42) 55%, rgba(0,0,0,.22) 100%),
      linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.12) 50%, rgba(0,0,0,.50) 100%);
  }

  .hero__content {
    margin-left: 24px;
    width: calc(100% - 48px);
  }

  .actions {
    gap: 18px;
  }

  .benefits {
    grid-template-columns: 1fr;
    padding: 52px 0;
  }

  .benefit {
    padding: 34px 20px;
    min-height: auto;
  }

  .benefit + .benefit {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .story__text {
    padding: 58px 24px;
  }

  .story__image,
  .story__image img {
    min-height: 420px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }
}


@media (max-width: 520px) {
  .btn {
    width: 100%;
    min-height: 56px;
  }

  .btn-link {
    width: auto;
  }

  .eyebrow {
    font-size: 48px;
  }

  h1 {
    font-size: 36px;
  }
}


/* Contact modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 19, 15, .64);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  max-height: min(92vh, 820px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.modal__eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: .02em;
}

.modal h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -.06em;
  font-weight: 380;
  color: var(--green-dark);
}

.modal__intro {
  margin: 18px 0 26px;
  color: var(--muted);
  line-height: 1.6;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 650;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(16, 35, 29, .22);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus {
  outline: 3px solid rgba(47, 108, 77, .18);
  border-color: var(--green);
}

.checkbox {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  line-height: 1.5;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.checkbox a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note {
  margin: -4px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

/* Legal pages */
.legal-page {
  background: #f8faf8;
}

.legal-header {
  padding: 24px clamp(24px, 5vw, 62px);
  background: var(--green-dark);
  color: var(--white);
}

.legal-header .brand {
  color: var(--white);
}

.legal {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 86px) 0;
}

.legal__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 18px 55px rgba(16, 35, 29, .08);
}

.legal h1 {
  color: var(--green-dark);
  max-width: none;
}

.legal h2 {
  margin: 34px 0 10px;
  color: var(--green-dark);
  font-size: 24px;
  letter-spacing: -.03em;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.7;
}

.legal a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal .small {
  font-size: 14px;
}
