:root {
  --color-bg: #e8eef0;
  --color-bg-deep: #d5e0e3;
  --color-surface: #f7fafb;
  --color-ink: #14201c;
  --color-ink-soft: #3d4f48;
  --color-muted: #5f726a;
  --color-accent: #0f5c4c;
  --color-accent-hover: #0a463a;
  --color-gold: #b8923a;
  --color-border: #b8c8c2;
  --color-error: #8b2e2e;
  --color-success: #0f5c4c;
  --font-display: "Literata", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --radius: 2px;
  --shadow-soft: 0 12px 40px rgba(20, 32, 28, 0.08);
  --max: 70rem;
  --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(15, 92, 76, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(184, 146, 58, 0.1), transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.1rem, 4.5vw, 3.35rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }

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

.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% - 2rem, var(--max));
  margin-inline: auto;
}

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

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

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  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 {
  transform: translateY(-1px);
}

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

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

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

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

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

.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-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

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

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

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

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

.site-nav__cta {
  background: var(--color-accent);
  color: #f4faf8 !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

.site-nav__cta:hover {
  background: var(--color-accent-hover);
  color: #fff !important;
}

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

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

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

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

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

/* Hero — full-bleed image plane */
.hero {
  position: relative;
  min-height: min(88vh, 42rem);
  display: grid;
  align-items: end;
  color: #f4faf8;
  overflow: hidden;
}

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

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s var(--ease) infinite alternate;
}

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

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(20, 32, 28, 0.88) 0%, rgba(20, 32, 28, 0.55) 55%, rgba(20, 32, 28, 0.35) 100%),
    linear-gradient(0deg, rgba(20, 32, 28, 0.55) 0%, transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: var(--space-2xl) 0 var(--space-xl);
  animation: rise 0.8s var(--ease) both;
}

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

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.03em;
  color: #f7fafb;
}

.hero__headline {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-family: var(--font-body);
  font-weight: 500;
  max-width: 28rem;
  margin: 0 0 var(--space-md);
  color: rgba(244, 250, 248, 0.92);
  line-height: 1.45;
}

.hero__support {
  max-width: 32rem;
  color: rgba(244, 250, 248, 0.78);
  margin-bottom: var(--space-lg);
}

.hero .btn--primary {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-ink);
}

.hero .btn--primary:hover {
  background: #c9a44a;
  color: var(--color-ink);
}

.hero .btn--ghost {
  color: #f4faf8;
  border-color: rgba(244, 250, 248, 0.45);
}

.hero .btn--ghost:hover {
  border-color: #f4faf8;
  color: #fff;
}

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

@media (min-width: 720px) {
  .offer-preview {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.offer-preview__image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.offer-preview__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.offer-preview__image:hover img {
  transform: scale(1.03);
}

/* Service grid — interaction containers */
.service-grid {
  display: grid;
  gap: var(--space-md);
}

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

.service-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.service-tile__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.service-tile__body {
  padding: var(--space-md);
}

.service-tile__body h3 {
  margin-bottom: var(--space-xs);
}

.service-tile__body p {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.98rem;
}

/* Evidence / quotes */
.quote-list {
  display: grid;
  gap: var(--space-lg);
}

.quote {
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-md);
}

.quote__text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-ink);
}

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

/* Process steps */
.process-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 800px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-steps__item {
  background: var(--color-surface);
  border-top: 3px solid var(--color-accent);
  padding: var(--space-md);
}

.process-steps__item::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

/* Pricing */
.rate-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.rate-block__price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-accent);
  margin: 0 0 var(--space-sm);
}

.factor-list {
  columns: 1;
  gap: 2rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-ink-soft);
}

@media (min-width: 700px) {
  .factor-list {
    columns: 2;
  }
}

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

.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.85rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-ink);
}

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

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

.form__error {
  color: var(--color-error);
  font-size: 0.85rem;
  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: var(--color-error);
}

.form__status {
  padding: var(--space-md);
  border-radius: var(--radius);
  display: none;
}

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

.form__status--success {
  background: rgba(15, 92, 76, 0.12);
  color: var(--color-success);
  border: 1px solid var(--color-accent);
}

.form__status--error {
  background: rgba(139, 46, 46, 0.1);
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

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

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

.contact-aside {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  height: fit-content;
}

.contact-aside p {
  word-break: break-word;
}

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

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

@media (min-width: 700px) {
  .post-item {
    grid-template-columns: 16rem 1fr;
    align-items: start;
  }
}

.post-item__img {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

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

.post-item time {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.prose {
  max-width: 42rem;
}

.prose p + p {
  margin-top: 0.25rem;
}

.detail-hero {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 800px) {
  .detail-hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.checklist {
  margin: 0 0 var(--space-md);
  padding-left: 1.2rem;
  color: var(--color-ink-soft);
}

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

.story {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.page-hero {
  padding: var(--space-xl) 0 var(--space-md);
  animation: rise 0.6s var(--ease) both;
}

.page-hero--media {
  position: relative;
  min-height: 18rem;
  display: flex;
  align-items: flex-end;
  color: #f4faf8;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

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

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

.page-hero--media .page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 32, 28, 0.85), rgba(20, 32, 28, 0.4));
}

.page-hero--media .wrap {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0;
}

.page-hero--media h1,
.page-hero--media .lede {
  color: #f4faf8;
}

.legal {
  max-width: 44rem;
}

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

.table-wrap {
  overflow-x: auto;
  margin: var(--space-md) 0;
}

table.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--color-surface);
}

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

.cookies-table th {
  background: var(--color-bg-deep);
  font-weight: 600;
}

.error-page {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

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

/* Footer */
.site-footer {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--color-border);
  background: rgba(20, 32, 28, 0.04);
}

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

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

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 var(--space-xs);
}

.site-footer__tag {
  color: var(--color-muted);
  margin: 0;
}

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

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer__nav a {
  color: var(--color-ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.site-footer__copy {
  width: min(100% - 2rem, var(--max));
  margin: var(--space-lg) auto 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-ink);
  color: #eef4f2;
  padding: var(--space-md);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
  animation: rise 0.4s var(--ease);
}

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

.cookie-banner__inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  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-gold);
}

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

.cookie-banner .btn--ghost {
  color: #eef4f2;
  border-color: rgba(238, 244, 242, 0.4);
}

.cookie-banner .btn--primary {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-ink);
}

.split-band {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

@media (min-width: 800px) {
  .split-band {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

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