:root {
  --color-ink: #1c3d3a;
  --color-ink-soft: #2f5652;
  --color-mist: #e4ecea;
  --color-paper: #f5f7f6;
  --color-sand: #e8d5a3;
  --color-accent: #b85c38;
  --color-accent-deep: #8f4228;
  --color-line: rgba(28, 61, 58, 0.14);
  --color-white: #ffffff;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4.5rem;
  --space-2xl: 7rem;
  --radius: 4px;
  --shadow-soft: 0 18px 40px rgba(28, 61, 58, 0.08);
  --max: 1120px;
  --header-h: 4.25rem;
  --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:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 213, 163, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(184, 92, 56, 0.12), transparent 50%),
    linear-gradient(180deg, var(--color-mist) 0%, var(--color-paper) 38%, var(--color-paper) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--color-accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
}

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

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

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

.main {
  min-height: 60vh;
}

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

.wrap--narrow {
  width: min(100% - 2rem, 720px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(245, 247, 246, 0.88);
  border-bottom: 1px solid var(--color-line);
}

.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: var(--space-md);
}

.site-header__brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.03em;
  animation: brandIn 0.8s var(--ease) both;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

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

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

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

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

.site-nav__cta {
  background: var(--color-ink);
  color: var(--color-sand) !important;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
}

.site-nav__cta:hover {
  background: var(--color-ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

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

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

.btn--primary:hover {
  background: var(--color-accent-deep);
  color: var(--color-white);
}

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

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

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

/* Hero home — full bleed */
.hero-home {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  color: var(--color-white);
  overflow: hidden;
}

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

.hero-home__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero kenburns 18s ease-in-out infinite alternate;
}

.hero-home__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 61, 58, 0.25) 0%, rgba(28, 61, 58, 0.55) 45%, rgba(28, 61, 58, 0.88) 100%);
}

.hero-home__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: var(--space-2xl) 0 var(--space-xl);
  max-width: 38rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  animation: riseIn 0.9s var(--ease) 0.15s both;
}

.hero-home__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  margin: 0 0 0.35rem;
  color: var(--color-sand);
  letter-spacing: -0.04em;
}

.hero-home__lead {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
  max-width: 28ch;
}

.hero-home__text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-md);
  max-width: 38ch;
}

/* Page hero (inner) */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.page-hero--split {
  display: grid;
  gap: var(--space-lg);
  align-items: end;
}

.page-hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.page-hero__text {
  max-width: 42ch;
  color: var(--color-ink-soft);
}

.page-hero__figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 240px;
}

.page-hero__figure img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  animation: riseIn 1s var(--ease) both;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section--tight {
  padding: var(--space-lg) 0;
}

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

.section__head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.section__head p {
  color: var(--color-ink-soft);
}

.section--band {
  background: linear-gradient(135deg, rgba(28, 61, 58, 0.06), rgba(232, 213, 163, 0.28));
  border-block: 1px solid var(--color-line);
}

/* Offer strip */
.offer-strip {
  display: grid;
  gap: var(--space-md);
}

.offer-strip__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-md);
  align-items: center;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-line);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s var(--ease);
}

.offer-strip__item:hover {
  opacity: 0.85;
}

.offer-strip__item img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
}

.offer-strip__item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.offer-strip__item p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.98rem;
}

/* Evidence quote */
.quote-block {
  border-left: 3px solid var(--color-accent);
  padding: 0.25rem 0 0.25rem var(--space-md);
  max-width: 40rem;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}

/* Process steps */
.process {
  display: grid;
  gap: var(--space-md);
  counter-reset: step;
}

.process__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
}

.process__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-accent);
  line-height: 1;
  min-width: 2ch;
}

/* Service grid listing */
.service-list {
  display: grid;
  gap: var(--space-lg);
}

.service-list__item {
  display: grid;
  gap: var(--space-md);
  align-items: stretch;
}

.service-list__item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-list__meta h2 {
  font-size: 1.7rem;
}

