/* KITH house style — white ground, red accent, Inter throughout.
   Loaded last, so it restyles the existing markup rather than replacing it:
   the pages keep their structure, headings and links, and only look different.

   This file used to set a brass palette and condensed Barlow display type, which is why the site
   read as two different businesses: the homepage was red and set in Inter, every other page was
   gold and set in Barlow, and a customer could see a red reg-plate bar sitting directly above a
   gold button on the same screen. The values below are now the homepage's own, taken from
   home.css, so the whole site shares one palette and one typeface.

   The variable names are left as they were. "--gold" now holds red. Renaming it would mean
   touching every rule in this file and in four others for no visual gain, so the name is simply
   historical - treat it as "the accent". */

:root, :root[data-theme] {
  --ink: #FFFFFF;
  --surface: #F4F5F7;
  --surface-2: #EEF0F3;
  --border: #E4E6EA;
  --line: #E4E6EA;
  --text: #111318;
  --text-2: #4A505C;
  --muted: #6B7280;
  --gold: #DC2626;          /* the accent; red, as on the homepage */
  --gold-2: #EF4444;
  --primary: #DC2626;
  --accent: #DC2626;
  --good: #15803D;
  --hot: #B45309;
  --display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(12,13,16,.04), 0 8px 24px rgba(12,13,16,.06);
  --radius: 14px;
}

body { background: var(--ink); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.6; }
/* Set for Inter, matching home.css. The old values - line-height 1.04, positive tracking and
   uppercase h2 - were tuned for condensed Barlow, where tight leading and caps read as a
   deliberate display face. Inter is not condensed, so at those settings headings looked cramped
   and shouty rather than styled. */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; color: var(--text); }
