/* =========================================================
   The Best Automotive Clinic — theme
   Adjust the two brand colours below to match existing
   branding exactly; everything else derives from them.
   ========================================================= */
:root {
  --brand:        #c8102e;   /* clinic red  — primary */
  --brand-dark:   #9c0c23;   /* darker red for hover  */
  --accent:       #35a542;   /* clinic green — adjust to match existing site */
  --accent-dark:  #288533;
  --ink:          #1b1f2a;   /* charcoal navy — headers/footer */
  --ink-soft:     #2a3040;
  --paper:        #ffffff;
  --paper-alt:    #f5f6f8;
  --line:         #e4e6ea;

  --font-display: "Barlow Condensed", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  color: #333a45;
  background: var(--paper);
}

h1, h2, h3, .display-font {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink);
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

/* ---------- Masthead ---------- */
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.masthead-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1;
  color: var(--ink);
}
.masthead-tagline {
  font-size: .95rem;
  color: var(--accent-dark);
  font-weight: 600;
}
.facebook-link { color: var(--accent); }
.facebook-link:hover { color: var(--accent-dark); }

/* ---------- Quick action bar (green) ---------- */
.action-bar { background: var(--accent); }
.btn-action {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255,255,255,.55);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-hover-color: var(--accent-dark);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- Top strip + nav ---------- */
.topbar { background: var(--ink); }

.site-nav {
  background: var(--ink-soft);
  border-top: 3px solid var(--brand);
}
.site-nav .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  padding-inline: .75rem;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: #fff; }
.site-nav .nav-link.active {
  box-shadow: inset 0 -3px 0 var(--brand);
}

.brand-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  border-radius: .35rem;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1;
}
.brand-text span { display: block; font-size: .72em; opacity: .8; }

/* ---------- Buttons ---------- */
.btn-brand {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.btn-outline-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(115deg, rgba(27,31,42,.94) 40%, rgba(27,31,42,.75)),
    var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: .95; }
.hero .lead { max-width: 38rem; }
.hero-pulse {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  color: var(--brand);
  opacity: .9;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(200,16,46,.18);
  border: 1px solid rgba(200,16,46,.5);
  color: #ffd7de;
  border-radius: 2rem;
  padding: .3rem 1rem;
  font-size: .85rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 3.5rem 0 2.5rem;
}
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .tagline { color: rgba(255,255,255,.7); }

/* ---------- Pulse divider ---------- */
.pulse-divider {
  color: var(--brand);
  background: var(--paper);
  line-height: 0;
}
.pulse-divider svg { width: 100%; height: 40px; display: block; }

/* ---------- Cards / sections ---------- */
.section-alt { background: var(--paper-alt); }

.service-card {
  border: 1px solid var(--line);
  border-radius: .75rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 .75rem 1.5rem rgba(27,31,42,.08);
}
.service-card .icon {
  width: 3rem; height: 3rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper-alt);
  color: var(--brand);
  border-radius: .6rem;
  font-size: 1.4rem;
}
.service-card a.stretched-link { text-decoration: none; color: var(--ink); }

.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 1.75rem; position: relative; margin-bottom: .6rem; }
.check-list li::before {
  content: "\F26B"; /* bi-check-circle-fill */
  font-family: "bootstrap-icons";
  color: var(--accent);
  position: absolute; left: 0; top: .05rem;
}

.guarantee-strip {
  background: var(--brand);
  color: #fff;
}
.guarantee-strip h2 { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-heading { color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; }
.footer-links li { margin-bottom: .35rem; }
.footer-links.two-col { columns: 2; column-gap: 1.5rem; }
.footer-bottom { background: #14171f; color: rgba(255,255,255,.55); border-top: 3px solid var(--accent); }

/* ---------- Forms ---------- */
.form-card {
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--paper);
}
.form-label { font-weight: 600; }

/* ---------- Misc ---------- */
.trust-logos img { max-height: 48px; filter: grayscale(1); opacity: .7; transition: .15s; }
.trust-logos img:hover { filter: none; opacity: 1; }

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

/* Green button variant — used for estimate CTAs */
.btn-accent {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-dark);
  --bs-btn-hover-border-color: var(--accent-dark);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
