/* =====================================================================
   Mojave Mobile Oil — Shared Desert / Honest Theme
   ===================================================================== */
:root {
  --sand:        #f4ece0;
  --sand-2:      #efe4d3;
  --paper:       #fffaf3;
  --ink:         #1f2a37;     /* deep navy ink */
  --ink-soft:    #475467;
  --navy:        #16324f;
  --navy-2:      #1f4568;
  --sun:         #e07a3f;     /* sunset orange */
  --sun-deep:    #c5602a;
  --gold:        #d9a441;
  --sage:        #6b7f6e;
  --green:       #2f8f5b;
  --line:        #e3d8c6;
  --shadow:      0 6px 22px rgba(31, 42, 55, 0.10);
  --shadow-lg:   0 18px 50px rgba(31, 42, 55, 0.18);
  --radius:      16px;
  --radius-sm:   10px;
  --maxw:        1080px;
  --font:        "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; }

/* anchor targets clear the sticky header when nav links jump to them */
.section, #book, #membership, #pricing, #area, #faq, #about { scroll-margin-top: 116px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #fbf5ec 0%, #f4ece0 100%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--sun-deep); }

/* ---- layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.row { display: flex; gap: 16px; }
.col { flex: 1; min-width: 0; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---- top bar ---- */
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 10px 0;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 700; letter-spacing: .2px; }
.brand .logo-img { height: 92px; width: auto; display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.3)); }
.brand .name { border-left: 1px solid rgba(255,255,255,.18); padding-left: 14px; }
.hero-logo { display: block; height: 150px; width: auto; margin: 0 0 14px; filter: drop-shadow(0 8px 22px rgba(31,42,55,.22)); }
@media (max-width: 600px) { .hero-logo { height: 110px; } .brand .logo-img { height: 64px; } .brand .name { display: none; } }
.brand .mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: radial-gradient(circle at 30% 25%, var(--gold), var(--sun) 60%, var(--sun-deep));
  display: grid; place-items: center; color: #fff; font-size: 20px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
.brand .name { font-size: 18px; line-height: 1.05; }
.brand .name small { display:block; font-weight: 500; font-size: 11px; color: #c9d6e3; letter-spacing: .5px; text-transform: uppercase; }
.navlinks a { color: #dbe5ef; text-decoration: none; margin-left: 16px; font-size: 14px; font-weight: 600; }
.navlinks a:hover { color: #fff; }

/* ---- hero ---- */
.hero { padding: 46px 0 26px; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); margin: 0 0 10px; line-height: 1.06; color: var(--navy); }
.hero p.lead { font-size: clamp(16px, 2.4vw, 20px); color: var(--ink-soft); max-width: 640px; margin: 0 0 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.badge {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 7px; box-shadow: var(--shadow);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---- cards ---- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; color: var(--navy); }
.section { padding: 28px 0; }
.section h2 { color: var(--navy); font-size: 24px; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 820px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } .row { flex-direction: column; } }

/* ---- pricing tiles ---- */
.tier { text-align: center; border-top: 4px solid var(--sun); }
.tier .price { font-size: 38px; font-weight: 800; color: var(--navy); }
.tier .price small { font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.tier .name { font-weight: 700; font-size: 17px; margin-bottom: 2px; }
.tier .blurb { color: var(--ink-soft); font-size: 13px; min-height: 34px; }
.tier.featured { box-shadow: var(--shadow-lg); border-top-color: var(--gold); position: relative; }
.tier.featured::after { content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .4px; }

/* ---- forms ---- */
label { display: block; font-weight: 600; font-size: 13px; color: var(--navy); margin: 12px 0 5px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: var(--font); background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(224,122,63,.15); }
.field-row { display: flex; gap: 12px; }
.field-row > div { flex: 1; }
.check { display: flex; align-items: center; gap: 9px; margin: 8px 0; font-weight: 500; font-size: 14px; }
.check input { width: auto; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--sun); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 12px 20px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform .04s ease, background .2s ease; box-shadow: var(--shadow);
}
.btn:hover { background: var(--sun-deep); }
.btn:active { transform: translateY(1px); }
.btn.full { width: 100%; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--navy-2); }
.btn.green { background: var(--green); }
.btn.sm { padding: 8px 13px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- price readout ---- */
.quote-box {
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-lg);
}
.quote-box .big { font-size: 46px; font-weight: 800; line-height: 1; }
.quote-box .big small { font-size: 16px; font-weight: 600; opacity: .8; }
.quote-box .meta { color: #cdd9e5; font-size: 13px; margin-top: 8px; }
.quote-box ul { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid rgba(255,255,255,.15); }
.quote-box li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.quote-box li.total { font-weight: 800; font-size: 17px; border-bottom: none; padding-top: 10px; }

/* ---- tables ---- */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.data th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-soft); background: var(--sand); }
table.data tr:hover td { background: #fffdf8; }

/* ---- status pills ---- */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; }

