/* Homes LLC static draft. System fonts only — no third-party stylesheets.
   Turnstile (quiz contact step only) is the sole third-party script.
   Palette: cream + lighter avocado. Button text is dark olive, not white.
   #2F3B12 on --accent #9BBF4A is 5.67:1; on hover #8DB33A is 4.92:1.
   Light avocado fails 4.5:1 as a link on cream, so links use dark olive
   with a green underline. Focus is #6B8E23 (3.37:1 on paper). */
:root {
  --ink: #3A4520;
  --btn-text: #2F3B12;
  --muted: #4C5830;
  --accent: #9BBF4A;
  --accent-hover: #8DB33A;
  --paper: #F6F1E4;
  --surface: #FBF8EF;
  --white: #FFFFFF;
  --line: #8A8458;
  --choice-selected: #E8EED4;
  --image-fallback: #E8E4D4;
  --footer-bg: #E4EBC8;
  --footer-text: #3A4520;
  --footer-muted: #4C5830;
  --error: #8B1E1E;
  --error-bg: #F8E8E0;
  --focus: #6B8E23;
  --shadow: 0 16px 40px rgba(58, 69, 32, 0.10);
  --radius: 18px;
  --font: system-ui, "Segoe UI", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  accent-color: var(--btn-text);
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 0.15em;
}
a:hover {
  color: var(--btn-text);
  text-decoration-color: var(--accent-hover);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: var(--btn-text);
  padding: 8px 12px;
  z-index: 1000;
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.logo {
  font-weight: 750;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
}
.logo span { display: block; font-weight: 500; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 600; }
.nav a:hover {
  color: var(--btn-text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}
.lang-switch { font-weight: 700; border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 0.85rem; }
.header-cta { display: flex; gap: 8px; align-items: center; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--btn-text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--btn-text); }
.btn-secondary { background: transparent; color: var(--btn-text); border-color: var(--accent); }
.btn-secondary:hover { background: var(--choice-selected); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.hero {
  padding: 72px 0 56px;
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700; color: var(--muted); margin: 0 0 12px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.15; margin: 0 0 16px; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 16px; max-width: 40rem; }
.pricing-note { margin: 0 0 24px; font-size: 0.95rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-panel p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.hero-panel strong { color: var(--ink); display: block; font-size: 1.15rem; margin-bottom: 6px; }

.hero-callout { margin: 0 0 24px; font-size: 0.95rem; color: var(--muted); max-width: 40rem; }
.hero-callout strong { color: var(--ink); }
.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--image-fallback);
}
.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1282;
  object-fit: cover;
  display: block;
}

.card {
  overflow: hidden;
}
.card-media {
  margin: -24px -24px 16px;
  background: var(--image-fallback);
}
.card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.gallery-note { color: var(--muted); font-size: 0.92rem; margin: 0 0 16px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--image-fallback);
  display: block;
}
.gallery-grid figcaption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.filter-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--btn-text);
  border-color: var(--accent);
}
.gallery-count {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
}
.gallery-open {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.gallery-open:hover img,
.gallery-open:focus-visible img {
  box-shadow: var(--shadow);
}
.gallery-grid figure[hidden] { display: none; }

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px 40px;
  background: rgba(47, 59, 18, 0.94);
  color: var(--white);
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(47, 59, 18, 0.94); }
body.lightbox-open { overflow: hidden; }
body.lightbox-open .site-header { visibility: hidden; }
.lightbox-figure {
  margin: 0;
  max-width: min(1600px, calc(100vw - 140px));
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #1F2A0C;
  border-radius: 8px;
}
.lightbox-figure figcaption {
  margin: 10px 0 0;
  font-size: 0.95rem;
  text-align: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.6rem;
}
.lightbox-prev,
.lightbox-next {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 2rem;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
}
@media (max-width: 700px) {
  .lightbox { padding: 56px 8px 24px; gap: 4px; }
  .lightbox-figure { max-width: calc(100vw - 16px); }
  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    bottom: 8px;
  }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
}

