/* Yuma Mobile RV Repair — rugged desert-roadside theme */
:root {
  --sand: #f2e7d2;
  --sand-deep: #e5d4b2;
  --cream: #fbf6ea;
  --ink: #2b241c;
  --ink-soft: #55493a;
  --rust: #a63a1c;
  --rust-dark: #872c12;
  --navy: #21395c;
  --navy-deep: #16273f;
  --line: #d8c69f;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(43, 36, 28, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3 { line-height: 1.2; color: var(--navy-deep); font-weight: 800; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.85rem); margin: 2.2rem 0 0.7rem; }
h3 { font-size: 1.15rem; 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: 68rem; margin: 0 auto; padding: 0 1.1rem; }
.wrap-narrow { max-width: 50rem; margin: 0 auto; padding: 0 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-deep);
  color: #fff;
  border-bottom: 4px solid var(--rust);
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  max-width: 68rem;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
  flex: 1 1 auto;
  min-width: 0;
}
.logo:hover { color: #f5d9a8; }
.logo .logo-mark { flex: 0 0 auto; }
.logo small {
  display: block;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9b98a;
}
.header-phone {
  display: none;
  background: var(--rust);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.header-phone:hover { background: var(--rust-dark); color: #fff; }

.nav-toggle {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-toggle:hover { border-color: #fff; }

.site-nav {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.site-nav.open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  max-width: 68rem;
  margin-inline: auto;
}
.site-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--navy-deep); color: #f5d9a8; }

@media (min-width: 860px) {
  .header-phone { display: inline-block; }
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { display: flex; flex-wrap: wrap; }
  .site-nav a { padding: 0.6rem 0.85rem; font-size: 0.95rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #ffe9c4 0%, #f7cf8e 45%, #e8b06a 100%);
  border-bottom: 5px solid var(--rust);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.4rem 1.1rem 1.2rem;
}
.hero h1 { color: var(--navy-deep); }
.hero .tagline {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 44rem;
  font-weight: 500;
}
.hero-art { display: block; margin: 0 auto; position: relative; z-index: 1; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0 0.6rem;
}
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-size: 1.05rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.btn-call { background: var(--rust); color: #fff; }
.btn-call:hover { background: var(--rust-dark); color: #fff; }
.btn-quote { background: var(--navy); color: #fff; }
.btn-quote:hover { background: var(--navy-deep); color: #fff; }
.cta-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.2rem; }

/* ---------- Main content ---------- */
main { padding: 1.8rem 0 2.5rem; }

.lead { font-size: 1.12rem; }

.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(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0.2rem; }
.card p { margin-bottom: 0.4rem; font-size: 0.98rem; }
.card a.more { font-weight: 700; }
.card .card-icon { margin-bottom: 0.3rem; }

.callout {
  background: var(--cream);
  border-left: 5px solid var(--rust);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  box-shadow: var(--shadow);
}
.callout p:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding-left: 0; }
.checklist li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.85em;
  height: 0.85em;
  background: var(--rust);
  clip-path: polygon(14% 44%, 0 62%, 40% 100%, 100% 16%, 84% 2%, 39% 70%);
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  padding: 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-deep);
  padding: 0.85rem 1.1rem;
  list-style: none;
  position: relative;
  padding-right: 2.4rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rust);
  font-size: 1.4rem;
  font-weight: 800;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 1.1rem 1rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  margin: 2.2rem 0 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #d9cdb8; max-width: 40rem; margin-inline: auto; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Quote form ---------- */
.quote-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  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.95rem;
  margin: 0.9rem 0 0.25rem;
  color: var(--navy-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(--navy);
  border-color: var(--navy);
}
.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: 860px) {
  .two-col { grid-template-columns: 1.2fr 1fr; align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #cfc4ae;
  margin-top: 2.5rem;
  padding: 2.2rem 0 6rem;
  border-top: 5px solid var(--rust);
  font-size: 0.95rem;
}
.footer-cols {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  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: #e8dcc4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.88rem;
  line-height: 1.6;
}
.site-footer .phone-cta { color: #f5d9a8; 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(--navy-deep);
  border-top: 3px solid var(--rust);
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.3);
}
.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: 8px;
}
.call-bar .bar-call { background: var(--rust); color: #fff; }
.call-bar .bar-quote { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.6); }
@media (min-width: 860px) {
  .call-bar { display: none; }
  .site-footer { padding-bottom: 2.2rem; }
}

/* ---------- Photo heroes ---------- */
.hero-photo {
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(180deg, rgba(22, 27, 40, 0.52) 0%, rgba(22, 39, 63, 0.66) 55%, rgba(16, 25, 40, 0.82) 100%),
    var(--hero-img);
  background-size: cover, cover;
  background-position: center, center;
}
.hero-photo .hero-inner { padding: 3.2rem 1.1rem 2.4rem; }
.hero-photo h1 { color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
.hero-photo .tagline { color: #f3ecdd; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.hero-photo .cta-note { color: #ead9b8; }
.hero-photo .breadcrumb, .hero-photo .breadcrumb a { color: #e6d9c0; }
.hero-photo .btn-quote {
  background: rgba(22, 39, 63, 0.65);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.hero-photo .btn-quote:hover { background: var(--navy-deep); }
.hero-photo .hero-art { display: none; }
@media (min-width: 860px) {
  .hero-photo .hero-inner { padding: 4.4rem 1.1rem 3.4rem; }
}

/* ---------- In-content media rows ---------- */
.media-row { display: grid; gap: 1.4rem; margin: 1.8rem 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-row .media-copy > h2:first-child { margin-top: 0; }
.media-solo { margin: 1.6rem 0; }
@media (min-width: 820px) {
  .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; }
}

/* ---------- Photo panel for error/thanks pages ---------- */
.error-photo {
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(180deg, rgba(22, 27, 40, 0.6) 0%, rgba(22, 39, 63, 0.82) 100%),
    var(--hero-img);
  background-size: cover, cover;
  background-position: center, center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 0.5rem;
}
.error-photo h1 { color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
.error-photo p, .error-photo .lead, .error-photo .cta-note { color: #f3ecdd; }
.error-photo a { color: #f5d9a8; }
.error-photo .btn-call { color: #fff; }
.error-photo .btn-quote { color: #fff; box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.45); }

/* ---------- Misc ---------- */
.breadcrumb { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
.breadcrumb a { color: var(--ink-soft); }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; background: var(--cream); }
th, td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; font-size: 0.97rem; }
th { background: var(--sand-deep); color: var(--navy-deep); }

.divider-art { display: block; margin: 2rem auto 0; opacity: 0.9; }

.error-page { text-align: center; padding: 3rem 1rem; }

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