/* Rexburg Quick Lube — lead-gen template style, no frameworks */
:root {
  --navy: #1c2733;
  --navy-2: #2a3a4d;
  --blue: #2277c9;
  --orange: #e03e2f;
  --orange-dark: #b52d20;
  --bg: #f5f7fa;
  --text: #26313b;
  --muted: #5b6a78;
  --border: #dfe6ec;
  --yellow: #ffd24d;
}

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

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--blue); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.25; color: var(--navy); }
h2 { font-size: 1.75rem; margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin: 22px 0 8px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cfdbe6;
  font-size: 0.88rem;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.topbar a { color: var(--yellow); text-decoration: none; font-weight: 700; }

/* ---------- Sticky header ---------- */
header {
  background: #fff;
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(20, 40, 60, 0.08);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.15;
}
.site-name span { display: block; font-size: 0.78rem; font-weight: 600; color: var(--orange-dark); letter-spacing: 0.4px; text-transform: uppercase; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; }
nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 6px 0;
}
nav a:hover { color: var(--orange-dark); }
nav a.active { color: var(--orange-dark); border-bottom: 2px solid var(--orange); }
.btn-call {
  display: inline-block;
  background: var(--orange);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 1rem;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(224, 62, 47, 0.35);
}
.btn-call:hover { background: var(--orange-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 15px 32px;
  border-radius: 6px;
  font-size: 1.08rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.btn:hover { background: var(--orange-dark); }
.btn.ghost { background: transparent; border: 2px solid #fff; box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--navy-2); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(28, 39, 51, 0.93) 0%, rgba(42, 58, 77, 0.85) 55%, rgba(34, 119, 201, 0.72) 100%),
    var(--navy-2);
  color: #fff;
  padding: 70px 20px 76px;
  text-align: center;
}
.hero h1 { color: #fff; font-size: 2.35rem; max-width: 840px; margin: 0 auto 14px; }
.hero .sub { max-width: 700px; margin: 0 auto 28px; font-size: 1.15rem; color: #dbe6ef; }
.hero .hero-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.hero .hero-points {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 28px; margin-top: 26px; font-weight: 600; font-size: 0.95rem; color: #ffe3bd;
}
.hero.small { padding: 48px 20px 52px; }
.hero.small h1 { font-size: 1.9rem; }

/* ---------- Badge strip ---------- */
.badges { background: var(--navy); color: #fff; padding: 16px 0; }
.badges .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 24px; text-align: center;
}
.badges div { font-weight: 700; font-size: 0.95rem; flex: 1 1 160px; }
.badges span { display: block; color: var(--yellow); font-size: 1.25rem; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--bg); }
section p { margin-bottom: 14px; }
section ul, section ol { margin: 0 0 14px 24px; }
section li { margin-bottom: 8px; }
.center { text-align: center; }
.kicker {
  display: inline-block; color: var(--orange-dark); font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.2px; font-size: 0.82rem; margin-bottom: 8px;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 780px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin-top: 28px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 24px;
  box-shadow: 0 2px 8px rgba(20, 40, 60, 0.05);
  display: flex;
  flex-direction: column;
}
.card .icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fdeae7; color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--orange-dark); }
.card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 12px; }
.card .more { margin-top: auto; font-weight: 700; font-size: 0.92rem; color: var(--orange-dark); text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 36px; margin-top: 20px; }
.feature { display: flex; gap: 12px; padding: 12px 0; }
.feature .tick { color: var(--orange-dark); font-size: 1.2rem; font-weight: 800; line-height: 1.5; }
.feature strong { display: block; color: var(--navy); }
.feature p { font-size: 0.94rem; color: var(--muted); margin: 2px 0 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 28px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px; position: relative; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; margin-top: 28px; }
.review { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 26px; }
.review .stars { color: var(--orange); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 10px; }
.review p { font-style: italic; color: var(--text); font-size: 0.97rem; }
.review .who { font-style: normal; font-weight: 700; color: var(--navy); margin-top: 10px; font-size: 0.92rem; }

/* ---------- FAQ accordion ---------- */
.faq-list { margin-top: 20px; }
details {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 12px; overflow: hidden;
}
summary {
  cursor: pointer; font-weight: 700; color: var(--navy);
  padding: 16px 20px; list-style: none; position: relative; padding-right: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--orange-dark); font-size: 1.4rem; font-weight: 800;
}
details[open] summary::after { content: "\2212"; }
details .a { padding: 0 20px 16px; color: var(--muted); }
details .a p { margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff; text-align: center; padding: 52px 20px;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 640px; margin: 0 auto 24px; }
.cta-band .btn { background: var(--navy); }
.cta-band .btn:hover { background: var(--navy-2); }
.cta-band .phone-big { font-size: 1.35rem; font-weight: 800; margin-top: 18px; }
.cta-band .phone-big a { color: #fff; }

/* ---------- Two-column ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 780px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
form label { display: block; font-weight: 700; margin: 14px 0 5px; font-size: 0.94rem; color: var(--navy); }
form input, form select, form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 1rem; font-family: inherit; background: #fff;
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
form textarea { min-height: 130px; }
form button { margin-top: 20px; border: none; cursor: pointer; width: 100%; }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; margin-top: 28px; }
.post-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
}
.post-card .thumb {
  background: linear-gradient(135deg, var(--navy-2), var(--blue));
  color: var(--yellow); font-size: 2.2rem;
  display: flex; align-items: center; justify-content: center; height: 130px;
}
.post-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .date { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
.post-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--orange-dark); }
.post-card p { font-size: 0.93rem; color: var(--muted); margin-bottom: 14px; }
.post-card .more { margin-top: auto; font-weight: 700; font-size: 0.92rem; color: var(--orange-dark); text-decoration: none; }

article.post { max-width: 760px; margin: 0 auto; }
article.post h2 { margin-top: 34px; font-size: 1.4rem; }
article.post .post-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

/* ---------- Service area tags ---------- */
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.area-tags span {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 7px 16px; font-size: 0.9rem; font-weight: 600; color: var(--navy);
}

/* ---------- Related services ---------- */
.related { background: var(--bg); border-radius: 10px; padding: 26px; margin-top: 36px; }
.related h3 { margin-top: 0; }
.related ul { columns: 2; margin-left: 20px; }
@media (max-width: 640px) { .related ul { columns: 1; } }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #b9c8d6; font-size: 0.92rem; }
footer .cols {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 34px;
  padding: 48px 0 36px;
}
@media (max-width: 880px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer .cols { grid-template-columns: 1fr; } }
footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.8px; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { color: #b9c8d6; text-decoration: none; }
footer a:hover { color: var(--yellow); }
footer .phone-footer { color: var(--yellow); font-weight: 800; font-size: 1.05rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0; text-align: center; font-size: 0.85rem; color: #8fa2b3;
}

/* ---------- Floating mobile call button ---------- */
.float-call {
  display: none;
  position: fixed; bottom: 18px; left: 16px; right: 16px; z-index: 200;
  background: var(--orange); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.1rem; text-align: center;
  padding: 15px; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 720px) {
  .hero h1 { font-size: 1.7rem; }
  .hero.small h1 { font-size: 1.45rem; }
  h2 { font-size: 1.45rem; }
  header .wrap { justify-content: center; text-align: center; }
  .float-call { display: block; }
  body { padding-bottom: 74px; }
  .topbar .wrap { justify-content: center; }
}
