/* Attie Bauservice – landing page styles */

@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito/Nunito-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito/Nunito-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #2D2D2D;
  --ink-soft: #555555;
  --ink-mute: #888888;
  --forest: #3a8c36;
  --leaf: #4DB848;
  --leaf-glow: 77 184 72;
  --mist: #f0f8ef;
  --card: #ffffff;
  --line: rgba(45, 45, 45, 0.08);
  --line-strong: rgba(45, 45, 45, 0.15);
  --bg-0: #ffffff;
  --bg-1: #F5F5F5;
  --bg-2: #e8f5e6;

  --r-card: 18px;
  --r-pill: 999px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 40px -22px rgba(45, 45, 45, 0.16), 0 2px 6px rgba(45, 45, 45, 0.04);
  --shadow-cta: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 14px 30px -10px rgba(77, 184, 72, 0.55), 0 4px 12px rgba(58, 140, 54, 0.18);

  --gap-section: clamp(80px, 12vw, 160px);
  --gap-block: clamp(40px, 6vw, 72px);

  --type-display: clamp(38px, 6.6vw, 86px);
  --type-h2: clamp(28px, 3.6vw, 44px);
  --type-h3: 19px;
  --type-eyebrow: 13px;
  --type-body: 17px;
  --type-small: 14px;

  --content: 1180px;
  --measure: 680px;

  --font-head: 'Nunito', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--type-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
#root { display: contents; }

/* Page background */
.page-bg {
  position: fixed; inset: 0; bottom: -50px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 8% 6%, rgba(77, 184, 72, 0.10), transparent 70%),
    radial-gradient(55% 45% at 100% 30%, rgba(58, 140, 54, 0.08), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(77, 184, 72, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-2) 100%);
}
.page-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0,0,0,0.02), transparent 50%);
  opacity: 0.8; mix-blend-mode: multiply;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ───── shared ───── */
.wrap { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 24px; }
.measure { max-width: var(--measure); }
.center { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: var(--type-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--forest);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 28px; height: 1px; background: var(--forest);
}

.section-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--leaf);
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h2 { font-size: var(--type-h2); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: var(--type-h3); line-height: 1.3; font-weight: 700; }
p { margin: 0; }

/* ───── preview banner ───── */
.preview-banner {
  position: sticky; top: 0; z-index: 51;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px;
  background: #1a1a1a;
  color: rgba(255,255,255,0.85);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
}
.preview-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--leaf);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ───── nav ───── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  transition: background 240ms ease, backdrop-filter 240ms ease, border-color 240ms ease, padding 240ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  padding: 10px 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav-logo img { width: 36px; height: 36px; flex-shrink: 0; }
.nav-logo b {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 480px) {
  .nav-logo b { display: none; }
}
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--forest); }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--leaf); border-radius: 2px;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--forest); color: #fff;
  font-family: var(--font-head);
  font-weight: 700; font-size: 14px;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  box-shadow: 0 8px 18px -8px rgba(58, 140, 54, 0.5);
}
.nav-cta:hover { transform: translateY(-1px); background: #2d6e29; box-shadow: 0 14px 26px -10px rgba(58, 140, 54, 0.6); }
.nav-cta-mobile { display: none; padding: 10px 14px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: inline-flex; }
}

/* ───── hero ───── */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-logo {
  width: 100%;
  max-width: 240px;
  filter: drop-shadow(0 10px 24px rgba(45, 45, 45, 0.10));
}
.trust-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--mist);
  border: 1px solid rgba(77, 184, 72, 0.18);
  color: var(--forest);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }

