:root {
  --color-sand: #e8dfd0;
  --color-sand-deep: #d4c4a8;
  --color-paper: #f3ebe0;
  --color-cream: #faf6ef;
  --color-forest: #2f4a3c;
  --color-forest-deep: #1e3228;
  --color-forest-mid: #3d5c4b;
  --color-ink: #2a2824;
  --color-ink-soft: #5a554c;
  --color-border: #c9bba5;
  --color-accent: #8b5a2b;
  --color-error: #8b2e2e;
  --color-success: #2f4a3c;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --radius: 2px;
  --max: 68rem;
  --header-h: 4.25rem;
  --shadow-soft: 0 1px 0 rgba(47, 74, 60, 0.06);
  --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-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-cream);
  background-image:
    radial-gradient(ellipse at 12% 8%, rgba(232, 223, 208, 0.9) 0%, transparent 42%),
    radial-gradient(ellipse at 88% 18%, rgba(212, 196, 168, 0.35) 0%, transparent 40%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(47, 74, 60, 0.015) 3px,
      rgba(47, 74, 60, 0.015) 4px
    );
  min-height: 100vh;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-forest-deep);
  letter-spacing: -0.01em;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-forest-deep);
  text-decoration: none;
  max-width: 14rem;
  line-height: 1.2;
}

.site-header__toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.site-header__toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--color-forest);
}

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

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-forest-deep);
}

.site-nav__cta {
  border: 1px solid var(--color-forest);
  padding: 0.4rem 0.85rem;
  color: var(--color-forest-deep) !important;
}

.site-nav__cta:hover {
  background: var(--color-forest);
  color: var(--color-sand) !important;
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem 1.5rem;
  }

  .site-nav.is-open {
    display: block;
    animation: fade-rise 0.35s var(--ease);
  }

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

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--primary {
  background: var(--color-forest);
  color: var(--color-sand);
  border-color: var(--color-forest);
}

.btn--primary:hover {
  background: var(--color-forest-deep);
  color: var(--color-sand);
}

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

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

/* Home hero — full bleed, brand-first */
.home-hero {
  position: relative;
  min-height: min(92vh, 44rem);
  display: flex;
  align-items: flex-end;
  color: var(--color-sand);
  overflow: hidden;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  animation: hero-settle 8s var(--ease) forwards;
}

.home-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 50, 40, 0.35) 0%, rgba(30, 50, 40, 0.72) 55%, rgba(30, 50, 40, 0.88) 100%);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.25rem 3.5rem;
  animation: fade-rise 0.9s var(--ease) 0.15s both;
}

.home-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-sand);
  line-height: 1.05;
  max-width: 14ch;
}

.home-hero__headline {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  margin: 0 0 0.85rem;
  color: var(--color-sand);
  max-width: 32rem;
  line-height: 1.45;
}

.home-hero__support {
  margin: 0 0 1.75rem;
  max-width: 30rem;
  color: var(--color-sand-deep);
  font-size: 1rem;
}

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

.home-hero .btn--primary {
  background: var(--color-sand);
  color: var(--color-forest-deep);
  border-color: var(--color-sand);
}

.home-hero .btn--primary:hover {
  background: var(--color-cream);
}

.home-hero .btn--ghost {
  color: var(--color-sand);
  border-color: rgba(232, 223, 208, 0.55);
}

.home-hero .btn--ghost:hover {
  border-color: var(--color-sand);
  color: var(--color-sand);
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-2xl) 1.25rem;
}

.section--narrow {
  max-width: 42rem;
}

.section__label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.section__title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0 0 0.75rem;
}

.section__intro {
  margin: 0 0 2rem;
  color: var(--color-ink-soft);
  max-width: 38rem;
}

.section--band {
  background: linear-gradient(180deg, var(--color-sand) 0%, var(--color-paper) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section--band > .section__wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Offer preview */
.offer-list {
  display: grid;
  gap: 1.25rem;
}

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

.offer-item {
  border: 1px solid var(--color-border);
  background: rgba(250, 246, 239, 0.75);
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease);
}

.offer-item:hover {
  border-color: var(--color-forest-mid);
  transform: translateY(-3px);
}

.offer-item__image {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.offer-item__body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.offer-item__title {
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}

.offer-item__text {
  margin: 0 0 1rem;
  color: var(--color-ink-soft);
  flex: 1;
  font-size: 0.98rem;
}

.offer-item__link {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-forest);
}

/* Pathway strip */
.pathway-strip {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .pathway-strip {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.pathway-strip__media {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--color-border);
}

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

.pathway-steps li {
  counter-increment: step;
  padding: 0.85rem 0 0.85rem 3rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.pathway-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-forest-mid);
  font-weight: 600;
}

.pathway-steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-forest-deep);
  margin-bottom: 0.2rem;
}

/* Quote */
.quote-block {
  border-left: 3px solid var(--color-forest);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 0;
}

.quote-block__text {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  color: var(--color-forest-deep);
}

.quote-block__meta {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

/* Page heroes */
.page-hero {
  position: relative;
  min-height: 16rem;
  display: flex;
  align-items: flex-end;
}

.page-hero--image {
  min-height: 22rem;
  color: var(--color-sand);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 50, 40, 0.25), rgba(30, 50, 40, 0.82));
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.25rem;
  animation: fade-rise 0.7s var(--ease) both;
}

