:root {
  --ink: #14213d;
  --ink-soft: #1e2d4a;
  --paper: #f8fafc;
  --surface: #ffffff;
  --mist: #e8eef4;
  --line: #cfd8e3;
  --accent: #1b6b5a;
  --accent-hover: #155547;
  --gold: #9a7b2f;
  --text: #1e293b;
  --muted: #5a6b7d;
  --error: #9b2c2c;
  --success: #1b6b5a;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Libre Franklin", "Segoe UI", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --radius: 2px;
  --shadow: 0 12px 40px rgba(20, 33, 61, 0.08);
  --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-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 var(--space-sm);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.35rem;
}

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

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

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

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

.u-lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

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

.u-section--mist {
  background: var(--mist);
}

.u-section--ink {
  background: var(--ink);
  color: var(--paper);
}

.u-section--ink h2,
.u-section--ink h3 {
  color: var(--paper);
}

.u-section__head {
  margin-bottom: var(--space-lg);
  max-width: 40rem;
}

.u-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  border: 1.5px 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), transform 0.25s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

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

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.btn--light:hover {
  background: #fff;
  color: var(--ink);
}

.btn--ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(248, 250, 252, 0.45);
}

.btn--ghost-light:hover {
  background: rgba(248, 250, 252, 0.1);
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

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

.site-nav__link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--accent);
}

.site-nav__toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.site-nav__toggle-bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
}

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

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

  .site-nav.is-open .site-nav__panel {
    display: block;
    animation: nav-in 0.28s var(--ease);
  }

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

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(-0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(248, 250, 252, 0.78);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: auto;
}

.site-footer a {
  color: rgba(248, 250, 252, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: var(--space-xs);
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

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

.site-footer__list li + li {
  margin-top: 0.45rem;
}

.site-footer__meta {
  font-size: 0.95rem;
  line-height: 1.7;
}

.site-footer__bottom {
  border-top: 1px solid rgba(248, 250, 252, 0.12);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.875rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: 36rem;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  border-radius: var(--radius);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: rise 0.4s var(--ease);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner__text {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

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

/* Hero variants */
.hero {
  position: relative;
  min-height: min(88vh, 42rem);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

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

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

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 33, 61, 0.35) 0%,
    rgba(20, 33, 61, 0.78) 55%,
    rgba(20, 33, 61, 0.92) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0 calc(var(--space-xl) + 0.5rem);
  max-width: 38rem;
  animation: fade-up 0.7s var(--ease) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 var(--space-sm);
  color: #fff;
}

.hero__text {
  font-size: 1.15rem;
  color: rgba(248, 250, 252, 0.88);
  margin-bottom: var(--space-md);
  max-width: 32rem;
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero {
  padding: calc(var(--space-xl) + 0.5rem) 0 var(--space-lg);
  background:
    linear-gradient(135deg, var(--mist) 0%, var(--paper) 55%, #eef4f1 100%),
    var(--mist);
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  max-width: 42rem;
  animation: fade-up 0.55s var(--ease) both;
}

.page-hero--split {
  padding: 0;
  border-bottom: 0;
  background: none;
}

.page-hero--split .page-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 22rem;
}

.page-hero--split .page-hero__copy {
  padding: var(--space-xl) var(--space-md) var(--space-xl)
    max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
  background: var(--mist);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

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

/* Offer preview */
.offer-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.offer-list__item {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.offer-list__item:hover {
  background: rgba(27, 107, 90, 0.04);
  padding-left: 0.5rem;
}

.offer-list__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
}

.offer-list__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.offer-list__summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.offer-list__arrow {
  color: var(--accent);
  font-size: 1.25rem;
  align-self: center;
}

@media (max-width: 640px) {
  .offer-list__item {
    grid-template-columns: 3rem 1fr;
  }
  .offer-list__arrow {
    display: none;
  }
}

/* Service cards (interaction containers) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

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

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

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

.service-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__title {
  margin-bottom: 0.5rem;
}

.service-card__title a {
  color: var(--ink);
  text-decoration: none;
}

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

.service-card__text {
  color: var(--muted);
  flex: 1;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

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

/* Evidence / quotes */
.quote-stack {
  display: grid;
  gap: 1.5rem;
}

.quote {
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
}

.quote--featured {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
}

.quote__text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

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

.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-top: var(--space-lg);
}

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

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

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rate-table th {
  background: var(--mist);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.rate-table tr:last-child td {
  border-bottom: 0;
}

.rate-note {
  margin-top: var(--space-md);
  color: var(--muted);
  max-width: 40rem;
}

.factor-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: var(--space-md);
}

.factor-list__item {
  padding: 1.15rem;
  background: var(--surface);
  border-top: 3px solid var(--accent);
}

.factor-list__item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.factor-list__item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 800px) {
  .factor-list {
    grid-template-columns: 1fr;
  }
  .rate-table {
    display: block;
    overflow-x: auto;
  }
}

/* Blog */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-teaser {
  display: flex;
  flex-direction: column;
}

.post-teaser__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

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

.post-teaser:hover .post-teaser__media img {
  transform: scale(1.03);
}

.post-teaser__date {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.post-teaser__title {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.post-teaser__title a {
  color: var(--ink);
  text-decoration: none;
}

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

.post-teaser__excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

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

.prose {
  max-width: 42rem;
}

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

.prose h3 {
  margin-top: var(--space-md);
}

.prose img {
  margin: var(--space-md) 0;
  width: 100%;
}

.article-hero {
  margin-bottom: var(--space-lg);
}

.article-hero img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
}

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

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

.form__label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.form__hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form__error {
  color: var(--error);
  font-size: 0.85rem;
  display: none;
}

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

.form__status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

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

.form__status--success {
  background: #e6f4ef;
  color: var(--success);
  border: 1px solid #b7dfd2;
}

.form__status--error {
  background: #fce8e8;
  color: var(--error);
  border: 1px solid #efc0c0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-aside {
  background: var(--mist);
  padding: 1.5rem;
  border-top: 3px solid var(--gold);
}

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

.contact-aside__item {
  margin-bottom: 1rem;
}

.contact-aside__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

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

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

.process__step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.process__step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
}

.process__step h3 {
  margin-bottom: 0.4rem;
}

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

/* Legal */
.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: var(--space-lg);
  font-size: 1.45rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--mist);
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-xl) 1rem;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.site-main {
  min-height: 50vh;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band__text {
  max-width: 32rem;
}

.cta-band__text p {
  color: rgba(248, 250, 252, 0.8);
  margin: 0;
}

.home-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

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

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

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

.team-card__role {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

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