/* HOI – Ihr Haus & Gartenboy · design system */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f6f4ee;
  --bg-2: #efece3;
  --surface: #ffffff;
  --ink: #16201a;
  --muted: #56615a;
  --forest: #173827;
  --forest-2: #21503a;
  --leaf: #7dbb42;
  --leaf-deep: #4b8527;
  --leaf-tint: #e8f1dc;
  --danger: #b3261e;
  --line: rgba(22, 32, 26, 0.1);
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(22, 32, 26, 0.06), 0 12px 32px -12px rgba(22, 32, 26, 0.18);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--leaf-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn .icon { font-size: 18px; }
.btn-primary { background: var(--leaf); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(75, 133, 39, 0.8); }
.btn-primary:hover { background: #8ccb4f; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--forest); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 238, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 80px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 10px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--muted);
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--ink); background: rgba(22, 32, 26, 0.05); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--leaf-tint); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.phone-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; padding: 10px 12px; white-space: nowrap; }
.phone-link .icon { color: var(--leaf-deep); }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(22, 32, 26, 0.06); color: var(--ink); cursor: pointer; }
.menu-toggle .icon { font-size: 22px; }

/* Hero (home) */
.hero { padding: clamp(32px, 6vw, 72px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); letter-spacing: -0.045em; line-height: 0.98; margin: 22px 0 24px; }
.hero h1 em { font-style: normal; color: var(--leaf-deep); position: relative; white-space: nowrap; }
.hero h1 em svg { position: absolute; left: 0; right: 0; bottom: -0.14em; width: 100%; height: 0.28em; color: var(--leaf); }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 36px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--leaf-deep); font-size: 18px; stroke-width: 2.5; }

.hero-media { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(420px, 46vw, 600px); }
.hero-media figure { margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-2); }
.hero-media figure:first-child { grid-row: 1 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: clamp(-28px, -2vw, -12px); bottom: 34px;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px 16px 16px; border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow);
}
.hero-badge-icons { display: flex; }
.hero-badge-icons span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--surface); font-size: 18px; }
.hero-badge-icons span:first-child { background: #fff1c9; color: #a46a00; }
.hero-badge-icons span:last-child { background: #e1eefb; color: #2d6ba8; margin-left: -10px; }
.hero-badge strong { display: block; font-size: 15px; line-height: 1.25; }
.hero-badge small { display: block; font-size: 13px; color: var(--muted); }

/* Page hero (subpages) */
.page-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.04em; line-height: 1; margin: 20px 0 22px; }
.page-hero h1 em { font-style: normal; color: var(--leaf-deep); }
.page-hero .hero-lead { max-width: 44ch; }
.page-hero-media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--bg-2); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media .tag {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow);
  font-size: 15px; font-weight: 700;
}
.page-hero-media .tag .icon { color: var(--leaf-deep); font-size: 20px; }

/* Section heads */
.section { padding: var(--section) 0; }
.section-tight { padding-top: 0; }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 16px; }
.section-head p { color: var(--muted); font-size: 18px; max-width: 46ch; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 28px 28px; border-radius: var(--radius);
  background: var(--surface); box-shadow: 0 1px 0 var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--leaf-tint); color: var(--leaf-deep); font-size: 26px; margin-bottom: 26px; }
.service-icon .icon { stroke-width: 1.8; }
.service h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 22px; }
.tags span { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--bg); color: var(--muted); }

