@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap");

:root {
  --color-warm-white: #f7f5f1;
  --color-soft-grey: #e8e6e1;
  --color-light-stone: #d9d4cb;
  --color-sand: #cbbba3;
  --color-charcoal: #2c2b29;
  --color-graphite: #3f3e3b;
  --color-deep-navy: #1c2636;
  --color-eucalyptus: #5f7a6a;
  --color-olive: #6b7355;
  --color-ochre: #b8874a;
  --color-terracotta: #a86a52;
  --color-sky: #8eabbc;
  --color-white: #ffffff;
  --color-error: #9b3d2e;
  --color-success: #3d6b52;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 12px 40px rgba(44, 43, 41, 0.08);
  --header-height: 4.5rem;
  --max-width: 72rem;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

html.is-nav-open {
  scroll-behavior: auto;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-graphite);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(95, 122, 106, 0.08), transparent 42%),
    radial-gradient(ellipse at 88% 8%, rgba(184, 135, 74, 0.07), transparent 40%),
    linear-gradient(180deg, var(--color-warm-white) 0%, #f3f0ea 48%, var(--color-warm-white) 100%);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

body.is-nav-open {
  overflow: hidden;
  touch-action: none;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

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

a {
  color: var(--color-eucalyptus);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-deep-navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-eucalyptus);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-charcoal);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 var(--space-md);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

p {
  margin: 0 0 var(--space-md);
}

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page__main {
  flex: 1;
  padding-top: var(--header-height);
}

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

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

.section--tight {
  padding: var(--space-lg) 0;
}

.section--sand {
  background: linear-gradient(135deg, rgba(203, 187, 163, 0.22), rgba(232, 230, 225, 0.55));
}

.section--stone {
  background: rgba(217, 212, 203, 0.35);
}

.section--navy {
  background: var(--color-deep-navy);
  color: var(--color-soft-grey);
}

.section--navy h2,
.section--navy h3 {
  color: var(--color-warm-white);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-eucalyptus);
  margin-bottom: var(--space-sm);
}

.section--navy .section__eyebrow {
  color: var(--color-sky);
}

.section__intro {
  max-width: 40rem;
  margin-bottom: var(--space-lg);
  color: inherit;
}

.section__divider {
  width: 4rem;
  height: 2px;
  background: var(--color-ochre);
  border: 0;
  margin: 0 0 var(--space-lg);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: var(--header-height);
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(63, 62, 59, 0.08);
}

.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-charcoal);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.header__brand:hover {
  color: var(--color-deep-navy);
}

.header__logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
}

@media (min-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1201;
    background: transparent;
    pointer-events: none;
  }

  .nav__list {
    pointer-events: auto;
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
    justify-content: flex-end;
  }
}

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

.nav__link {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--color-graphite);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-deep-navy);
  background: rgba(95, 122, 106, 0.12);
}

.nav__toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(63, 62, 59, 0.18);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav__toggle-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.15rem;
  height: 2px;
  margin-top: -1px;
  margin-left: -0.575rem;
  background: var(--color-charcoal);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle-line:nth-child(1) {
  transform: translateY(-0.35rem);
}

.nav__toggle-line:nth-child(3) {
  transform: translateY(0.35rem);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-deep-navy);
  color: var(--color-warm-white);
}

.btn--primary:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
}

.btn--secondary {
  background: transparent;
  color: var(--color-deep-navy);
  border-color: rgba(28, 38, 54, 0.35);
}

.btn--secondary:hover {
  background: rgba(28, 38, 54, 0.06);
  color: var(--color-charcoal);
}

.btn--light {
  background: var(--color-warm-white);
  color: var(--color-deep-navy);
}

.btn--light:hover {
  background: var(--color-white);
  color: var(--color-charcoal);
}

.btn--ghost {
  background: transparent;
  color: var(--color-warm-white);
  border-color: rgba(247, 245, 241, 0.4);
}

.btn--ghost:hover {
  background: rgba(247, 245, 241, 0.1);
  color: var(--color-white);
}

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

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: end;
  color: var(--color-warm-white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(28, 38, 54, 0.78) 0%, rgba(28, 38, 54, 0.62) 48%, rgba(44, 43, 41, 0.58) 100%),
    linear-gradient(to top, rgba(28, 38, 54, 0.55), transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0 var(--space-xl);
  max-width: 40rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
  color: var(--color-warm-white);
}

.hero__title {
  color: var(--color-warm-white);
  margin-bottom: var(--space-md);
}

.hero__text {
  font-size: 1.125rem;
  max-width: 34rem;
  margin-bottom: var(--space-lg);
  color: rgba(247, 245, 241, 0.92);
}

.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background:
    linear-gradient(135deg, rgba(95, 122, 106, 0.12), transparent 55%),
    linear-gradient(to right, rgba(217, 212, 203, 0.45), transparent);
  border-bottom: 1px solid rgba(63, 62, 59, 0.08);
}

