/* Shared responsive layout for inner pages (converted from the legacy
   absolute-position Homestead layout). index.html uses homepage.css instead.
   Visual theme (2026-07-28): matches homepage.css — "Cut Key" gunmetal ink +
   steel neutrals, green reserved for the call-to-action elements. Legacy inner
   markup keeps its own colors via master_css font classes. */


:root {
  --ink: #1C2B36;
  --ink-2: #2C3F4E;
  --steel: #4C6577;
  --mist: #F4F7F9;
  --line: #DDE5EA;
  --cta: #15803D;
  --cta-hover: #166534;
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", Helvetica, Arial, sans-serif;
  /* key-bitting edge: flat lands and cuts of varying depth */
  --bitting: polygon(0 100%, 0 55%, 6% 55%, 9% 0, 14% 0, 17% 60%, 24% 60%,
    27% 15%, 33% 15%, 36% 70%, 44% 70%, 47% 0, 53% 0, 56% 55%, 63% 55%,
    66% 25%, 72% 25%, 75% 70%, 82% 70%, 85% 10%, 90% 10%, 93% 55%,
    100% 55%, 100% 100%);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: #ffffff;
  overflow-x: clip;
}

.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

img { max-width: 100%; height: auto; }
table { max-width: 100%; }

/* ---------- Header ---------- */

.site-header { padding: 22px 0 18px; }

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-logo { flex-shrink: 0; }

.site-title-block { flex: 1 1 300px; min-width: 240px; }

.site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.site-tagline {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--steel);
}

