/* ============================================================
   Tokens
   ============================================================ */
:root {
  --c-bg: #f8f6f2;
  --c-surface: #ffffff;
  --c-tint: #f1efe8;
  --c-ink: #22282a;
  --c-muted: #5c666a;
  --c-accent: #2f6b4f;
  --c-accent-dark: #24543e;
  --c-accent-soft: #e6efe9;
  --c-line: #e0dbd1;
  --c-before: #8a7b5c;

  --step--1: clamp(0.86rem, 0.83rem + 0.15vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 2rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.6vw, 3rem);

  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem;

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(29, 34, 30, 0.06), 0 4px 12px rgba(29, 34, 30, 0.05);
  --shadow-md: 0 12px 32px rgba(29, 34, 30, 0.12);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", "PT Serif", serif;
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* room for the mobile call bar */
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; margin: 0 0 var(--sp-4); }
h1 { font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--sp-4); }
img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--c-accent-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--c-accent); color: #fff; padding: var(--sp-3) var(--sp-4); border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--c-accent); font-weight: 600; margin: 0 0 var(--sp-2);
}
.section { padding-block: var(--sp-7); }
.section--tint { background: var(--c-tint); }
.section__lead { color: var(--c-muted); max-width: 62ch; font-size: var(--step-1); }
.lead { font-size: var(--step-1); color: var(--c-muted); max-width: 56ch; }
.note {
  color: var(--c-muted); font-size: var(--step--1); max-width: 70ch;
  border-left: 3px solid var(--c-accent-soft); padding-left: var(--sp-4); margin-top: var(--sp-5);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: var(--sp-3) var(--sp-5);
  border: 1px solid transparent; border-radius: var(--r-md);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn--primary { background: var(--c-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--c-accent-dark); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--c-accent-dark); }
.btn--light:hover { background: var(--c-accent-soft); }
.btn--lg { min-height: 56px; font-size: var(--step-1); padding-inline: var(--sp-6); }
.btn--block { width: 100%; }
.btn svg { flex: none; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-5); }
.cta__note { font-size: var(--step--1); color: var(--c-muted); margin-top: var(--sp-3); }
.phone-plain {
  font-family: var(--font-head); font-size: var(--step-1); font-weight: 700;
  color: var(--c-ink); text-decoration: none; white-space: nowrap;
}
.phone-plain:hover { color: var(--c-accent-dark); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248, 246, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 68px; padding-block: var(--sp-2);
}
.logo { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--c-ink); margin-right: auto; }
.logo__mark {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent-dark);
}
.logo__text b { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.2; }
/* the language switcher needs the room on narrow screens */
.logo__text small { display: none; color: var(--c-muted); font-size: 0.78rem; }

.site-nav { display: none; gap: var(--sp-5); }
.site-nav a { color: var(--c-muted); text-decoration: none; font-size: var(--step--1); }
.site-nav a:hover { color: var(--c-accent-dark); }

.header-phone {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4); min-height: 44px;
  border: 1px solid var(--c-line); border-radius: var(--r-md);
  background: var(--c-surface); color: var(--c-ink); text-decoration: none; font-weight: 600;
}
.header-phone:hover { border-color: var(--c-accent); color: var(--c-accent-dark); }
.header-phone__num { display: none; }

.lang { display: flex; align-items: center; gap: 2px; }
.lang__item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; min-height: 34px; padding-inline: var(--sp-1);
  border-radius: var(--r-sm); text-decoration: none;
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em;
  color: var(--c-muted);
}
.lang__item:hover { color: var(--c-accent-dark); background: var(--c-accent-soft); }
.lang__item.is-current { color: var(--c-accent-dark); background: var(--c-accent-soft); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-block: var(--sp-7) var(--sp-7); background: linear-gradient(180deg, var(--c-tint), var(--c-bg)); }
.hero__inner { display: grid; gap: var(--sp-6); }
.hero__points { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.hero__points li { position: relative; padding-left: 30px; color: var(--c-muted); }
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 16px; height: 9px; border-left: 2.5px solid var(--c-accent); border-bottom: 2.5px solid var(--c-accent);
  transform: rotate(-45deg);
}
.hero__media { margin: 0; }
.hero__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 100%; }
.hero__media figcaption { font-size: var(--step--1); color: var(--c-muted); margin-top: var(--sp-3); text-align: center; }

