/* Keck Group — keckgroupusa.com
   Brand palette sampled from the logo: orange #DC612F, black #151515 */
:root {
  --orange: #DC612F;        /* brand orange (logo) */
  --orange-dark: #B44A1C;   /* AA-contrast variant for buttons/links on white */
  --black: #151515;
  --ink: #222;
  --muted: #5a5a5a;
  --line: #e4e4e4;
  --gray: #f4f4f3;          /* light gray surface */
  --white: #fff;
  --radius: 10px;
  --wrap: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--black); }
h1, h2, h3 { color: var(--black); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--orange-dark); margin-bottom: .9em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.4em; border-radius: 6px;
  background: var(--orange-dark); color: #fff; font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid var(--orange-dark);
  cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--black); border-color: var(--black); color: #fff; }
.btn-ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn-ghost:hover { background: var(--black); color: #fff; }
.btn-sm { padding: .55em 1em; font-size: .92rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand img { height: 56px; width: auto; }
.nowrap { white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; }
.site-nav a:not(.btn):hover { color: var(--orange-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--black); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--gray);
  background-image: linear-gradient(180deg, #fafaf9 0%, var(--gray) 100%); border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--black) 0 50%, var(--orange) 50% 100%); }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-logo { justify-self: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px 48px;
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.25); }
.hero-logo img { width: 230px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--gray); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-intro { color: var(--muted); font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; border-top: 4px solid var(--orange);
  transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(0,0,0,.3); }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card-icon { width: 44px; height: 44px; border-radius: 8px; background: #fbeee8; display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--orange-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Approach */
.approach { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 16px; color: var(--muted); }
.checks li strong { color: var(--black); }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); 
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E"); }
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 5px); width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.steps { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li { display: flex; gap: 18px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }
.step-num { font-weight: 800; font-size: 1.1rem; color: var(--orange-dark); min-width: 2.2em; padding-top: 1px; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-info > p:not(.eyebrow) { color: var(--muted); }
.contact-list { margin: 28px 0 0; }
.contact-list div { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.contact-list div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-weight: 650; color: var(--black); font-size: .95rem; }
.contact-list dd { margin: 0; }
.contact-list address { font-style: normal; }
.contact-form { background: var(--gray); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-form label { display: block; font-weight: 600; font-size: .92rem; color: var(--black); margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: .7em .8em;
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #cfcfcf; border-radius: 6px; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(220,97,47,.2); }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }

/* Footer */
.site-footer { background: var(--black); color: #c9c9c9; padding: 56px 0 0; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 30em; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-legal { border-top: 1px solid #2c2c2c; margin-top: 32px; padding-top: 20px; padding-bottom: 28px; font-size: .85rem; color: #8f8f8f; }
.footer-legal p { margin: 0; }

/* Responsive */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .approach, .contact { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .header-inner { min-height: 64px; }
  .brand img { height: 42px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; box-shadow: 0 12px 24px -16px rgba(0,0,0,.3); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 60px; }
  .hero-logo { order: -1; justify-self: start; padding: 22px 26px; border-radius: 12px; }
  .hero-logo img { width: 120px; }
  .lead { font-size: 1.08rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
