/* ==========================================================================
   BOB REED'S AUTO SERVICE — Shared Stylesheet
   Design system: 1966 service-station Americana.
   Palette pulled from the shop's own patch logo + the brick of 1641 Palm Ave.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Anton&family=Special+Elite&family=Roboto+Condensed:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  /* ---- Color tokens, named for the shop's own materials ---- */
  --shell-blue:      #4F8FB8;   /* patch convertible blue */
  --shell-blue-dark:  #2E5E7C;
  --signal-red:       #B83A2E;  /* patch racer cap / checkered flag red */
  --signal-red-dark:  #8C2A21;
  --brick:            #9A4B36;  /* 1641 Palm Ave brick */
  --brick-dark:       #6E3526;
  --shop-black:       #1C1A17;
  --shop-charcoal:    #2B2824;
  --paper:            #F1E9D8;  /* aged invoice / parts-counter paper */
  --paper-light:      #F8F3E7;
  --chrome:           #C9C2B4;
  --ok-green:         #4C6B4F;  /* OPEN sign green, used sparingly */

  --max-width: 1180px;

  /* Type */
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --hand:    'Anton', 'Arial Narrow', sans-serif;
  --body:    'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
  --stencil: 'Special Elite', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--paper);
  color: var(--shop-black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.4em 0;
  line-height: 1.05;
}

p { margin: 0 0 1em 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Texture: faint paper grain + pinstripe band used behind sections ---- */
.grain {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.025) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.02) 0, transparent 45%);
}

.pinstripe {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.05) 2px,
    transparent 2px,
    transparent 14px
  );
}

/* ==========================================================================
   HEADER / NAV — styled like the painted band above a garage bay
   ========================================================================== */

.site-header {
  background: var(--shop-black);
  border-bottom: 6px solid var(--signal-red);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--paper-light);
}

.brand img {
  height: 78px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text .name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--paper-light);
  text-transform: uppercase;
}

.brand-text .since {
  font-family: var(--stencil);
  font-size: 0.68rem;
  color: var(--shell-blue);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

nav.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

nav.main-nav a {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--paper-light);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 3px;
  transition: background 0.15s ease, color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a:focus-visible {
  background: var(--signal-red);
  color: #fff;
  outline: none;
}

nav.main-nav a.current {
  color: var(--shell-blue);
}

nav.main-nav a.current:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; }
  nav.main-nav {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 8px;
  }
  nav.main-nav a { padding: 8px 8px; font-size: 0.74rem; }
  .brand-text .name { font-size: 1.05rem; }
  .brand img { height: 58px; }
}

/* ==========================================================================
   HERO BANDS
   ========================================================================== */

.hero {
  position: relative;
  background: var(--shop-black);
  color: var(--paper-light);
  overflow: hidden;
}

.hero-photo {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,17,14,0.25) 0%, rgba(20,17,14,0.6) 55%, rgba(20,17,14,0.94) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px 46px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-photo-plain {
  width: 100%;
  height: 56vh;
  min-height: 360px;
  max-height: 560px;
  background-size: cover;
  background-position: center 30%;
  border-bottom: 5px solid var(--signal-red);
}

.hero-text-band {
  background: var(--shop-black);
  color: var(--paper-light);
  padding: 44px 0 50px;
}

.hero-text-band h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  margin-bottom: 14px;
}

.hero-text-band .lede {
  font-family: var(--body);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  max-width: 640px;
  color: var(--paper);
  font-weight: 400;
}

.hero-text-band .actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .hero-photo-plain { height: 42vh; min-height: 240px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--stencil);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shell-blue);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--shell-blue);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 14px;
  text-shadow: 0 3px 14px rgba(0,0,0,0.5);
}

.hero .lede {
  font-family: var(--body);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 640px;
  color: var(--paper);
  font-weight: 400;
}

.hero .actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  padding: 13px 24px;
  border-radius: 3px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-primary {
  background: var(--signal-red);
  color: #fff;
  box-shadow: 0 3px 0 var(--signal-red-dark);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--signal-red-dark); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--signal-red-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-blue {
  background: var(--shell-blue);
  color: #fff;
  box-shadow: 0 3px 0 var(--shell-blue-dark);
}
.btn-blue:hover { transform: translateY(-1px); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--shop-black);
  color: var(--shop-black);
}
.btn-outline-dark:hover { background: rgba(0,0,0,0.08); }

/* Small page header used on non-home pages (no photo) */
.page-head {
  background: var(--shop-black);
  color: var(--paper-light);
  border-bottom: 6px solid var(--shell-blue);
  position: relative;
}

.page-head .wrap { padding: 50px 24px 38px; }

.page-head .eyebrow { background: rgba(255,255,255,0.05); }

.page-head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.page-head .lede {
  color: var(--paper);
  max-width: 620px;
  font-size: 1.08rem;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

section {
  padding: 64px 0;
}

.section-tight { padding: 40px 0; }

.section-dark {
  background: var(--shop-black);
  color: var(--paper-light);
}

.section-brick {
  background: var(--brick);
  color: var(--paper-light);
}

.section-blue {
  background: var(--shell-blue-dark);
  color: var(--paper-light);
}

.section-head {
  margin-bottom: 36px;
  max-width: 680px;
}

.section-head .kicker {
  font-family: var(--stencil);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-red);
  display: block;
  margin-bottom: 10px;
}

.section-dark .section-head .kicker,
.section-blue .section-head .kicker,
.section-brick .section-head .kicker { color: var(--chrome); }

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.section-head .desc {
  font-size: 1.05rem;
  color: #4a443c;
  margin-top: 10px;
}

