/* CornerField Electric LLC: vivid breaker-blue and safety-yellow on a pale blue tint, a narrow document-like
   column, classic serif headings over a sans body, centred logo with the navigation below, menu rows with dotted
   leaders to the price, soft shadows without borders, faint wiring-run motif */
@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0b1840;
  --blue: #1f5cff;
  --blue-dk: #1340c4;
  --yellow: #ffc21a;
  --tint: #eef3ff;
  --tint-2: #dfe8ff;
  --ink: #16203a;
  --muted: #47536f;
  --white: #ffffff;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --col: 760px;
  --shadow: 0 1px 2px rgba(11, 24, 64, .06), 0 10px 30px rgba(11, 24, 64, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--tint) url("assets/motif-wiring.svg") repeat;
  background-size: 120px 120px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dk); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip-link:focus { left: 8px; }
.col { width: min(100% - 32px, var(--col)); margin-inline: auto; }

/* header: centred logo, navigation below */
.site-header { padding: 28px 0 10px; }
.head-in { text-align: center; }
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); }
.brand img { width: 76px; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.brand-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.main-nav ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.main-nav a { display: inline-block; padding: 7px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; }
.main-nav a:hover { background: var(--white); box-shadow: var(--shadow); }
.main-nav a[aria-current="page"] { background: var(--navy); color: var(--white); box-shadow: var(--shadow); }

/* document column */
main { padding: 26px 0 40px; }
.intro { text-align: center; padding: 18px 0 26px; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dk); margin-bottom: .9em; }
.kicker::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--yellow); border-radius: 2px; transform: rotate(45deg); vertical-align: 1px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin-inline: auto; }
.sheet { background: var(--white); border-radius: 10px; box-shadow: var(--shadow); padding: clamp(22px, 4.5vw, 40px); margin: 0 0 22px; }
.sheet.art { padding: 18px; }
.sheet.art img { width: 100%; }
figure { margin: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.sheet .btn-row { justify-content: flex-start; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.btn.solid { background: var(--blue); color: var(--white); box-shadow: 0 6px 16px rgba(31, 92, 255, .28); }
.btn.solid:hover { background: var(--blue-dk); color: var(--white); }
.btn.soft { background: var(--white); color: var(--navy); box-shadow: var(--shadow); }
.btn.soft:hover { background: var(--tint-2); }

.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li + li { margin-top: 10px; }
.cat-list a { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 10px; background: var(--tint); text-decoration: none; color: var(--navy); }
.cat-list a:hover { background: var(--tint-2); }
.cat-list img { width: 56px; }
.cn { font-family: var(--serif); font-size: 1.2rem; }
.cc { font-size: .85rem; color: var(--muted); font-weight: 700; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .75em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); box-shadow: inset 0 0 0 4px var(--white), 0 0 0 2px var(--blue); }
.ticks strong { color: var(--navy); }
.spot { background: var(--navy); color: #e8eeff; }
.spot h2 { color: var(--white); }
.spot .kicker { color: var(--yellow); }
.spot .amt { color: var(--yellow); font-family: var(--serif); font-weight: 400; font-size: 1.3rem; white-space: nowrap; }

/* services: menu rows with dotted leaders */
.jump { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jump a { display: inline-block; padding: 6px 12px; border-radius: 8px; background: var(--white); box-shadow: var(--shadow); text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--navy); }
.cat { scroll-margin-top: 16px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cat-head img { width: 52px; }
.cat-head h2 { margin: 0; }
.menu { list-style: none; margin: 0; padding: 0; }
.row { padding: 14px 0; }
.row + .row { box-shadow: 0 -1px 0 var(--tint-2); }
.line { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.nm { font-weight: 700; color: var(--navy); }
.dots { flex: 1 1 24px; min-width: 24px; border-bottom: 2px dotted #9fb2dd; transform: translateY(-5px); }
.pr { font-family: var(--serif); font-size: 1.12rem; color: var(--blue-dk); white-space: nowrap; }
.pr.quote { font-family: var(--sans); font-size: .9rem; font-weight: 700; color: var(--navy); background: #fff4cf; padding: 2px 9px; border-radius: 6px; white-space: nowrap; line-height: 1.35; }
.ds { margin: 4px 0 0; color: var(--muted); font-size: .97rem; max-width: 34em; }
.feat { background: var(--navy); color: #e8eeff; }
.feat h2 { color: var(--white); }
.offers { list-style: none; margin: 0; padding: 0; }
.offers li { padding: 14px 0; box-shadow: 0 -1px 0 rgba(255, 255, 255, .14); }
.offers li:first-child { box-shadow: none; padding-top: 0; }
.offers h3 { color: var(--yellow); margin-bottom: .25em; }
.offers p { margin: 0; }
.offers .amt { font-family: var(--serif); font-size: 1.25rem; color: var(--white); margin-top: 4px; }
.feat .btn.soft { box-shadow: none; }

/* about */
.story .first { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--navy); }
.story .rule { font-weight: 700; color: var(--navy); background: #fff4cf; padding: 12px 16px; border-radius: 8px; margin: 0; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 10px 0; box-shadow: 0 -1px 0 var(--tint-2); }
.facts div:first-child { box-shadow: none; }
.facts dt { font-weight: 700; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 0; color: var(--navy); }
address { font-style: normal; }

/* contact */
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-family: var(--serif); font-size: 1.55rem; color: var(--navy); margin-bottom: 12px; }
.hours th, .hours td { text-align: left; padding: 11px 12px; }
.hours thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.hours tbody tr:nth-child(odd) { background: var(--tint); }
.hours tbody th { color: var(--navy); }
.map-frame { width: 100%; height: 340px; border: 0; border-radius: 8px; background: var(--tint-2); display: block; }
.map-link { margin: 14px 0 0; font-weight: 700; }

/* footer */
.site-footer { background: var(--navy); color: #cfd9f5; padding: 36px 0 26px; text-align: center; }
.site-footer a { color: var(--white); }
.footer-name { font-family: var(--serif); font-size: 1.3rem; color: var(--white); margin-bottom: .3em; }
.footer-list { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer-bottom { font-size: .85rem; margin: 10px 0 0; opacity: .8; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .main-nav ul { gap: 4px; }
  .main-nav a { padding: 6px 8px; font-size: .86rem; }
  .cat-list a { grid-template-columns: 44px 1fr; }
  .cat-list img { width: 44px; }
  .cc { grid-column: 2; }
  .line { flex-wrap: wrap; }
  .dots { display: none; }
  .nm { flex: 1 1 100%; }
  .pr.quote { white-space: normal; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
