/* KHK Electronic LLC: bright, vivid repair palette (screen blue, circuit lime, signal coral) on a pale blue
   tint; a few large panels; classic serif headings over a clean sans; solid blue header bar; numbered
   service items with large numerals; thick 3px outlines and no shadows; signal-arc motif */
@font-face {
  font-family: "Caladea";
  src: url("fonts/caladea-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --tint: #eaf1ff;
  --blue: #1f5fd6;
  --blue-dk: #123f96;
  --navy: #0a1834;
  --lime: #8bd650;
  --coral: #ff6b4a;
  --ink: #0f1b33;
  --muted: #4a5873;
  --white: #ffffff;
  --serif: "Caladea", Cambria, Georgia, serif;
  --sans: "Roboto", "Segoe UI", Arial, sans-serif;
  --line: 3px solid var(--navy);
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--tint); color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.62; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dk); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 .45em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: 1rem; font-weight: 500; line-height: 1.3; margin: 0 0 2px; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 8px 14px; z-index: 10; }
.skip-link:focus { left: 8px; }
.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }

/* solid colored header bar */
.site-header { background: var(--blue); color: var(--white); border-bottom: var(--line); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 10px 26px; padding: 12px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); text-decoration: none; }
.brand img { width: 70px; border-radius: 8px; border: 3px solid var(--navy); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.main-nav a { display: inline-block; padding: 7px 14px; border-radius: 8px; border: 3px solid transparent; color: var(--white); text-decoration: none; font-weight: 500; }
.main-nav a:hover { border-color: rgba(255, 255, 255, .55); }
.main-nav a[aria-current="page"] { background: var(--white); color: var(--navy); border-color: var(--navy); }

/* a few large panels with thick outlines */
.panels { display: grid; gap: 22px; padding: 26px 0 50px; }
.panel { background: var(--white); border: var(--line); border-radius: var(--r); padding: clamp(22px, 3.6vw, 42px); }
.signal { background: var(--white) url("assets/motif-signal.svg") no-repeat right -20px bottom -20px; background-size: 220px 220px; }
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: center; }
.hero-fig { margin: 0; border: var(--line); border-radius: 8px; overflow: hidden; }
.hero-art { width: 100%; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 50px; align-items: start; }
.kicker { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .9em; }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 36em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-block; padding: 9px 20px; border-radius: 8px; border: var(--line); font-weight: 500; text-decoration: none; }
.btn.blue { background: var(--blue); color: var(--white); }
.btn.blue:hover { background: var(--navy); color: var(--white); }
.btn.outline { background: var(--white); color: var(--navy); }
.btn.outline:hover { background: var(--tint); color: var(--navy); }
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cats a { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; border: var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; height: 100%; }
.cats a:hover { background: var(--tint); }
.cats img { grid-row: span 2; width: 56px; }
.cn { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.cc { color: var(--muted); font-size: .9rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--navy); background: var(--lime); }
.ticks strong { color: var(--ink); font-weight: 500; }
.ticks.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.spot { border: var(--line); border-radius: 8px; padding: 24px; background: var(--tint); }
.spot p { color: var(--muted); font-size: 1.08rem; }

/* numbered items, large numerals */
.jump { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; padding: 5px 14px; border: var(--line); border-radius: 8px; color: var(--navy); text-decoration: none; font-weight: 500; font-size: .92rem; }
.jump a:hover { background: var(--tint); }
.cat { scroll-margin-top: 14px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cat-head img { width: 52px; }
.cat-head h2 { margin: 0; letter-spacing: .03em; }
.num-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.num-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px; border: var(--line); border-radius: 8px; }
.num { font-family: var(--serif); font-weight: 700; font-size: 2.7rem; line-height: .9; color: var(--blue); }
.num-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.num-item .pr { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--navy); white-space: nowrap; }
.num-item .q { font-family: var(--sans); font-weight: 500; font-size: .82rem; color: var(--coral); white-space: normal; display: inline-block; max-width: 9em; text-align: right; line-height: 1.35; }
.offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.offer { padding: 16px 18px; border: var(--line); border-radius: 8px; background: var(--tint); }
.offer p { margin: 0; color: var(--muted); }
.offer strong, .spot strong { color: var(--blue-dk); }

/* about / contact */
.story .first { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; line-height: 1.4; }
.story p { color: var(--muted); }
.facts { margin: 0; border: var(--line); border-radius: 8px; }
.facts div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 12px; padding: 12px 16px; }
.facts div + div { border-top: 3px solid var(--tint); }
.facts dt { font-weight: 500; color: var(--blue-dk); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
address { font-style: normal; }
.hours { width: 100%; border-collapse: separate; border-spacing: 0; border: var(--line); border-radius: 8px; overflow: hidden; }
.hours caption { text-align: left; font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 10px; }
.hours th, .hours td { text-align: left; padding: 11px 14px; }
.hours thead th { background: var(--navy); color: var(--white); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.hours tbody tr + tr th, .hours tbody tr + tr td { border-top: 3px solid var(--tint); }
.map-frame { width: 100%; height: 360px; border: var(--line); border-radius: 8px; display: block; background: var(--tint); }
.map-link { margin: 14px 0 0; font-weight: 500; }

/* footer */
.site-footer { background: var(--navy); color: #c6d3ec; padding: 36px 0 22px; border-top: 3px solid var(--lime); }
.site-footer a { color: var(--white); }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px 40px; }
.footer-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--white); margin-bottom: .3em; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-bottom { margin-top: 18px; font-size: .84rem; }

@media (max-width: 900px) {
  .hero, .duo { grid-template-columns: 1fr; }
  .cats, .ticks.cols, .num-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 24px, 1120px); }
  .head-in { justify-content: center; }
  .brand img { width: 62px; }
  .brand-name { font-size: 1.25rem; }
  .main-nav ul { justify-content: center; gap: 2px; }
  .main-nav a { padding: 5px 9px; font-size: .9rem; }
  .num-item { grid-template-columns: 46px minmax(0, 1fr); padding: 14px; }
  .num { font-size: 2rem; grid-row: span 2; }
  .num-item .pr { grid-column: 2; }
  .num-item .q { text-align: left; max-width: none; }
  .offers { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
