:root {
  --color-teal: #2F6F6A;
  --color-teal-soft: #E8F4F1;
  --color-salt: #F7F9F8;
  --color-sand: #E6DFD3;
  --color-sand-muted: #F0EBE3;
  --color-navy: #1B2A4A;
  --color-navy-ink: #121C33;
  --color-coral: #C4786A;
  --color-paper: #FBF9F5;
  --color-white: #FFFFFF;
  --color-text: #1B2A4A;
  --color-text-muted: #4A5568;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow-card: 0 8px 24px rgba(27, 42, 74, 0.08);
  --shadow-card-hover: 0 14px 32px rgba(27, 42, 74, 0.14);
  --radius-btn: 4px;
  --header-h: 4.25rem;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 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.65;
  color: var(--color-text);
  background:
    linear-gradient(180deg, var(--color-salt) 0%, var(--color-white) 28%, var(--color-sand-muted) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--color-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  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.2;
  color: var(--color-navy);
  margin: 0 0 0.75rem;
}

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

.wrap--narrow {
  width: min(100% - 2.5rem, 44rem);
}

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

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
  letter-spacing: 0.01em;
  text-align: center;
  flex: 1;
  order: 1;
}

@media (min-width: 960px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .site-header__brand {
    order: 0;
    grid-column: 2;
    justify-self: center;
  }

  .site-nav {
    grid-column: 3;
    justify-self: end;
  }
}

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

.site-header__toggle {
  order: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-navy);
  background: var(--color-paper);
  border-radius: var(--radius-btn);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header__toggle-bars,
.site-header__toggle-bars::before,
.site-header__toggle-bars::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--color-navy);
  position: relative;
}

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

.site-header__toggle-bars::before { top: -5px; }
.site-header__toggle-bars::after { top: 5px; }

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

.site-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-navy);
  position: relative;
}

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

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

.site-nav__cta {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  background: var(--color-navy);
  color: var(--color-salt) !important;
  border-radius: var(--radius-btn);
}

.site-nav__cta::after {
  display: none;
}

.site-nav__cta:hover {
  box-shadow: inset 0 0 0 2px var(--color-coral);
  color: var(--color-salt) !important;
}

@media (max-width: 959px) {
  .site-header__brand {
    text-align: left;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-paper);
    border-bottom: 1px solid rgba(27, 42, 74, 0.15);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

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

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

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

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

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

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

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--sand {
  background: var(--color-sand-muted);
}

.section--teal {
  background: var(--color-teal-soft);
}

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

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

.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}

.section__lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 38rem;
}

/* Hero asymmetric */
.hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 28, 51, 0.88) 0%, rgba(18, 28, 51, 0.55) 48%, rgba(47, 111, 106, 0.25) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 8rem) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 900px) {
  .hero__content {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero__brand {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: var(--color-salt);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero__deck {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-teal-soft);
  max-width: 28rem;
  margin: 0;
}

.hero__aside {
  border-left: 1px solid rgba(232, 244, 241, 0.35);
  padding-left: 1.5rem;
  color: var(--color-salt);
}

.hero__aside p {
  margin: 0;
  font-size: 0.98rem;
  opacity: 0.92;
}

.hero__aside .btn {
  margin-top: 1.25rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-paper);
  border: 1px solid rgba(27, 42, 74, 0.18);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

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

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

.card__header--teal {
  background: var(--color-teal);
}

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

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

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

.card__body h3 {
  font-size: 1.15rem;
}

.card__meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

/* Split bands */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

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

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

.split__media {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
}

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

.split__text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Page hero (inner) */
.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-bottom: 1px solid rgba(27, 42, 74, 0.12);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}

.page-hero__deck {
  max-width: 38rem;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.page-hero--image {
  position: relative;
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
  color: var(--color-salt);
  overflow: hidden;
}

.page-hero--image .page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero--image .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--image .page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 28, 51, 0.85), rgba(18, 28, 51, 0.25));
}

.page-hero--image .wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
}

.page-hero--image h1 {
  color: var(--color-salt);
}

.page-hero--image .page-hero__deck {
  color: var(--color-teal-soft);
}

/* Prose */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

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

.prose li {
  margin-bottom: 0.4rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.25rem 0;
}

.prose th,
.prose td {
  border: 1px solid rgba(27, 42, 74, 0.18);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--color-teal-soft);
  font-family: var(--font-serif);
}

/* Quote / review */
.quote-list {
  display: grid;
  gap: 1.5rem;
}

.quote {
  background: var(--color-paper);
  border: 1px solid rgba(27, 42, 74, 0.18);
  border-left: 3px solid var(--color-teal);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-card);
}

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

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

.quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--color-navy);
}

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

.form__field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(27, 42, 74, 0.28);
  border-radius: var(--radius-btn);
  background: var(--color-white);
  font: inherit;
  color: var(--color-navy);
}

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

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
}

.form__error {
  color: #9B3A2F;
  font-size: 0.875rem;
  margin-top: 0.3rem;
  display: none;
}

.form__field.is-invalid .form__error {
  display: block;
}

.form__field.is-invalid input,
.form__field.is-invalid select,
.form__field.is-invalid textarea {
  border-color: #9B3A2F;
}

.form__status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-btn);
  display: none;
}

.form__status.is-success {
  display: block;
  background: var(--color-teal-soft);
  border: 1px solid var(--color-teal);
}

.form__status.is-error {
  display: block;
  background: #F8E8E5;
  border: 1px solid var(--color-coral);
}

.contact-aside {
  background: var(--color-paper);
  border: 1px solid rgba(27, 42, 74, 0.18);
  padding: 1.5rem;
}

.contact-aside h2 {
  font-size: 1.2rem;
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

/* Process steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.steps__item {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-paper);
  border: 1px solid rgba(27, 42, 74, 0.18);
}

.steps__item::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-coral);
  line-height: 1;
}

/* Fee table */
.fee-block {
  background: var(--color-paper);
  border: 1px solid rgba(27, 42, 74, 0.18);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}

.fee-block h3 {
  margin-bottom: 0.35rem;
}

.fee-block__price {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}

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

.site-footer__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}

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

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

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

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

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

.site-footer__links li {
  margin-bottom: 0.35rem;
}

.site-footer__stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--color-navy), 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.8rem;
  color: var(--color-text-muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-navy);
  color: var(--color-salt);
  padding: 1.1rem 0;
  box-shadow: 0 -8px 24px rgba(18, 28, 51, 0.25);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.95rem;
}

.cookie-banner__text a {
  color: var(--color-teal-soft);
}

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

.cookie-banner__actions .btn--ghost {
  color: var(--color-salt);
  border-color: var(--color-salt);
}

.cookie-banner__error {
  width: 100%;
  color: #F5C4BA;
  margin: 0;
  font-size: 0.875rem;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

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

/* Detail lists */
.detail-grid {
  display: grid;
  gap: 1.25rem;
}

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

.detail-panel {
  background: var(--color-paper);
  border: 1px solid rgba(27, 42, 74, 0.18);
  padding: 1.25rem;
}

.detail-panel h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.story {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

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

.story__label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-teal);
}
