/* ============================================================
   RAUCH ELECTRIC
   Palette: Pantone 1788 C red accent, charcoal, slate, warm neutral, white
   Type:    Archivo (headings + UI) / Source Serif 4 (narrative + quotes)
   ============================================================ */

:root {
  /* ---- Color ---- */
  --ink:        #1A1C1E;   /* near-black, logo mountain / headings / footer */
  --ink-soft:   #2C3135;
  --slate:      #5A666F;   /* supporting cool gray, body text on white */
  --rule:       #DCD7D2;   /* warm hairline */
  --sand:       #F4F2EF;   /* warm off-white section base */
  --paper:      #FFFFFF;
  --red:        #EE2B24;   /* Pantone 1788 C, approximate screen value */
  --red-dark:   #C61C17;

  /* ---- Photos: drop your files in /images with these names ---- */
  --hero-img:   url('../images/matt-hero.jpg');
  --about-img:  url('../images/matt-about.jpg');

  /* Nudge the crop if a face sits high or low. 50% 50% is centered.
     Lower the 2nd number to show more of the top of the frame. */
  --hero-pos:   68% 42%;
  --about-pos:  60% 50%;

  /* ---- Layout ---- */
  --wrap: 1180px;
  --pad:  clamp(1.25rem, 4vw, 3rem);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--paper);
  padding-bottom: 64px; /* room for the mobile call bar */
}
@media (min-width: 800px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Type ---- */
h1, h2, h3, h4 {
  font-family: 'Archivo', system-ui, sans-serif;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.021em;
  line-height: 1.12;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.012em; }
p  { margin: 0 0 1.1em; max-width: 68ch; }

.lede {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.15rem, 2.1vw, 1.35rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.prose { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.15rem; line-height: 1.72; }
.prose p { max-width: 64ch; }

/* ---- Shell ---- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.band-sand { background: var(--sand); }
.band-ink  { background: var(--ink); color: #C7CDD2; }
.band-ink h2, .band-ink h3 { color: #fff; }

.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--slate); }
.band-ink .section-head p { color: #A9B2B9; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; letter-spacing: .005em;
  padding: .82rem 1.5rem;
  border-radius: 3px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-red   { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-line  { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 3px solid var(--red);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: .7rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-weight: 700; font-size: 1.12rem; letter-spacing: .012em;
  color: #fff; line-height: 1.05;
}
.brand-name span { display: block; font-weight: 500; font-size: .7rem; color: #9AA4AB; letter-spacing: .13em; }

.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 1.6rem; }
  .nav a { color: #D3D9DD; text-decoration: none; font-size: .96rem; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
  .nav a:hover { color: #fff; }
  .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
}
.header-cta { display: none; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }

/* Mobile menu */
.menu-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 1px solid rgba(255,255,255,.35); color: #fff;
  font: inherit; font-size: .9rem; font-weight: 600;
  padding: .5rem .8rem; border-radius: 3px; cursor: pointer;
}
@media (min-width: 900px) { .menu-btn { display: none; } }
.mobile-nav { display: none; background: var(--ink-soft); border-top: 1px solid rgba(255,255,255,.12); }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: .95rem var(--pad); color: #E4E8EB;
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 500;
}
.mobile-nav a[aria-current="page"] { color: #fff; box-shadow: inset 4px 0 0 var(--red); }

/* ============================================================
   HERO: full-bleed banner on desktop, stacked photo and panel on phones
   ============================================================ */
.hero { display: grid; background: var(--ink); }
@media (min-width: 900px) {
  /* Full-bleed banner. The photo carries deliberate negative space on the
     left, so the copy sits over it behind a gradient scrim rather than in a
     separate panel. Below 900px this falls back to the stacked layout. */
  .hero {
    grid-template-columns: 1fr;
    min-height: 640px;
    align-items: center;
    background-image:
      linear-gradient(90deg,
        rgba(26,28,30,.96) 0%,
        rgba(26,28,30,.92) 26%,
        rgba(26,28,30,.62) 46%,
        rgba(26,28,30,.12) 64%,
        rgba(26,28,30,0)   76%),
      var(--hero-img);
    background-size: cover;
    background-position: 62% 18%;
    background-repeat: no-repeat;
  }
}

.hero-panel {
  padding: clamp(2.5rem, 5vw, 4.25rem) var(--pad);
  display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 900px) {
  .hero-panel {
    grid-area: 1 / 1;
    max-width: 50%;
    padding-left: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
    padding-right: 2.5rem;
  }
}
/* Once there's room, cap the measure rather than letting the line length grow. */
@media (min-width: 1240px) { .hero-panel { max-width: 660px; padding-right: 3rem; } }
.hero h1 { color: #fff; }
.hero-tag {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.3rem); color: #fff;
  border-left: 3px solid var(--red); padding-left: .9rem;
  margin: 0 0 1.35rem;
}
.hero-sub { color: #AEB7BD; max-width: 46ch; margin-bottom: 1.9rem; }

/* The phone number is the boldest object on the page, by design.
   Same principle as the truck: the number is at least as prominent as the name. */
.hero-phone { text-decoration: none; display: inline-block; margin-bottom: 1.5rem; }
.hero-phone .num {
  display: block;
  font-size: clamp(2rem, 5.2vw, 2.9rem); font-weight: 700; letter-spacing: -.02em;
  color: #fff; line-height: 1;
}
.hero-phone .num em { font-style: normal; color: var(--red); }
/* The vanity spelling sits directly under the dialable digits so nobody has to
   work out which letters map to which numbers. */
.hero-phone .vanity {
  display: block; margin-top: .4rem;
  font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 600; letter-spacing: .01em;
  color: #D6DCE1;
}
.hero-phone .vanity em { font-style: normal; color: var(--red); }
.hero-phone .label { display: block; margin-top: .45rem; font-size: .88rem; color: #98A2A9; letter-spacing: .04em; }
.hero-phone:hover .num { color: var(--red); }

.hero-photo {
  min-height: 62vw; max-height: 380px;
  background-color: var(--ink-soft);
  background-image: var(--hero-img);
  background-size: cover;
  background-position: var(--hero-pos);
  background-repeat: no-repeat;
  position: relative;
}
@media (min-width: 900px) { .hero-photo { display: none; } }

/* Shown only while the real photo file is missing. */
.photo-hint {
  position: absolute; inset: 0; pointer-events: none;
  display: grid; place-content: center; text-align: center;
  padding: 1.5rem; color: #7E8990; font-size: .9rem; line-height: 1.5;
}
.photo-hint code { color: #fff; background: rgba(255,255,255,.1); padding: .15em .45em; border-radius: 2px; }

/* ---- Trust strip ---- */
.trust {
  background: var(--sand);
  border-bottom: 1px solid var(--rule);
}
.trust ul {
  list-style: none; margin: 0; padding: 1.4rem 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem;
}
@media (min-width: 820px) { .trust ul { grid-template-columns: repeat(4, 1fr); } }
.trust li {
  font-weight: 600; color: var(--ink); font-size: .98rem;
  padding-left: .9rem; border-left: 3px solid var(--red);
  line-height: 1.35;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 700px)  { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service {
  background: var(--paper); padding: 1.9rem 1.6rem;
  display: flex; flex-direction: column;
}
.service h3 { margin-bottom: .45rem; }
.service p { font-size: .98rem; margin-bottom: 0; }
.service .when {
  margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--rule);
  font-size: .9rem; color: var(--ink-soft);
}
.service .when b { color: var(--ink); font-weight: 600; }

/* ---- Detailed service entries (Services page) ---- */
.svc-detail { border-top: 1px solid var(--rule); padding-block: 2.5rem; }
.svc-detail:first-of-type { border-top: none; padding-top: 0; }
@media (min-width: 860px) {
  .svc-detail { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; }
  .svc-detail h2 { margin-bottom: 0; }
}
.svc-detail dl { margin: 1.2rem 0 0; }
.svc-detail dt { font-weight: 700; color: var(--ink); font-size: .95rem; margin-top: 1rem; }
.svc-detail dd { margin: .2rem 0 0; font-size: 1rem; }

/* ============================================================
   WHY / VALUES
   ============================================================ */
.why { display: grid; gap: 2rem 3rem; }
@media (min-width: 760px) { .why { grid-template-columns: 1fr 1fr; } }
.why-item h3 { margin-bottom: .35rem; }
.why-item p { font-size: 1rem; margin-bottom: 0; }

/* ---- Pull quote: the standard, in Matt's words ---- */
.quote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.4; color: #fff; max-width: 24ch;
  margin: 0 0 1rem; text-wrap: balance;
}
.quote-mark { display: block; width: 46px; height: 4px; background: var(--red); margin-bottom: 1.6rem; }
.quote-by { font-size: .95rem; color: #9AA4AB; margin: 0; }

/* ============================================================
   MEET MATT
   ============================================================ */
.meet { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .meet { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.meet-photo {
  aspect-ratio: 4 / 3;
  background-color: var(--ink-soft);
  background-image: var(--about-img);
  background-size: cover;
  background-position: var(--about-pos);
  border-bottom: 4px solid var(--red);
  position: relative;
}
.meet .kicker { font-weight: 600; color: var(--red); margin-bottom: .35rem; font-size: 1rem; }

/* ---- About page: credentials list ---- */
.facts { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.facts li { padding: .9rem 0; border-bottom: 1px solid var(--rule); display: flex; gap: 1rem; align-items: baseline; }
.facts b { color: var(--ink); flex: 0 0 8.5rem; font-weight: 700; font-size: .93rem; }
.facts span { font-size: 1rem; }

/* ============================================================
   SERVICE AREA
   ============================================================ */
.towns { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .towns { grid-template-columns: repeat(4, 1fr); } }
.towns li { font-weight: 600; color: var(--ink); padding-left: .85rem; position: relative; }
.towns li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--red); }

/* ============================================================
   REVIEWS
   ============================================================ */
.review-empty {
  border: 1px solid var(--rule); border-top: 4px solid var(--red);
  background: var(--paper);
  padding: clamp(1.75rem, 4vw, 2.75rem); max-width: 62ch;
}
.review-empty h2 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); }
/* "earn" carries the emphasis in brand red rather than in capitals. */
.review-empty h2 em { font-style: normal; color: var(--red); }
.review-list { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .review-list { grid-template-columns: 1fr 1fr; } }
.review { border: 1px solid var(--rule); padding: 1.6rem; background: var(--paper); }
.review blockquote { margin: 0 0 1rem; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.08rem; line-height: 1.6; color: var(--ink-soft); }
.review cite { font-style: normal; font-weight: 600; color: var(--ink); font-size: .95rem; }
.review .where { display: block; font-size: .88rem; color: var(--slate); font-weight: 400; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact-line { border-top: 1px solid var(--rule); padding: 1.1rem 0; }
.contact-line:last-child { border-bottom: 1px solid var(--rule); }
.contact-line h3 { font-size: 1rem; margin-bottom: .2rem; }
.contact-line a { font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-line a:hover { color: var(--red); }
.contact-line p { font-size: .95rem; margin: .3rem 0 0; }

form .field { margin-bottom: 1.15rem; }
form label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: .35rem; }
form input, form select, form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .7rem .85rem; border: 1px solid #B9BFC4; border-radius: 3px; background: #fff;
}
form textarea { min-height: 140px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus { border-color: var(--ink); }
.form-note { font-size: .88rem; color: var(--slate); margin-top: 1rem; }

/* ============================================================
   FINAL CTA + FOOTER
   ============================================================ */
.cta-band { background: var(--red); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #FFE0DE; max-width: 52ch; }
.cta-band .btn-white { background: #fff; color: var(--red); font-size: 1.15rem; padding: 1rem 1.9rem; }
.cta-band .btn-white:hover { background: var(--ink); color: #fff; }

.site-footer { background: var(--ink); color: #939DA4; padding-block: 3rem 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.site-footer a { color: #C3CBD1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-phone { display: block; font-size: 1.5rem; font-weight: 700; color: #fff !important; text-decoration: none !important; margin-bottom: .3rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: .85rem; color: #7B858C;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}

/* ---- Sticky mobile call bar ---- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(0,0,0,.2);
}
@media (min-width: 800px) { .call-bar { display: none; } }
.call-bar a {
  padding: 1rem .5rem; text-align: center; text-decoration: none;
  font-weight: 700; font-size: 1.02rem;
}
.call-bar .call { background: var(--red); color: #fff; }
.call-bar .req  { background: var(--ink); color: #fff; }

/* ---- One orchestrated entrance, hero only ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-panel > * { animation: rise .55s cubic-bezier(.2,.7,.3,1) backwards; }
  .hero-panel > *:nth-child(1) { animation-delay: .05s; }
  .hero-panel > *:nth-child(2) { animation-delay: .12s; }
  .hero-panel > *:nth-child(3) { animation-delay: .19s; }
  .hero-panel > *:nth-child(4) { animation-delay: .26s; }
  .hero-panel > *:nth-child(5) { animation-delay: .33s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

.skip {
  position: absolute; left: -9999px;
  background: #fff; color: var(--ink); padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: .6rem; }