/* ============================================================
   Cards
   ============================================================ */
.cards { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-4); }
.card {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: var(--sp-5); box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { margin: 0; color: var(--c-muted); font-size: var(--step--1); }

.trust__closing {
  margin: var(--sp-6) 0 0; max-width: 70ch;
  font-size: var(--step-1); line-height: 1.55; color: var(--c-ink);
  border-left: 3px solid var(--c-accent); padding-left: var(--sp-5);
}

.card__list {
  list-style: none; margin: var(--sp-4) 0 0; padding: 0;
  display: grid; gap: var(--sp-2);
}
.card__list li {
  position: relative; padding-left: 24px;
  color: var(--c-ink); font-size: var(--step--1); line-height: 1.45;
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
}


/* ============================================================
   Before / after
   ============================================================ */
.ba { position: relative; margin: var(--sp-6) auto 0; max-width: 32rem; --pos: 50%; }
.ba__frame {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); background: #ddd; aspect-ratio: 3 / 4;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__label {
  position: absolute; top: var(--sp-4); z-index: 3;
  padding: var(--sp-1) var(--sp-3); border-radius: 999px;
  font-size: var(--step--1); font-weight: 700; color: #fff; letter-spacing: 0.04em;
}
.ba__label--before { left: var(--sp-4); background: rgba(90, 76, 50, 0.88); }
.ba__label--after { right: var(--sp-4); background: rgba(47, 107, 79, 0.92); }
.ba__divider { display: none; }
.ba__range { width: 100%; margin-top: var(--sp-4); }

/* Enhanced (JS) state: the "after" layer is clipped by the slider position */
.ba.is-interactive .ba__img--after { clip-path: inset(0 0 0 var(--pos)); }
.ba.is-interactive .ba__divider {
  display: block; position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; background: rgba(255, 255, 255, 0.9); z-index: 2; transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.ba.is-interactive .ba__divider::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: #fff center / 18px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b4f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M9 6 4 12l5 6M15 6l5 6-5 6'/%3E%3C/svg%3E");
  box-shadow: var(--shadow-sm);
}
.ba.is-interactive .ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 4;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: none;
}
.ba.is-interactive .ba__range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 56px; height: 100%; cursor: ew-resize;
}
.ba.is-interactive .ba__range::-moz-range-thumb { width: 56px; height: 400px; border: 0; opacity: 0; cursor: ew-resize; }
.ba.is-interactive .ba__range:focus-visible { opacity: 1; outline-offset: -6px; }

/* No-JS fallback: two images side by side */
.ba:not(.is-interactive) .ba__frame { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: auto; gap: 2px; }
.ba:not(.is-interactive) .ba__img { position: static; aspect-ratio: 3 / 4; }
.ba:not(.is-interactive) .ba__label--after { right: auto; left: calc(50% + var(--sp-4)); }

