/* The Fine Key Electronics LLC — shared styles
   Seed 4-3-8-3-5-1-6: earthy, dusty appliance colors (sage enamel, terracotta, slate blue, sand, stainless) ·
   pale sage tint base · a few large panels · condensed bold uppercase headings (Roboto Condensed) + sans body
   (Instrument Sans) · pill-button nav · price tables · soft shadows, no borders · motif: perforated drum steel */

@font-face { font-family: "Roboto Condensed"; src: url("fonts/roboto-condensed-700.woff") format("woff"); font-weight: 700; 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 {
  --tint: #eef2ef;
  --panel: #ffffff;
  --chip: #dfe7e2;
  --ink: #263330;
  --muted: #56645f;
  --sage: #4f6d62;
  --terra: #b05c3c;
  --sand: #f3ece0;
  --slate: #6f8197;
  --cond: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(38, 51, 48, 0.06), 0 12px 32px rgba(38, 51, 48, 0.1);
  --perf: url("assets/motif-perforated.svg") 0 0 / 16px 16px repeat;
  --r: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--tint); }
body { margin: 0; font-family: var(--sans); font-size: 1.04rem; line-height: 1.64; color: var(--ink); background: var(--tint) var(--perf); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
strong { font-weight: 700; }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; line-height: 1.04; margin: 0 0 0.45em; color: var(--ink); text-transform: uppercase; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.12rem; letter-spacing: 0.03em; }
p { margin: 0 0 1em; }
a { color: var(--terra); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: clamp(0.9rem, 3.5vw, 2rem); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.45rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 1rem; }

