/* Homepage layout — responsive rebuild of the legacy absolute-position layout.
   Linked from index.html only.
   Visual theme (2026-07-28): "Cut Key" — gunmetal ink + steel neutrals on white,
   green reserved exclusively for call-to-action elements. Barlow (California
   road-signage lettering) for type; the quote band's top edge is clipped into
   a key-bitting profile. Layout rules unchanged from the verified rebuild. */


:root {
  --ink: #1C2B36;        /* headings, nav, footer */
  --ink-2: #2C3F4E;      /* hover / secondary dark */
  --steel: #4C6577;      /* secondary text */
  --mist: #F4F7F9;       /* light panels */
  --line: #DDE5EA;       /* borders */
  --cta: #15803D;        /* CTA green — call-to-action only */
  --cta-hover: #166534;  /* CTA green, pressed/hover */
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  /* 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);
  font-size: 17px;
  line-height: 1.65;
  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; }

a { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }

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

/* ---------- 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; display: block; }

.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 — primary call-to-action, the one green element above the fold */
.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;
}

.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 ---------- */

.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;
}

.site-nav .nav-plain { color: #9FB2BF; }

.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;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 0;
  margin-bottom: 28px;
  padding-top: 28px;
  padding-bottom: 28px;
  background-color: var(--mist);
  border-bottom: 1px solid var(--line);
}

.slideshow {
  flex: 1 1 508px;
  min-width: 0;
  padding: 5px;
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.slideshow-frame { width: 100%; }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.framed-img {
  padding: 4px;
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 0;
  align-self: center;
}

.framed-img img { display: block; border-radius: 4px; }

.framed-img-glow,
.framed-img-shadow {
  border-color: var(--line);
  box-shadow: none;
}

/* ---------- Intro heading ---------- */

.intro-heading { text-align: center; margin: 34px 0 14px; }

.intro-heading h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.intro-heading h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 14px auto 0;
  background-color: var(--ink);
}

.intro-subheading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--steel);
}

/* ---------- Two-column layout ---------- */

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-areas: "sidebar content";
  gap: 36px;
  margin: 30px 0;
}

.sidebar { grid-area: sidebar; }
.content { grid-area: content; }

/* Brand links */

.brand-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.brand-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
}

.brand-list li:last-child { border-bottom: none; }

.brand-list .brand-logo { flex-shrink: 0; line-height: 0; }

.brand-list a {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}

.brand-list a:visited { color: var(--ink); }
.brand-list a:hover { text-decoration: underline; }

/* Sidebar boxes */

.side-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--steel);
  background-color: var(--mist);
}

.side-box p { margin: 0 0 10px; }
.side-box p:last-child { margin-bottom: 0; }

.side-box-center { text-align: center; }

/* Sidebar contact box — a call-to-action, so it carries the CTA green */
.side-box:last-child {
  background-color: #ffffff;
  border-top: 3px solid var(--cta);
  text-align: center;
}

.side-box-phone {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cta);
}

.side-box-button a { display: inline-block; }
.side-box-button img { display: block; margin: 0 auto; }

/* Call button (replaces the old Email Me modal button) */
.cta-call-btn {
  display: inline-block;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: var(--cta);
  border-radius: 8px;
  text-decoration: none;
}

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

/* ---------- Main copy ---------- */

.about p { margin: 0 0 16px; color: var(--ink-2); }

.accent { color: var(--ink); }

.accent-heading {
  margin: 26px 0 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.services-list {
  margin: 0 0 20px;
  padding-left: 24px;
  color: var(--ink-2);
}

.services-list li { margin-bottom: 6px; }
.services-list li::marker { color: var(--steel); }

/* ---------- Quote banner — the signature call-to-action band ---------- */

.quote-banner {
  position: relative;
  text-align: center;
  margin: 48px 0 36px;
  padding: 28px 16px 26px;
  background-color: var(--cta);
}

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

.quote-banner p {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
}

.quote-banner p:last-child { margin-bottom: 0; }

/* ---------- Price cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
}

.card:hover { border-color: var(--steel); }

.card h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.card-images {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.card-images-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.card-note {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: 13px;
  color: var(--steel);
}

.badge {
  text-align: center;
  margin: 32px 0;
}

/* ---------- Why choosing us ---------- */

.why-us {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin: 8px 0 24px;
  background-color: var(--mist);
}

.why-us .accent-heading { margin-top: 0; }

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

.why-us-cols ul {
  flex: 1 1 220px;
  margin: 0;
  padding-left: 24px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-2);
}

.why-us-cols li { margin-bottom: 12px; }
.why-us-cols li::marker { color: var(--steel); }

/* ---------- CTA banner ---------- */

.cta-banner {
  position: relative;
  margin: 36px 0;
}

.cta-banner-img {
  align-self: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.cta-banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
  background-color: rgba(28, 43, 54, 0.88);
  padding: 14px 12px;
  border-radius: 0 0 8px 8px;
}

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

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

.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: 30px;
  padding-bottom: 10px;
  margin-top: 24px;
}

.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; }

#footer { text-align: center; }

/* the legacy inline <style> in index.html sets #footer a to pink; realign it */
.site-footer #footer a { color: #B9C6CF; }

/* ---------- 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)); }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  a, .card { transition: none; }
}

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

@media (max-width: 900px) {
  .hero { flex-wrap: wrap; }

  .hero-side {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .brand-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-list li:nth-last-child(2) { border-bottom: none; }

  .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-nav li { flex: 1 1 50%; }
  .site-nav a,
  .site-nav .nav-plain { padding: 12px 8px; font-size: 15px; }

  .site-title { font-size: 30px; }

  .intro-heading h2 { font-size: 27px; }
  .intro-subheading { font-size: 20px; }

  .quote-banner p { font-size: 22px; }

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

  .why-us-cols ul { font-size: 17px; }

  .cta-banner-caption {
    position: static;
    background-color: var(--ink);
    border-radius: 0 0 8px 8px;
    font-size: 19px;
    margin-top: 0;
  }

  .brand-list { grid-template-columns: minmax(0, 1fr); }
  .brand-list li:nth-last-child(2) { border-bottom: 1px solid var(--line); }

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