.service-list__meta p {
  color: var(--color-ink-soft);
}

.flag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin-bottom: 0.35rem;
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
}

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

.rate-table th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-soft);
}

.rate-note {
  background: rgba(28, 61, 58, 0.05);
  padding: var(--space-md);
  border-radius: var(--radius);
}

/* Reviews */
.review-stack {
  display: grid;
  gap: var(--space-lg);
}

.review {
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-line);
}

.review__text {
  font-size: 1.08rem;
}

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

.story {
  margin-top: var(--space-xl);
}

.story h2 {
  font-size: 1.9rem;
}

.story__figure {
  margin: var(--space-md) 0;
  border-radius: var(--radius);
  overflow: hidden;
}

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

/* Blog */
.post-list {
  display: grid;
  gap: var(--space-lg);
}

.post-list__item {
  display: grid;
  gap: var(--space-md);
  text-decoration: none;
  color: inherit;
}

.post-list__item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

.post-list__item time {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.prose {
  max-width: 68ch;
}

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

.prose img.cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: var(--space-md) 0 var(--space-lg);
}

/* Forms */
.form {
  display: grid;
  gap: var(--space-md);
}

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

.form__row label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form__row input,
.form__row select,
.form__row textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  font: inherit;
  color: var(--color-ink);
}

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

.form__error {
  color: #9b2c2c;
  font-size: 0.88rem;
  min-height: 1.2em;
}

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

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

.form__status--ok {
  background: rgba(28, 61, 58, 0.1);
  color: var(--color-ink);
}

.form__status--err {
  background: rgba(155, 44, 44, 0.1);
  color: #9b2c2c;
}

.contact-grid {
  display: grid;
  gap: var(--space-xl);
}

.contact-aside p {
  margin-bottom: 0.5rem;
}

.contact-aside__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-soft);
  margin-bottom: 0.2rem;
}

/* Campaigns custom page */
.campaign-grid {
  display: grid;
  gap: var(--space-xl);
}

.campaign {
  display: grid;
  gap: var(--space-md);
}

.campaign img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}

.campaign h2 {
  font-size: 1.7rem;
}

/* Legal */
.legal h2 {
  font-size: 1.4rem;
  margin-top: var(--space-lg);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: var(--space-md) 0;
}

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

/* 404 */
.error-page {
  padding: var(--space-2xl) 0;
  text-align: center;
}

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

/* Footer */
.site-footer {
  margin-top: var(--space-2xl);
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-xl) 0 var(--space-md);
}

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

.site-footer a:hover {
  text-decoration: underline;
}

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

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

.site-footer__tag {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__contact p {
  margin: 0 0 0.35rem;
  word-break: break-word;
}

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

.site-footer__copy {
  width: min(100% - 2rem, var(--max));
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  z-index: 50;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 640px;
  margin-inline: auto;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  padding: var(--space-md);
  animation: riseIn 0.45s var(--ease) both;
}

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

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.cookie-banner__text p:last-child {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-md);
}

.cookie-banner__error {
  color: #9b2c2c;
  font-size: 0.88rem;
  margin: 0.5rem 0 0;
}

/* Team */
.team {
  display: grid;
  gap: var(--space-lg);
}

.team__person {
  display: grid;
  gap: var(--space-md);
  align-items: start;
}

.team__person img {
  width: 100%;
  max-width: 280px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Animations */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brandIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.reveal {
  animation: riseIn 0.8s var(--ease) both;
}

/* Responsive */
@media (min-width: 720px) {
  .page-hero--split {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .service-list__item,
  .post-list__item,
  .campaign,
  .team__person {
    grid-template-columns: 1fr 1.2fr;
  }

  .contact-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }

  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .offer-strip {
    gap: 0;
  }
}

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

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

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

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

  .offer-strip__item {
    grid-template-columns: 1fr;
  }

  .offer-strip__item img {
    width: 100%;
    height: 160px;
  }
}
