/* ============================================
   SP Automotive — shared styles
   Palette pulled from the shop badge/logo:
   navy + deep maroon + parchment cream
   ============================================ */

:root {
  --navy: #16293d;
  --navy-dark: #0d1b28;
  --maroon: #7c2430;
  --maroon-dark: #591a23;
  --cream: #f1e7d0;
  --cream-light: #faf5e8;
  --ink: #201d17;
  --white: #ffffff;
  --muted: #6b6250;

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(13, 27, 40, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink); }

a { color: inherit; text-decoration: none; }

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

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--cream { background: var(--cream-light); }
.section--navy {
  background: var(--navy);
  color: var(--cream);
}
.section--navy h1, .section--navy h2, .section--navy h3 {
  color: var(--white);
}
.section--navy p { color: rgba(241, 231, 208, 0.85); }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--maroon);
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
}
.section--navy .eyebrow { color: #d99aa3; }

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
}
.section--navy .lede { color: rgba(241, 231, 208, 0.85); }

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--maroon { background: var(--maroon); color: var(--white); }
.btn--maroon:hover { background: var(--maroon-dark); }

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream-light);
  border-bottom: 3px solid var(--navy);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 54px; width: auto; }
.brand-text {
  font-family: var(--font-head);
  line-height: 1.05;
}
.brand-text strong {
  display: block;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.brand-text span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--maroon);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--maroon);
  color: var(--maroon);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy);
  white-space: nowrap;
}
.header-phone small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-family: var(--font-body);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 4px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--white);
  display: flex;
  align-items: center;
  min-height: 78vh;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 27, 40, 0.75) 0%, rgba(13, 27, 40, 0.55) 45%, rgba(13, 27, 40, 0.9) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 720px; }
.hero .eyebrow { color: #e8b7bf; }
.hero h1 { color: var(--white); }
.hero p.lede { color: rgba(255, 255, 255, 0.9); }

.hero--page {
  min-height: 42vh;
}

/* Trust strip */
.trust-strip {
  background: var(--navy);
  padding: 26px 0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  flex: 1 1 200px;
}
.trust-item svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--maroon); }
.trust-item svg * { stroke: #e8b7bf; }

/* Grids */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

/* Service cards */
.card {
  background: var(--white);
  border: 1px solid #e7ded0;
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card svg { width: 40px; height: 40px; color: var(--maroon); margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.95rem; }

/* Image + text split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split.reverse .split-text { order: 2; }
.split.reverse .split-media { order: 1; }

/* Service detail rows (services page) */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid #e7ded0;
}
.service-row:last-child { border-bottom: none; }
.service-row.reverse { grid-template-columns: 1.15fr 1fr; }
.service-row.reverse .service-media { order: 2; }
.service-row img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.service-number {
  font-family: var(--font-head);
  color: var(--maroon);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(13,27,40,0.88), transparent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Quote / values block */
.quote-block {
  border-left: 4px solid var(--maroon);
  padding: 6px 0 6px 26px;
  margin: 40px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.quote-block svg { width: 26px; height: 26px; color: var(--maroon); flex-shrink: 0; margin-top: 4px; }
.quote-block p {
  font-style: italic;
  color: var(--navy);
  font-size: 1.05rem;
  margin: 0;
}

/* CTA band */
.cta-band {
  background: var(--maroon);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn--outline { border-color: var(--white); }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.info-card {
  background: var(--cream-light);
  border: 1px solid #e7ded0;
  border-radius: var(--radius);
  padding: 36px;
}
.info-line {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.info-line svg { width: 24px; height: 24px; color: var(--maroon); flex-shrink: 0; margin-top: 2px; }
.info-line strong { display: block; color: var(--navy); font-family: var(--font-head); letter-spacing: 0.03em; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e7ded0;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(241, 231, 208, 0.75);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 60px; margin-bottom: 16px; }
.footer-brand p { color: rgba(241, 231, 208, 0.65); font-size: 0.92rem; max-width: 320px; }
.footer-col h4 {
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(241, 231, 208, 0.75);
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--white); }
.footer-faith {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(241, 231, 208, 0.55);
}
.footer-faith svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(241, 231, 208, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(241, 231, 208, 0.5);
}

/* Responsive */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-light);
    padding: 20px 24px 28px;
    border-bottom: 3px solid var(--navy);
    gap: 16px;
  }

  .grid--3 { grid-template-columns: 1fr 1fr; }
  .split, .service-row, .service-row.reverse, .contact-grid {
    grid-template-columns: 1fr;
  }
  .service-row .service-media, .service-row.reverse .service-media { order: 1; }
  .split.reverse .split-text, .split.reverse .split-media { order: initial; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { min-height: 88vh; }
}

@media (max-width: 480px) {
  .brand { gap: 8px; }
  .brand img { height: 42px; }
  .brand-text span { display: none; }
  .brand-text strong { font-size: 0.95rem; }
  .header-cta { gap: 10px; }
  .header-cta .btn { padding: 10px 14px; font-size: 0.78rem; }
  .nav-toggle { width: 38px; height: 34px; }
  .gallery { grid-template-columns: 1fr; }
}
