/* Landing groups (grazingat, boxcanyonranch) — one stylesheet, no JavaScript. Themes set the landscape colours. */
:root {
  --bg: #f6f1e7; --surface: #fffaf0; --text: #2b2117; --muted: #6b5a47; --line: #e2d6c2;
  --accent: #8a5a2b; --accent-ink: #fffaf0;
  --sky1: #f6c27a; --sky2: #fbe7c3; --sun: #fff1c9;
  --ridge1: #b9805a; --ridge2: #9a6243; --ridge3: #6f4a33; --meadow1: #a3a85a; --meadow2: #7d8a45;
  --herd: #3a2a1d; --fence: #5a4130;
  --tree: #4f5a2e; --trunk: #4a3222; --barn: #8e3b2c; --roof: #3d2b22; --trim: #f3e6cf; --bulb: #ffd98a; --glow: #ffcf70; --star: #fff8e6; --strata: rgba(60,30,15,.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.t-dawn    { --sky1: #f3a6a0; --sky2: #fde3c8; --sun: #fff4dc; --ridge1: #c48c78; --ridge2: #a86f5f; --ridge3: #7a4d42; --meadow1: #a9b06a; --meadow2: #84904f; --accent: #9a4f3f; }
.t-midday  { --sky1: #8fc3e8; --sky2: #e3f2fb; --sun: #fffbe8; --ridge1: #c9a27a; --ridge2: #a98260; --ridge3: #7d5f45; --meadow1: #9fb35a; --meadow2: #6f8c3c; --accent: #4f6f2f; }
.t-golden  { --sky1: #f2b766; --sky2: #fbe6bf; --sun: #fff0c4; --accent: #8a5a2b; }
.t-dusk    { --sky1: #c9789a; --sky2: #f6c08a; --sun: #ffe0a8; --ridge1: #9c6a6e; --ridge2: #7d5059; --ridge3: #523643; --meadow1: #8d8f55; --meadow2: #6a7140; --accent: #8c3f5a; }
.t-evening { --sky1: #4f6a93; --sky2: #c7b7c9; --sun: #f4e6cf; --ridge1: #6d6f86; --ridge2: #50546e; --ridge3: #353a52; --meadow1: #6f7d58; --meadow2: #515f42; --herd: #1e2230; --fence: #2c3042; --accent: #44557a; }
.t-meadow  { --sky1: #a7d3c9; --sky2: #eef6e8; --sun: #fffbe6; --ridge1: #9fb08a; --ridge2: #7f946c; --ridge3: #5c6f4f; --meadow1: #a8c26a; --meadow2: #7aa04a; --accent: #3f6b3a; }
.t-serene  { --sky1: #a9a3d1; --sky2: #efe6f0; --sun: #fff6e9; --ridge1: #a993a8; --ridge2: #86728a; --ridge3: #5f5068; --meadow1: #9aa66c; --meadow2: #74824f; --accent: #5d4a7a; }

/* Box Canyon Ranch: sandstone day, ember dusk, starlit night, sage morning */
.t-ranch   { --sky1: #9cc6e4; --sky2: #f3e7cf; --sun: #fff6dc; --ridge1: #d19a6a; --ridge2: #b9744a; --ridge3: #8a5233; --meadow1: #a5ad5e; --meadow2: #77843f; --accent: #8e3b2c; }
.t-ember   { --sky1: #d9785a; --sky2: #f7c98e; --sun: #ffe4b0; --ridge1: #b0684f; --ridge2: #8d4c3b; --ridge3: #5e3127; --meadow1: #8c8a4d; --meadow2: #67693a; --accent: #9b3d26; }
.t-night   { --sky1: #1c2440; --sky2: #4a4e72; --sun: #f4ecd6; --ridge1: #4a4560; --ridge2: #3a344c; --ridge3: #272236; --meadow1: #3f4a38; --meadow2: #2d3628; --herd: #15131c; --fence: #1d1a24; --tree: #222a1e; --barn: #4a2622; --roof: #1a1418; --trim: #b9a98d; --accent: #5a5a8c; }
.t-sage    { --sky1: #b7d3d0; --sky2: #f2efe2; --sun: #fffbea; --ridge1: #c7a27e; --ridge2: #a7815f; --ridge3: #7a5c44; --meadow1: #a9bd72; --meadow2: #7c9a4c; --accent: #4f6b3a; }

@media (prefers-color-scheme: dark) {
  .t-ranch, .t-ember, .t-night, .t-sage { --accent: #e0b07a; }
  :root { --bg: #17130f; --surface: #211b15; --text: #efe6d8; --muted: #bcae9a; --line: #3a3026; --accent-ink: #17130f; }
  .t-dawn, .t-midday, .t-golden, .t-dusk, .t-evening, .t-meadow, .t-serene { --accent: #e0b07a; }
}

* { box-sizing: border-box; }
svg.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); }
a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 9; }

/* Header */
.top { position: absolute; inset: 0 0 auto; z-index: 3; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fffaf0; text-decoration: none; font: 600 1.25rem/1 var(--serif); letter-spacing: .02em; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.brand svg { width: 34px; height: 34px; }
.top nav a { color: #fffaf0; text-decoration: none; font-size: .95rem; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.top nav a:hover { text-decoration: underline; }

/* Hero landscape */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; color: #fffaf0; background: var(--sky1); }
.hero svg.land { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,14,8,.62), rgba(20,14,8,.12) 55%, rgba(20,14,8,0)); }
.hero .copy { position: relative; z-index: 2; padding: 0 20px 9vh; max-width: 1080px; margin: 0 auto; width: 100%; }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; opacity: .9; margin: 0 0 .6rem; }
.hero h1 { font: 600 clamp(2.4rem, 6.4vw, 4.6rem)/1.05 var(--serif); margin: 0 0 .8rem; max-width: 16ch; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero p.sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 40ch; margin: 0 0 1.6rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.btn { display: inline-block; background: #fffaf0; color: #2b2117; padding: .8rem 1.3rem; border-radius: 999px; text-decoration: none; font-weight: 600; }
.btn:hover { background: #fff; }

.stop-sky1 { stop-color: var(--sky1); } .stop-sky2 { stop-color: var(--sky2); }
.sun { fill: var(--sun); } .sunglow { fill: var(--sun); opacity: .35; }
.r1 { fill: var(--ridge1); } .r2 { fill: var(--ridge2); } .r3 { fill: var(--ridge3); }
.m1 { fill: var(--meadow1); } .m2 { fill: var(--meadow2); }
.herd { fill: var(--herd); } .fence { stroke: var(--fence); fill: none; stroke-width: 4; stroke-linecap: round; }
.grass { stroke: var(--meadow2); stroke-width: 3; fill: none; stroke-linecap: round; opacity: .8; }

/* Sections */
section { padding: 72px 0; }
h2 { font: 600 clamp(1.7rem, 3.4vw, 2.4rem)/1.2 var(--serif); margin: 0 0 1rem; }
.lead { font-size: 1.15rem; max-width: 62ch; }
.lead p { margin: 0 0 1rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 36px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.feature svg { width: 40px; height: 40px; color: var(--accent); fill: currentColor; }
.feature h3 { font: 600 1.2rem/1.3 var(--serif); margin: 12px 0 6px; }
.feature p { margin: 0; color: var(--muted); }

.canyons { background: var(--surface); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 28px; }
.card { display: block; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text); background: var(--bg); border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(40,25,10,.14); }
.card svg { display: block; width: 100%; height: 120px; }
.card div { padding: 14px 16px 18px; }
.card strong { font: 600 1.15rem/1.3 var(--serif); display: block; }
.card span { color: var(--muted); font-size: .95rem; }
.ranches { margin-top: 34px; }
.ranches h3 { font: 600 1.25rem/1.3 var(--serif); margin: 0 0 8px; }

.contact { text-align: center; }
.contact p { max-width: 52ch; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }
.divider { display: block; width: 180px; height: 28px; margin: 0 auto 20px; color: var(--accent); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Scene parts (boxcanyonranch art) */
.tree { fill: var(--tree); } .trunk { fill: var(--trunk); } .barn { fill: var(--barn); } .roof { fill: var(--roof); } .trim { fill: var(--trim); }
.strata { stroke: var(--strata); stroke-width: 3; fill: none; }
.branch { stroke: var(--trunk); stroke-width: 8; fill: none; stroke-linecap: round; } .trimline { stroke: var(--trim); stroke-width: 4; fill: none; } .star { fill: var(--star); } .glow { fill: var(--glow); }
.wire { stroke: var(--fence); stroke-width: 2; fill: none; opacity: .8; } .bulb { fill: var(--bulb); } .bulbglow { fill: var(--bulb); opacity: .25; }

/* Property layout: uses, land features, quote band */
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 30px; }
.use { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.use svg.land { display: block; width: 100%; height: 170px; position: static; }
.use .body { padding: 18px 20px 22px; }
.use h3 { font: 600 1.35rem/1.25 var(--serif); margin: 0 0 6px; }
.use p { margin: 0 0 10px; color: var(--muted); }
.use ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.use li { margin: 2px 0; }
.land-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 28px; }
.land-item { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.land-item strong { display: block; font: 600 1.1rem/1.3 var(--serif); }
.land-item span { color: var(--muted); }
.band { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 56px 0; }
.band blockquote { margin: 0 auto; max-width: 30ch; font: italic 500 clamp(1.4rem, 3vw, 2rem)/1.35 var(--serif); }
.surface { background: var(--surface); border-block: 1px solid var(--line); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.chip { display: inline-block; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: .5rem 1rem; font-size: .95rem; }

@media (max-width: 640px) {
  section { padding: 52px 0; }
  .top nav { display: none; }
  .hero { min-height: 78vh; }
  .hero svg.land { left: auto; right: 0; width: auto; aspect-ratio: 16 / 7; transform: translateX(15%); }
  .l-property .hero svg.land { transform: translateX(36%); }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* "Message us": floating button + chat-style panel (no JavaScript; opened with :target) */
.btn-solid { background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn-solid:hover { background: var(--accent); filter: brightness(1.08); }
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: .75rem 1.1rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(20,12,6,.28); }
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab:hover { filter: brightness(1.08); }
.chat { display: none; position: fixed; right: 18px; bottom: 18px; z-index: 30; width: min(380px, calc(100vw - 24px)); max-height: calc(100vh - 36px); }
.chat:target { display: block; }
.chat:target ~ .chat-fab, body:has(.chat:target) .chat-fab { display: none; }
.chat-card { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 48px rgba(20,12,6,.32); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 36px); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--accent); color: var(--accent-ink); }
.chat-head strong { display: block; font: 600 1.05rem/1.2 var(--serif); }
.chat-head small { opacity: .85; font-size: .82rem; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.chat-avatar svg { width: 24px; height: 24px; }
.chat-close { margin-left: auto; color: inherit; text-decoration: none; font-size: 1.6rem; line-height: 1; padding: 0 4px; }
.chat-body { padding: 16px; overflow-y: auto; }
.bubble { background: var(--bg); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 14px; margin: 0 0 14px; }
.chat-form { display: grid; gap: 10px; }
.chat-form label { display: grid; gap: 4px; font-size: .92rem; font-weight: 600; }
.chat-form input, .chat-form textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; width: 100%; }
.chat-form input:focus, .chat-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.chat-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chat-form legend { font-size: .92rem; font-weight: 600; margin-bottom: 6px; }
.chat-form .topic { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem; background: var(--bg); }
.chat-form .topic input { width: auto; accent-color: var(--accent); }
.chat-form .opt { font-weight: 400; color: var(--muted); }
.chat-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chat-form .fine { margin: 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .chat { right: 12px; left: 12px; bottom: 12px; width: auto; } .chat-fab { right: 12px; bottom: 12px; } }
