/* MyHomeTX — pine-and-limestone palette, carved-stone display type */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --fg: #1e2a24;
  --muted: #5b665f;
  --line: #dcdcd3;
  --pine: #24453a;
  --bronze: #8a6a3d;
  --on-pine: #f3f1ea;
  --font-display: "Marcellus", "Trajan Pro", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131a17; --surface: #1a231f; --fg: #e9ebe4; --muted: #a3ada6; --line: #2c3833;
    --pine: #3f6f5e; --bronze: #c9a46c; --on-pine: #f3f1ea; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131a17; --surface: #1a231f; --fg: #e9ebe4; --muted: #a3ada6; --line: #2c3833;
  --pine: #3f6f5e; --bronze: #c9a46c; --on-pine: #f3f1ea; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; margin: 0; line-height: 1.2; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); font-weight: 600; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
@media (min-width: 821px) { .site-header { position: sticky; top: 0; z-index: 20; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-size: 24px; letter-spacing: .08em; text-decoration: none; color: var(--pine); }
.brand span { color: var(--bronze); }
.nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--pine); border-bottom-color: var(--bronze); }

/* Hero slideshow */
.hero { position: relative; height: clamp(420px, 62vw, 640px); overflow: hidden; background: #1e2a24; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.slide.is-active { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,14,.15) 0%, rgba(10,18,14,.25) 45%, rgba(10,18,14,.72) 100%); pointer-events: none; }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: 56px; color: #f3f1ea; }
.hero-copy .eyebrow { color: #e3c999; }
.hero-copy h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.08; letter-spacing: .02em; max-width: 16ch; margin-top: 10px; }
.hero-copy p { max-width: 52ch; margin: 14px 0 0; font-size: 17px; color: #e6e4dc; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 3px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: #f3f1ea; color: #1e2a24; }
.btn-ghost { border-color: rgba(243,241,234,.7); color: #f3f1ea; }
.btn-pine { background: var(--pine); color: var(--on-pine); }
.btn-line { border-color: var(--line); color: var(--fg); background: var(--surface); }
.dots { position: absolute; z-index: 3; right: var(--gutter-r); bottom: 22px; display: flex; gap: 8px; }
.dots button { width: 28px; height: 4px; border: 0; padding: 0; background: rgba(243,241,234,.4); cursor: pointer; border-radius: 2px; }
.dots button[aria-current="true"] { background: #f3f1ea; }

/* Page header (inner pages) */
.page-head { background: var(--pine); color: var(--on-pine); padding-block: 56px 48px; }
.page-head .eyebrow { color: #e3c999; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; margin-top: 10px; max-width: 20ch; }
.page-head p { max-width: 60ch; margin: 14px 0 0; color: rgba(243,241,234,.82); font-size: 17px; }

/* Sections */
.section { padding-block: 72px; }
.section.tight { padding-block: 48px; }
.section-head { display: grid; gap: 10px; max-width: 60ch; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { margin: 0; color: var(--muted); }

/* Quick search band */
.search-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.search-band .wrap { padding-block: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; align-items: center; }
.search-band h2 { font-size: 28px; color: var(--pine); }
.search-band p { margin: 6px 0 0; color: var(--muted); }

/* Lanes */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.lane { padding: 28px 28px 32px 0; display: grid; gap: 12px; align-content: start; min-width: 0; }
.lane + .lane { padding-left: 28px; border-left: 1px solid var(--line); }
.lane h3 { font-size: 24px; color: var(--pine); }
.lane p { margin: 0; color: var(--muted); }
.lane ul { margin: 4px 0 0; padding-left: 18px; font-size: 15px; }
a.more { font-weight: 600; font-size: 14px; color: var(--bronze); text-decoration: none; margin-top: 6px; }
a.more:hover { text-decoration: underline; }

/* Villages band */
.villages { background: var(--pine); color: var(--on-pine); }
.villages .eyebrow { color: #e3c999; }
.villages .section-head p { color: rgba(243,241,234,.78); }
.village-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(243,241,234,.22); }
.village-list li { border-bottom: 1px solid rgba(243,241,234,.22); }
.village-list a { display: flex; justify-content: space-between; gap: 12px; padding: 16px 24px 16px 0; font-family: var(--font-display); font-size: 20px; letter-spacing: .03em; text-decoration: none; }
.village-list a:hover { color: #e3c999; }
.village-list small { font-family: var(--font-body); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,241,234,.6); align-self: center; }

/* Widget frames */
.widget { background: var(--surface); border: 1px solid var(--line); }
.widget iframe { display: block; width: 100%; border: 0; background: #fff; }
.widget .widget-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.widget .widget-bar a { color: var(--bronze); font-weight: 600; text-decoration: none; }
.widget-pending { padding: 40px 24px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.widget-pending strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--pine); }
.h-search { height: 160px; }
.h-tall { height: 1100px; }
.h-mid { height: 820px; }
.h-form { height: 640px; }

/* Cards and two-column */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card h3 { font-size: 22px; color: var(--pine); }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 28px; color: var(--bronze); line-height: 1.1; }
.steps h3 { font-size: 21px; color: var(--pine); }
.steps p { margin: 4px 0 0; color: var(--muted); }

/* Prose */
.prose { max-width: 70ch; }
.prose p { margin: 0 0 14px; }
.prose dl { margin: 0; border-top: 1px solid var(--line); }
.prose dt { font-weight: 600; padding-top: 16px; }
.prose dd { margin: 4px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--bronze); padding-left: 14px; }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--fg); width: 100%; }
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Contact */
.contact-card { background: var(--surface); border: 1px solid var(--line); padding: 28px; display: grid; gap: 14px; align-content: start; }
.contact-card .label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-card .value { font-size: 18px; font-weight: 500; word-break: break-word; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--muted); }

@media (max-width: 900px) {
  .search-band .wrap { grid-template-columns: 1fr; gap: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .lanes { grid-template-columns: 1fr; }
  .lane, .lane + .lane { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .village-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .h-tall { height: 900px; }
}
@media (max-width: 480px) {
  .village-list { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 48px; }
  .hero-copy p { font-size: 16px; }
  .form .row { grid-template-columns: 1fr; }
  .site-header .wrap { padding-block: 10px; }
  .nav { gap: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } html { scroll-behavior: auto; } }
.grid-2 { align-items: start; }
.section-head { align-content: start; }
.villages .prose dl { border-top-color: rgba(243,241,234,.22); }
.villages .prose dd { color: rgba(243,241,234,.8); border-bottom-color: rgba(243,241,234,.22); }

/* HAR launch panels */
.widget-launch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px; }
.launch-copy { display: grid; gap: 6px; }
.launch-copy strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--pine); }
.launch-copy span { color: var(--muted); }
.launch-action { display: grid; gap: 6px; justify-items: end; }
.launch-action small { font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  .widget-launch { grid-template-columns: 1fr; }
  .launch-action { justify-items: stretch; text-align: center; }
}

