:root {
  --color-chalk: #f7f5f0;
  --color-ivory: #f3efe6;
  --color-teal: #5ba8a0;
  --color-teal-deep: #3d857e;
  --color-dune: #d4c4a8;
  --color-navy: #1b2a4a;
  --color-navy-deep: #121c33;
  --color-coral: #e07a5f;
  --color-text: #243044;
  --color-muted: #5c6678;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --radius-card: 18px;
  --shadow-paper: 0 10px 28px rgba(27, 42, 74, 0.08);
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 1120px;
  --header-h: 4.25rem;
}

*,
*::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:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(91, 168, 160, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(212, 196, 168, 0.35), transparent 50%),
    linear-gradient(180deg, var(--color-chalk) 0%, #efe9dc 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.2em;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-navy);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }

p { margin: 0 0 1em; }

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

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

.wrap--wide {
  width: min(100% - 2.5rem, 1240px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.45rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn--navy:hover {
  background: var(--color-navy-deep);
  color: #fff;
}

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

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

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

.btn--ghost:hover {
  background: rgba(27, 42, 74, 0.06);
  color: var(--color-navy);
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
}

.link-underline {
  position: relative;
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 600;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--color-coral);
  transition: width 0.35s ease;
}

.link-underline:hover::after {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(247, 245, 240, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
}

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

.site-header__wordmark {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-header__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.site-header__toggle span {
  display: block;
  height: 2px;
  width: 1.35rem;
  background: var(--color-navy);
  transition: transform 0.25s ease;
}

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

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

.site-nav a:not(.site-nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--color-teal);
  transition: width 0.3s ease;
}

.site-nav a:not(.site-nav__cta):hover::after {
  width: 100%;
}

.site-nav__cta {
  background: var(--color-navy);
  color: #fff !important;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem !important;
}

.site-nav__cta:hover {
  background: var(--color-navy-deep);
}

@media (max-width: 920px) {
  .site-header__toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(247, 245, 240, 0.97);
    border-bottom: 1px solid rgba(27, 42, 74, 0.1);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

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

/* Hero variants */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero--split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  width: min(100% - 2.5rem, 1240px);
  margin-inline: auto;
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal-deep);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero__lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 34ch;
  margin-bottom: 1.75rem;
}

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

.hero__visual {
  position: relative;
}

.hero__visual img {
  width: 100%;
  height: clamp(280px, 42vw, 480px);
  object-fit: cover;
  border-radius: 18px 18px 18px 72px;
  box-shadow: var(--shadow-paper);
}

.hero__caption {
  position: absolute;
  left: -1rem;
  bottom: 1.5rem;
  background: var(--color-ivory);
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  max-width: 220px;
  font-size: 0.88rem;
  box-shadow: var(--shadow-paper);
}

.hero--banner {
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.hero--banner .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero--banner .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
}

.hero--banner .hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(18, 28, 51, 0.78) 20%, rgba(18, 28, 51, 0.35) 70%);
  z-index: 1;
}

.hero--banner .hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto 3.5rem;
}

.hero--banner h1,
.hero--banner .hero__lede {
  color: #fff;
}

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

.hero--offset .hero__text {
  max-width: 28rem;
  margin-left: clamp(0rem, 8vw, 5rem);
}

.hero--offset .hero__visual {
  margin-top: -2rem;
  margin-left: clamp(2rem, 12vw, 8rem);
}

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

  .hero__caption {
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .hero--offset .hero__visual {
    margin-left: 0;
  }
}

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

.section--ivory {
  background: rgba(243, 239, 230, 0.65);
}

.section--navy {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.88);
}

.section--navy h2,
.section--navy h3 {
  color: #fff;
}

.section__intro {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section__intro p {
  color: var(--color-muted);
}

.section--navy .section__intro p {
  color: rgba(255, 255, 255, 0.72);
}

.asymmetric {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.asymmetric--reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.asymmetric img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-paper);
}

.asymmetric__shift {
  transform: translateY(1.5rem);
}

@media (max-width: 800px) {
  .asymmetric,
  .asymmetric--reverse {
    grid-template-columns: 1fr;
  }

  .asymmetric__shift {
    transform: none;
  }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.35rem;
}

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

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(27, 42, 74, 0.12);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  border-top: 1px solid rgba(27, 42, 74, 0.1);
}

.card__body h3 {
  margin-bottom: 0.4em;
  font-size: 1.4rem;
}

.card__body p {
  color: var(--color-muted);
  font-size: 0.98rem;
  margin-bottom: 0.85rem;
}

.card__meta {
  font-size: 0.85rem;
  color: var(--color-teal-deep);
  font-weight: 600;
}

/* Horizontal rhythm band */
.band {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  width: min(100%, 1240px);
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
}

.band__panel {
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--color-navy);
  color: #fff;
}

.band__panel h2 { color: #fff; }

.band__panel p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 36ch;
}

.band__image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

@media (max-width: 800px) {
  .band {
    grid-template-columns: 1fr;
  }
}

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

.quote {
  background: var(--color-ivory);
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-left: 3px solid var(--color-coral);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-paper);
}

.quote p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--color-navy);
}

.quote__meta {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin: 0;
}

.quote--compact p {
  font-size: 1.1rem;
}

.quote--wide {
  max-width: 48rem;
}

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

.form__row {
  display: grid;
  gap: 0.35rem;
}

.form label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(27, 42, 74, 0.2);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

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

.form__error {
  color: var(--color-coral);
  font-size: 0.88rem;
  margin: 0;
}

.form-status {
  margin: 0.5rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.form-status.is-success {
  background: rgba(91, 168, 160, 0.18);
  color: var(--color-teal-deep);
}

.form-status.is-error {
  background: rgba(224, 122, 95, 0.18);
  color: #9b3f2a;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.newsletter-form input {
  flex: 1 1 160px;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-ivory);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
}

th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(27, 42, 74, 0.1);
  font-size: 0.95rem;
}

th {
  background: rgba(27, 42, 74, 0.06);
  font-weight: 600;
  color: var(--color-navy);
}

/* Footer */
.site-footer {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

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

.site-footer__wordmark {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.site-footer__tag {
  max-width: 36ch;
  margin-bottom: 2rem;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.site-footer__heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-dune);
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-teal);
}

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

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  margin: 0;
}

@media (max-width: 860px) {
  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .site-footer__cols {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 640px;
  margin-inline: auto;
}

.cookie-banner__inner {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 18px 40px rgba(18, 28, 51, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 240px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

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

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

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }
[data-reveal-delay="3"] { transition-delay: 0.36s; }

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

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

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

.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 1rem;
}

.page-hero p {
  max-width: 40rem;
  color: var(--color-muted);
  font-size: 1.1rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  background: var(--color-ivory);
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: var(--radius-card);
  padding: 1.15rem 1.25rem 1.15rem 3.5rem;
  position: relative;
  box-shadow: var(--shadow-paper);
}

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

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-coral);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  background: var(--color-ivory);
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-paper);
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--color-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.post-cover {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow-paper);
}

.post-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.pricing-block {
  background: var(--color-ivory);
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-paper);
}

.pricing-block__price {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--color-navy);
  margin: 0.35rem 0 0.75rem;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-coral);
  font-weight: 700;
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 760px) {
  .story {
    grid-template-columns: 1fr;
  }
}

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 2rem;
  background: var(--color-ivory);
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-paper);
}

.cta-strip h2 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}

.cta-strip p {
  margin: 0;
  color: var(--color-muted);
}

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

.error-page h1 {
  font-size: clamp(3rem, 8vw, 5rem);
}
