:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #222421;
  --muted: #5f665c;
  --green: #789b57;
  --green-dark: #456237;
  --sage: #e9efe3;
  --line: #dfe5d8;
  --gold: #a98d5d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 56px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 10px rgba(47, 83, 43, 0.16));
}

.brand-leaf-image {
  display: block;
  width: 38px;
  height: auto;
}

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

.brand small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.menu-toggle,
.mobile-download-link {
  display: none;
}

.menu-toggle {
  min-height: 42px;
  padding: 0 14px;
  color: white;
  background: var(--green-dark);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-button {
  border: 0;
  padding: 8px 12px;
  background: transparent;
  cursor: pointer;
}

.lang-button.is-active {
  color: white;
  background: var(--green-dark);
}

.section-band {
  padding: clamp(48px, 8vw, 88px) clamp(18px, 5vw, 72px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  min-height: 640px;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.96) 0%, rgba(251, 250, 246, 0.9) 42%, rgba(251, 250, 246, 0.48) 68%, rgba(251, 250, 246, 0.2) 100%),
    url("./assets/hero/home-service-hero.jpg");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.hero > *,
.content-grid > *,
.card-grid > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
}

h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.hero-text {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.hero-trust-list li {
  max-width: 100%;
  padding: 8px 12px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(120, 155, 87, 0.32);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.button.primary {
  color: white;
  background: var(--green-dark);
}

.button.secondary {
  color: var(--green-dark);
  background: var(--sage);
}

.hero-panel {
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(40, 54, 35, 0.08);
  backdrop-filter: blur(8px);
}

.hero-decision-card h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.decision-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.decision-list div {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.decision-list dt {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.decision-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero-panel ul {
  padding-left: 20px;
  margin: 24px 0 0;
}

.brand-strip {
  display: flex;
  justify-content: space-between;
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  padding: 22px clamp(18px, 5vw, 72px);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logo-row {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.brand-plus {
  color: var(--gold);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  line-height: 1;
}

.brand-logo {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(40, 54, 35, 0.08));
}

.greenpalm-logo {
  width: clamp(180px, 22vw, 300px);
  height: auto;
}

.zen-logo {
  width: clamp(210px, 25vw, 340px);
  height: auto;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.muted-band {
  background: var(--sage);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 28px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.section-heading p,
.content-grid p {
  color: var(--muted);
  font-size: 17px;
}

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

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

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

.join-grid ul {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}

.join-grid a {
  color: var(--green-dark);
  font-weight: 800;
}

.key-details-card {
  background: #f8f5ee;
}

.info-card,
.referral-form,
.video-script-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.referral-section {
  grid-template-columns: 1fr;
  gap: 24px;
}

.referral-guide {
  max-width: 940px;
}

.referral-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.referral-summary p {
  flex: 1 1 360px;
  margin: 0;
}

.referral-contact-lines {
  display: grid;
  gap: 6px;
}

.referral-contact-lines a {
  color: var(--green-dark);
  font-weight: 800;
}

.referral-form {
  display: grid;
  gap: 18px;
}

.referral-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.referral-form legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--green-dark);
  font-weight: 800;
}

.referral-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.field-label {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.field-label em {
  padding: 3px 8px;
  color: var(--green-dark);
  background: var(--sage);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
}

.wide-field,
.checkbox-row {
  grid-column: 1 / -1;
}

.referral-form input,
.referral-form textarea,
.referral-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  background: white;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox-row input {
  width: auto;
  margin-top: 5px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  padding: 0;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
}

.form-status:not(:empty) {
  padding: 12px 14px;
  border: 1px solid rgba(62, 101, 52, 0.22);
  border-radius: 6px;
  background: #eef4ec;
}

.form-status.is-error {
  color: #7a2f2f;
  border-color: rgba(122, 47, 47, 0.25);
  background: #f8eeee;
}

.form-status a {
  color: inherit;
  text-decoration: underline;
}

.referral-form.is-submitting button[type="submit"] {
  cursor: wait;
  opacity: 0.7;
}

.process-band {
  background: #f8f5ee;
}

.video-script-card {
  display: grid;
  gap: 18px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(40, 54, 35, 0.08);
}

.video-player-frame {
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.video-player-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.video-caption {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.contact-band {
  color: white;
  background: var(--green-dark);
}

.contact-band .eyebrow,
.contact-band a {
  color: white;
}

.contact-band .section-heading p {
  color: rgba(255, 255, 255, 0.82);
}

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

.contact-action-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.contact-action-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}

.contact-card-actions .button {
  height: 46px;
  min-height: 46px;
  white-space: nowrap;
}

.light-button {
  color: var(--green-dark) !important;
  background: white !important;
}

.light-outline {
  color: white !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

[data-lang="zh"] {
  display: none;
}

html.lang-zh [data-lang="en"] {
  display: none;
}

html.lang-zh [data-lang="zh"] {
  display: revert;
}

html.lang-zh .button[data-lang="zh"] {
  display: inline-flex;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-x: visible;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .mobile-download-link {
    display: block;
    color: var(--green-dark);
    font-weight: 800;
  }

  .language-switch {
    justify-self: end;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.92) 55%, rgba(251, 250, 246, 0.72) 100%),
      url("./assets/hero/home-service-hero.jpg");
    background-position: 62% center;
  }

  .content-grid,
  .card-grid,
  .card-grid.four,
  .faq-grid,
  .trust-grid,
  .join-grid,
  .contact-action-grid {
    grid-template-columns: 1fr;
  }

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

  .brand-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-row {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .greenpalm-logo {
    width: min(260px, 78vw);
  }

  .zen-logo {
    width: min(300px, 82vw);
  }

  .site-footer {
    flex-direction: column;
  }
}
