/* K&C Advanced Technology — demo site */
:root {
  --navy: #1a2b6d;
  --navy-deep: #0b1230;
  --navy-mid: #131d4a;
  --red: #d41317;
  --red-bright: #ff4040;
  --white: #ffffff;
  --off-white: #f4f6fb;
  --gray: #8b93ad;
  --gray-light: #c6ccdf;
  --ink: #1a2035;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .btn { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 18, 48, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 8px; color: var(--white); }
.brand img { height: 44px; display: block; }
.site-footer .brand img { height: 40px; }
.brand .kc { font-family: var(--font-head); font-size: 30px; font-weight: 700; }
.brand .kc em { color: var(--red-bright); font-style: normal; }
.brand .co { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gray-light); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--gray-light); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.nav-phone { color: var(--white) !important; font-weight: 600; white-space: nowrap; }
.nav-phone svg { vertical-align: -2px; margin-right: 6px; }
.btn {
  display: inline-block; padding: 12px 26px; font-size: 16px; font-weight: 600;
  background: var(--red); color: var(--white); border: 0; border-radius: 4px;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--red-bright); transform: translateY(-1px); }
.btn.ghost { background: transparent; border: 2px solid rgba(255,255,255,0.35); }
.btn.ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn.sm { padding: 9px 18px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.25s; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 75% 10%, #24398f 0%, var(--navy) 35%, var(--navy-deep) 78%);
  color: var(--white);
  padding: 170px 0 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: end; }
.hero-copy { padding-bottom: 90px; }
.hero-kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red-bright); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(44px, 6.5vw, 76px); font-weight: 700; line-height: 0.98; margin-bottom: 22px; }
.hero h1 .accent { color: var(--red-bright); }
.hero-sub { font-size: 18px; color: var(--gray-light); max-width: 520px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; align-self: stretch; min-height: 380px; }
.hero-art svg { position: absolute; bottom: -4px; right: 0; width: 100%; max-width: 460px; height: auto; }

.ring { transform-origin: center; animation: pulse 3s ease-out infinite; opacity: 0; }
.ring.r2 { animation-delay: 1s; }
.ring.r3 { animation-delay: 2s; }
@keyframes pulse {
  0% { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* ---------- carrier bar ---------- */
.carriers { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,0.07); padding: 34px 0; color: var(--white); }
.carriers .wrap { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; justify-content: center; }
.carriers-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); flex-basis: 100%; text-align: center; }
.carrier { font-family: var(--font-head); font-size: 26px; font-weight: 600; letter-spacing: 0.04em; color: var(--gray-light); opacity: 0.85; }

/* ---------- sections ---------- */
section { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.on-dark .eyebrow { color: var(--red-bright); }
h2 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 700; line-height: 1.05; }
.section-head p { margin-top: 14px; color: #5a6178; font-size: 17px; }
.on-dark .section-head p { color: var(--gray-light); }

/* stats */
.stats { background: var(--white); padding: 70px 0; border-bottom: 1px solid #e8ebf3; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 56px; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-num .suffix { color: var(--red); }
.stat-label { font-size: 14px; color: #5a6178; margin-top: 6px; }

/* services */
.services { background: var(--off-white); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: var(--white); border: 1px solid #e4e8f1; border-radius: 8px;
  padding: 32px 28px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26, 43, 109, 0.12); border-color: var(--navy); }
.svc-card .icon { width: 46px; height: 46px; color: var(--red); }
.svc-card h3 { font-size: 24px; color: var(--navy); }
.svc-card p { font-size: 15px; color: #5a6178; flex: 1; }
.svc-card .more { font-weight: 600; font-size: 14px; color: var(--red); }
.svc-card .more::after { content: " →"; transition: margin 0.15s; }
.svc-card:hover .more::after { margin-left: 4px; }

/* process */
.process { background: var(--navy-deep); color: var(--white); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; counter-reset: step; }
.step { position: relative; padding: 26px 18px 0; border-top: 2px solid rgba(255,255,255,0.14); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -17px; left: 18px; padding: 0 10px;
  background: var(--navy-deep); font-family: var(--font-head);
  font-size: 26px; font-weight: 700; color: var(--red-bright);
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--gray-light); }

/* service area */
.area .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.area-map svg { width: 100%; height: auto; }
.area-list { margin-top: 24px; display: grid; gap: 14px; }
.area-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: #3c4258; }
.area-list li strong { color: var(--navy); }
.area-list .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-top: 7px; flex-shrink: 0; }

/* cta band */
.cta-band { background: linear-gradient(115deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-deep) 100%); color: var(--white); text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--gray-light); max-width: 560px; margin: 0 auto 30px; font-size: 17px; }
.cta-band .phone-big { display: inline-block; font-family: var(--font-head); font-size: 34px; font-weight: 700; margin-bottom: 24px; color: var(--white); }
.cta-band .phone-big:hover { color: var(--red-bright); }