.hero-slogan {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  color: var(--forest);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.hero-eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-size: var(--type-display);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero h1 .leaf { color: var(--forest); font-style: italic; }
.hero h1 em { font-style: italic; }

.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 36px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn-primary {
  background: var(--forest); color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { transform: translateY(-2px); background: #2d6e29; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 22px 38px -10px rgba(77, 184, 72, 0.7), 0 6px 16px rgba(58, 140, 54, 0.22); }
.btn-secondary {
  background: #fff; color: var(--forest); border-color: rgba(58, 140, 54, 0.25);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--forest); box-shadow: 0 14px 28px -14px rgba(58, 140, 54, 0.4); }
.btn-icon { width: 16px; height: 16px; }

.cta-note {
  margin-top: 14px; font-size: var(--type-small); color: var(--ink-mute);
  display: flex; align-items: center; gap: 8px;
}
.cta-note .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); position: relative;
}
.cta-note .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--leaf); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Hero side */
.hero-aside {
  display: flex; flex-direction: column; gap: 18px;
}
.placeholder {
  position: relative;
  border-radius: var(--r-card);
  background:
    repeating-linear-gradient(135deg, rgba(58, 140, 54, 0.06) 0 14px, rgba(58, 140, 54, 0.02) 14px 28px),
    var(--mist);
  border: 1px solid rgba(58, 140, 54, 0.18);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--forest);
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.placeholder::before {
  content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(58, 140, 54, 0.32); border-radius: calc(var(--r-card) - 6px); pointer-events: none;
}
.placeholder-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.85); padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 10px;
}
.placeholder-hero { aspect-ratio: 4 / 5; }
.hero-meta-card {
  background: var(--card);
  border-radius: var(--r-card);
  border-left: 3px solid var(--leaf);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  font-size: 14px;
}
.hero-meta-card .row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hero-meta-card .row:last-child { border-bottom: 0; }
.hero-meta-card .label { color: var(--ink-mute); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.hero-meta-card .val { font-weight: 600; color: var(--ink); }
.hero-meta-card .val .ok { color: var(--forest); }

/* HERO right column */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 40px 32px;
  background: var(--mist);
  border-radius: var(--r-card);
  border: 1px solid rgba(77,184,72,.15);
}

/* ── hero trust stats ── */
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 28px 40px;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}
.stat-item { display: flex; flex-direction: column; align-items: flex-start; }
.stat-num {
  font-family: var(--font-head);
  font-size: 34px; font-weight: 900; line-height: 1;
  color: var(--forest); letter-spacing: -0.02em;
}
.stat-label { font-size: 12.5px; color: var(--ink-mute); margin-top: 4px; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-aside { order: -1; max-width: 420px; }
}

/* ───── section header ───── */
.section { padding: var(--gap-section) 0; position: relative; }
.section-alt { background: #eef7ed; }
.section-muted { background: #F5F5F5; }
.section-dark { background: var(--ink); }
.section-dark h2,
.section-dark .section-num { color: #fff; }
.section-dark .rule { background: rgba(255,255,255,.2); }
.section-dark .section-header .right,
.section-dark p { color: rgba(255,255,255,.65); }
.section-dark strong { color: #fff; }
.section-dark .area-text p { color: rgba(255,255,255,.65); }
.section-dark .area-text p strong { color: #fff; }
.section-dark .area-note { color: rgba(255,255,255,.5); }
.section-dark .area-pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.75); }
.section-dark .area-pill.is-focal { background: rgba(77,184,72,.2); border-color: rgba(77,184,72,.4); color: var(--leaf); }
.section-header { margin-bottom: var(--gap-block); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.section-header--single { grid-template-columns: 1fr; max-width: 680px; }
.section-header .left { display: flex; flex-direction: column; gap: 16px; }
.section-header .right { color: var(--ink-soft); font-size: 17px; line-height: 1.6; max-width: 520px; }
.section-meta { display: flex; align-items: center; gap: 14px; }
.section-meta .rule { flex: 1; height: 1px; background: var(--line-strong); max-width: 160px; }
@media (max-width: 760px) {
  .section-header { grid-template-columns: 1fr; gap: 18px; }
}

/* ───── services ───── */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.service-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 10px);
  margin: 0 auto;
}
.service-card {
  position: relative;
  background: var(--card);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms ease, border-color 280ms ease;
  display: flex; flex-direction: column; gap: 14px;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 140, 54, 0.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 30px 60px -28px rgba(58, 140, 54, 0.32), 0 4px 12px rgba(45, 45, 45, 0.05);
}
.service-card .num {
  position: absolute; top: 22px; right: 24px;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 11px; color: var(--ink-mute); letter-spacing: 0.12em; font-weight: 600;
}
.service-card .icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--mist);
  color: var(--forest);
  transition: background 280ms ease, color 280ms ease, transform 280ms ease;
}
.service-card:hover .icon { background: var(--forest); color: #fff; transform: rotate(-4deg); }
.service-card .icon svg { width: 22px; height: 22px; }
.service-card h3 { color: var(--ink); }
.service-card p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.service-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
}
.service-list li {
  font-size: 13.5px; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.service-list li::before {
  content: ''; flex-shrink: 0;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--leaf);
}

