/* Brand tokens — matched to the KCG Built logo (navy, electric blue, silver). "gold" = the accent color. */
:root {
  --navy: #0a1628;
  --navy-2: #13294a;
  --gold: #1e8fff;
  --gold-dark: #0b6fd8;
  --ink: #1b2430;
  --muted: #5b6676;
  --bg: #ffffff;
  --bg-alt: #f1f4f8;
  --line: #dfe4eb;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(19, 35, 58, .08);
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--body); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); }
h1, h2, h3, .h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .6em; letter-spacing: .01em; }
h1, h2 { text-transform: uppercase; letter-spacing: .02em; } /* matches the bold all-caps style of the social posts */
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3, .h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }

/* Buttons */
.btn { display: inline-block; font: 600 1rem/1 var(--body); text-decoration: none; padding: .85em 1.3em; border-radius: 8px; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn-lg { font-size: 1.08rem; padding: 1em 1.5em; }
.btn-block { display: block; width: 100%; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }

/* Header */
.topbar { background: var(--navy); color: #cfd7e3; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; }
.topbar a { color: var(--gold); font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--navy); }
.brand-text { font: 600 1.55rem/1 var(--head); letter-spacing: .06em; }
.brand-text strong { font-weight: 700; }
.brand-light { color: #fff; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a[aria-current] { color: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: .5em .8em; font: inherit; }

/* Hero */
.hero, .page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.hero { padding: 4.5rem 0; }
.page-hero { padding: 3.5rem 0; }
.page-hero.slim { padding: 2.5rem 0; }
.page-hero a, .hero a:not(.btn) { color: var(--gold); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--gold); margin-bottom: .8rem; }
.eyebrow a { text-decoration: none; }
.lead { font-size: 1.15rem; color: #dfe5ee; max-width: 46em; }
.section .lead { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.2rem; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-weight: 500; color: #dfe5ee; }
.trust li::before { content: '✓ '; color: var(--gold); font-weight: 700; }
.hero-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.8rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); border-top: 5px solid var(--gold); }

/* Sections */
.section { padding: 4rem 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; margin-bottom: 2rem; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; color: inherit; text-decoration: none; box-shadow: var(--shadow); }
a.card { transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--gold); }
.card p { color: var(--muted); margin-bottom: .6em; }
.card-grid.compact .card { padding: 1.1rem 1.3rem; }
.card-grid.compact h3 { margin-bottom: .2em; }
.service-card h3, .service-card .h3 { color: var(--navy); }
.more { color: var(--gold-dark); font-weight: 600; font-size: .95rem; }
.mini-list { margin: 0 0 .8em; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .3rem; }
.steps li::before { content: counter(s); font: 700 2.2rem/1 var(--head); color: var(--gold); }
.steps strong { font-size: 1.15rem; }
.steps span { color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: .5rem 0 .5rem 2rem; position: relative; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: .45rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.panel { background: var(--bg-alt); border-radius: var(--radius); padding: 1.8rem; border-left: 5px solid var(--gold); }
.section.alt .panel { background: #fff; }
.note { background: #eef6ff; border: 1px solid #b9d9ff; border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.note p { margin: 0; }

.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-block; padding: .45em .95em; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 500; }
.chip:hover { border-color: var(--gold); }
.chip-list.small .chip { font-size: .9rem; padding: .3em .75em; }
.link-list { padding-left: 1.1em; margin: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: .6rem 0 0; color: var(--muted); }

.cta-band { background: var(--gold); color: var(--navy); padding: 3rem 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-band .btn-gold { background: var(--navy); color: #fff; }
.cta-band .btn-outline-light { border-color: var(--navy); color: var(--navy); }

/* Forms */
.form label, .mini-form label { display: block; font-weight: 600; margin-bottom: 1rem; }
.form input:not([type=checkbox]), .form select, .form textarea, .mini-form select {
  display: block; width: 100%; margin-top: .35rem; padding: .75em .85em; font: 400 1rem var(--body);
  border: 1px solid #c9cdd4; border-radius: 8px; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form small { display: block; font-weight: 400; color: var(--muted); margin-top: .3rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: .35rem; }
.req { color: #b3261e; }
.hp { position: absolute; left: -5000px; }
.fine { font-size: .88rem; color: var(--muted); margin-top: 1rem; }
.alert { background: #fdecea; border: 1px solid #f5c2bd; color: #8a1c13; border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; }
.alert ul { margin: 0; padding-left: 1.2em; }

/* Estimate / invoice */
.doc-head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; border-bottom: 3px solid var(--gold); margin-bottom: 1.4rem; }
.doc-meta { text-align: right; color: var(--muted); font-size: .95rem; }
.lines { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.lines th, .lines td { padding: .6rem .4rem; border-bottom: 1px solid var(--line); text-align: left; }
.lines .num { text-align: right; white-space: nowrap; }
.lines tfoot td { border: 0; text-align: right; }
.lines tfoot td.num { font-weight: 600; }
.lines .total td { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.doc-notes { white-space: pre-wrap; background: var(--bg-alt); border-radius: 8px; padding: 1rem; margin-bottom: 1.4rem; }
.status { padding: 1rem; border-radius: 8px; background: var(--bg-alt); font-weight: 600; }
.status.ok { background: #e7f6ec; color: #17633a; }
.approve { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 1rem; }
.decline { margin-top: 1rem; color: var(--muted); }
.decline summary { cursor: pointer; }

.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }

/* Footer */
.site-footer { background: var(--navy); color: #c4cedb; padding: 3.5rem 0 6rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1.25rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.cols-2 { columns: 2; }
.socials a { margin-right: .8rem; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; }
.scope-note { color: #98a5b6; }

.mobile-cta { display: none; }

@media (max-width: 860px) {
  .hero-grid, .split, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .steps { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 16px 1.4rem; gap: .9rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .topbar span { display: none; }
  .topbar .wrap { justify-content: center; }
  .hero { padding: 3rem 0; }
  .section { padding: 3rem 0; }
  .doc-meta { text-align: left; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
  .mobile-cta a { padding: 1rem; text-align: center; font-weight: 700; text-decoration: none; background: var(--navy); color: #fff; }
  .mobile-cta a.gold { background: var(--gold); color: var(--navy); }
}
@media (max-width: 560px) {
  .form .row { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .cols-2 { columns: 1; }
}