.page-hero--plain {
  background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-paper) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero--plain .page-hero__title,
.page-hero--plain .page-hero__lead,
.page-hero--plain .page-hero__eyebrow {
  color: var(--color-forest-deep);
}

.page-hero__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.6rem;
  color: inherit;
  max-width: 18ch;
}

.page-hero__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.05rem;
  opacity: 0.92;
}

.page__body,
.post-detail__body {
  max-width: 42rem;
  margin: 0 auto;
  padding: var(--space-xl) 1.25rem var(--space-2xl);
}

.prose h2 {
  font-size: 1.75rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.35rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

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

/* Service detail */
.service-detail__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-xl) 1.25rem var(--space-2xl);
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .service-detail__grid {
    grid-template-columns: 1fr 17rem;
    align-items: start;
  }
}

.aside-panel {
  border: 1px solid var(--color-border);
  background: var(--color-sand);
  padding: 1.35rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.aside-panel__title {
  font-size: 1.3rem;
  margin: 0 0 1rem;
}

.aside-panel__list {
  margin: 0 0 1.25rem;
}

.aside-panel__list > div {
  margin-bottom: 0.85rem;
}

.aside-panel__list dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-soft);
  font-weight: 600;
}

.aside-panel__list dd {
  margin: 0.15rem 0 0;
}

/* Cards / listings */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.bordered-card {
  border: 1px solid var(--color-border);
  background: rgba(250, 246, 239, 0.8);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.bordered-card:hover {
  border-color: var(--color-forest-mid);
}

.bordered-card__media {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.bordered-card__body {
  padding: 1.25rem;
}

.bordered-card__title {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.bordered-card__title a {
  text-decoration: none;
  color: inherit;
}

.bordered-card__meta {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  margin: 0 0 0.5rem;
}

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

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

.review-item {
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  background: rgba(250, 246, 239, 0.7);
}

.review-item__quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  margin: 0 0 1rem;
  line-height: 1.4;
  color: var(--color-forest-deep);
}

.review-item__meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}

.case-story {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.case-story h2 {
  margin-top: 0;
}

/* Pricing */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.98rem;
}

.fee-table th,
.fee-table td {
  border: 1px solid var(--color-border);
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
}

.fee-table th {
  background: var(--color-sand);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.fee-note {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

/* Contact */
.contact-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-xl) 1.25rem var(--space-2xl);
  display: grid;
  gap: 2.5rem;
}

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

.contact-details h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.contact-details p {
  margin: 0 0 0.5rem;
}

.form {
  display: grid;
  gap: 1rem;
}

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

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

.form__field input,
.form__field select,
.form__field textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--color-border);
  background: var(--color-cream);
  color: var(--color-ink);
  border-radius: var(--radius);
}

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

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

.form__status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  margin: 0;
}

.form__status--success {
  border-color: var(--color-success);
  background: rgba(47, 74, 60, 0.08);
  color: var(--color-success);
}

.form__status--error {
  border-color: var(--color-error);
  background: rgba(139, 46, 46, 0.08);
  color: var(--color-error);
}

.form__field.is-invalid input,
.form__field.is-invalid select,
.form__field.is-invalid textarea {
  border-color: var(--color-error);
}

/* Pathway page */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--color-border);
}

.timeline li {
  padding: 0 0 1.75rem 1.5rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--color-forest);
  border: 2px solid var(--color-cream);
}

.timeline h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.timeline p {
  margin: 0;
  color: var(--color-ink-soft);
}

/* Footer */
.site-footer {
  background: var(--color-forest-deep);
  color: var(--color-sand);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: auto;
}

.site-footer a {
  color: var(--color-sand-deep);
  text-decoration: none;
}

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

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

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

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--color-sand);
}

.site-footer__tag {
  margin: 0;
  color: var(--color-sand-deep);
  font-size: 0.95rem;
  max-width: 22rem;
}

.site-footer__heading {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--color-sand);
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

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

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

.site-footer__copy {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 223, 208, 0.2);
  font-size: 0.88rem;
  color: var(--color-sand-deep);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-forest-deep);
  color: var(--color-sand);
  border-top: 1px solid var(--color-forest-mid);
  padding: 1rem 1.25rem;
  animation: fade-rise 0.4s var(--ease);
}

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

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

.cookie-banner__text {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.95rem;
  color: var(--color-sand-deep);
}

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

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

.cookie-banner .btn--ghost {
  color: var(--color-sand);
  border-color: rgba(232, 223, 208, 0.4);
}

.cookie-banner .btn--primary {
  background: var(--color-sand);
  color: var(--color-forest-deep);
  border-color: var(--color-sand);
}

/* 404 */
.error-page {
  max-width: 32rem;
  margin: 0 auto;
  padding: var(--space-2xl) 1.25rem;
  text-align: center;
}

.error-page h1 {
  font-size: 3rem;
  margin: 0 0 0.75rem;
}

.post-detail__back {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem var(--space-2xl);
}

/* Legal tables */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.25rem 0;
  display: block;
  overflow-x: auto;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--color-border);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.cookie-table th {
  background: var(--color-sand);
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
