/* Certified Dream Homes design system. Dark, modern, no build step.
   Tokens first; every page uses the same components. */
:root {
  --night: #0a0a0b; --night-2: #131416; --night-3: #1c1e21; --night-line: #2a2d31;
  --ink: #101113; --ink-soft: #55595f; --line: #e3e3de; --paper: #f6f6f3; --card: #ffffff;
  --accent: #2fd08a; --accent-dark: #1fae70; --accent-ink: #04130c;
  --brand: #14804f; --brand-dark: #0a0a0b; --tint: #eaf7f0;
  --mute: #a3a8ae; --error: #b3261e; --focus: #6aa6ff;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px; --wrap: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--sans); line-height: 1.08; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.03em; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.25; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent); }
.light h2 em, section:not(.dark):not(.hero) h2 em { color: var(--brand); }
p { margin: 0 0 1em; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 1.4em; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 38em; }

/* header: dark, sticky, same on every page */
.site-header { background: rgba(10,10,11,.92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--night-line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: #c9cdd2; font-size: .93rem; }
.nav a:hover { color: #fff; }
.nav .phone { font-weight: 600; color: #fff; white-space: nowrap; }
.nav .cta { background: var(--accent); color: var(--accent-ink); padding: 9px 16px; border-radius: 999px; font-weight: 600; }
.nav .cta:hover { background: #fff; color: #000; }
@media (max-width: 860px) { .nav .link, .nav .cta { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; border-radius: 999px; font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: #c9c9c2; color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.dark .btn-ghost, .hero .btn-ghost { border-color: #4a4e54; color: #fff; }
.dark .btn-ghost:hover, .hero .btn-ghost:hover { border-color: #fff; background: transparent; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* hero */
.hero { position: relative; z-index: 2; color: #fff; padding: 96px 0 88px; background:
    radial-gradient(900px 480px at 85% -10%, rgba(47,208,138,.20), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(47,208,138,.10), transparent 60%),
    var(--night); }
/* Add class "has-photo" to the hero once web/images/hero.jpg exists (a photo CDH owns or has licensed). */
.hero.has-photo { background:
    linear-gradient(180deg, rgba(10,10,11,.78) 0%, rgba(10,10,11,.90) 70%, var(--night) 100%),
    url("images/hero.jpg") center / cover no-repeat, var(--night); }
.hero .eyebrow { color: var(--accent); }
.hero .lede { color: #c3c7cc; }
.hero-grid { display: grid; gap: 44px; align-items: end; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.25fr .9fr; } }
.hero .note { font-size: .9rem; color: var(--mute); margin-top: 1.4em; }
.start-card { background: rgba(255,255,255,.05); border: 1px solid var(--night-line); border-radius: 20px; padding: 26px; backdrop-filter: blur(6px); }
.start-card h2 { font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: .3em; color: #fff; }
.start-card p { color: var(--mute); font-size: .95rem; }
.start-card label { color: #dfe2e5; font-size: .9rem; }
.start-card input[type=text] { background: #0f1012; border-color: #3a3e44; color: #fff; }
.start-card input::placeholder { color: #747a81; }
.start-card .btn { width: 100%; margin-top: 12px; }

/* sections */
section { padding: 88px 0; }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--night); color: #e8eaec; }
.dark h2 { color: #fff; } .dark p { color: #b6bbc1; } .dark a { color: #fff; }
.dark .eyebrow { color: var(--accent); }
.head { max-width: 46em; margin-bottom: 44px; }
.grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card p { color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card a.more { font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.card a.more:hover { color: var(--brand); }
.num { font: 600 .78rem/1 var(--mono); letter-spacing: .12em; color: var(--brand); display: block; margin-bottom: 22px; }
.dark .card { background: var(--night-2); border-color: var(--night-line); }
.dark .card h3 { color: #fff; } .dark .card p { color: #a9aeb4; } .dark .num { color: var(--accent); }
.path { display: flex; flex-direction: column; min-height: 100%; }
.path .more { margin-top: auto; align-self: flex-start; }
.steps { counter-reset: none; list-style: none; padding: 0; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tags li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: .95rem; }
.plain { padding-left: 1.2em; } .plain li { margin-bottom: .5em; }
.promise { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--night-line); }
.promise li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--night-line); font-size: 1.12rem; color: #e8eaec; }
.promise li span { font: 600 .78rem/1.9 var(--mono); letter-spacing: .12em; color: var(--accent); }
.promise a { color: #fff; }
.cta-block { text-align: center; }
.cta-block .lede { margin: 0 auto; color: #b6bbc1; }
.cta-block .actions { justify-content: center; }
.cta-block .contact-line { margin-top: 2em; color: var(--mute); font-size: .95rem; }

/* form */
.form-shell { max-width: 660px; }
.page-top { padding: 64px 0 72px; }
.page-top h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
form .field { margin-bottom: 18px; }
label, legend { display: block; font-weight: 600; margin-bottom: 7px; font-size: .96rem; }
.hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
input[type=text], input[type=tel], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 14px 15px; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9bcc0; border-radius: 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
textarea { min-height: 110px; resize: vertical; }
input[aria-invalid=true], select[aria-invalid=true] { border-color: var(--error); }
.error { color: var(--error); font-size: .93rem; margin-top: 6px; font-weight: 600; }
.error:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { font-weight: 500; display: flex; align-items: center; gap: 8px; border: 1.5px solid #b9bcc0; border-radius: 999px; padding: 10px 18px; margin: 0; background: #fff; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.choices input { accent-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand); }
details.more { border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 18px; margin-bottom: 18px; background: #fff; }
details.more summary { cursor: pointer; font-weight: 600; }
details.more[open] summary { margin-bottom: 14px; }
.consent { font-size: .88rem; color: var(--ink-soft); }
.alert { border-left: 4px solid var(--error); background: #fcefed; padding: 14px 16px; border-radius: 0 10px 10px 0; margin-bottom: 18px; }
.alert[hidden] { display: none; }
.notice { border-left: 4px solid var(--accent-dark); background: var(--tint); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: .95rem; margin-bottom: 18px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.addr-wrap { position: relative; }
.addr-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 15; margin: 0; padding: 6px; list-style: none; background: #fff; color: var(--ink); border: 1px solid #c9ccd0; border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.22); max-height: 300px; overflow: auto; }
.addr-list[hidden] { display: none; }
.addr-list li { padding: 11px 12px; border-radius: 8px; cursor: pointer; font-size: .96rem; line-height: 1.35; }
.addr-list li:hover, .addr-list li[aria-selected=true] { background: var(--tint); }

/* footer and mobile call bar */
.site-footer { background: var(--night); color: var(--mute); padding: 56px 0 44px; font-size: .93rem; border-top: 1px solid var(--night-line); }
.site-footer a { color: #e8eaec; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer strong { color: #fff; }
.site-footer .cols { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 2fr 1fr; } }
.callbar { display: none; }
@media (max-width: 760px) {
  section { padding: 64px 0; } .hero { padding: 64px 0 60px; }
  body.has-callbar { padding-bottom: 78px; } /* keeps the bar from covering content */
  .callbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(10,10,11,.96); border-top: 1px solid var(--night-line); z-index: 30; }
  .callbar .btn { flex: 1; padding: 13px 10px; }
  .callbar .btn-ghost { border-color: #4a4e54; color: #fff; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Instant estimate */
.facts{border:1px solid var(--line,rgba(255,255,255,.14));border-radius:14px;padding:16px 16px 4px;margin:0 0 18px;background:rgba(47,208,138,.06)}
.facts-title{margin:0 0 12px;font-size:.95rem}
.facts-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.facts-grid .field{margin-bottom:12px}
@media (max-width:560px){.facts-grid{grid-template-columns:repeat(2,1fr)}}
.estimate{border:1px solid var(--brand);border-radius:16px;padding:22px;margin:22px 0 6px;background:rgba(47,208,138,.08)}
.estimate-amount{font-family:"Instrument Serif",Georgia,serif;font-size:clamp(2.6rem,8vw,4rem);line-height:1;margin:.1em 0 .25em;color:var(--brand)}
.more-card{margin-top:24px}
.sheet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:10px 0}
.sheet-grid label{display:block;font-size:.85rem;font-weight:600;margin-bottom:4px}
.sheet-grid input,.sheet-grid select,.sheet-grid textarea{width:100%}
.sheet-grid .wide{grid-column:1/-1}
@media (max-width:640px){.sheet-grid{grid-template-columns:1fr}}