.collage { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: var(--sp-4); }
.collage__item { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.collage figure { margin: 0; position: relative; }
.collage img { border-radius: var(--r-md); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.collage figcaption { position: absolute; top: var(--sp-2); left: var(--sp-2); }
.tag {
  display: inline-block; padding: 2px var(--sp-2); border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; color: #fff; letter-spacing: 0.04em;
}
.tag--before { background: rgba(90, 76, 50, 0.88); }
.tag--after { background: rgba(47, 107, 79, 0.92); }

/* ============================================================
   CTA bands
   ============================================================ */
.cta-band {
  margin-top: var(--sp-6); padding: var(--sp-5);
  display: grid; gap: var(--sp-4); align-items: center;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md);
}
.cta-band p { margin: 0; }
.cta-band--solid { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.cta-band__title { font-family: var(--font-head); font-size: var(--step-1); font-weight: 700; }
.cta-band__sub { color: rgba(255, 255, 255, 0.85); font-size: var(--step--1); margin-top: var(--sp-1) !important; }

/* ============================================================
   Steps
   ============================================================ */
.steps { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-4); counter-reset: step; }
.step {
  position: relative; background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: var(--sp-5); padding-top: var(--sp-6);
}
.step__num {
  position: absolute; top: calc(-1 * var(--sp-4)); left: var(--sp-5);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-accent); color: #fff; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: var(--sp-2); }
.step p { margin: 0; color: var(--c-muted); font-size: var(--step--1); }

/* ============================================================
   FAQ + contact card
   ============================================================ */
.faq__inner { display: grid; gap: var(--sp-6); }
.qa {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-3);
}
.qa summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: var(--sp-3);
  align-items: flex-start; justify-content: space-between;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; font-size: 1.4rem; line-height: 1; color: var(--c-accent); flex: none;
}
.qa[open] summary::after { content: "\2212"; }
.qa p { margin: var(--sp-3) 0 0; color: var(--c-muted); font-size: var(--step--1); }

.contact-card {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--shadow-sm); align-self: start;
}
.contact-card h3 { margin-bottom: var(--sp-2); }
.contact-card p { color: var(--c-muted); font-size: var(--step--1); }
.contact-card__phone {
  display: block; font-family: var(--font-head); font-size: var(--step-2); font-weight: 700;
  color: var(--c-ink); text-decoration: none; margin-bottom: var(--sp-3);
}
.contact-card__phone:hover { color: var(--c-accent-dark); }
.contact-card__meta { margin: var(--sp-5) 0 0; display: grid; gap: var(--sp-3); }
.contact-card__meta div { border-top: 1px solid var(--c-line); padding-top: var(--sp-3); }
.contact-card__meta dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-muted); }
.contact-card__meta dd { margin: var(--sp-1) 0 0; font-weight: 600; font-size: var(--step--1); }

/* ============================================================
   Footer + sticky call bar
   ============================================================ */
.site-footer { background: #1f2724; color: #d8dcd7; padding-block: var(--sp-6); }
.site-footer__inner { display: grid; gap: var(--sp-4); }
.site-footer__brand { font-family: var(--font-head); margin: 0; }
.site-footer__brand span { font-family: var(--font-body); font-size: var(--step--1); color: #9aa39c; }
.site-footer__phone { color: #fff; font-family: var(--font-head); font-size: var(--step-1); font-weight: 700; text-decoration: none; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.site-footer__nav a { color: #9aa39c; text-decoration: none; font-size: var(--step--1); }
.site-footer__nav a:hover { color: #fff; }

.call-bar .btn { font-size: var(--step--1); white-space: nowrap; padding-inline: var(--sp-3); }

.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(248, 246, 242, 0.96); border-top: 1px solid var(--c-line);
  backdrop-filter: blur(8px);
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Breakpoints
   ============================================================ */
@media (min-width: 48em) {
  .section { padding-block: var(--sp-8); }
  .hero { padding-block: var(--sp-8); }
  .header-phone__num { display: inline; }
  .site-header__inner { gap: var(--sp-5); }
  .lang__item { min-width: 34px; padding-inline: var(--sp-2); }
  .logo__text small { display: block; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-4); }
  .collage { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr auto; }
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .site-footer__nav { grid-column: 1 / -1; }
}

@media (min-width: 64em) {
  .site-nav { display: flex; }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: var(--sp-7); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .faq__inner { grid-template-columns: 1.4fr 0.85fr; gap: var(--sp-7); }
  .collage { grid-template-columns: repeat(3, 1fr); }
  .call-bar { display: none; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