.page-hero__title {
  max-width: 18ch;
}

.page-hero__text {
  max-width: 38rem;
  font-size: 1.125rem;
}

.split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

.split--spaced {
  margin-bottom: var(--space-lg);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-xl);
  }

  .split--reverse .split__media {
    order: 2;
  }

  .split--reverse .split__content {
    order: 1;
  }
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.split__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-grid {
  display: grid;
  gap: var(--space-md);
}

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

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

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

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

.card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(63, 62, 59, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 8px 28px rgba(44, 43, 41, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card__media {
  overflow: hidden;
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card:hover .card__image {
  transform: scale(1.04);
}

.card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.card__category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-olive);
}

.card__title {
  margin: 0;
}

.card__text {
  margin: 0;
  color: var(--color-graphite);
  font-size: 0.98rem;
}

.card-grid + .feature {
  margin-top: var(--space-md);
}

.card-grid + .btn-group,
.feature + .btn-group {
  margin-top: var(--space-lg);
}

.step__title {
  margin-bottom: var(--space-xs);
}

.feature-list {
  display: grid;
  gap: var(--space-md);
}

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

@media (min-width: 1100px) {
  .feature-list--5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.feature {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--color-eucalyptus);
  min-width: 0;
}

.feature__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-ochre);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.feature__title {
  margin-bottom: var(--space-xs);
}

.feature__text {
  margin: 0;
  font-size: 0.98rem;
}

.steps {
  display: grid;
  gap: var(--space-md);
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

.step {
  position: relative;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid rgba(63, 62, 59, 0.08);
  min-width: 0;
}

.step__index {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-eucalyptus);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.cta-band {
  display: grid;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 800px) {
  .cta-band {
    grid-template-columns: 1.4fr auto;
  }
}

.cta-band__title {
  margin-bottom: var(--space-xs);
}

.cta-band__text {
  margin: 0;
  max-width: 36rem;
}

.contact-layout {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.contact-details {
  display: grid;
  gap: var(--space-md);
}

.contact-details__item {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid rgba(63, 62, 59, 0.08);
}

.contact-details__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-olive);
  margin-bottom: 0.35rem;
}

.contact-details__value {
  margin: 0;
  color: var(--color-charcoal);
  font-weight: 500;
}

.form {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(63, 62, 59, 0.08);
  box-shadow: var(--shadow-soft);
}

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

.form__label {
  font-weight: 600;
  color: var(--color-charcoal);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.form__required {
  color: var(--color-terracotta);
}

.form__input,
.form__textarea {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(63, 62, 59, 0.2);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font: inherit;
  color: var(--color-charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.form__textarea {
  min-height: 9rem;
  resize: vertical;
}

.form__input:hover,
.form__textarea:hover {
  border-color: rgba(95, 122, 106, 0.55);
}

.form__input.is-valid,
.form__textarea.is-valid {
  border-color: var(--color-success);
}

.form__input.is-invalid,
.form__textarea.is-invalid {
  border-color: var(--color-error);
}

.form__error {
  display: none;
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-error);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.form__error.is-visible {
  display: block;
}

.form__hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-graphite);
}

.legal {
  max-width: 48rem;
}

.legal h2 {
  margin-top: var(--space-lg);
}

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

.footer {
  background: var(--color-deep-navy);
  color: rgba(247, 245, 241, 0.88);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: auto;
}

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

.footer a:hover {
  color: var(--color-warm-white);
}

.footer__grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 800px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-warm-white);
  margin: 0 0 var(--space-sm);
}

.footer__text {
  margin: 0 0 0.5rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.footer__title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin: 0 0 var(--space-sm);
}

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

.footer__list a {
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer__social a {
  font-weight: 600;
  text-decoration: none;
}

.footer__bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(247, 245, 241, 0.12);
  font-size: 0.9rem;
  color: rgba(247, 245, 241, 0.65);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 38, 54, 0.62);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: min(90vh, 32rem);
  overflow: auto;
  background: var(--color-warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-soft-grey);
  color: var(--color-charcoal);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  background: var(--color-light-stone);
}

.modal__title {
  margin-right: 2rem;
}

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

@media (max-width: 899px) {
  .nav__toggle {
    display: inline-flex;
    z-index: 1201;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    z-index: 1100;
    display: block;
    background: rgba(247, 245, 241, 0.98);
    padding: var(--space-md);
    transform: translateX(100%);
    transition: transform var(--transition), visibility var(--transition);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    pointer-events: none;
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    min-height: 100%;
  }

  .nav__link {
    padding: 0.95rem 1rem;
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.25rem, var(--max-width));
  }

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

  .btn {
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
  }

  .hero__content {
    padding-top: var(--space-xl);
  }
}

@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;
  }

  .card:hover,
  .card:hover .card__image,
  .btn:active {
    transform: none;
  }
}