@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; }
  .service-card:last-child:nth-child(odd) { grid-column: auto; max-width: none; margin: 0; }
}

/* density */
[data-density="compact"] { --gap-section: clamp(56px, 8vw, 100px); --gap-block: clamp(28px, 4vw, 48px); }
[data-density="compact"] .service-card { padding: 24px 22px; }
[data-density="compact"] .hero { padding: clamp(32px, 5vw, 60px) 0 clamp(40px, 6vw, 72px); }

/* ───── works / referenzen ───── */
/* grid: 1–3 images. column count follows image count via [data-count]. */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.works-grid[data-count="1"] { grid-template-columns: minmax(0, 540px); justify-content: center; }
.works-grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.work-item {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--mist);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.work-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
  display: block;
}
.work-item:hover img { transform: scale(1.03); }

@media (max-width: 760px) {
  .works-grid[data-count="3"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .works-grid,
  .works-grid[data-count="1"],
  .works-grid[data-count="3"] { grid-template-columns: 1fr; justify-content: stretch; }
}

/* carousel (4+ images): manual slider, always exactly 3 across. */
.works-carousel {
  position: relative;
  margin-bottom: 32px;
}
.works-carousel-wrap {
  overflow: hidden;
  container-type: inline-size;
}
.works-carousel-track {
  --gap: 16px;
  --item-w: calc((100cqw - 2 * var(--gap)) / 3);
  display: flex;
  gap: var(--gap);
  transform: translateX(calc(-1 * var(--i, 0) * (var(--item-w) + var(--gap))));
  transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}
.works-carousel-item {
  flex: 0 0 var(--item-w);
  aspect-ratio: 4 / 3;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: var(--mist);
}
.works-carousel-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}
.works-carousel-item:hover img { transform: scale(1.04); }

/* nav arrows */
.works-nav {
  position: absolute;
  top: calc(50% - 22px);
  transform: translateY(-50%);
  z-index: 3;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: opacity 200ms ease, background 200ms ease, transform 150ms ease;
}
.works-nav:hover { background: #fff; }
.works-nav:active { transform: translateY(-50%) scale(0.94); }
.works-nav:disabled { opacity: 0; pointer-events: none; }
.works-nav--prev { left: 8px; }
.works-nav--next { right: 8px; }

/* dots */
.works-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.works-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 200ms ease, width 200ms ease;
}
.works-dot:hover { background: var(--ink-mute); }
.works-dot.is-active { background: var(--leaf); width: 22px; border-radius: 5px; }

@container (max-width: 600px) {
  /* ~1.3 cards visible on phones so they aren't cramped */
  .works-carousel-track { --item-w: calc((100cqw - var(--gap)) / 1.3); }
}

.works-cta {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--ink-soft); flex-wrap: wrap;
}
.insta-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: var(--forest);
  border-bottom: 1.5px solid rgba(58, 140, 54, 0.35);
  transition: color 200ms, border-color 200ms;
}
.insta-link:hover { color: var(--ink); border-color: var(--ink-soft); }
.insta-link svg { flex-shrink: 0; }

/* ───── why us ───── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.why-pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 280ms ease, border-color 280ms ease;
}
.why-pillar:hover { transform: translateY(-3px); border-color: rgba(58, 140, 54, 0.3); }
.why-pillar .badge {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--mist); color: var(--forest);
  margin-bottom: 18px;
}
.why-pillar .badge svg { width: 20px; height: 20px; }
.why-pillar h3 { font-size: 18px; margin-bottom: 8px; }
.why-pillar h3 .tag { color: var(--leaf); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.why-pillar p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

.why-quote {
  margin-top: 56px;
  padding: 32px 0 0;
  border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start;
}
.why-quote .label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--forest); }
.why-quote .text { font-size: 19px; line-height: 1.55; color: var(--ink); max-width: 640px; font-weight: 400; }
.why-quote .text strong { font-weight: 700; }
@media (max-width: 760px) { .why-quote { grid-template-columns: 1fr; gap: 12px; } }

/* ───── service area ───── */
.area-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 920px) { .area-wrap { grid-template-columns: 1fr; } }