.section { padding: 72px 0; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.section-intro { color: var(--muted); max-width: 42rem; margin: 0 0 32px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.step-num { font-weight: 800; color: var(--muted); letter-spacing: 0.08em; font-size: 0.8rem; }
.step h3 { margin: 8px 0; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.gallery { display: grid; gap: 28px; }
.compare {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--image-fallback);
  aspect-ratio: 4 / 3;
  isolation: isolate;
  container-type: inline-size;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after-clip { position: absolute; inset: 0 auto 0 0; overflow: hidden; width: 50%; height: 100%; }
.compare .after-clip img { width: 100cqi; max-width: none; height: 100%; }
.compare .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}
.compare .handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent);
  transform: translate(-50%, -50%);
}
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 2;
}
.compare-caption { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .compare { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .compare img, .compare .after-clip, .compare .handle, .compare-range { position: static; width: 100%; height: auto; }
  .compare .after-clip { width: 100%; }
  .compare .handle, .compare-range { display: none; }
}

/* LISTING-OFFER block: keep headline, small print, CTAs and nearby disclosure together. */
.listing-offer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.listing-offer h2 { margin-top: 0; }
.listing-offer .fine { color: var(--muted); font-size: 0.92rem; margin: 0 0 20px; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.referral { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.referral h3 { margin: 0 0 8px; font-size: 1.2rem; }
.disclosure {
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.area-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.area-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 0.88rem; }

.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 0 28px; }
.site-footer a { color: var(--footer-text); text-decoration-color: var(--accent); }
.site-footer a:hover { color: var(--btn-text); text-decoration-color: var(--accent-hover); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.site-footer h2, .site-footer h3 { margin: 0 0 10px; font-size: 1.05rem; }
.site-footer p, .site-footer address { margin: 0 0 8px; font-style: normal; }
.footer-note { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 0.85rem; color: var(--footer-muted); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.footer-note p { margin: 0; }
.footer-legal { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Quiz */
.quiz-page { padding: 36px 0 64px; }
.quiz-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px 24px;
}
.progress { height: 6px; background: var(--muted); border-radius: 99px; overflow: hidden; margin: 8px 0 18px; }
.progress > span { display: block; height: 100%; background: var(--accent); width: 0; }
.quiz-card h1, .quiz-card h2 { font-size: 1.55rem; margin: 0 0 8px; }
.step-label { font-size: 0.82rem; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.choices { display: grid; gap: 10px; margin: 18px 0; }
.choice {
  text-align: left;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  color: var(--ink);
}
.choice[aria-pressed="true"], .choice:hover { border-color: var(--accent); background: var(--choice-selected); }
.field { margin: 14px 0; }
.field label, .field-label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; }
.check input { margin-top: 4px; }
.check label { font-size: 0.88rem; line-height: 1.45; }
.field-error, .form-error { color: var(--error); font-size: 0.88rem; margin: 6px 0 0; }
.error-field input, .error-field select, .error-field textarea { border-color: var(--error); background: var(--error-bg); }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.example-note { font-size: 0.85rem; color: var(--muted); margin: 0 0 8px; }
.thanks-phone { margin: 18px 0; }
#turnstile-host { margin: 16px 0; min-height: 4px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .cards, .steps, .footer-grid, .field-row, .gallery-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 20px;
    gap: 12px;
  }
  .nav.open { display: flex; }
  .hero { padding: 40px 0 32px; }
  .section { padding: 48px 0; }
  .header-cta .btn-secondary { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
}

/* Interior pages (blog, book, videos, refer) */
.page-hero { padding: 48px 0 12px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.page-hero .lede { margin: 0 0 8px; }
.lang-note { color: var(--muted); font-size: 0.92rem; margin: 0 0 16px; }
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 0.7rem; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.3rem 0; }
.prose .caption { color: var(--muted); font-size: 0.95rem; }
.post-meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 24px; }
.featured-media { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; background: var(--image-fallback); box-shadow: var(--shadow); }
.featured-media img { width: 100%; height: auto; display: block; }
.post-list { display: grid; gap: 22px; margin: 28px 0; }
.post-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; }
.post-card:hover { border-color: var(--accent-hover); }
.post-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; background: var(--image-fallback); }
.post-card-body { padding: 18px 18px 18px 0; }
.post-card h2 { margin: 0 0 8px; font-size: 1.2rem; color: var(--ink); }
.post-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.video-grid, .service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 28px 0; }
.video-card, .book-card, .offer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-card h2, .book-card h2, .offer-card h2 { margin: 0 0 8px; font-size: 1.15rem; }
.video-card .card-body, .book-card, .offer-card { padding: 18px; }
.video-frame { position: relative; background: var(--image-fallback); aspect-ratio: 16 / 9; overflow: hidden; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card--short { grid-column: 1 / -1; }
.video-frame--portrait {
  aspect-ratio: 9 / 16;
  max-width: 22.5rem;
  width: 100%;
  margin-inline: auto;
  background: #1a1a14;
}
.video-frame--portrait img { object-fit: contain; }
.video-facade {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.video-facade picture,
.video-facade img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.video-frame--portrait .video-facade img { object-fit: contain; }
.video-facade:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.video-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--btn-text);
}
.video-fallback {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.book-card .meta { color: var(--muted); margin: 0 0 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0 0 6px; }
@media (max-width: 860px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card-body { padding: 16px; }
  .video-grid, .service-list { grid-template-columns: 1fr; }
}