.section-dark .section-head .desc,
.section-blue .section-head .desc,
.section-brick .section-head .desc { color: rgba(255,255,255,0.82); }

hr.divider {
  border: none;
  height: 4px;
  width: 64px;
  background: var(--signal-red);
  margin: 0 0 18px 0;
}

/* ==========================================================================
   CARDS / GRIDS
   ========================================================================== */

.grid {
  display: grid;
  gap: 26px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper-light);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  padding: 26px 24px;
  position: relative;
}

.card .icon-tag {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--shop-black);
  color: var(--shell-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.card p {
  color: #4a443c;
  font-size: 0.97rem;
  margin-bottom: 0;
}

/* Photo with painted plate / corner-tab styling for historic photos */
.photo-plate {
  background: var(--paper-light);
  padding: 12px 12px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  position: relative;
}

.photo-plate img {
  width: 100%;
  display: block;
}

.photo-plate.match-height img {
  height: 420px;
  object-fit: cover;
}

@media (max-width: 700px) {
  .photo-plate.match-height img { height: 300px; }
}

.photo-plate figcaption {
  font-family: var(--stencil);
  font-size: 0.78rem;
  color: #5a5347;
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.02em;
}

.photo-plate.tilt-l { transform: rotate(-1.4deg); }
.photo-plate.tilt-r { transform: rotate(1.6deg); }

/* ==========================================================================
   TIMELINE (History page) — a real chronological sequence, numbers earned
   ========================================================================== */

.timeline {
  position: relative;
  margin-top: 10px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 100px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom, var(--signal-red) 0, var(--signal-red) 10px, transparent 10px, transparent 18px
  );
}

@media (max-width: 700px) {
  .timeline::before { left: 28px; }
}

.t-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 36px;
  padding: 26px 0;
  position: relative;
}

@media (max-width: 700px) {
  .t-row { grid-template-columns: 28px 1fr; gap: 16px; }
}

.t-year {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--signal-red);
  position: relative;
  text-align: right;
  padding-top: 4px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .t-year { font-size: 0; }
  .t-year::after {
    content: attr(data-year);
    position: absolute;
    top: -28px;
    left: 0;
    font-size: 0.95rem;
    white-space: nowrap;
  }
}

.t-row::after {
  content: "";
  position: absolute;
  left: 100px;
  top: 30px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--signal-red);
  transform: translateX(-50%);
}

@media (max-width: 700px) {
  .t-row::after { left: 28px; }
}

.t-body h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.t-body p {
  color: #4a443c;
  margin-bottom: 0;
}

/* ==========================================================================
   QUOTE / TESTIMONIAL CARDS
   ========================================================================== */

.quote-card {
  background: var(--paper-light);
  border-left: 5px solid var(--shell-blue);
  padding: 26px 28px;
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.quote-card .stars {
  color: var(--signal-red);
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.quote-card blockquote {
  font-family: var(--body);
  font-style: italic;
  font-size: 1.08rem;
  margin: 0 0 14px 0;
  color: var(--shop-black);
}

.quote-card cite {
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brick-dark);
}

.quote-card .source {
  display: block;
  font-family: var(--stencil);
  font-size: 0.74rem;
  color: #807a6c;
  margin-top: 4px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer.site-footer {
  background: var(--shop-black);
  color: rgba(255,255,255,0.75);
  border-top: 6px solid var(--signal-red);
}

footer.site-footer .wrap {
  padding: 46px 24px 30px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 760px) {
  footer.site-footer .wrap { grid-template-columns: 1fr; }
}

footer.site-footer h4 {
  color: var(--paper-light);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

footer.site-footer p, footer.site-footer a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  line-height: 1.7;
}

footer.site-footer a:hover { color: var(--shell-blue); text-decoration: underline; }

footer.site-footer .foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

footer.site-footer .foot-brand img { height: 64px; }

footer.site-footer .foot-brand span {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--paper-light);
  font-size: 1.05rem;
}

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 16px 24px;
  font-family: var(--stencil);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   UTILITY
   ========================================================================== */

.center { text-align: center; }
.mt-0 { margin-top: 0; }

.badge-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.review-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-light);
  border: 1px solid rgba(0,0,0,0.12);
  padding: 12px 18px;
  border-radius: 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--shop-black);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.review-badge-link:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.review-badge-link .stars-mini { color: var(--signal-red); }

/* checkerboard divider strip, used sparingly between bands */
.checker-strip {
  height: 14px;
  background-image:
    linear-gradient(45deg, var(--shop-black) 25%, transparent 25%, transparent 75%, var(--shop-black) 75%),
    linear-gradient(45deg, var(--shop-black) 25%, var(--paper-light) 25%, var(--paper-light) 75%, var(--shop-black) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
}

table.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--body);
  font-size: 1.02rem;
}

table.hours-table td {
  padding: 11px 4px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

table.hours-table td:last-child {
  text-align: right;
  font-family: var(--display);
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag-list span {
  font-family: var(--stencil);
  font-size: 0.78rem;
  background: rgba(0,0,0,0.06);
  padding: 6px 12px;
  border-radius: 20px;
  color: #4a443c;
}

.map-frame {
  border: 0;
  width: 100%;
  height: 360px;
  border-radius: 4px;
  filter: grayscale(15%) contrast(1.05);
  background: var(--paper-light) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><rect width="40" height="40" fill="%23F1E9D8"/></svg>');
  display: block;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--signal-red);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 3px solid var(--shell-blue);
  outline-offset: 2px;
}