.area-text p { font-size: 19px; line-height: 1.55; color: var(--ink); }
.area-text p strong { color: var(--forest); font-weight: 700; }
.area-note { margin-top: 24px; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

.area-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.area-pill {
  padding: 8px 16px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 14px; color: var(--ink); font-weight: 500;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.area-pill:hover { background: var(--forest); border-color: var(--forest); color: #fff; transform: translateY(-1px); }
.area-pill.is-focal { background: var(--mist); border-color: rgba(58, 140, 54, 0.25); font-weight: 700; color: var(--forest); padding: 10px 20px; font-size: 15px; }

/* mini map */
.area-map {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-card);
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(77, 184, 72, 0.08), transparent 70%),
    repeating-linear-gradient(0deg, rgba(58, 140, 54, 0.06) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(58, 140, 54, 0.06) 0 1px, transparent 1px 40px),
    var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.area-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.area-map .map-label {
  position: absolute;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(255,255,255,0.92);
  padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--line);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.area-map .map-label.is-focal { background: var(--forest); color: #fff; border-color: var(--forest); font-weight: 700; white-space: nowrap; font-size: 10px; }
.area-map .map-dot { fill: var(--forest); }
.area-map .map-dot.is-focal { fill: var(--leaf); }
.area-map .map-pulse { fill: var(--leaf); opacity: 0.18; }

/* ───── contact ───── */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: flex; flex-direction: column; gap: 18px; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em; }
.form-field label .req { color: var(--leaf); }
.form-field input, .form-field textarea {
  font-family: var(--font-body);
  font-size: 15px; color: var(--ink);
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  outline: none; resize: none;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--forest); background: #fff;
  box-shadow: 0 0 0 4px rgba(77, 184, 72, 0.14);
}
.form-field.has-error input, .form-field.has-error textarea { border-color: #c0392b; }
.form-field .err { font-size: 12.5px; color: #c0392b; min-height: 0; }
.form-send-error { margin-top: 12px; font-size: 14px; color: #c0392b; }
.form-submit { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.form-success {
  background: var(--mist);
  border: 1px solid rgba(58, 140, 54, 0.25);
  border-left: 3px solid var(--forest);
  padding: 24px 22px;
  border-radius: var(--r-card);
  display: flex; gap: 14px; align-items: flex-start;
}
.form-success .check {
  flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.form-success h4 { font-family: var(--font-head); font-size: 17px; margin-bottom: 4px; }
.form-success p { font-size: 14.5px; color: var(--ink-soft); }

.contact-details { display: flex; flex-direction: column; gap: 10px; }
.contact-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 24px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: border-color 220ms ease, transform 220ms ease;
}
.contact-block:hover { border-color: rgba(58, 140, 54, 0.3); transform: translateY(-3px); }
.contact-block .ico {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 10px; background: var(--mist); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
}
.contact-block .ico svg { width: 18px; height: 18px; }
.contact-block .body { display: flex; flex-direction: column; gap: 4px; }
.contact-block .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--forest); }
.contact-block .value { font-size: 16px; font-weight: 600; color: var(--ink); }
.contact-block .meta { font-size: 13.5px; color: var(--ink-mute); }
.contact-block .link { font-size: 14px; color: var(--forest); font-weight: 600; padding-top: 4px; }
.contact-block .link:hover { text-decoration: underline; }

/* ───── footer ───── */
.footer {
  padding: 48px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}
.footer .row {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center;
  font-size: 13.5px; color: var(--ink-soft); text-align: center;
}
.footer .row .sep { width: 4px; height: 4px; background: var(--leaf); border-radius: 50%; opacity: 0.6; }
.footer .meta-row { margin-top: 10px; font-size: 12.5px; color: var(--ink-mute); display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer .meta-row a:hover { color: var(--forest); }

/* ───── reveal animation ───── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }
.reveal.delay-5 { transition-delay: 400ms; }
.reveal.delay-6 { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .cta-note .pulse::after { animation: none; }
}

/* ───── 404 page ───── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}
