:root {
  --parchment: #f3ede3;
  --parchment-deep: #e8dfd0;
  --paper-fold: #d9cfc0;
  --ink: #1a1814;
  --ink-soft: #3a3530;
  --terracotta: #c4785a;
  --terracotta-deep: #a45f45;
  --beige: #d4c4b0;
  --indigo: #5c6b7a;
  --indigo-deep: #3f4c59;
  --shadow: rgba(26, 24, 20, 0.12);
  --radius: 2px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.75rem);
  --shell: min(1120px, calc(100% - 2.5rem));
}

*,
*::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(--ink);
  background:
    radial-gradient(ellipse at 12% 8%, rgba(196, 120, 90, 0.08), transparent 42%),
    radial-gradient(ellipse at 88% 0%, rgba(92, 107, 122, 0.1), transparent 40%),
    linear-gradient(180deg, var(--parchment) 0%, var(--parchment-deep) 55%, #e2d8c8 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.35;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 0;
}

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

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

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

a:hover {
  color: var(--terracotta-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: 0 0 0.75rem;
}

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

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--parchment);
  padding: 0.5rem 1rem;
  z-index: 100;
}

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

.site-header {
  border-bottom: 1px solid rgba(26, 24, 20, 0.12);
  background: rgba(243, 237, 227, 0.88);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  max-width: 14rem;
  line-height: 1.25;
}

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

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

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

.nav-cta {
  border: 1px solid var(--ink);
  padding: 0.35rem 0.75rem;
  background: var(--parchment);
}

.nav-toggle {
  display: none;
  background: var(--parchment-deep);
  border: 1px solid var(--beige);
  padding: 0.45rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.btn {
  appearance: none;
  border: 1px solid var(--ink);
  font: inherit;
  cursor: pointer;
  padding: 0.7rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--parchment);
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease;
}

.btn-panel {
  isolation: isolate;
}

.btn-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-101%);
  transition: transform 0.35s ease;
  z-index: -1;
}

.btn-panel:hover {
  color: var(--parchment);
}

.btn-panel:hover::before {
  transform: translateX(0);
}

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

.btn-ghost:hover {
  background: rgba(92, 107, 122, 0.08);
}

.paper-surface {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 40%),
    var(--parchment);
  border: 1px solid rgba(26, 24, 20, 0.1);
  box-shadow: 0 12px 30px var(--shadow);
  position: relative;
}

.paper-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(212, 196, 176, 0.25) 48%, transparent);
  opacity: 0.5;
}

.hero-home {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.hero-home-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 36ch;
  color: var(--ink-soft);
}

.hero-visual {
  min-height: 28rem;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(26, 24, 20, 0.15);
  box-shadow: 18px 18px 0 rgba(92, 107, 122, 0.18);
  animation: paperSettle 1.1s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@keyframes paperSettle {
  from {
    opacity: 0;
    transform: translateY(16px) rotate(-0.4deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-muted {
  background: rgba(232, 223, 208, 0.55);
  border-block: 1px solid rgba(26, 24, 20, 0.08);
}

.section-intro {
  max-width: 42rem;
  margin-bottom: 2rem;
  animation: fadeRise 0.8s ease both;
}

.offer-grid,
.card-grid,
.story-grid {
  display: grid;
  gap: 1.25rem;
}

.offer-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid {
  grid-template-columns: repeat(2, 1fr);
}

.offer-item,
.content-panel,
.review-card,
.post-card,
.rate-block {
  padding: 1.35rem;
  background: rgba(243, 237, 227, 0.92);
  border: 1px solid rgba(26, 24, 20, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.offer-item img,
.post-card img,
.service-hero img,
.article-cover img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: sepia(0.12) contrast(0.96);
}

.meta {
  color: var(--indigo);
  font-size: 0.9rem;
}

.page-hero {
  padding: clamp(2.2rem, 5vw, 3.5rem) 0 1.5rem;
}

.page-hero p {
  max-width: 48ch;
  color: var(--ink-soft);
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--beige);
  background: #faf6ef;
  font: inherit;
  color: var(--ink);
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field-error {
  color: var(--terracotta-deep);
  font-size: 0.9rem;
  margin-top: 0.3rem;
  display: none;
}

.form-field.is-invalid .field-error {
  display: block;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: var(--terracotta);
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: rgba(92, 107, 122, 0.12);
  border: 1px solid var(--indigo);
}

.form-status.is-error {
  background: rgba(196, 120, 90, 0.15);
  border: 1px solid var(--terracotta);
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(26, 24, 20, 0.12);
  background: #e4d9c8;
  padding: 2.5rem 0 1.5rem;
}

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

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

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

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

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

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 24, 20, 0.1);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(26, 24, 20, 0.92);
  color: var(--parchment);
  padding: 1rem 0;
  box-shadow: 0 -8px 24px var(--shadow);
}

.cookie-banner a {
  color: #f0d2c4;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

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

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

.cookie-banner .btn-panel {
  background: var(--parchment);
  color: var(--ink);
}

.cookie-banner .btn-panel:hover {
  color: var(--parchment);
}

.cookie-banner .btn-ghost {
  color: var(--parchment);
  border-color: var(--beige);
}

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

.steps li {
  counter-increment: step;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid rgba(26, 24, 20, 0.1);
  position: relative;
}

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

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(243, 237, 227, 0.8);
}

th,
td {
  border: 1px solid rgba(26, 24, 20, 0.12);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(212, 196, 176, 0.45);
  font-weight: 600;
}

.review-card.extended {
  grid-column: 1 / -1;
  border-left: 3px solid var(--terracotta);
}

.legal-list li {
  margin-bottom: 0.5rem;
}

.404-wrap,
.error-wrap {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

@media (max-width: 960px) {
  .hero-home-grid,
  .split,
  .contact-grid,
  .footer-grid,
  .offer-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

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

  .site-nav {
    display: none;
    width: 100%;
  }

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

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 0.75rem;
  }

  .hero-visual {
    min-height: 18rem;
    box-shadow: 10px 10px 0 rgba(92, 107, 122, 0.18);
  }
}

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