/* ===== Cinematic home (full-screen hero, slow zoom, scroll reveals) ===== */
.has-hero .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: transparent; border-bottom-color: transparent; transition: background .4s ease, border-color .4s ease, box-shadow .4s ease; }
.has-hero .site-header .brand { color: #f3f1ea; }
.has-hero .site-header .brand span { color: #e3c999; }
.has-hero .site-header .nav a { color: rgba(243,241,234,.85); }
.has-hero .site-header .nav a:hover { color: #fff; }
.has-hero.scrolled .site-header { background: var(--bg); border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.has-hero.scrolled .site-header .brand { color: var(--pine); }
.has-hero.scrolled .site-header .brand span { color: var(--bronze); }
.has-hero.scrolled .site-header .nav a { color: var(--muted); }

.hero { height: 100vh; height: 100svh; min-height: 560px; }
.hero .slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.8s ease; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transform-origin: 50% 60%; }
.hero .slide.is-active { opacity: 1; }
.hero .slide.is-active img, .hero .slide.is-leaving img { animation: drift1 10s linear forwards; }
.hero .slide.is-leaving { opacity: 0; }
.hero .slide:nth-child(2).is-active img, .hero .slide:nth-child(2).is-leaving img { animation-name: drift2; }
.hero .slide:nth-child(3).is-active img, .hero .slide:nth-child(3).is-leaving img { animation-name: drift3; }
/* Slow push-in with a gentle drift, like a camera moving forward */
@keyframes drift1 { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.22) translate3d(-2%,-1.5%,0); } }
@keyframes drift2 { from { transform: scale(1.22) translate3d(1.5%,1%,0); } to { transform: scale(1.04) translate3d(0,0,0); } }
@keyframes drift3 { from { transform: scale(1.04) translate3d(1%,0,0); } to { transform: scale(1.2) translate3d(-1.5%,1%,0); } }
.hero-stage { position: absolute; inset: 0; will-change: transform; } }
.hero::after { background: linear-gradient(180deg, rgba(10,18,14,.55) 0%, rgba(10,18,14,.25) 35%, rgba(10,18,14,.35) 65%, rgba(10,18,14,.8) 100%); z-index: 1; }
.hero-copy { top: 0; display: grid; align-items: center; text-align: center; padding: 80px 0 60px; }
.hero-copy .wrap { display: grid; justify-items: center; }
.hero-copy h1 { max-width: 18ch; font-size: clamp(40px, 7vw, 88px); line-height: 1.04; }
.hero-copy h1 em { font-style: italic; color: #e3c999; }
.hero-copy p { margin-inline: auto; }
.hero-actions { justify-content: center; }
.hero-copy .eyebrow, .hero-copy h1, .hero-copy p, .hero-actions { opacity: 0; transform: translateY(24px); animation: fadeUp 1s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-copy h1 { animation-delay: .15s; }
.hero-copy p { animation-delay: .35s; }
.hero-actions { animation-delay: .55s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.btn { transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-ghost:hover { background: rgba(243,241,234,.12); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(243,241,234,.7); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #f3f1ea; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.dots { bottom: 30px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Parallax photo band */
.photo-band { position: relative; height: clamp(420px, 70vh, 640px); overflow: hidden; color: #f3f1ea; display: grid; align-items: center; background: #1e2a24; }
.photo-band-img { position: absolute; inset: -18% 0; will-change: transform; }
.photo-band-img img { width: 100%; height: 100%; object-fit: cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: rgba(10,18,14,.55); }
.photo-band-copy { position: relative; z-index: 2; text-align: center; display: grid; gap: 18px; justify-items: center; }
.photo-band-copy .eyebrow { color: #e3c999; }
.band-quote { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 40px); line-height: 1.25; max-width: 28ch; margin: 0; text-wrap: balance; }

/* Split image / text */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; background: var(--surface); }
.split-img { overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.split:hover .split-img img { transform: scale(1.05); }
.split-copy { display: grid; align-content: center; gap: 16px; padding: 64px max(24px, 6vw); }
.split-copy h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; }
.split-copy h2 em { font-style: italic; color: var(--bronze); }
.split-copy p { margin: 0; color: var(--muted); max-width: 48ch; }
.split-copy .btn { justify-self: start; }

/* Hover polish */
.card { transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.village-list a { transition: color .2s ease, padding-left .3s ease; }
.village-list a:hover { padding-left: 8px; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-img { height: 320px; }
  .has-hero .site-header { position: absolute; }
  .has-hero.scrolled .site-header { background: transparent; border-bottom-color: transparent; box-shadow: none; }
  .has-hero.scrolled .site-header .brand { color: #f3f1ea; }
  .has-hero.scrolled .site-header .brand span { color: #e3c999; }
  .has-hero.scrolled .site-header .nav a { color: rgba(243,241,234,.85); }
  .hero-copy { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .slide.is-active img, .hero-copy *, .scroll-cue span { animation: none !important; opacity: 1 !important; transform: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .photo-band-img { transform: none !important; }
}
.hero .slide { transition: opacity 1.8s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hero::after { background: radial-gradient(ellipse at 50% 50%, rgba(10,18,14,.5) 0%, rgba(10,18,14,.35) 60%, rgba(10,18,14,.55) 100%), linear-gradient(180deg, rgba(10,18,14,.6) 0%, rgba(10,18,14,0) 22%, rgba(10,18,14,0) 70%, rgba(10,18,14,.7) 100%); }
.hero-copy h1, .hero-copy p, .hero-copy .eyebrow { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.has-hero .site-header .nav a, .has-hero .site-header .brand { text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.has-hero.scrolled .site-header .nav a, .has-hero.scrolled .site-header .brand { text-shadow: none; }
