/* Pahrump Mobile RV Repair — Mojave night-and-neon theme */
:root {
  --indigo: #232946;
  --indigo-deep: #151a30;
  --indigo-soft: #39405e;
  --limestone: #efe9dc;
  --limestone-deep: #e1d8c4;
  --paper: #fbf8f1;
  --ink: #24262e;
  --ink-soft: #5a5648;
  --teal: #0e9488;
  --teal-deep: #0a6e66;
  --teal-glow: #35d0bf;
  --line: #d6cdb8;
  --radius: 12px;
  --shadow: 0 3px 14px rgba(21, 26, 48, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--limestone);
  line-height: 1.68;
  font-size: 1.06rem;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--teal-deep); }
a:hover { color: var(--teal); }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.18; color: var(--indigo-deep); font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.7rem); margin: 0 0 0.6rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin: 2.3rem 0 0.7rem; }
h3 { font-size: 1.18rem; margin: 1.5rem 0 0.4rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }

.wrap { max-width: 69rem; margin: 0 auto; padding: 0 1.15rem; }
.wrap-narrow { max-width: 51rem; margin: 0 auto; padding: 0 1.15rem; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 2.2rem 0 0;
}
.kicker + h2 { margin-top: 0.25rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--teal);
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.15rem;
  max-width: 69rem;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--indigo-deep);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.04rem;
  line-height: 1.15;
  flex: 1 1 auto;
  min-width: 0;
}
.logo:hover { color: var(--teal-deep); }
.logo .logo-mark { flex: 0 0 auto; }
.logo small {
  display: block;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.header-phone {
  display: none;
  background: var(--indigo);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  white-space: nowrap;
}
.header-phone:hover { background: var(--teal-deep); color: #fff; }

.nav-toggle {
  background: var(--indigo);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--indigo-soft); }

.site-nav {
  display: none;
  background: var(--limestone);
  border-top: 1px solid var(--line);
}
.site-nav.open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0.35rem 0;
  max-width: 69rem;
}
.site-nav a {
  display: block;
  color: var(--indigo-deep);
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-left: 4px solid transparent;
}
.site-nav a:hover { color: var(--teal-deep); border-left-color: var(--teal); }
.site-nav a[aria-current="page"] { color: var(--teal-deep); border-left-color: var(--teal); }

@media (min-width: 880px) {
  .header-phone { display: inline-block; }
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { display: flex; flex-wrap: wrap; padding: 0 0.4rem; }
  .site-nav a {
    padding: 0.55rem 0.8rem;
    font-size: 0.93rem;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-left: 0; border-bottom-color: var(--teal); }
}

/* ---------- Split hero (photo framed beside copy, not behind it) ---------- */
.hero {
  background:
    radial-gradient(60rem 26rem at 85% -20%, rgba(53, 208, 191, 0.16), transparent 60%),
    linear-gradient(165deg, var(--indigo) 0%, var(--indigo-deep) 70%);
  color: #eef0f7;
  padding: 2.6rem 0 2.8rem;
}
.hero-grid {
  max-width: 69rem;
  margin: 0 auto;
  padding: 0 1.15rem;
  display: grid;
  gap: 1.8rem;
  align-items: center;
}
.hero h1 { color: #fff; margin-top: 0.4rem; }
.hero .tagline { font-size: 1.13rem; color: #ccd3e8; max-width: 42rem; }
.hero .kicker { color: var(--teal-glow); margin-top: 0; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 24rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(53, 208, 191, 0.45);
  box-shadow: 8px 8px 0 rgba(53, 208, 191, 0.18), 0 8px 28px rgba(0, 0, 0, 0.4);
}
.hero-figure figcaption {
  font-size: 0.8rem;
  color: #9aa3c0;
  margin-top: 0.55rem;
}
@media (min-width: 840px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero { padding: 3.4rem 0 3.6rem; }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.25rem 0 0.65rem;
}
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 1.04rem;
  text-align: center;
}
.btn-call { background: var(--teal); color: #081b19; box-shadow: 0 0 0 1px var(--teal-glow), 0 4px 16px rgba(14, 148, 136, 0.35); }
.btn-call:hover { background: var(--teal-glow); color: #081b19; }
.btn-quote { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(238, 240, 247, 0.65); }
.btn-quote:hover { background: rgba(238, 240, 247, 0.12); color: #fff; }
.cta-note { font-size: 0.9rem; color: #aab2cd; margin-top: 0.3rem; }

/* Buttons on light backgrounds */
main .btn-call { box-shadow: 0 2px 10px rgba(14, 148, 136, 0.3); }
main .btn-quote { color: var(--indigo); box-shadow: inset 0 0 0 2px var(--indigo); }
main .btn-quote:hover { background: var(--indigo); color: #fff; }

/* ---------- Main content ---------- */
main { padding: 1.9rem 0 2.6rem; }

.lead { font-size: 1.13rem; }

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  margin: 1.2rem 0;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0.2rem; }
.card p { margin-bottom: 0.4rem; font-size: 0.97rem; }
.card a.more { font-weight: 700; }
.card .card-icon { margin-bottom: 0.35rem; }

.callout {
  background: var(--indigo-deep);
  color: #dfe3f0;
  border-radius: var(--radius);
  border-left: 6px solid var(--teal);
  padding: 1.05rem 1.3rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}
.callout strong { color: #fff; }
.callout a { color: var(--teal-glow); }
.callout p:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding-left: 0; }
.checklist li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.55rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: var(--teal);
  clip-path: none;
  mask: none;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 0.26em;
  top: 0.58em;
  width: 0.5em;
  height: 0.26em;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--indigo); }
.faq details { border-bottom: 1px solid var(--line); padding: 0; background: transparent; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--indigo-deep);
  padding: 0.9rem 2.4rem 0.9rem 0.2rem;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "\203A";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-55%) rotate(90deg);
  color: var(--teal-deep);
  font-size: 1.5rem;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: translateY(-55%) rotate(-90deg); }
.faq .faq-body { padding: 0 0.2rem 1rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(40rem 18rem at 15% 120%, rgba(53, 208, 191, 0.2), transparent 65%),
    var(--indigo-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  margin: 2.3rem 0 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #c3cbe2; max-width: 40rem; margin-inline: auto; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Quote form ---------- */
.quote-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--indigo);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow);
  margin: 1.2rem 0;
  text-align: left;
}
.quote-form h2, .quote-form h3 { margin-top: 0; }
.quote-form label {
  display: block;
  font-weight: 700;
  font-size: 0.94rem;
  margin: 0.9rem 0 0.25rem;
  color: var(--indigo-deep);
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}
.quote-form textarea { min-height: 6.5rem; resize: vertical; }
.quote-form button {
  margin-top: 1.1rem;
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.6rem; margin-bottom: 0; }

