:root {
  --beige: #e8dcc8;
  --beige-deep: #d4c4a8;
  --sand: #c9b896;
  --emerald: #3ecf8e;
  --emerald-deep: #1a9b6a;
  --violet: #9b7ebd;
  --violet-soft: #b8a0d4;
  --gold: #e8d5a3;
  --ink: #1a2e28;
  --ink-soft: #3d534c;
  --surface: rgba(255, 250, 242, 0.72);
  --surface-strong: #f7f0e4;
  --line: rgba(26, 46, 40, 0.14);
  --radius: 2px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --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-weight: 400;
  color: var(--ink);
  line-height: 1.65;
  letter-spacing: 0.01em;
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(62, 207, 142, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 5%, rgba(155, 126, 189, 0.32), transparent 50%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(232, 213, 163, 0.35), transparent 55%),
    linear-gradient(165deg, #f3e9d8 0%, #e6d7c0 40%, #dccfbe 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.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;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(243, 233, 216, 0.78);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--emerald-deep);
  margin-bottom: 0.75rem;
}

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

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

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

.nav-cta {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--beige) !important;
  box-shadow: 0 0 24px rgba(62, 207, 142, 0.35);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  background: radial-gradient(circle at 30% 40%, rgba(232, 213, 163, 0.55), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(62, 207, 142, 0.4), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(155, 126, 189, 0.35), transparent 45%);
  opacity: 0;
  transform: translateY(40%) scale(0.8);
  transition: opacity 0.45s ease, transform 0.55s ease;
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
  transform: translateY(0) scale(1.05);
}

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

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 8px 32px rgba(26, 46, 40, 0.28), 0 0 28px rgba(62, 207, 142, 0.25);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(26, 46, 40, 0.35);
}

.btn-ghost:hover {
  border-color: var(--ink);
  box-shadow: 0 0 24px rgba(155, 126, 189, 0.25);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.text-link {
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(62, 207, 142, 0.12), transparent 40%),
    linear-gradient(300deg, rgba(155, 126, 189, 0.18), transparent 45%);
  animation: aurora-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes aurora-drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); opacity: 0.85; }
  to { transform: translate3d(2%, 1%, 0) scale(1.04); opacity: 1; }
}

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

.hero-copy .lede,
.page-hero .lede,
.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 36rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-visual {
  margin: 0;
  position: relative;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  animation: visual-rise 1.1s ease both;
}

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

.hero-copy {
  animation: copy-fade 0.9s ease both;
}

@keyframes copy-fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 1rem;
}

.page-hero-compact {
  padding-bottom: 0;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

/* Sections */
.section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.section-soft {
  background: rgba(255, 250, 242, 0.45);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-cta {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.feature-band img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.offer-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.offer-row {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease, padding-left 0.3s ease;
}

.offer-row:hover {
  background: rgba(62, 207, 142, 0.08);
  padding-left: 0.5rem;
}

.offer-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
}

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

.offer-price {
  font-weight: 600;
  white-space: nowrap;
  color: var(--emerald-deep);
}

.quote-stack {
  display: grid;
  gap: 1.5rem;
}

blockquote {
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border-left: 3px solid var(--violet);
}

blockquote p {
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

blockquote footer {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.cta-band {
  padding: clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(62, 207, 142, 0.18), rgba(155, 126, 189, 0.16) 50%, rgba(232, 213, 163, 0.22));
  border: 1px solid var(--line);
  text-align: center;
}

.cta-band .lede,
.cta-band p {
  margin-inline: auto;
  max-width: 34rem;
}

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

.service-card,
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(26, 46, 40, 0.12);
}

.service-card img,
.blog-card img,
.detail-image,
.article-cover,
.method-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card-body,
.blog-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.service-card h2,
.blog-card h2 {
  font-size: 1.3rem;
}

.service-card h2 a,
.blog-card h2 a {
  color: inherit;
  text-decoration: none;
}

.detail-layout,
.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 2.25rem;
  align-items: start;
}

.side-panel {
  padding: 1.5rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  position: sticky;
  top: 5.5rem;
}

.side-panel .btn {
  width: 100%;
  margin: 0.75rem 0;
}

.check-list {
  padding-left: 1.1rem;
  margin: 0 0 1.25rem;
}

.check-list li {
  margin-bottom: 0.45rem;
}

.note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.method-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

.method-steps li {
  counter-increment: step;
  padding: 1.5rem 1.5rem 1.5rem 5rem;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
}

.method-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.25rem;
  top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--violet);
}

.method-intro {
  display: grid;
  gap: 1.5rem;
  max-width: 48rem;
}

.article-shell {
  max-width: 720px;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-cover {
  margin-bottom: 1.75rem;
}

.article-body p {
  font-size: 1.05rem;
}

.legal-prose {
  max-width: 720px;
}

.legal-prose h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.section-404 {
  min-height: 55vh;
  display: grid;
  align-items: center;
  text-align: center;
}

.section-404 .lede {
  margin-inline: auto;
}

/* Forms */
.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(26, 46, 40, 0.25);
  background: rgba(255, 252, 247, 0.9);
  font: inherit;
  color: var(--ink);
  border-radius: var(--radius);
}

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

.field-error {
  color: #8b2e3b;
  font-size: 0.85rem;
  margin: 0;
}

.field-invalid input,
.field-invalid textarea,
.field-invalid select {
  border-color: #8b2e3b;
}

.form-status {
  margin: 0.25rem 0 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
}

.form-status.is-success {
  background: rgba(62, 207, 142, 0.18);
  border: 1px solid var(--emerald);
}

.form-status.is-error {
  background: rgba(139, 46, 59, 0.1);
  border: 1px solid #8b2e3b;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(26, 46, 40, 0.92);
  color: var(--beige);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

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

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

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

.footer-tag {
  color: rgba(232, 220, 200, 0.78);
  font-size: 0.95rem;
  max-width: 18rem;
}

.footer-label {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  color: var(--violet-soft);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: rgba(232, 220, 200, 0.85);
}

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 220, 200, 0.15);
  font-size: 0.85rem;
  color: rgba(232, 220, 200, 0.6);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(26, 46, 40, 0.96);
  color: var(--beige);
  border-top: 1px solid rgba(62, 207, 142, 0.35);
  padding: 1rem 0;
  animation: cookie-up 0.45s ease both;
}

@keyframes cookie-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

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

.cookie-inner p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(232, 220, 200, 0.9);
}

.cookie-inner a {
  color: var(--gold);
}

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

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

.cookie-banner .btn-ghost {
  color: var(--beige);
  border-color: rgba(232, 220, 200, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-split,
  .feature-band,
  .detail-layout,
  .about-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .offer-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .service-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(243, 233, 216, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }

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

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    border: 0;
    margin-top: 0.25rem;
  }

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

  .cookie-actions {
    justify-content: stretch;
  }

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

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