:root {
  color-scheme: light;
  --ink: #14231d;
  --ink-soft: #43534c;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --line: #dfe5dd;
  --green: #3f674f;
  --green-dark: #203d30;
  --blue: #335c67;
  --clay: #c76536;
  --gold: #d9a441;
  --danger: #9b2f22;
  --shadow: 0 18px 60px rgba(20, 35, 29, 0.13);
  --radius: 8px;
  --header: 74px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: var(--header);
  padding: 12px clamp(18px, 4vw, 44px);
  color: var(--ink);
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid rgba(223, 229, 221, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark), var(--blue));
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.82rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 26px);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  content: "";
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-link {
  color: var(--green-dark);
  font-weight: 760;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 760;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
.link-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(32, 61, 48, 0.18);
}

.button-small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.92rem;
}

.button-contrast {
  background: var(--clay);
}

.button-blue {
  background: var(--blue);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.button-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-ghost-dark {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - var(--header)));
  display: grid;
  align-items: end;
  isolation: isolate;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(11, 22, 18, 0.88), rgba(11, 22, 18, 0.54) 42%, rgba(11, 22, 18, 0.06)), var(--hero-image, url("assets/images/hero-home.webp"));
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 35%;
  background: linear-gradient(0deg, rgba(20, 35, 29, 0.88), rgba(20, 35, 29, 0));
  content: "";
}

.hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(86px, 12vw, 140px) 24px clamp(62px, 8vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  background: var(--gold);
  content: "";
}

.hero h1,
.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.35rem, 6.1vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 24px 24px;
}

.proof-item {
  min-height: 104px;
  padding: 18px;
  background: rgba(247, 248, 245, 0.92);
  color: var(--ink);
  border-top: 3px solid var(--gold);
}

.proof-item strong {
  display: block;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1;
}

.proof-item span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.section {
  padding: clamp(58px, 8vw, 104px) 24px;
}

.section-dark {
  background: var(--ink);
  color: #fff;
}

.section-white {
  background: var(--surface);
}

.section-green {
  background: #edf4ee;
}

.section-blue {
  background: #edf5f6;
}

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.6fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  margin-bottom: 34px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--clay);
  font-weight: 780;
}

.section-dark .section-kicker {
  color: #efb264;
}

.section h2,
.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.section-dark .section-head p,
.section-dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

.muted {
  color: var(--ink-soft);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.section-dark .card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.16;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.section-dark .card p {
  color: rgba(255, 255, 255, 0.72);
}

.card-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--green-dark);
  font-weight: 780;
}

.section-dark .card-link {
  color: #f3c16d;
}

.media-card {
  min-height: 420px;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 0;
  color: #fff;
  background-image: linear-gradient(180deg, rgba(20, 35, 29, 0.02), rgba(20, 35, 29, 0.82)), var(--image);
  background-position: center;
  background-size: cover;
}

.media-card-content {
  width: 100%;
  padding: 24px;
}

.media-card p {
  color: rgba(255, 255, 255, 0.76);
}

.tag-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag,
.filter-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 680;
}

.section-dark .tag {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.filter-button {
  cursor: pointer;
}

.filter-button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.lead-strip {
  position: relative;
  z-index: 3;
  margin-top: -42px;
  padding: 0 24px;
}

.lead-strip-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quick-form,
.detail-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.detail-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 760;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border 0.18s ease, box-shadow 0.18s ease;
}

.form-field textarea {
  min-height: 118px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(63, 103, 79, 0.13);
}

.form-wide {
  grid-column: 1 / -1;
}

.form-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.status-message {
  margin-top: 12px;
  color: var(--green-dark);
  font-weight: 760;
}

.section-dark .form-field label,
.section-dark .form-note {
  color: rgba(255, 255, 255, 0.74);
}

.section-dark .status-message {
  color: #f3c16d;
}

.page-hero {
  position: relative;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(14, 27, 23, 0.9), rgba(14, 27, 23, 0.52) 54%, rgba(14, 27, 23, 0.08)), var(--hero-image, url("assets/images/hero-home.webp"));
  background-position: center;
  background-size: cover;
}

.page-hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(84px, 10vw, 132px) 24px clamp(64px, 8vw, 92px);
}

.page-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.breadcrumbs a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.compare-table,
.kpi-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef3ef;
  color: var(--ink);
  font-size: 0.86rem;
}

tr:last-child td {
  border-bottom: 0;
}

.timeline {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.timeline-item::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.timeline-item h3 {
  margin: 0 0 4px;
}

.timeline-item p {
  margin: 0;
  color: var(--ink-soft);
}

.quiz {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.quiz-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.quiz-body {
  padding: 22px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.option-button {
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.option-button:hover,
.option-button.selected {
  border-color: var(--green);
  background: #eef6ef;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  min-height: 58px;
  padding: 17px 48px 17px 18px;
  font-weight: 780;
  cursor: pointer;
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--ink-soft);
}

.case-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.case-image {
  background-image: linear-gradient(180deg, rgba(20, 35, 29, 0.04), rgba(20, 35, 29, 0.36)), var(--case-image, url("assets/images/hero-home.webp"));
  background-position: center;
  background-size: cover;
}

.case-body {
  padding: 20px;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.case-meta span {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.review {
  display: grid;
  gap: 14px;
}

.stars {
  color: var(--gold);
  font-weight: 900;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.map-placeholder {
  min-height: 420px;
  display: grid;
  align-items: end;
  padding: 24px;
  color: #fff;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20, 35, 29, 0.84), rgba(51, 92, 103, 0.72)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 18px);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
}

.metric {
  padding: 22px;
  background: var(--surface);
}

.metric strong {
  display: block;
  color: var(--green-dark);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.legal-text {
  max-width: 860px;
}

.legal-text h2 {
  margin-top: 38px;
  font-size: 1.65rem;
}

.legal-text p,
.legal-text li {
  color: var(--ink-soft);
}

.site-footer {
  padding: 54px 24px 72px;
  background: #101b17;
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 0.7fr));
  gap: 28px;
  margin: 0 auto;
}

.footer-brand .brand-mark {
  background: linear-gradient(135deg, var(--clay), var(--gold));
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin: 9px 0;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand small,
.site-footer p {
  color: rgba(255, 255, 255, 0.62);
}

.sticky-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(20, 35, 29, 0.9);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    inset: var(--header) 0 auto;
    display: none;
    grid-column: 1 / -1;
    justify-items: start;
    padding: 18px 24px 24px;
    background: rgba(247, 248, 245, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: grid;
  }

  .header-actions {
    display: none;
  }

  .section-head,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof,
  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --header: 66px;
  }

  .site-header {
    padding: 10px 16px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 720px;
    background-position: 62% center;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .hero-copy,
  .page-hero p {
    font-size: 1rem;
  }

  .hero-proof,
  .grid-3,
  .grid-2,
  .footer-grid,
  .detail-form,
  .quiz-options {
    grid-template-columns: 1fr;
  }

  .quick-form {
    grid-template-columns: 1fr;
  }

  .lead-strip {
    margin-top: 0;
    padding: 18px 16px 0;
  }

  .section,
  .page-hero-inner,
  .hero-inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .sticky-cta {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .sticky-cta .button {
    flex: 1;
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (max-width: 520px) {
  .hero-proof,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .quiz-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .proof-item {
    min-height: auto;
  }
}