/* Dark band (Über HOI) */
.band { background: var(--forest); color: #fff; border-radius: clamp(0px, 3vw, 40px); margin: 0 clamp(0px, 1.5vw, 20px); overflow: hidden; }
.band .eyebrow { color: var(--leaf); }
.why-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.why-media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-media figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(23, 56, 39, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 600; line-height: 1.4;
}
.band h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin: 16px 0 22px; }
.band-lead, .band .section-head p { font-size: 18px; color: rgba(255, 255, 255, 0.78); max-width: 50ch; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin: 44px 0 40px; padding: 0; list-style: none; }
.why-list li { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.why-list .icon-wrap { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(125, 187, 66, 0.16); color: var(--leaf); font-size: 20px; }
.why-list strong { font-size: 16px; line-height: 1.3; }
.why-list span { font-size: 15px; color: rgba(255, 255, 255, 0.68); line-height: 1.5; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 34px 30px 32px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; margin-bottom: 40px;
  font-size: 15px; font-weight: 800; letter-spacing: 0.04em; color: var(--leaf-deep);
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -14px; z-index: 1; width: 28px; height: 2px; background: var(--leaf); }

/* Teaser cards */
.more-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 260px; padding: 30px; border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; isolation: isolate;
  transition: transform .25s ease;
}
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 12px 0 10px; }
.card p { font-size: 16px; max-width: 42ch; }
.card .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; font-size: 15px; }
.card .more .icon { transition: transform .2s ease; }
.card:hover .more .icon { transform: translateX(4px); }
.card-label { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.card-photo { grid-row: 1 / 3; min-height: 560px; color: #fff; }
.card-photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card-photo:hover img { transform: scale(1.04); }
.card-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 24, 16, 0) 30%, rgba(10, 24, 16, 0.82) 100%); }
.card-photo .card-label { background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card-photo p { color: rgba(255, 255, 255, 0.82); }
.card-green { background: var(--leaf); color: var(--ink); }
.card-green .card-label { background: rgba(22, 32, 26, 0.1); }
.card-green .deco { position: absolute; right: -36px; bottom: -44px; z-index: -1; font-size: 150px; color: rgba(22, 32, 26, 0.08); }
.card-green .deco .icon { stroke-width: 1.2; }
.card-dark { background: var(--ink); color: #fff; }
.card-dark .card-label { background: rgba(125, 187, 66, 0.18); color: var(--leaf); }
.card-dark p { color: rgba(255, 255, 255, 0.72); }

/* Region strip */
.region { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: var(--radius); background: var(--bg-2); margin-top: 18px; }
.region-title { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 18px; }
.region-title .icon { font-size: 22px; color: var(--leaf-deep); }
.region ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.region li { padding: 8px 16px; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 600; }

/* Feature blocks (subpages) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature-reverse .feature-media { order: 2; }
.feature-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 16px 0 18px; }
.feature p { color: var(--muted); font-size: 17px; }
.check-list { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.check-list .icon { margin-top: 3px; padding: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--leaf-tint); color: var(--leaf-deep); stroke-width: 3; }
.band .check-list .icon { background: rgba(125, 187, 66, 0.16); color: var(--leaf); }

.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { display: flex; gap: 14px; align-items: flex-start; padding: 22px 22px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 var(--line); font-weight: 600; line-height: 1.45; }
.tile .icon { flex: none; font-size: 22px; color: var(--leaf-deep); margin-top: 1px; }
.band .tile { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.band .tile .icon { color: var(--leaf); }

.highlight { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 12px 18px; border-radius: 14px; background: var(--leaf-tint); color: var(--forest); font-weight: 700; }
.highlight .icon { color: var(--leaf-deep); font-size: 20px; }

.video-frame { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Contact box + Wix form */
.contact-box { display: grid; grid-template-columns: 0.85fr 1.15fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.contact-info { display: flex; flex-direction: column; padding: clamp(32px, 4vw, 52px); background: var(--forest); color: #fff; }
.contact-info .eyebrow { color: var(--leaf); }
.contact-info h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 16px 0 16px; }
.contact-info > p { color: rgba(255, 255, 255, 0.74); }
.contact-list { display: grid; gap: 18px; margin: 36px 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-wrap { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: var(--leaf); font-size: 19px; flex: none; }
.contact-list small { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.contact-list a, .contact-list span { font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--leaf); }
.social { display: flex; gap: 10px; margin-top: auto; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); font-size: 19px; transition: background-color .2s ease; }
.social a:hover { background: rgba(255, 255, 255, 0.16); }

.form-panel { padding: clamp(32px, 4vw, 52px); }
.form-panel > h3 { font-size: 24px; margin-bottom: 6px; }
.form-panel > p { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

.wf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.wf-field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.wf-field.is-wide { grid-column: 1 / -1; }
.wf-field fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.wf-label, .wf-field legend { display: block; padding: 0; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.wf-field fieldset .wf-label { margin-bottom: 0; }
.wf-req { color: var(--leaf-deep); }
.wf-input {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
textarea.wf-input { min-height: 130px; resize: vertical; }
select.wf-input { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2316201a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.wf-input:focus { outline: 0; border-color: var(--leaf-deep); background-color: var(--surface); box-shadow: 0 0 0 4px var(--leaf-tint); }
.wf-input[aria-invalid="true"] { border-color: var(--danger); }
.wf-input:disabled { opacity: .6; }
.wf-help { font-size: 13px; color: var(--muted); }
.wf-error { font-size: 13px; font-weight: 600; color: var(--danger); min-height: 0; }
.wf-error:empty { display: none; }
.wf-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-choice { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.wf-choice:hover { border-color: rgba(22, 32, 26, 0.3); }
.wf-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--leaf-deep); }
.wf-choice:has(input:checked) { border-color: var(--leaf-deep); background: var(--leaf-tint); }
.wf-choice:has(input:focus-visible) { outline: 3px solid var(--leaf); outline-offset: 2px; }
.wf-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.wf-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--leaf-deep); flex: none; }
.wf-other { margin-top: 8px; }
.wf-note { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); color: var(--muted); font-size: 14px; }
.wf-step { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 14px; font-weight: 700; color: var(--muted); }
.wf-form-error { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: #fbeae9; color: var(--danger); font-size: 14px; font-weight: 600; }
.wf-form-error:empty { display: none; }
.wf-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.wf-actions small { color: var(--muted); font-size: 13px; max-width: 38ch; }
.wf-actions small a { color: var(--ink); }
.wf-buttons { display: flex; gap: 10px; margin-left: auto; }
.wf-success { display: grid; justify-items: start; gap: 14px; padding: 8px 0; }
.wf-success-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--leaf-tint); color: var(--leaf-deep); font-size: 28px; }
.wf-success-icon .icon { stroke-width: 2.5; }
.wf-success h3 { font-size: 26px; }
.wf-success p { color: var(--muted); }
.wf-skeleton { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.wf-skeleton span { display: block; height: 76px; border-radius: 12px; background: linear-gradient(90deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); background-size: 200% 100%; animation: wf-shimmer 1.4s ease-in-out infinite; }
.wf-skeleton span.is-wide { grid-column: 1 / -1; height: 150px; }
@keyframes wf-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Legal text */
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: 18px 0 32px; }
.legal h2 { font-size: 26px; margin: 48px 0 14px; letter-spacing: -0.02em; }
.legal h3 { font-size: 19px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; color: var(--muted); }
.todo { padding: 1px 6px; border-radius: 6px; background: #fff3c4; color: #6b4e00; font-weight: 700; }
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: #fff3c4; color: #5a4200; font-size: 15px; font-weight: 600; }
.notice .icon { flex: none; font-size: 20px; margin-top: 2px; }

/* Footer */
.footer { padding: 64px 0 32px; background: var(--ink); color: rgba(255, 255, 255, 0.72); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand strong { display: block; color: #fff; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.footer h2 { margin: 0 0 14px; color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--leaf); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; }

/* Mobile action bar */
.mobile-bar { display: none; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav, .header-cta .phone-link { display: none; }
  .menu-toggle { display: grid; }
  .header-cta { margin-left: auto; }
  .header.nav-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 80px; left: 0; right: 0;
    padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .header.nav-open .nav a { padding: 14px 12px; font-size: 17px; color: var(--ink); }
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-lead { max-width: 52ch; }
  .hero-media { height: clamp(360px, 70vw, 560px); }
  .hero-badge { left: 16px; }
  .page-hero-media { aspect-ratio: 16 / 10; }
  .section-head { grid-template-columns: 1fr; }
  .service-grid, .tile-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .feature { grid-template-columns: 1fr; }
  .feature-reverse .feature-media { order: 0; }
  .why-media { aspect-ratio: 16 / 10; }
  .contact-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .header-inner { height: 68px; gap: 12px; }
  .header.nav-open .nav { top: 68px; }
  .logo img { height: 46px; }
  .header-cta .btn { display: none; }
  .hero h1 em { white-space: normal; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-media { grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; height: 460px; gap: 10px; }
  .hero-media figure:first-child { grid-row: auto; grid-column: 1 / 3; }
  .hero-badge { left: 12px; right: 12px; bottom: auto; top: 12px; }
  .service-grid, .steps, .more-grid, .why-list, .wf-grid, .wf-skeleton, .footer-grid, .tile-grid { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .card-photo { grid-row: auto; min-height: 420px; }
  .region { padding: 24px; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(246, 244, 238, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 48px; padding: 0 12px; }
}
