/* ValuationPro.ai — KW Commercial landing page.
   ValuationPro navy for structure and headlines; Keller Williams red, charcoal and
   neutral greys for actions, labels and accents. */

:root {
    --navy: #14233f;
    --navy-2: #1d3157;
    --ink: #232323;
    --muted: #5e6166;
    --line: #d9d9d9;
    --tint: #f5f5f4;
    --white: #ffffff;
    --red: #b40101;
    --red-dark: #8c0000;
    --focus: #2f6fed;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--white);
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.01em; max-width: 20ch; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--navy-2); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--white); border-top: 5px solid var(--red); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--navy); line-height: 1.1; }
.brand-tag { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 14px; }

.kw-tag {
    display: inline-block; background: var(--red); color: var(--white);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
    padding: 6px 10px; white-space: nowrap;
}
.topbar .kw-tag { background: var(--ink); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--sans); font-size: 1rem; font-weight: 700; text-decoration: none;
    padding: 13px 22px; border: 2px solid var(--navy); border-radius: 3px; cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline, .btn-ghost { background: transparent; color: var(--navy); }
.btn-outline:hover, .btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-small { padding: 8px 14px; font-size: 0.92rem; white-space: nowrap; }
.btn-block { width: 100%; margin-top: auto; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-2); text-decoration: underline; cursor: pointer; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Hero */
.hero { padding: 56px 0 48px; }
.eyebrow, .kicker {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--red);
    margin-bottom: 1.4em;
}
.lede { font-size: 1.2rem; max-width: 62ch; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tiles li { background: var(--navy); color: var(--white); padding: 18px 18px 20px; border-top: 5px solid var(--red); }
.tiles strong { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin-bottom: 4px; }
.tiles span { font-size: 0.95rem; opacity: 0.92; }

/* Sections */
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.section-intro { font-size: 1.1rem; max-width: 75ch; }
.sub { margin-top: 2em; }
.head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.head-row h2 { margin: 0; }
.head-note { margin: 0; font-weight: 700; color: var(--muted); }

.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; }
.section:not(.section-tint) .card { background: var(--tint); }
.card p:last-child { margin-bottom: 0; }
.card-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--red); margin-bottom: 0.6em; }

.changed { margin-top: 44px; max-width: 80ch; }
.pull { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--navy); border-left: 4px solid var(--red); padding-left: 16px; }

/* Products */
.product { border-top: 5px solid var(--navy); }
.product:first-child { border-top-color: var(--red); }
.product h3 { font-size: 1.6rem; margin-bottom: 0.2em; }
.price { margin-bottom: 0.7em; }
.amount { font-family: var(--serif); font-weight: 700; font-size: 2.6rem; color: var(--navy); line-height: 1; }
.turn { font-weight: 700; color: var(--muted); margin-left: 6px; }
.fine { font-size: 0.88rem; color: var(--muted); }
.product .fine { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 18px; }

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 22px; margin-bottom: 0.8em; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; background: var(--red); }
.panel-dark { background: var(--navy); color: var(--white); padding: 28px; border-left: 6px solid var(--red); }
.panel-dark h3 { color: var(--white); }
.panel-dark p:last-child { margin-bottom: 0; }
.panel-dark p + h3 { margin-top: 1.4em; }
.moment { border-left: 4px solid var(--red); }
.moment h4 { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--navy); }
.qa { margin-top: 44px; }

/* Request */
.request { border-top: 6px solid var(--red); }
.offer { margin-bottom: 28px; }
.offer h2 { margin-top: 14px; }
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 20px; }
.step { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); color: var(--muted); font-weight: 700; background: var(--tint); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 0.9rem; flex: none; }
.step.is-current { border-color: var(--navy); color: var(--navy); background: var(--white); }
.step.is-current .step-num { background: var(--red); color: var(--white); }
.step.is-done .step-num { background: var(--navy); color: var(--white); }

.form { border: 1px solid var(--line); padding: 26px; background: var(--white); }
.form-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step legend { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--navy); padding: 0; margin-bottom: 8px; }
.form-step .legend { font-size: 1.4rem; margin-bottom: 8px; }
.step-help { color: var(--muted); }
.notice { background: #eef5ee; border: 1px solid #9cc29c; color: #1f4d1f; font-weight: 600; padding: 10px 14px; }
#pricing-table { margin: 8px -10px 0; min-height: 120px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.span-2 { grid-column: 1 / -1; }
.half { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 14px; min-width: 0; }
label, .label { display: block; font-weight: 700; margin-bottom: 5px; }
.opt { font-weight: 400; color: var(--muted); font-size: 0.88rem; margin-left: 4px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--white);
    border: 1px solid #9b9b9b; border-radius: 3px; padding: 11px 12px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.is-invalid { border-color: var(--red) !important; }
.error { color: var(--red); font-size: 0.9rem; font-weight: 600; margin: 4px 0 0; min-height: 0; }
.error:empty { display: none; }
.hint { color: var(--muted); font-size: 0.92rem; margin: 0 0 8px; }
.money { display: flex; align-items: center; border: 1px solid #9b9b9b; border-radius: 3px; background: var(--white); }
.money span { padding: 0 4px 0 12px; color: var(--muted); font-weight: 700; }
.money input { border: 0; padding-left: 4px; }
.money:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.money input:focus { outline: none; }

.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-body { display: block; border: 2px solid var(--line); border-radius: 3px; padding: 12px 14px; height: 100%; }
.choice-body strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--navy); }
.choice-body span { font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.choice input:checked + .choice-body { border-color: var(--navy); background: var(--tint); box-shadow: inset 0 0 0 1px var(--navy); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--focus); outline-offset: 2px; }

.drop { border: 2px dashed #9b9b9b; border-radius: 3px; padding: 22px; text-align: center; cursor: pointer; background: var(--tint); }
.drop p { margin: 0; }
.drop.is-over { border-color: var(--navy); background: #ebebea; }
.files { list-style: none; padding: 0; margin: 10px 0 0; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); margin-bottom: 6px; font-size: 0.95rem; }
.files .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .fsize { color: var(--muted); flex: none; }

.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--tint); border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 22px; }
.who p { margin: 0; overflow-wrap: anywhere; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 10px; }
.form-actions .hint { margin: 0; flex: 1; min-width: 220px; }
.form-error { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--red); color: var(--red); font-weight: 600; background: #fdf3f3; }
.done { border: 2px solid var(--navy); padding: 28px; background: var(--tint); }
.done:focus { outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Footer */
.footer { background: var(--navy); color: var(--white); padding: 28px 0; font-size: 0.95rem; border-top: 6px solid var(--red); }
.footer a { color: var(--white); }
.footer p { margin: 0 0 6px; }
.footer .fine { color: #c9ccd3; }

/* Smaller screens */
@media (max-width: 900px) {
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .cards.three { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .brand-tag, .topbar .kw-tag { display: none; }
    .hero { padding: 36px 0; }
    .section { padding: 44px 0; }
    .cards.two, .grid, .choices { grid-template-columns: 1fr; }
    .form { padding: 18px; }
    .steps { flex-direction: column; }
    .tiles strong { font-size: 1.25rem; }
}
