/* Pueblo Home Services Connect — one stylesheet, mobile first. */
:root {
  --ink: #14212b;
  --ink-2: #3d4b56;
  --muted: #66747f;
  --paper: #fbf8f3;
  --card: #ffffff;
  --line: #e7e0d5;
  --navy: #10324a;
  --navy-2: #184766;
  --sun: #e0682a;
  --sun-2: #c4531b;
  --sun-soft: #fdeee3;
  --sage: #5d7f6a;
  --red: #b3261e;
  --red-2: #8f1d17;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(16, 33, 45, .06), 0 2px 8px rgba(16, 33, 45, .06);
  --shadow-2: 0 10px 30px rgba(16, 33, 45, .12), 0 2px 6px rgba(16, 33, 45, .06);
  --shadow-3: 0 24px 60px rgba(10, 25, 38, .28);
  --max: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--sun-2); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(231, 224, 213, .8);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.brand small { font-weight: 600; font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.nav { display: none; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: #f1ebe1; color: var(--ink); }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.header-cta { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
  .header-cta { display: inline-flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: linear-gradient(180deg, #ea7838, var(--sun) 55%, var(--sun-2)); color: #fff; box-shadow: 0 8px 22px rgba(224, 104, 42, .35), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(224, 104, 42, .42), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.02); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 22, 34, .55) 0%, rgba(8, 22, 34, .25) 38%, rgba(8, 22, 34, .82) 100%),
    linear-gradient(90deg, rgba(8, 22, 34, .7) 0%, rgba(8, 22, 34, 0) 70%);
}
.hero .wrap { padding: 72px 0 56px; display: grid; gap: 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #ffb27a; box-shadow: 0 0 0 4px rgba(255,178,122,.25); }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); margin: 18px 0 16px; text-shadow: 0 2px 30px rgba(0,0,0,.35); max-width: 15ch; }
.hero .lede { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 34rem; color: #eef3f6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: 14.5px; color: #d6e0e7; display: flex; gap: 8px; align-items: center; }
.hero-note svg { width: 18px; height: 18px; flex: none; }
.quick-card {
  background: rgba(255,255,255,.96); color: var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-3);
  border: 1px solid rgba(255,255,255,.6); align-self: end;
}
.quick-card h2 { font-family: var(--font); font-size: 1.05rem; font-weight: 800; margin: 0 0 4px; }
.quick-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: all .15s ease;
}
.chip:hover { border-color: var(--sun); color: var(--sun-2); background: var(--sun-soft); transform: translateY(-1px); }
.chip svg { width: 16px; height: 16px; color: var(--sun); }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.25fr .9fr; align-items: end; padding: 120px 0 88px; min-height: 640px; }
}

/* ---------- emergency strip ---------- */
.emergency { background: linear-gradient(90deg, var(--red-2), var(--red)); color: #fff; }
.emergency .wrap { display: grid; gap: 10px; padding: 18px 0; }
.emergency strong { font-size: 1rem; display: flex; gap: 10px; align-items: center; }
.emergency svg { width: 22px; height: 22px; flex: none; }
.emergency p { margin: 0; font-size: 15px; color: #ffe9e7; }
.emergency a { color: #fff; font-weight: 700; }
@media (min-width: 900px) { .emergency .wrap { grid-template-columns: auto 1fr; gap: 24px; align-items: center; } }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head { max-width: 44rem; margin-bottom: 36px; }
.section-head .kicker { color: var(--sun-2); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.alt { background: #f3ede3; }
.dark { background: radial-gradient(1200px 500px at 85% -10%, #21577a 0%, transparent 60%), var(--navy); color: #e8eef2; }
.dark h2, .dark h3 { color: #fff; }
.dark .section-head p { color: #c6d3dc; }
.dark .kicker { color: #ffb27a !important; }

/* service cards */
.grid-services { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.svc {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--card); color: var(--ink);
  text-decoration: none; box-shadow: var(--shadow-1); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); color: var(--ink); }
.svc-img { aspect-ratio: 4 / 3; overflow: hidden; background: #e8e1d6; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc:hover .svc-img img { transform: scale(1.05); }
.svc-body { padding: 16px 18px 18px; }
.svc-body h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 9px; }
.svc-body h3 svg { width: 20px; height: 20px; color: var(--sun); flex: none; }
.svc-body p { margin: 0; color: var(--muted); font-size: 15px; }
.svc-go { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-1); opacity: 0; transform: translateY(-4px); transition: all .2s ease; }
.svc-go svg { width: 18px; height: 18px; color: var(--navy); }
.svc:hover .svc-go { opacity: 1; transform: none; }

/* steps */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--card); border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.step-num {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--sun), var(--sun-2)); box-shadow: 0 8px 18px rgba(224,104,42,.35); margin-bottom: 14px;
}
.step p { color: var(--ink-2); margin: 0; }
.dark .step { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
.dark .step p { color: #c6d3dc; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* honesty / trust */
.split { display: grid; gap: 18px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.panel h3 { display: flex; align-items: center; gap: 10px; }
.panel h3 .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.panel h3 .ic svg { width: 20px; height: 20px; }
.ic-yes { background: #e5f0e9; color: var(--sage); }
.ic-no { background: #f7e6e4; color: var(--red); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--sun); transform: rotate(45deg); }
.tip { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--sun-soft); border: 1px solid #f6d5bf; color: var(--ink-2); font-size: 15.5px; }

/* partners */
.partners { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.partner-slot { border: 2px dashed #d9cfc0; border-radius: var(--radius); padding: 22px; min-height: 120px; display: grid; align-content: center; gap: 6px; color: var(--muted); background: rgba(255,255,255,.5); }
.partner-slot b { color: var(--ink-2); }

/* image band */
.band { position: relative; color: #fff; isolation: isolate; overflow: hidden; border-radius: 24px; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,30,45,.88), rgba(10,30,45,.35)); }
.band-inner { padding: 44px 28px; max-width: 36rem; }
.band-inner p { color: #e3ebf0; }
@media (min-width: 860px) { .band-inner { padding: 64px 56px; } }

/* page hero (inner pages) */
.page-hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,22,34,.6), rgba(8,22,34,.85)); }
.page-hero .wrap { padding: 64px 0 52px; }
.page-hero h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin: 12px 0 10px; }
.page-hero p { color: #dfe8ee; max-width: 40rem; font-size: 1.1rem; margin: 0; }
.page-hero.plain { background: var(--navy); }
.page-hero.plain::before { background: radial-gradient(900px 400px at 90% 0%, #23597c 0%, transparent 65%); }

/* prose (legal pages) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); font-size: 15px; }
.callout { padding: 16px 18px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sun); box-shadow: var(--shadow-1); margin: 1.2em 0; }

/* pricing / partner cards */
.cards-3 { display: grid; gap: 16px; }
@media (min-width: 860px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.feature .big { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.feature p { color: var(--ink-2); margin: 0; }

/* ---------- form ---------- */
.form-shell { display: grid; gap: 24px; }
@media (min-width: 980px) { .form-shell { grid-template-columns: 1.4fr .8fr; align-items: start; } }
.form-card { background: var(--card); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-2); border: 1px solid var(--line); }
@media (min-width: 640px) { .form-card { padding: 34px; } }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend, .label { font-weight: 800; font-size: 1rem; margin-bottom: 10px; display: block; padding: 0; }
.hint { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.svc-checks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.check-tile { position: relative; }
.check-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-tile label {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  cursor: pointer; font-weight: 600; font-size: 15.5px; transition: all .15s ease; min-height: 52px;
}
.check-tile label svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.check-tile input:checked + label { border-color: var(--sun); background: var(--sun-soft); color: var(--ink); box-shadow: 0 0 0 3px rgba(224,104,42,.15); }
.check-tile input:checked + label svg { color: var(--sun-2); }
.check-tile input:focus-visible + label { outline: 3px solid var(--sun); outline-offset: 2px; }
.row { display: grid; gap: 16px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 700; display: block; margin-bottom: 6px; font-size: 15.5px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 13px 14px; border-radius: 12px; border: 1.5px solid #d9d1c5; background: #fffdfa;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(24,71,102,.14); }
.yn { display: flex; gap: 10px; flex-wrap: wrap; }
.yn .check-tile label { min-width: 96px; justify-content: center; }
.q-safety { padding: 18px; border-radius: 16px; background: #fbf4ef; border: 1px solid #f0dccd; margin-bottom: 14px; }
.q-safety p { margin: 0 0 10px; font-weight: 700; }
.safety-alert {
  display: none; margin: 0 0 18px; padding: 18px 18px 16px; border-radius: 16px; background: #fff1f0; border: 2px solid var(--red); color: #4a0d09;
}
.safety-alert.show { display: block; animation: pop .25s ease; }
.safety-alert h3 { color: var(--red); display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.safety-alert h3 svg { width: 24px; height: 24px; }
.safety-alert p { margin: 0 0 8px; }
@keyframes pop { from { transform: scale(.98); opacity: .4; } to { transform: none; opacity: 1; } }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: #f5f1ea; border: 1px solid var(--line); }
.consent input, .emerg input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--sun); flex: none; }
.emerg { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid #f0c9c5; background: #fff7f6; }
.emerg label, .consent label { font-weight: 600; }
.form-errors { display: none; padding: 14px 16px; border-radius: 12px; background: #fff1f0; border: 1px solid #f1b8b3; color: var(--red-2); margin-bottom: 16px; }
.form-errors.show { display: block; }
.form-errors ul { margin: 6px 0 0; padding-left: 1.2em; }
.submit-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.submit-row .btn { min-width: 220px; }
.turnstile-box { min-height: 65px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.side-card { background: var(--navy); color: #dfe8ee; border-radius: 22px; padding: 26px; position: sticky; top: 92px; }
.side-card h3 { color: #fff; }
.side-card ol { padding-left: 1.2em; margin: 0 0 16px; }
.side-card li { margin-bottom: 8px; }
.side-card .small { font-size: 14px; color: #b6c6d2; }
.done-card { text-align: center; padding: 40px 24px; }
.done-card .ok { width: 64px; height: 64px; border-radius: 50%; background: #e5f0e9; color: var(--sage); display: grid; place-items: center; margin: 0 auto 16px; }
.done-card .ok svg { width: 34px; height: 34px; }

/* contact */
.contact-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.mail-big { font-size: clamp(1.1rem, 4vw, 1.5rem); font-weight: 800; word-break: break-all; }

/* ---------- footer ---------- */
.site-footer { background: #0b2132; color: #b8c7d2; padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: #e5edf2; text-decoration: none; }
.site-footer a:hover { color: #ffb27a; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand small { color: #8fa4b3; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: 13.5px; color: #8fa4b3; display: grid; gap: 8px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* inline icons inside text blocks */
.tip svg, .callout svg, .site-footer p svg, .prose a svg { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; margin-right: 6px; color: var(--sun-2); }
.site-footer p svg { color: #ffb27a; }
.ic svg { width: 24px; height: 24px; }
@media (min-width: 900px) { .grid-services { grid-template-columns: repeat(3, 1fr); } }
.site-header .header-cta { display: none; white-space: nowrap; }
@media (min-width: 560px) { .site-header .header-cta { display: inline-flex; } }