/* ---- dispatch (mobile-first) ---- */
.job-card { border-left: 5px solid var(--sun); }
.job-card.new { border-left-color: var(--sun); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: var(--shadow); } 50% { box-shadow: 0 0 0 4px rgba(224,122,63,.18), var(--shadow); } }
.job-card .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.job-card .veh { font-weight: 700; color: var(--navy); }
.job-card .addr { color: var(--ink-soft); font-size: 14px; }
.job-card .price { font-size: 26px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---- tabs ---- */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 10px 16px; cursor: pointer; font-weight: 700; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--navy); border-bottom-color: var(--sun); }

/* ---- stat tiles ---- */
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .n { font-size: 30px; font-weight: 800; color: var(--navy); }
.stat .l { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

/* ---- toast ---- */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 13px 20px; border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 200; font-weight: 600; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- footer ---- */
.foot { padding: 30px 0; color: var(--ink-soft); font-size: 13px; border-top: 1px solid var(--line); margin-top: 30px; }

/* ---- mode banner ---- */
.mode-banner { background: #fff4e6; border: 1px solid #f0d6ad; color: #8a5a1a; font-size: 12.5px;
  padding: 8px 14px; border-radius: 10px; margin: 12px 0; }
.mode-banner.cloud { background: #e8f6ee; border-color: #b6e0c6; color: #1f6b41; }

/* =====================================================================
   MOTION & STYLIZATION
   ===================================================================== */

/* ---- scroll-reveal (JS adds .reveal, then .in-view when on screen) ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- nav link animated underline ---- */
.navlinks a { position: relative; }
.navlinks a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--sun); transform: scaleX(0); transform-origin: center;
  transition: transform .25s ease; border-radius: 2px;
}
.navlinks a:hover::after { transform: scaleX(1); }

/* ---- buttons: lift + sheen ---- */
.btn { position: relative; overflow: hidden; transition: transform .12s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn::before {
  content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn:hover::before { left: 130%; }

/* ---- pricing tiles: hover lift + featured float ---- */
.tier { transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease, border-color .22s ease; }
.tier:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-top-color: var(--gold); }
.tier.featured { animation: floatY 4s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.tier.featured:hover { animation-play-state: paused; transform: translateY(-8px); }

/* ---- content cards lift on hover (not the form/quote cards) ---- */
.grid .card { transition: transform .2s ease, box-shadow .2s ease; }
.grid .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---- badges: pop on hover, staggered float-in handled by reveal ---- */
.badge { transition: transform .18s ease, box-shadow .18s ease; }
.badge:hover { transform: translateY(-2px) scale(1.04); box-shadow: var(--shadow); }

/* ---- hero: soft animated desert glow behind the headline ---- */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; z-index: -1; top: -40px; left: -10%; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(224,122,63,.20), rgba(224,122,63,0) 70%);
  border-radius: 50%; animation: glowPulse 7s ease-in-out infinite; pointer-events: none;
}
@keyframes glowPulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.25); opacity: 1; } }

/* ---- hero CTA gentle attention pulse ---- */
.hero .btn { animation: ctaPulse 3.2s ease-in-out infinite; }
@keyframes ctaPulse { 0%,100% { box-shadow: var(--shadow); } 50% { box-shadow: 0 0 0 6px rgba(224,122,63,.16), var(--shadow); } }

/* ---- quote box: subtle entrance + price tick ---- */
.quote-box { transition: box-shadow .3s ease; }
.quote-box .big { transition: transform .25s ease; }

/* ---- section headings: animated accent underline ---- */
.section > h2 { position: relative; display: inline-block; padding-bottom: 8px; }
.section > h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--sun), var(--gold)); border-radius: 3px;
  transition: width .6s ease .2s;
}
.section.in-view > h2::after, .reveal.in-view > h2::after { width: 64px; }
