:root {
  --color-teal: #2a9d8f;
  --color-teal-deep: #1f7a6f;
  --color-salt: #f7f5f1;
  --color-sand: #e8dfd0;
  --color-navy: #0b1f33;
  --color-ink: #142433;
  --color-coral: #e07a5f;
  --color-paper: #fffcf7;
  --color-muted: #5c6b7a;
  --font-serif: "Libre Baskerville", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow-card: 0 10px 28px rgba(11, 31, 51, 0.08);
  --shadow-lift: 0 16px 36px rgba(11, 31, 51, 0.12);
  --radius: 4px;
  --header-h: 4.25rem;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(42, 157, 143, 0.08), transparent 42%),
    radial-gradient(ellipse at 88% 8%, rgba(224, 122, 95, 0.06), transparent 36%),
    linear-gradient(180deg, var(--color-salt) 0%, #f3efe7 48%, var(--color-salt) 100%);
  min-height: 100vh;
}

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

a {
  color: var(--color-teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-navy);
}

p {
  margin: 0 0 1rem;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--navy {
  background: var(--color-navy);
  color: var(--color-salt);
}

.btn--navy:hover {
  background: var(--color-navy);
  color: var(--color-salt);
  box-shadow: inset 0 0 0 2px var(--color-coral);
}

.btn--teal {
  background: var(--color-teal);
  color: #fff;
}

.btn--teal:hover {
  background: var(--color-teal-deep);
  color: #fff;
  box-shadow: inset 0 0 0 2px var(--color-coral);
}

.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--ghost:hover {
  border-color: var(--color-coral);
  color: var(--color-coral);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 241, 0.94);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.site-header__brand {
  grid-column: 2;
  justify-self: center;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-align: center;
}

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

.site-header__toggle {
  grid-column: 1;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-navy);
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.site-header__toggle-bar {
  width: 1.1rem;
  height: 2px;
  background: var(--color-navy);
}

.site-header__nav {
  grid-column: 1 / -1;
  display: none;
  padding-bottom: 1rem;
}

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

.site-header__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-header__list a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-navy);
  position: relative;
}

.site-header__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 0;
  height: 1px;
  background: var(--color-coral);
  transition: width 0.3s var(--ease);
}

.site-header__list a:hover::after {
  width: 100%;
}

.site-header__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-navy), transparent);
  opacity: 0.35;
}

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

  .site-header__inner {
    grid-template-columns: 1fr auto 1fr;
  }

  .site-header__brand {
    grid-column: 2;
  }

  .site-header__nav {
    grid-column: 3;
    display: block;
    padding: 0;
    justify-self: end;
  }

  .site-header__list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.9rem 1.15rem;
  }

  .site-header__list a {
    font-size: 0.84rem;
    letter-spacing: 0.02em;
  }
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  background: var(--color-sand);
  color: var(--color-ink);
}

.site-footer__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding: 3.5rem 0 2rem;
  display: grid;
  gap: 2rem;
}

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

.site-footer__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin: 0 0 0.85rem;
}

.site-footer__text {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li + li {
  margin-top: 0.4rem;
}

.site-footer__links a {
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer__links a:hover {
  color: var(--color-coral);
}

.site-footer__stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-coral));
}

.site-footer__copy {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 1rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
}

.cookie-banner__inner {
  max-width: 42rem;
  margin-inline: auto;
  background: var(--color-paper);
  border: 1px solid var(--color-navy);
  box-shadow: var(--shadow-lift);
  padding: 1.25rem 1.35rem;
}

.cookie-banner__text {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner__error {
  margin-top: 0.75rem;
  color: #9b2c2c;
  font-size: 0.9rem;
}

/* Cards */
.card {
  background: var(--color-paper);
  border: 1px solid rgba(11, 31, 51, 0.35);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.card__header {
  background: var(--color-navy);
  color: var(--color-salt);
  padding: 0.85rem 1.15rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.card__body {
  padding: 1.25rem 1.15rem 1.4rem;
}

.card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

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

/* Reveal / parallax */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.parallax-img {
  will-change: transform;
}

/* Page heroes */
.page-hero {
  padding: 3.5rem 0 2.5rem;
}

.page-hero--split {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 900px) {
  .page-hero--split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    min-height: min(72vh, 38rem);
  }
}

.page-hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-teal-deep);
  margin-bottom: 0.85rem;
}

.page-hero__title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin: 0 0 1rem;
  max-width: 14ch;
}

.page-hero__lede {
  font-size: 1.12rem;
  color: var(--color-muted);
  max-width: 38ch;
}

.page-hero__media {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
  border: 1px solid rgba(11, 31, 51, 0.25);
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 18rem;
}

.page-hero--plain .page-hero__title {
  max-width: 22ch;
}

.section {
  padding: 3.5rem 0;
}

.section--sand {
  background: rgba(232, 223, 208, 0.45);
}

.section--navy {
  background: var(--color-navy);
  color: var(--color-salt);
}

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

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 0.75rem;
}

.section__lede {
  max-width: 48ch;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.section--navy .section__lede {
  color: rgba(247, 245, 241, 0.78);
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

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

.grid-2 {
  display: grid;
  gap: 1.75rem;
}

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

.band {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .band {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .band--flip .band__copy {
    order: 2;
  }
}

.band__media {
  overflow: hidden;
  border: 1px solid rgba(11, 31, 51, 0.28);
  min-height: 16rem;
}

.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 16rem;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 2.2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.meta {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.quote {
  margin: 0;
  padding: 1.5rem;
  background: var(--color-paper);
  border: 1px solid rgba(11, 31, 51, 0.3);
  box-shadow: var(--shadow-card);
}

.quote p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
}

.quote footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  font-style: normal;
  font-family: var(--font-sans);
}

.form {
  display: grid;
  gap: 1.1rem;
  max-width: 36rem;
}

.form__label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form__input,
.form__select,
.form__textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(11, 31, 51, 0.4);
  background: var(--color-paper);
  border-radius: var(--radius);
  color: var(--color-ink);
}

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

.form__error {
  color: #9b2c2c;
  font-size: 0.88rem;
  font-weight: 400;
}

.form__status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-teal);
  background: rgba(42, 157, 143, 0.12);
}

.form__status--error {
  border-color: #9b2c2c;
  background: rgba(155, 44, 44, 0.08);
  color: #9b2c2c;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(11, 31, 51, 0.18);
}

.price-row strong {
  font-family: var(--font-serif);
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.4rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.legal h2 {
  margin-top: 2rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid rgba(11, 31, 51, 0.25);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--color-navy);
  color: var(--color-salt);
  font-weight: 600;
}

.error-page {
  padding: 6rem 0;
  text-align: center;
}

.error-page h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}
