:root {
  --bg: #f7fbf8;
  --surface: #ffffff;
  --surface-strong: #eef8f1;
  --ink: #10201a;
  --muted: #5a6a63;
  --green: #15945b;
  --green-dark: #0a653e;
  --blue: #1769aa;
  --gold: #e7b84b;
  --line: rgba(16, 32, 26, 0.12);
  --shadow: 0 24px 60px rgba(19, 77, 48, 0.14);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

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

.narrow {
  max-width: 820px;
}

.skip-link,
.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 20px;
  top: 20px;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 251, 248, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(14, 58, 37, 0.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.custom-logo {
  max-height: 58px;
  width: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

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

.brand-text strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu a {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.menu a:hover,
.menu a:focus {
  color: var(--green-dark);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.header-cta,
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 14px 28px rgba(21, 148, 91, 0.22);
}

.btn-secondary {
  background: #fff;
  color: var(--green-dark);
  border-color: var(--line);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
  background:
    radial-gradient(circle at 20% 10%, rgba(21, 148, 91, 0.16), transparent 32%),
    linear-gradient(135deg, #f7fbf8 0%, #eef8f1 52%, #eaf4ff 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 42%;
  height: 360px;
  background: radial-gradient(circle, rgba(231, 184, 75, 0.22), transparent 60%);
  pointer-events: none;
}

.hero-grid,
.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 18px;
}

h3 {
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero p,
.page-hero p,
.section-head p,
.section-copy {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 8px 11px;
  border: 1px solid rgba(21, 148, 91, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-panel {
  position: relative;
  z-index: 1;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

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

.panel-top span {
  color: var(--muted);
}

.flow-list {
  display: grid;
  gap: 14px;
  padding-top: 20px;
}

.flow-list div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.flow-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--green-dark);
  font-weight: 900;
}

.flow-list p {
  margin: 0;
  font-weight: 750;
}

.section {
  padding: 86px 0;
}

.section-muted {
  background: #ffffff;
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

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

.service-card,
.stat-card,
.post-card,
.lead-form,
.compliance-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(16, 32, 26, 0.06);
}

.service-card {
  padding: 28px;
}

.card-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 10px 22px rgba(23, 105, 170, 0.18);
}

.service-card p,
.rich-text,
.step p,
.footer-grid p,
.footer-grid li,
.post-card p {
  color: var(--muted);
}

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

.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 18px;
  border-left: 4px solid var(--green);
  background: var(--surface-strong);
  border-radius: var(--radius);
}

.step strong {
  color: var(--green-dark);
}

.stat-card {
  padding: 26px;
}

.stat-card strong {
  display: block;
  color: var(--green-dark);
  font-size: 38px;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card span {
  color: var(--muted);
  font-weight: 750;
}

.compliance-section {
  padding-top: 0;
}

.compliance-box {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px;
  background: #10201a;
  color: #fff;
}

.compliance-box .eyebrow {
  color: var(--gold);
}

.compliance-box p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.contact-section {
  background: linear-gradient(180deg, #fff, #eef8f1);
}

.check-list {
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 750;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfb;
  color: var(--ink);
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 3px solid rgba(21, 148, 91, 0.18);
  border-color: var(--green);
}

.notice-inline {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--green-dark);
  font-weight: 800;
}

.page-hero {
  padding: 78px 0;
  background: linear-gradient(135deg, #eef8f1, #eaf4ff);
}

.page-hero.compact {
  padding: 68px 0;
}

.entry-content {
  font-size: 18px;
}

.entry-content a {
  color: var(--green-dark);
  text-decoration: underline;
}

.featured-image {
  margin-top: 40px;
}

.featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

.post-card {
  overflow: hidden;
}

.post-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card-body {
  padding: 22px;
}

.post-card h2 {
  font-size: 24px;
}

.meta {
  font-size: 13px;
  font-weight: 800;
  color: var(--green-dark);
}

.link-arrow {
  color: var(--green-dark);
  font-weight: 900;
}

.pagination {
  grid-column: 1 / -1;
}

.site-footer {
  padding: 60px 0 26px;
  background: #10201a;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-grid h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.footer-grid ul {
  padding-left: 18px;
  margin: 0;
}

.footer-grid p,
.footer-grid li,
.site-footer .brand-text small {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.66);
}

.footer-menu {
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: fixed;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .menu {
    display: grid;
    gap: 12px;
  }

  .header-cta {
    display: none;
  }

  .hero-grid,
  .two-column,
  .contact-grid,
  .compliance-box {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .stats-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-text small {
    display: none;
  }

  .hero,
  .section,
  .page-hero,
  .page-hero.compact {
    padding: 54px 0;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-panel,
  .lead-form,
  .compliance-box,
  .service-card,
  .stat-card {
    padding: 20px;
  }

  .card-grid,
  .stats-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom,
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn,
  .header-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