/* contact */
.contact { background: var(--off-white); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { color: var(--navy); margin-bottom: 18px; }
.contact-info p { color: #5a6178; margin-bottom: 28px; }
.contact-lines { display: grid; gap: 18px; font-size: 16px; }
.contact-lines a { color: var(--navy); font-weight: 600; }
.contact-lines a:hover { color: var(--red); }
.contact-lines .lbl { display: block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); margin-bottom: 2px; }
form.quote { background: var(--white); border: 1px solid #e4e8f1; border-radius: 8px; padding: 34px; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 13px; font-weight: 600; color: var(--navy); display: grid; gap: 6px; }
input, textarea, select {
  font-family: var(--font-body); font-size: 15px; padding: 12px 14px;
  border: 1px solid #d5dae7; border-radius: 4px; background: var(--off-white); width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--navy); border-color: var(--navy); }

/* footer */
.site-footer { background: var(--navy-deep); color: var(--gray-light); padding: 54px 0 30px; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--font-head); text-transform: uppercase; color: var(--white); font-size: 17px; margin-bottom: 14px; }
.site-footer a:hover { color: var(--white); }
.site-footer li { margin-bottom: 8px; }
.foot-note { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 10px; font-size: 12px; color: var(--gray); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- interior pages ---------- */
.page-hero {
  background: radial-gradient(120% 120% at 80% 0%, #24398f 0%, var(--navy) 40%, var(--navy-deep) 85%);
  color: var(--white); padding: 160px 0 70px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 80%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(38px, 5.5vw, 62px); line-height: 1; margin: 10px 0 16px; }
.page-hero p { color: var(--gray-light); font-size: 18px; max-width: 620px; }
.crumb { font-size: 13px; color: var(--gray); }
.crumb a:hover { color: var(--white); }

.svc-body .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: start; }
.svc-body h2 { color: var(--navy); font-size: 32px; margin-bottom: 16px; }
.svc-body p { color: #3c4258; margin-bottom: 18px; font-size: 16px; }
.include-card { background: var(--off-white); border: 1px solid #e4e8f1; border-radius: 8px; padding: 30px; position: sticky; top: 96px; }
.include-card h3 { font-size: 22px; color: var(--navy); margin-bottom: 16px; }
.include-card li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 15px; color: #3c4258; }
.include-card li::before { content: "✓"; color: var(--red); font-weight: 700; }
.include-card .btn { width: 100%; text-align: center; margin-top: 10px; }

/* reveal animation (only when JS is running, so content never stays hidden) */
.js-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-ready .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-copy { padding-bottom: 70px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step { border-top: 0; border-left: 2px solid rgba(255,255,255,0.14); padding: 0 0 0 22px; }
  .step::before { top: 0; left: -14px; padding: 4px 0; }
  .area .wrap, .contact .wrap, .svc-body .wrap { grid-template-columns: 1fr; }
  .include-card { position: static; }
  .stats .wrap { grid-template-columns: 1fr 1fr; gap: 40px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .main-nav {
    position: fixed; top: 72px; right: 0; bottom: 0; width: min(320px, 85vw);
    background: var(--navy-deep); flex-direction: column; align-items: flex-start;
    padding: 30px 28px; gap: 20px; transform: translateX(100%); transition: transform 0.3s;
    border-left: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { transform: none; }
  .main-nav a { font-size: 17px; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .carrier { font-size: 20px; }
}