.two-col { display: grid; gap: 1.6rem; }
@media (min-width: 880px) {
  .two-col { grid-template-columns: 1.2fr 1fr; align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--indigo-deep);
  color: #b9c0d6;
  margin-top: 2.6rem;
  padding: 2.3rem 0 6rem;
  border-top: 3px solid var(--teal);
  font-size: 0.95rem;
}
.footer-cols {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.site-footer h2 {
  color: var(--teal-glow);
  font-family: inherit;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.6rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: #dfe3f0; text-decoration: none; }
.site-footer a:hover { color: var(--teal-glow); text-decoration: underline; }
.footer-disclaimer {
  margin-top: 1.9rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  line-height: 1.6;
}
.site-footer .phone-cta { color: var(--teal-glow); font-weight: 800; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  background: var(--indigo-deep);
  border-top: 2px solid var(--teal);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.35);
}
.call-bar a {
  flex: 1 1 50%;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 0.8rem 0.5rem;
  border-radius: 999px;
}
.call-bar .bar-call { background: var(--teal); color: #081b19; }
.call-bar .bar-quote { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
@media (min-width: 880px) {
  .call-bar { display: none; }
  .site-footer { padding-bottom: 2.3rem; }
}

/* ---------- In-content media rows ---------- */
.media-row { display: grid; gap: 1.4rem; margin: 1.9rem 0; align-items: center; }
.media-figure { margin: 0; }
.media-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.media-figure figcaption { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.45rem; }
.media-row .media-copy > h2:first-child, .media-row .media-copy > .kicker:first-child { margin-top: 0; }
.media-solo { margin: 1.6rem 0; }
@media (min-width: 840px) {
  .media-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .media-row.media-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .media-row.media-left .media-figure { order: -1; }
  .media-figure img { max-height: 26rem; }
}

/* ---------- Dark panel for thanks/404 ---------- */
.night-panel {
  background:
    radial-gradient(46rem 22rem at 80% -10%, rgba(53, 208, 191, 0.18), transparent 60%),
    var(--indigo-deep);
  color: #dfe3f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 0.5rem;
  text-align: center;
  padding: 3rem 1.2rem;
}
.night-panel h1 { color: #fff; }
.night-panel p, .night-panel .lead, .night-panel .cta-note { color: #c3cbe2; }
.night-panel a { color: var(--teal-glow); }
.night-panel .btn-call { color: #081b19; }
.night-panel .btn-quote { color: #fff; }

/* ---------- Misc ---------- */
.breadcrumb { font-size: 0.86rem; color: #9aa3c0; margin: 0 0 0.2rem; }
.breadcrumb a { color: #c3cbe2; }
main .breadcrumb, main .breadcrumb a { color: var(--ink-soft); }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; background: var(--paper); }
th, td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; font-size: 0.96rem; }
th { background: var(--indigo); color: #fff; }

.hidden { display: none; }

/* auto: unset CTAs hidden until configured */
.phone-cta { display: none !important; }
