/* Wayfare Mobile RV Repair - site styles (colors from the badge logo) */
:root {
  --navy: #0e2a47;
  --blue: #1c6fb5;
  --blue-dark: #155a94;
  --sky: #eaf4fc;
  --sky-2: #d6e9f8;
  --coral: #d9533f;
  --coral-dark: #b9412f;
  --ink: #1b2633;
  --muted: #55636f;
  --line: #dbe3ea;
  --bg: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(14, 42, 71, .06), 0 6px 20px rgba(14, 42, 71, .08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 1.4em 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-top: .2em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin: .25em 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .45em; padding: .7em 1.15em; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; line-height: 1.2; cursor: pointer; }
.btn-cta { background: var(--coral); color: #fff; }
.btn-cta:hover { background: var(--coral-dark); color: #fff; }
.btn-call { background: var(--blue); color: #fff; }
.btn-call:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--sky); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); color: var(--navy); }

/* header */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.top-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; line-height: 1.05; margin-right: auto; }
.brand img { width: 56px; height: auto; border-radius: 8px; }
.brand small { font-weight: 500; font-size: .78rem; letter-spacing: .02em; opacity: .85; }
.top-call span { white-space: nowrap; }
.menu > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary span, .menu > summary span::before, .menu > summary span::after { content: ""; display: block; width: 22px; height: 2px; background: #fff; position: relative; }
.menu > summary span::before { position: absolute; top: -7px; }
.menu > summary span::after { position: absolute; top: 7px; }
.menu[open] > summary { background: rgba(255,255,255,.12); }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: 8px 16px 18px; border-top: 1px solid rgba(255,255,255,.12); }
.nav { list-style: none; margin: 0; padding: 0; }
.nav a { color: #fff; text-decoration: none; display: block; padding: 10px 4px; font-weight: 600; }
.nav a[aria-current] { color: #9fd0ff; }
.nav .sub { list-style: none; padding-left: 14px; margin: 0; }
.nav .sub a { font-weight: 400; padding: 7px 4px; opacity: .9; }
.nav .btn-cta { display: inline-flex; margin-top: 8px; padding: .7em 1.2em; }
@media (max-width: 520px) {
  .top-call span { display: none; }
  .top-call { padding: .7em; }
  .brand { font-size: 1rem; }
  .brand img { width: 46px; }
}
@media (min-width: 980px) {
  .menu > summary { display: none; }
  .menu { order: 2; }
  .top-call { order: 3; }
  .menu nav { position: static; display: block; background: none; padding: 0; border: 0; }
  .menu:not([open]) nav { display: block; }
  .nav { display: flex; align-items: center; gap: 4px; }
  .nav > li { position: relative; }
  .nav a { padding: 10px 10px; }
  .nav .btn-cta { margin: 0 0 0 6px; }
  .has-sub .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 8px; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
  .has-sub .sub a { color: var(--ink); padding: 8px 10px; border-radius: 6px; }
  .has-sub .sub a:hover { background: var(--sky); }
}
/* the summary-based menu needs its nav hidden until opened on small screens */
@media (max-width: 979px) { .menu:not([open]) nav { display: none; } }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 0; margin: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #9aa7b2; }
.crumbs a { color: var(--muted); }

/* hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #164a7a 60%, var(--blue) 100%); color: #fff; }
.hero .wrap { display: grid; gap: 28px; padding: 44px 0 52px; align-items: center; }
.hero h1 { color: #fff; margin: .1em 0 .4em; }
.hero .kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 700; color: #9fd0ff; margin: 0; }
.hero p { font-size: 1.1rem; max-width: 40em; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; justify-content: flex-start; }
.hero-photo { border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.3); max-width: 420px; justify-self: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .95rem; color: #d7ebff; padding: 0; list-style: none; }
.hero-badges li::before { content: "✓ "; color: #8fe3a5; font-weight: 700; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.3fr 1fr; } }

/* sections */
.section { padding: 40px 0; }
.section.alt { background: var(--sky); }
.page-head { background: var(--sky); border-bottom: 1px solid var(--sky-2); }
.page-head .wrap { padding: 26px 0 30px; }
.page-head h1 { margin-bottom: .2em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46em; margin: .4em 0 0; }
.two-col { display: grid; gap: 28px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.5fr 1fr; } }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.box h2, .box h3 { margin-top: 0; }
.callout { background: var(--sky); border-left: 4px solid var(--blue); border-radius: 8px; padding: 14px 18px; margin: 1.2em 0; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 1.2em 0; }
.photo figcaption { font-size: .88rem; color: var(--muted); padding: 8px 12px; background: #fff; }
.checks { list-style: none; padding: 0; columns: 2 260px; column-gap: 28px; }
.checks li { break-inside: avoid; padding-left: 1.6em; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 10px 46px; margin: 0 0 6px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps strong { display: block; color: var(--navy); }
.areas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.areas li { background: #fff; border: 1px solid var(--sky-2); border-radius: 999px; padding: 4px 12px; margin: 0; font-size: .95rem; }
.price-table { width: 100%; border-collapse: collapse; margin: 1em 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { background: var(--navy); color: #fff; font-size: .95rem; }
.price-table td.num { white-space: nowrap; font-weight: 700; color: var(--navy); }
@media (max-width: 560px) {
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .price-table td { border: 0; padding: 6px 14px; }
  .price-table td:first-child { grid-column: 1 / -1; font-weight: 700; padding-top: 12px; }
  .price-table td.num::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
}

/* service cards / blog cards */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease; }
.card:hover { transform: translateY(-2px); }
.card a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-ph { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky), var(--sky-2)); color: var(--blue); font-weight: 800; font-size: 1.3rem; letter-spacing: .05em; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: .1em 0 .4em; }
.card-body p { color: var(--muted); font-size: .97rem; }
.more-link { margin-top: auto; color: var(--blue); font-weight: 600; }
.meta { font-size: .88rem; color: var(--muted); margin: 0 0 .3em; }
.svc-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.svc { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.svc strong { display: block; color: var(--navy); font-size: 1.08rem; margin-bottom: 4px; }
.svc span { color: var(--muted); font-size: .95rem; }
.svc:hover { border-color: var(--blue); }

/* reviews */
.reviews { background: var(--sky); padding: 40px 0; }
.reviews h2 { margin-top: 0; }
.rating { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; color: var(--muted); }
.rating-num { font-size: 2rem; font-weight: 800; color: var(--navy); }
.stars { color: #f2a900; display: inline-flex; gap: 2px; }
.review-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 18px; }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review blockquote { margin: 10px 0; font-size: .98rem; }
.review blockquote p { margin: 0 0 .5em; }
.review figcaption { margin-top: auto; font-weight: 700; color: var(--navy); font-size: .92rem; }

/* read more / read less */
details.more { margin: .4em 0 1.2em; }
details.more > summary { list-style: none; cursor: pointer; color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: .35em; padding: 6px 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "Read more"; }
details.more > summary::before { content: "▸"; transition: transform .15s; }
details.more[open] > summary { order: 2; }
details.more[open] > summary::after { content: "Read less"; }
details.more[open] > summary::before { transform: rotate(90deg); }
details.more[open] { display: flex; flex-direction: column; }

/* blog post */
.post header { padding-top: 18px; }
.post h1 { margin-bottom: .4em; }
.post-hero { border-radius: var(--radius); margin: 8px 0 24px; width: 100%; max-height: 520px; object-fit: cover; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }
.post-aside { background: var(--sky); border-radius: var(--radius); padding: 20px 22px; margin: 28px 0; }
.post-aside h2 { margin-top: 0; font-size: 1.25rem; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 16px 0 36px; font-weight: 600; }
.related { padding: 34px 0; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; }

/* request page */
.form-frame { width: 100%; min-height: 1400px; border: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

/* footer */
.cta-band { background: var(--blue); color: #fff; text-align: center; padding: 36px 0; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.foot { background: var(--navy); color: #c9d6e3; font-size: .95rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding: 36px 0 20px; }
.foot-name { color: #fff; font-weight: 800; font-size: 1.1rem; }
.foot-h { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; margin-bottom: .6em; }
ul.plain { list-style: none; padding: 0; margin: 0; }
.rvhelp { display: inline-flex; flex-direction: column; gap: 6px; margin-top: 14px; text-decoration: none; }
.rvhelp img { background: #fff; padding: 6px 10px; border-radius: 8px; width: 150px; }
.rvhelp span { font-size: .85rem; }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0 28px; font-size: .88rem; }
.foot-base p { margin: .3em 0; }
