:root {
  --ink: #152028;
  --ink-soft: #3a4a52;
  --paper: #eef2f0;
  --paper-deep: #e2e8e5;
  --surface: #f7faf8;
  --teal: #1e5c55;
  --teal-deep: #143f3b;
  --sand: #c9a87c;
  --sand-soft: #e8d5b8;
  --line: rgba(21, 32, 40, 0.12);
  --danger: #8b3a3a;
  --ok: #1e5c55;
  --radius: 4px;
  --shadow: 0 18px 40px rgba(21, 32, 40, 0.08);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(30, 92, 85, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(201, 168, 124, 0.18), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(21, 32, 40, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 32, 40, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 520;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
}

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

.inline-error {
  background: #f6e8e8;
  color: var(--danger);
  padding: 0.75rem 1rem;
  margin: 0;
  border-left: 3px solid var(--danger);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(238, 242, 240, 0.88);
  border-bottom: 1px solid var(--line);
  animation: header-in 0.55s ease both;
}

@keyframes header-in {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.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;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.4rem;
  background:
    linear-gradient(145deg, var(--teal) 0%, var(--teal-deep) 100%);
  box-shadow: inset 0 0 0 2px rgba(201, 168, 124, 0.45);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 28% 30% 28% 30%;
  border: 1.5px solid var(--sand-soft);
  border-radius: 50%;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
  margin: 0.28rem 0;
}

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

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

.nav-list a:hover {
  color: var(--teal);
}

.nav-cta {
  background: var(--teal);
  color: #f7faf8 !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--teal-deep);
  color: #fff !important;
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-main {
  padding-bottom: 4rem;
}

.section {
  padding: 3.5rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

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

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

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

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

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

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: stretch;
  min-height: min(70vh, 640px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 0 1.5rem;
  animation: rise 0.8s ease both;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  margin: 0 0 1rem;
  max-width: 12ch;
}

.hero-copy .lead {
  margin-bottom: 0;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 0 4rem;
  min-height: 320px;
  animation: fade-soft 1.1s ease both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(20, 63, 59, 0.35));
}

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

@keyframes fade-soft {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Split / content blocks */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media {
  overflow: hidden;
  border-radius: 0 2.5rem 0 2.5rem;
}

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

.media-frame {
  overflow: hidden;
  border-radius: 0 1.5rem 0 1.5rem;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Offer list */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.offer-item {
  padding: 0;
  border: none;
  background: transparent;
}

.offer-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0 1.25rem 0 1.25rem;
  margin-bottom: 1rem;
  transition: transform 0.35s ease;
}

.offer-item:hover img {
  transform: scale(1.02);
}

.offer-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.offer-item p {
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

.offer-item a {
  font-weight: 600;
  text-decoration: none;
  color: var(--teal);
}

/* Quote band */
.quote-band {
  background: var(--teal-deep);
  color: #eef2f0;
  padding: 3rem 0;
  margin: 1rem 0 0;
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.35;
  max-width: 38rem;
}

.quote-band cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Page hero (inner) */
.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  animation: rise 0.6s ease both;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
  max-width: 18ch;
}

.page-hero.full-bleed {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border: none;
  margin: 0 0 2.5rem;
  overflow: hidden;
}

.page-hero.full-bleed .page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero.full-bleed .page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.page-hero.full-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 32, 40, 0.15), rgba(21, 32, 40, 0.72));
  z-index: 1;
}

.page-hero.full-bleed .wrap {
  position: relative;
  z-index: 2;
  padding-bottom: 2.5rem;
  padding-top: 6rem;
}

.page-hero.full-bleed h1,
.page-hero.full-bleed .lead,
.page-hero.full-bleed .eyebrow {
  color: #f7faf8;
}

.page-hero.full-bleed .lead {
  opacity: 0.9;
}

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

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

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

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

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

.prose th {
  background: rgba(30, 92, 85, 0.08);
}

/* Pricing */
.rate-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.rate-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.rate-row h3 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}

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

.rate-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  white-space: nowrap;
  color: var(--teal-deep);
}

.note-box {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--sand);
  background: rgba(247, 250, 248, 0.7);
}

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

.review {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.review blockquote {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.review footer {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.case-study {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.blog-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0 1.25rem 0 1.25rem;
  margin-bottom: 0.9rem;
  transition: transform 0.35s ease;
}

.blog-card:hover img {
  transform: scale(1.02);
}

.blog-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  color: var(--ink);
}

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

.blog-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0 2rem 0 2rem;
  margin: 1.5rem 0 2rem;
}

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid rgba(30, 92, 85, 0.35);
  border-color: var(--teal);
}

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

.field-error {
  display: block;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.form-status {
  margin-top: 1rem;
  font-weight: 500;
}

.form-status.is-success {
  color: var(--ok);
}

.form-status.is-error {
  color: var(--danger);
}

.contact-aside {
  padding: 1.5rem;
  background: rgba(247, 250, 248, 0.75);
  border: 1px solid var(--line);
}

.contact-aside h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.contact-aside address {
  font-style: normal;
  margin-bottom: 1rem;
}

/* Method steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  counter-increment: step;
  padding-left: 3.5rem;
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sand);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c9d2d4;
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #f7faf8;
  margin: 0 0 0.5rem;
}

.footer-tag {
  max-width: 28rem;
  margin: 0 0 2rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 0.85rem;
}

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

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: #c9d2d4;
  text-decoration: none;
}

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

.footer-address {
  font-style: normal;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.88rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(21, 32, 40, 0.96);
  color: #eef2f0;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  animation: rise 0.4s ease both;
}

.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-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  color: #fff;
}

.cookie-banner-copy {
  flex: 1 1 280px;
  max-width: 44rem;
}

.cookie-banner-copy p {
  margin: 0;
  font-size: 0.92rem;
}

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

.cookie-banner-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

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

.cookie-banner .btn-primary:hover {
  background: var(--sand-soft);
  color: var(--ink);
}

.cookie-banner .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #eef2f0;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

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

/* Detail meta */
.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-meta dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.2rem;
}

.detail-meta dd {
  margin: 0;
  color: var(--ink-soft);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-panel,
  .split,
  .offer-grid,
  .contact-layout,
  .case-study,
  .blog-grid,
  .footer-cols,
  .detail-meta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    border-radius: 0 0 0 2rem;
    order: -1;
  }

  .hero-visual img {
    min-height: 260px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(238, 242, 240, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 420px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.35rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.35rem;
  }

  .rate-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