/* ---------- header: logo left, pill-button nav ---------- */
.site-header { padding-block: 1rem; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 2rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; color: var(--ink); text-decoration: none; }
.brand img { width: 62px; height: auto; flex: none; border-radius: 14px; box-shadow: var(--shadow); }
.brand-name { font-family: var(--cond); font-weight: 700; font-size: clamp(1.3rem, 2.8vw, 1.6rem); line-height: 1.05; text-transform: uppercase; }
.brand:hover .brand-name { color: var(--terra); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-block; padding: 0.42rem 1.05rem; border-radius: 999px; background: var(--panel); box-shadow: var(--shadow); color: var(--ink); font-weight: 700; font-size: 0.96rem; text-decoration: none; }
.main-nav a:hover { color: var(--terra); }
.main-nav a[aria-current="page"] { background: var(--sage); color: #fff; }

/* ---------- large panels ---------- */
.panel { margin-block: 0 clamp(1.2rem, 3vw, 1.8rem); padding: clamp(1.4rem, 4vw, 2.6rem); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); }
.panel.sand { background: var(--sand); }
.panel.sage { background: var(--sage); color: #fff; }
.panel.sage h2, .panel.sage h3 { color: #fff; }
.panel.sage p { color: #e3ebe7; }
.hero-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.4rem, 4vw, 2.6rem); align-items: center; }
.hero-art { display: block; width: 100%; border-radius: 18px; }
.tag { display: inline-block; margin: 0 0 1rem; padding: 0.3rem 0.9rem; border-radius: 999px; background: var(--chip); color: var(--sage); font-weight: 700; font-size: 0.88rem; line-height: 1.45; max-width: 100%; }
.lede { font-size: clamp(1.1rem, 2vw, 1.24rem); color: var(--muted); max-width: 48ch; }
.kicker { margin: 0 0 0.35rem; color: var(--terra); font-family: var(--cond); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.7rem 1.35rem; border: 0; border-radius: 999px; background: var(--terra); color: #fff; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; box-shadow: var(--shadow); }
.btn:hover { background: var(--ink); color: #fff; }
.btn-soft { background: var(--panel); color: var(--ink); }
.btn-soft:hover { background: var(--chip); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.icon-chip { display: grid; place-items: center; flex: none; width: 72px; height: 72px; border-radius: 18px; background: var(--chip); }
.icon-chip img { width: 50px; height: 50px; }

/* home */
.depts { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; }
.depts a { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.depts .d-name { font-family: var(--cond); font-weight: 700; font-size: 1.1rem; line-height: 1.15; text-transform: uppercase; }
.depts .d-meta { color: var(--muted); font-size: 0.92rem; margin-top: -0.4rem; }
.depts a:hover .d-name { color: var(--terra); }
.split2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.points { list-style: none; margin: 0; padding: 0; }
.points li { position: relative; padding-left: 1.4rem; color: var(--muted); }
.points li + li { margin-top: 0.75rem; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--terra); }
.points strong { color: var(--ink); }
.panel.sage .points li { color: #e3ebe7; }
.panel.sage .points strong { color: #fff; }
.panel.sage .points li::before { background: var(--sand); }
.offers { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.offers h3 { margin-bottom: 0.3rem; }
.offers p { margin: 0; color: var(--muted); }
.offers .deal { display: inline-block; margin-top: 0.6rem; padding: 0.22rem 0.8rem; border-radius: 999px; background: var(--panel); color: var(--terra); font-weight: 700; box-shadow: var(--shadow); }

/* ---------- catalog: price tables in large panels ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 1.3rem 0 0; padding: 0; }
.jump a { display: inline-block; padding: 0.35rem 0.95rem; border-radius: 999px; background: var(--chip); color: var(--ink); font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.jump a:hover { color: var(--terra); }
.cat { scroll-margin-top: 1rem; }
.cat-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.cat-head h2 { margin: 0; }
.prices { width: 100%; border-collapse: collapse; }
.prices th, .prices td { padding: 0.8rem 0.9rem; text-align: left; vertical-align: top; }
.prices thead th { background: var(--tint); color: var(--sage); font-family: var(--cond); font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase; }
.prices thead th:first-child { border-radius: 12px 0 0 12px; }
.prices thead th:last-child { border-radius: 0 12px 12px 0; }
.prices tbody tr + tr th, .prices tbody tr + tr td { box-shadow: inset 0 1px 0 #e4ebe7; }
.prices tbody th { width: 38%; font-weight: 700; }
.prices td.d { color: var(--muted); }
.prices .p { width: 11rem; text-align: right; color: var(--terra); font-weight: 700; font-size: 1.1rem; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.prices .p.quote { white-space: normal; color: var(--ink); font-size: 0.95rem; }
.prices .p.quote a { display: inline-block; margin-top: 0.2rem; white-space: nowrap; }

/* ---------- about / contact ---------- */
.story p { color: var(--muted); }
.story .first { color: var(--ink); font-size: 1.16rem; }
.facts, .details { margin: 0; padding: 0.4rem 1.3rem; border-radius: 16px; background: var(--tint); }
.facts div, .details div { padding: 0.7rem 0; }
.facts div + div, .details div + div { box-shadow: inset 0 1px 0 #dbe3de; }
.facts dt, .details dt { color: var(--terra); font-family: var(--cond); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.facts dd, .details dd { margin: 0; font-weight: 700; }
.details address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.5rem; font-family: var(--cond); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; }
.hours th, .hours td { padding: 0.6rem 0.4rem 0.6rem 0; text-align: left; box-shadow: inset 0 -1px 0 #dbe3de; }
.hours thead th { color: var(--sage); font-family: var(--cond); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; }
.hours tbody th { font-weight: 700; padding-right: 1rem; }
.hours td { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.hours td.closed { color: var(--terra); font-weight: 700; }
.map-frame { display: block; width: 100%; height: 380px; border: 0; border-radius: 16px; background: var(--tint); }
.map-link { margin-top: 0.8rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(1rem, 3vw, 1.6rem); background: var(--ink); color: #c8d3ce; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sand); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 1.6rem; padding-block: 2.1rem 1.3rem; }
.footer-name { margin: 0 0 0.3rem; font-family: var(--cond); font-weight: 700; font-size: 1.4rem; color: #fff; text-transform: uppercase; }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.45rem; color: var(--sand); font-weight: 700; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-bottom { margin: 0; padding-block: 0.9rem 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.85rem; }

@media (max-width: 1000px) {
  .hero-panel, .split2 { grid-template-columns: 1fr; }
  .depts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .prices thead { display: none; }
  .prices, .prices tbody, .prices tr { display: block; width: 100%; }
  .prices tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 0.8rem; padding: 0.8rem 0; }
  .prices tbody tr + tr { box-shadow: inset 0 1px 0 #e4ebe7; }
  .prices tbody tr + tr th, .prices tbody tr + tr td { box-shadow: none; }
  .prices th, .prices td { display: block; padding: 0; }
  .prices tbody th { width: auto; grid-column: 1; }
  .prices td.d { grid-column: 1 / -1; grid-row: 2; font-size: 0.95rem; }
  .prices .p { width: auto; grid-column: 2; grid-row: 1; }
  .prices .p.quote { grid-column: 1 / -1; grid-row: 3; text-align: left; }
}

@media (max-width: 600px) {
  .brand img { width: 52px; }
  .main-nav a { padding: 0.36rem 0.85rem; }
  .depts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .map-frame { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.panel .panel { margin: 0; color: var(--ink); box-shadow: none; }