.page-hero h1 { font-family: var(--body); font-weight: 800; font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -.015em; text-transform: none; }
.lead { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.num, .kx-stats b, .kx-big, .kq-total b { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* eyebrow */
.section-label, .eyebrow, .kh-cat, .kx-crumbs {
  font: 600 12px/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.kx-crumbs { color: var(--muted); letter-spacing: .08em; }
.kx-crumbs a { color: var(--muted); text-decoration: none; }
.kx-crumbs a:hover { color: var(--gold); }

/* header */
.site-header { background: rgba(255,255,255,.92); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.site-header a { color: var(--text); }
.site-header a:hover { color: var(--gold); }

/* The logo was 120px tall on every screen above phone size - more than twice the homepage's
   52px - and it was pushing the row wide enough that the "Get a Quote" button ran off the right
   edge of the window. At 1280px, a common laptop width, its right edge sat at 1301px, so the
   main call to action on 923 pages was clipped; at 1100px it lost 70px. Matching the homepage's
   mark fixes the appearance and the overflow together, since the row then has room again.
   Phones already capped this at 44px with !important, and those rules still win. */
.site-logo { max-height: 56px; }
.header-inner { padding: .7rem 0; gap: 1rem; }
/* "About Us" was wrapping onto two lines and setting the height of the whole header. */
.site-nav > .nav-item-dropdown > a, .site-nav > a { white-space: nowrap; }
.site-nav { gap: .05rem; }
.site-nav a { font-size: .86rem; padding: .5rem .7rem; }
.site-nav a:hover, .site-nav a.active { color: var(--gold); background: rgba(220,38,38,.06); }

/* The hamburger only took over at 720px and under, but the full nav needs about 1024px to fit.
   Everything between - iPads, 768 and 820 wide, and small laptops at 900 - was served the
   desktop nav and had the "Get a Quote" button cut off the right of the screen, by 248px at
   768. These are the same rules the phone breakpoint uses, applied from 1023px down, so the
   menu collapses wherever it would otherwise overflow. Below 720px the existing phone rules
   take over unchanged. */
@media (max-width: 1023px) {
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(250,251,253,.99); border-bottom: 1px solid var(--border);
    padding: 1rem; flex-direction: column; align-items: stretch; gap: .2rem;
    justify-content: flex-start; box-shadow: 0 8px 24px rgba(12,13,16,.08); z-index: 99;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .75rem 1rem; font-size: 1rem; }
  .nav-toggle { display: grid; }
  .nav-item-dropdown { display: block; }
  .site-nav .nav-item-dropdown > a { display: block; padding: .75rem 1rem; font-size: 1rem; }
  .nav-item-dropdown::after { display: none; }
  .nav-dropdown-menu,
  .nav-item-dropdown:hover > .nav-dropdown-menu,
  .nav-item-dropdown:focus-within > .nav-dropdown-menu { display: none; }
}

/* buttons: pills, gold fill */
.btn, .kq-btn, .kh-svc, .kx-faq summary { font-family: var(--body); }
.btn { border-radius: 999px; padding: .95em 1.6em; font-weight: 700; font-size: 15px; border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-red, .kq-btn-main { background: var(--gold); color: #fff; border-color: var(--gold); box-shadow: 0 6px 18px rgba(220,38,38,.25); }
.btn-primary:hover, .btn-red:hover, .kq-btn-main:hover { background: #B91C1C; border-color: #B91C1C; }
.btn-outline, .kq-btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* hero */
/* The top padding was calc(140px + 3rem): 140px to clear the sticky header, which used to be
   that tall because of the 120px logo. The header is 79px now, so that left about 110px of
   empty white between the nav and the first line of every page. Reset to clear the real
   header. Phone breakpoints set their own value with !important and are unaffected. */
.page-hero { padding-top: calc(80px + 1.75rem); }
.page-hero { position: relative; overflow: hidden; background: var(--ink); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 420px at 88% -10%, rgba(214,168,76,.20), transparent 60%);
}
.page-hero > * { position: relative; }
.page-hero-img img { border-radius: 14px; box-shadow: var(--shadow); }

/* sections and surfaces */
.section { padding-block: 72px; }
.section-alt { background: var(--surface); }
.kx-card, .kx-area, .cta-box, .kh-svc, .kx-steps li, .kx-stats div, .kq-wrap {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.section-alt .kx-card, .section-alt .kh-svc, .section-alt .kx-steps li, .section-alt .kx-stats div { background: #fff; }
.kx-tip, .kx-warn, .kx-review { background: var(--surface-2); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.kx-stats b { color: var(--gold); font-size: 1.15rem; }
.kx-steps li:before { background: var(--gold); }
.kx-list li::marker { color: var(--gold); }
.kh-svc:hover { border-color: var(--gold); box-shadow: 0 10px 28px rgba(23,21,15,.08); }
.kh-svc-meta { color: var(--gold); font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; }
.kh-areas a { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .7rem 1rem; }
.kh-areas a:hover { border-color: var(--gold); }
.kh-myths .kx-card { background: var(--surface-2); border-style: solid; }

/* FAQ */
.kx-faq { border-bottom: 1px solid var(--border); }
.kx-faq summary h3 { font-family: var(--body); font-weight: 600; text-transform: none; font-size: 16px; }
.kx-faq summary:after { color: var(--gold); }

/* quote widget sits on the same palette */
.kq-pill.on, .kq-tier.on, .kq-pick.on, .kq-job.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.kq-offer { background: rgba(220,38,38,.07); border: 1px solid rgba(220,38,38,.30); }
.kq-recprice { border-left-color: var(--gold); background: var(--surface-2); }

/* footer */
/* Same ink and the same cool greys as the homepage footer, which was a warm near-black here. */
.site-footer { background: #0C0D10; color: #B4BAC5; }
.site-footer a { color: #B4BAC5; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: #fff; }

@media (max-width: 700px) {
  .section { padding-block: 52px; }
}

/* "What is included in each service" -- the three services as columns so they can be compared
   rather than held in the head. Scrolls sideways inside its own box on a phone rather than
   pushing the page about, which is the usual way a wide table breaks a small screen. */
.kc-servicetable{margin:0}
.kc-servicetable h2{margin:0 0 10px}
.kc-st-lead{margin:0 0 18px;color:#555;line-height:1.65}
.kc-st-scroll{
  overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e3e6ea;border-radius:12px;
  /* Without an explicit max-width the box takes the table's min-width and drags the whole
     page sideways instead of scrolling inside itself, which is the entire point of it. */
  max-width:100%;width:100%
}
.kc-servicetable{max-width:100%;min-width:0}
table.kc-st{border-collapse:collapse;width:100%;min-width:460px;font-size:14.5px;background:#fff}
table.kc-st th,table.kc-st td{padding:10px 12px;text-align:left;border-bottom:1px solid #eceef1}
table.kc-st thead th{
  background:#14161a;color:#fff;font-weight:700;position:sticky;top:0;
  font-size:13.5px;letter-spacing:.02em
}
table.kc-st thead th:not(:first-child),table.kc-st td{text-align:center;width:88px}
table.kc-st tbody th{font-weight:500;color:#2b2f35;line-height:1.45}
table.kc-st tr.kc-st-group th{
  background:#f4f5f7;font-weight:700;font-size:12.5px;text-transform:uppercase;
  letter-spacing:.06em;color:#5b626b;text-align:left
}
table.kc-st tr.kc-st-meta td{font-size:13px;color:#4a5159;text-align:center}
table.kc-st tr.kc-st-meta th{font-weight:700;color:#14161a}
table.kc-st .kc-yes{color:#1a7f42;font-weight:700;font-size:17px}
table.kc-st .kc-no{color:#c2c7cf;font-size:17px}
table.kc-st tbody tr:hover td,table.kc-st tbody tr:hover th{background:#fafbfc}
.kc-st-foot{margin:14px 0 0;font-size:14px;color:#555;line-height:1.6}
.kc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:560px){
  /* On a phone the table fits rather than scrolling. A side-scrolling table hides the columns
     that matter -- the whole reason for the table is seeing the three together -- and the
     min-width needed to make it scroll was also dragging the page itself sideways. The labels
     wrap instead, and the tick columns shrink to just wider than a thumb. */
  table.kc-st{font-size:13px;min-width:0}
  table.kc-st th,table.kc-st td{padding:9px 6px}
  table.kc-st tbody th,table.kc-st thead th:first-child{padding-left:10px;line-height:1.35;hyphens:auto}
  table.kc-st thead th:not(:first-child),table.kc-st td{width:46px;font-size:12px}
  table.kc-st tr.kc-st-meta td{font-size:11.5px;line-height:1.3}
  table.kc-st thead th{position:static}
}
