/* Homestead Property Care: navy and gold with Texas flag accents. */
:root {
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --ink: #0B1B3F;
  --muted: #4E5B7A;
  --line: #D2D9E6;
  --gold: #E3B341;
  --gold-text: #8A6508;
  --gold-ink: #0B1B3F;
  --red: #BF0A30;
  --flag-blue: #0B2A6B;
  --band: #0B1F4B;
  --band-fg: #F4F6FA;
  --band-muted: #A9B8DA;
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070E22;
    --surface: #0F1A38;
    --ink: #E8EDF8;
    --muted: #9AA8C6;
    --line: #22305A;
    --gold-text: #E3B341;
    --band: #0B1A44;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; letter-spacing: 0.01em; line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

.btn { font-family: var(--font-display); font-weight: 900; font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; background: linear-gradient(180deg, #F3CF6A, #D9A52C); color: var(--gold-ink); border: 0; border-radius: 3px; padding: 13px 24px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.btn:hover { filter: brightness(1.06); }
.btn.line { background: transparent; color: inherit; border: 2px solid currentColor; padding: 11px 22px; }

/* Header */
.site-head { background: var(--band); color: var(--band-fg); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 20; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 10px; }
.brand-link { text-decoration: none; display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; font-size: 15px; }
.nav a { text-decoration: none; padding: 6px 0; color: var(--band-muted); border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--band-fg); border-bottom-color: var(--gold); }
.head-call { font-family: var(--font-mono); font-size: 15px; text-decoration: none; white-space: nowrap; }
@media (max-width: 860px) {
  .site-head { position: static; }
  .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .nav a { white-space: nowrap; }
}

/* Wordmark */
.tx { width: 84px; height: 84px; flex: none; }
.tx.small { width: 40px; height: 40px; }
.lockup { display: flex; align-items: center; gap: 18px; min-width: 0; }
.wm { min-width: 0; }
.wm b { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 7vw, 60px); line-height: 0.95; letter-spacing: 0.01em; color: #E3B341; background: linear-gradient(180deg, #FBE69A 0%, #E3B341 48%, #A87814 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wm span { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(14px, 2.6vw, 21px); letter-spacing: 0.16em; margin-top: 6px; color: var(--band-fg); }
.wm.small b { font-size: 22px; }
.wm.small span { font-size: 10px; margin-top: 3px; }
.on-light .wm span { color: var(--ink); }

/* Hero */
.hero { background: var(--band); color: var(--band-fg); border-bottom: 4px solid var(--gold); }
.hero-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; padding-block: 40px 60px; }
.hero-grid > * { min-width: 0; }
.rule { display: flex; align-items: center; gap: 12px; margin: 24px 0 20px; color: var(--gold); }
.rule::before, .rule::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.rule svg { width: 54px; height: 20px; flex: none; }
.hero h1 { font-size: clamp(32px, 6vw, 62px); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { font-size: 19px; color: var(--band-muted); max-width: 46ch; margin-top: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 26px; }
.phone { font-family: var(--font-mono); font-size: 17px; }

.phero { background: var(--band); color: var(--band-fg); border-bottom: 4px solid var(--gold); padding-block: 44px 48px; }
.phero .label { color: var(--gold); display: block; margin-bottom: 12px; }
.phero h1 { font-size: clamp(30px, 5.4vw, 52px); max-width: 20ch; }
.phero .lede { font-size: 19px; color: var(--band-muted); max-width: 56ch; margin-top: 16px; }

.ticket { background: var(--surface); color: var(--ink); border-radius: 4px; border: 2px solid var(--gold); padding: 20px 22px 8px; transform: rotate(1.2deg); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.ticket-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; }
.ticket-head strong { font-family: var(--font-display); font-weight: 900; font-size: 19px; }
.ticket-head .label { color: var(--muted); align-self: center; }
.ticket ul { list-style: none; padding: 0; margin: 0; }
.ticket li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.ticket li::before { content: ""; flex: none; width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 2px; background: var(--gold); box-shadow: inset 0 0 0 3px var(--surface); }
.ticket .sample { text-align: right; color: var(--muted); padding: 8px 0 10px; }

/* Sections */
section { padding-block: 60px; }
h2 { font-size: clamp(26px, 4.2vw, 40px); margin-bottom: 14px; }
h3 { font-size: 20px; }
.intro { color: var(--muted); max-width: 58ch; margin-bottom: 30px; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

.trust { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 18px; }
.trust ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.trust li { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex: none; }

.pillars { padding-block: 44px; border-bottom: 1px solid var(--line); }
.motto { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 3.8vw, 34px); margin-bottom: 26px; }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pillar-grid > div { min-width: 0; padding: 4px 24px 4px 0; }
.pillar-grid > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.pillar-grid .label { color: var(--gold-text); display: block; margin-bottom: 6px; }
.pillar-grid p { color: var(--muted); font-size: 16px; }
@media (max-width: 620px) { .pillar-grid > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; } }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 22px; text-decoration: none; display: block; min-width: 0; }
.card:hover { border-color: var(--gold); }
.card h3 { margin: 12px 0 6px; }
.card p { color: var(--muted); font-size: 16px; }
.card .more { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); }
.icon { width: 34px; height: 34px; fill: none; stroke: var(--gold-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.split > div { min-width: 0; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .label { color: var(--gold-text); padding-top: 3px; }
.note { margin-top: 16px; color: var(--muted); font-size: 15px; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 11px 0 11px 28px; border-top: 1px solid var(--line); position: relative; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }

.who { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.who > div { min-width: 0; border-left: 4px solid var(--gold); padding-left: 16px; }
.who p { color: var(--muted); font-size: 16px; margin-top: 4px; }
.area-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.area-list li { font-family: var(--font-mono); font-size: 14px; border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 10px 12px; font-size: 14px; color: var(--muted); }

.cta-band { background: var(--band); color: var(--band-fg); border-top: 4px solid var(--gold); padding-block: 48px; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0; font-size: clamp(24px, 3.6vw, 34px); max-width: 24ch; }
.cta-band p { color: var(--band-muted); margin-top: 8px; }

.faq details { border-top: 1px solid var(--line); padding: 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--font-mono); font-size: 22px; color: var(--gold-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 18px; color: var(--muted); max-width: 66ch; }

.prose { max-width: 66ch; }
.prose p + p { margin-top: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; padding: 0; margin: 14px 0 0; }
.links a { font-family: var(--font-mono); font-size: 13px; border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; text-decoration: none; display: inline-block; }
.links a:hover { border-color: var(--gold); }

/* Quote builder */
.request { background: var(--band); color: var(--band-fg); }
.form-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.form-grid > * { min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend, .field > label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--band-muted); padding: 0; margin-bottom: 8px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label { display: block; border: 1.5px solid var(--band-muted); padding: 7px 12px; cursor: pointer; font-size: 15px; color: var(--band-fg); user-select: none; }
.chips input:checked + label { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }
.chips input:focus-visible + label { outline: 3px solid var(--band-fg); outline-offset: 2px; }
.field { margin-bottom: 16px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 3px; padding: 10px 12px; }
.field textarea { resize: vertical; }
.out-card { background: var(--surface); color: var(--ink); padding: 20px; border-top: 4px solid var(--gold); }
.out-card .label { color: var(--muted); display: block; margin-bottom: 10px; }
#out { min-height: 190px; border: 0; width: 100%; background: transparent; color: var(--ink); font-family: var(--font-body); font-size: 16px; resize: none; padding: 0; }
.out-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.out-actions .btn.line { color: var(--ink); }
#status { font-size: 14px; color: var(--muted); }
.reach { margin-top: 16px; font-family: var(--font-mono); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.reach a { text-decoration: none; border-bottom: 1px solid var(--gold); }

/* Footer */
.flagbar { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 6px; }
.flagbar i:nth-child(1) { background: var(--flag-blue); }
.flagbar i:nth-child(2) { background: #FFFFFF; }
.flagbar i:nth-child(3) { background: var(--red); }
footer { padding-block: 36px 90px; color: var(--muted); font-size: 15px; }
footer .on-light .wm span { color: var(--ink); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot-grid > div { min-width: 0; }
.foot-grid h3 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; color: var(--ink); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 3px 0; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.tag { font-family: var(--font-display); font-weight: 900; font-size: 16px; letter-spacing: 0.04em; color: var(--ink); margin: 14px 0 4px; }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--band); border-top: 3px solid var(--gold); padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
  .callbar .btn { padding: 12px 8px; font-size: 14px; }
  .callbar .btn.line { color: var(--band-fg); }
  .hero-grid { padding-block: 28px 44px; }
  section { padding-block: 44px; }
  .steps li { grid-template-columns: 1fr; gap: 2px; }
  .ticket { transform: none; }
  .tx { width: 64px; height: 64px; }
}
@media print { .site-head, .callbar { display: none; } }
.on-light .wm b { background: none; -webkit-text-fill-color: var(--gold-text); color: var(--gold-text); }