/* Header phone — the call-to-action, the one green element */
.site-phone {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-phone a {
  display: block;
  padding: 12px 20px;
  color: #ffffff;
  background-color: var(--cta);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.site-phone a:visited { color: #ffffff; }
.site-phone a:hover { background-color: var(--cta-hover); }
.site-phone a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Navigation ---------- */

/* Full-bleed bands: stretch to the viewport edges from inside .page */
.site-nav,
.site-footer {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.site-nav { background-color: var(--ink); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.site-nav li { flex: 1 1 auto; text-align: center; }

.site-nav a,
.site-nav .nav-plain {
  display: block;
  padding: 14px 14px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:visited { color: #ffffff; }

.site-nav a:hover {
  background-color: var(--ink-2);
  border-bottom-color: #ffffff;
}

.site-nav a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
}

/* ---------- Converted content ---------- */

.site-main { padding: 24px 0 8px; }

/* Each .row is a band of elements that sat side by side in the old layout;
   .col stacks the elements that formed a vertical column inside that band. */

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 16px 28px;
  margin: 0 0 24px;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.el { min-width: 0; max-width: 100%; }

/* Legacy inner markup relies on the font_styles.css size/family classes,
   which set their own line-height; give squashed wrappers room to breathe. */
.el div[style*="font-size: 1px"] { font-size: 1px; }

/* Runs of legacy blank-line divs are collapsed to one of these */
.vspace { height: 14px; }

/* Center legacy framed-image boxes inside their block */
.el > div[style*="overflow: hidden"] { margin-left: auto; margin-right: auto; }

/* Legacy inline pixel widths (banner frames, blog wrapper, iframes) must
   never exceed the viewport; frames release their fixed height so the
   shrunken image inside is not cropped. The slideshow keeps its fixed
   height — its conveyor script depends on the clipped frame. */
.el div { max-width: 100%; }
.el iframe { max-width: 100%; }
.el div[style*="overflow: hidden"]:not(.slideshow-frame) { height: auto !important; }

/* Icon + label that sat side by side in the old layout */
.pair { display: flex; align-items: center; gap: 10px; }
.pair > div { flex-shrink: 0; }

/* Slideshow (conveyor script needs the fixed-height clipped frame) */
.slideshow-frame { width: 100%; max-width: 508px; }

/* ---------- Legacy palette harmonization ----------
   Inner markup uses <font color> presentational hints, which any CSS rule
   outranks — remap the old navy/plum/orange scheme onto the new tokens. */

.site-main font[color="#000066" i] { color: var(--ink-2); }
.site-main font[color="#710F4B" i] { color: var(--steel); }
.site-main font[color="#D36100" i] { color: var(--ink); }
.site-main font[color="#A61707" i] { color: var(--ink); }
/* white text belonged on the old dark footer band; on white pages it vanishes */
.site-main font[color="#FFFFFF" i],
.site-main font[color="#FFFFFF" i] a { color: var(--steel); }

/* Legacy framed images: retire the tan borders and glow shadows */
.el div[style*="overflow: hidden"] {
  border-color: var(--line) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* ---------- Product cards (model pages) ---------- */

.product-row { align-items: stretch; gap: 24px 20px; }

.product-row > .col {
  flex: 1 1 205px;
  max-width: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #ffffff;
  padding: 20px 14px;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.product-row > .col > .el { width: 100%; }

.product-row .el div[style*="overflow: hidden"] {
  margin-left: auto;
  margin-right: auto;
}

/* Horizontal strip of framed images (converted from a stacked column) */
.img-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 4px 0;
}

/* ---------- Call-to-action band ---------- */

.cta-call {
  position: relative;
  text-align: center;
  margin: 44px 0 36px;
  padding: 26px 16px 24px;
  background-color: var(--ink);
}

/* key-bitting edge along the top: the cuts of a car key */
.cta-call::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 0;
  right: 0;
  height: 14px;
  background-color: var(--ink);
  clip-path: var(--bitting);
}

.cta-call-lead {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
}

.cta-call-btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: var(--cta);
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cta-call-btn:visited { color: #ffffff; }

.cta-call-btn:hover {
  background-color: var(--cta-hover);
  transform: translateY(-1px);
}

.cta-call-btn:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }

.cta-call-sub {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: #B9C6CF;
}

/* ---------- Service areas ---------- */

.areas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.areas ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  color: var(--steel);
}

.areas li {
  margin-bottom: 5px;
  padding-left: 13px;
  position: relative;
}

.areas li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  background-color: var(--line);
  border: 1px solid var(--steel);
  border-radius: 1px;
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--ink);
  color: #ffffff;
  padding-top: 26px;
  padding-bottom: 10px;
  margin-top: 24px;
}

#footer {
  text-align: center;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 10px;
  color: #B9C6CF;
  padding: 12px 0 10px;
}

#footer a { color: #B9C6CF; text-decoration: underline; }

/* ---------- Location pages ---------- */

.loc-title {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.loc-sub {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  color: var(--steel);
}

.loc-page h2 {
  margin: 40px 0 16px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  color: var(--ink);
}

.loc-grid {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.loc-copy { flex: 1 1 480px; min-width: 0; }

.loc-copy p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}

.loc-lead { font-weight: 600; color: var(--ink); }

.loc-badges {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  flex: 0 0 auto;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.svc {
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #ffffff;
  padding: 18px 16px;
}

.svc h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}

.svc-price {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.svc p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--steel); }
.svc p.svc-price { color: var(--ink); }

.loc-why { display: flex; gap: 32px; flex-wrap: wrap; }

.loc-why ul {
  flex: 1 1 260px;
  margin: 0;
  padding-left: 22px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-2);
}

.loc-why li { margin-bottom: 10px; }
.loc-why li::marker { color: var(--steel); }

.loc-areas-note { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 8px; }
.loc-areas-note a { color: var(--ink); }

.loc-nearby { font-size: 15px; color: var(--steel); margin: 0 0 8px; }
.loc-nearby b { color: var(--ink); font-weight: 600; }
.loc-nearby a { color: var(--ink-2); margin-right: 10px; }
.loc-nearby a:visited { color: var(--ink-2); }

.loc-faq { margin: 0; }

.loc-faq dt {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 18px 0 6px;
}

.loc-faq dd { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* Footer info + links (shared with homepage markup) */

.footer-info { font-size: 14px; color: #B9C6CF; margin-bottom: 18px; }
.footer-info p { margin: 0 0 3px; }

.footer-nav {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
}

.footer-nav li { padding: 12px 18px; font-size: 15px; color: #ffffff; }
.footer-nav a { color: #ffffff; text-decoration: none; }
.footer-nav a:visited { color: #ffffff; }
.footer-nav a:hover { text-decoration: underline; }

/* Linked service-area items keep the quiet steel look */
.areas a { color: var(--steel); }
.areas a:visited { color: var(--steel); }
.areas a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .loc-grid { flex-wrap: wrap; }
  .loc-badges { flex-direction: row; width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  .loc-title { font-size: 28px; }
  .loc-sub { font-size: 18px; }
  .loc-page h2 { font-size: 23px; }
}

/* ---------- Sticky mobile call bar ---------- */

.call-bar { display: none; }

@media (max-width: 600px) {
  .call-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    text-align: center;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    background-color: var(--cta);
    padding: 15px 16px calc(15px + env(safe-area-inset-bottom, 0px));
    text-decoration: none;
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.25);
  }

  .call-bar:visited { color: #ffffff; }
  .call-bar:active { background-color: var(--cta-hover); }

  /* reserve space below the page so the bar never covers content */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .site-phone a, .cta-call-btn { transition: none; }
  .cta-call-btn:hover { transform: none; }
}

/* ---------- Tablet ---------- */

@media (max-width: 900px) {
  .row { gap: 16px 20px; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
  .site-header-inner { justify-content: center; text-align: center; }
  .site-title-block { flex-basis: 100%; }
  .site-phone { white-space: normal; }
  .site-title { font-size: 30px; }

  .site-nav li { flex: 1 1 50%; }
  .site-nav a,
  .site-nav .nav-plain { padding: 12px 8px; font-size: 15px; }

  .row { display: block; }
  .row > .el,
  .row > .col { margin: 0 auto 20px; flex-basis: auto !important; }

  .product-row > .col { max-width: 340px; }

  .cta-call-lead { font-size: 22px; }
  .cta-call-btn { font-size: 21px; padding: 13px 24px; }

  .areas { grid-template-columns: minmax(0, 1fr); }
}
