:root {
  --bg: #ffffff;
  --bg-soft: #f7f4ef;
  --ink: #1a1a1a;
  --ink-muted: #5c574f;
  --line: #e5e0d8;
  --accent: #8b6914;
  --accent-deep: #6b5010;
  --success: #2f5d3a;
  --error: #8b2e2e;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(26, 26, 26, 0.06);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--ink-muted);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.85rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
}

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

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

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

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

.nav-cta {
  color: #fff !important;
  background: var(--ink);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-deep);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
  margin: 0.3rem auto;
  transition: transform 0.2s ease;
}

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

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

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-1px);
}

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

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

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

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.125rem;
  max-width: 38rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.stack > * + * {
  margin-top: 1rem;
}

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

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.25) 0%, rgba(26, 26, 26, 0.72) 70%, rgba(26, 26, 26, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  max-width: 11ch;
  color: #fff;
  margin-bottom: 1rem;
  animation: riseIn 0.8s ease both;
}

.hero .lead {
  color: rgba(247, 244, 239, 0.88);
  animation: riseIn 0.8s ease 0.12s both;
}

.hero .btn-row {
  animation: riseIn 0.8s ease 0.22s both;
}

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

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

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 16ch;
}

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

.offer-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.25s ease;
}

.offer-item:hover {
  transform: translateY(-3px);
}

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

.offer-item a {
  text-decoration: none;
  color: var(--ink);
}

.offer-item a:hover {
  color: var(--accent-deep);
}

.offer-meta {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Service cards listing */
.service-list {
  display: grid;
  gap: 2.5rem;
}

.service-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.service-row img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(12%);
}

.service-row:nth-child(even) .service-visual {
  order: 2;
}

/* Evidence / quotes */
.quote-block {
  max-width: 40rem;
  padding: 0;
  border: 0;
  margin: 0;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--ink);
  line-height: 1.35;
}

.quote-meta {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

/* Detail lists */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.detail-block h3 {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: 50%;
}

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

.steps li {
  counter-increment: step;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-top: 1px solid var(--line);
  position: relative;
}

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

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
}

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

.rate-table th {
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.rate-note {
  margin-top: 2rem;
  max-width: 40rem;
}

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

.review-item {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

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

.review-item footer {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.case-panel {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-soft);
}

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

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

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
}

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

.blog-date {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.prose {
  max-width: 42rem;
}

.prose p {
  font-size: 1.05rem;
}

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

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

.form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--ink);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

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

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

.field-error {
  color: var(--error);
  font-size: 0.88rem;
  font-weight: 400;
  display: none;
}

.field-error.is-visible {
  display: block;
}

.form-status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  display: none;
}

.form-status.is-success {
  display: block;
  border-color: var(--success);
  color: var(--success);
  background: #f0f7f2;
}

.form-status.is-error {
  display: block;
  border-color: var(--error);
  color: var(--error);
  background: #faf2f2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

.contact-aside {
  padding: 1.5rem;
  background: var(--bg-soft);
}

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

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

.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.4rem;
}

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

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 32px rgba(26, 26, 26, 0.08);
  animation: riseIn 0.4s ease both;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem 0;
}

.cookie-inner p {
  margin: 0;
  max-width: 46rem;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

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

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 1fr 0.8fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.footer-address,
.footer-tag {
  font-size: 0.95rem;
}

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

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

.footer-links a,
.site-footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-base p {
  margin: 0;
}

/* Media */
@media (max-width: 900px) {
  .split,
  .service-row,
  .contact-grid,
  .footer-grid,
  .offer-grid,
  .blog-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .service-row:nth-child(even) .service-visual {
    order: 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 1.5rem;
    gap: 0.85rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}

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

  .hero-media img {
    transform: none;
  }
}
