/* Wheels Easy — shared marketing design system.
   Loaded AFTER page styles: unifies nav, buttons, footer, backdrop and type
   rhythm across pages while leaving page-specific layout intact. */

:root {
  --bg: #0b0e17; --bg2: #0f1320; --bg3: #141829; --surface: #1a1f33;
  --border: #252b42; --green: #22d68a; --green-dim: rgba(34,214,138,.12);
  --amber: #f5a623; --blue: #4e9fff;
  --text: #e4e7f0; --text-dim: #7c839e; --text-faint: #4a5070;
  --mono: 'JetBrains Mono', monospace; --sans: 'Instrument Sans', sans-serif;
}

/* ---- Zoom-in defaults — bigger type + more breathing room. */
html { font-size: 17.5px; -webkit-text-size-adjust: 100%; }
body { line-height: 1.65; }
@media (max-width: 720px) { html { font-size: 16.5px; } }

/* Headlines scale up so the page feels substantial rather than dense. */
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -.025em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.35rem); line-height: 1.12; letter-spacing: -.018em; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.35rem); line-height: 1.2; letter-spacing: -.01em; }

/* Buttons feel bigger. */
.we-btn, .btn { padding: 13px 22px; font-size: 1rem; border-radius: 11px; }

/* Cards / sections get more vertical air. */
section.section, section.wrap > section { padding-block: 6rem; }
.section-inner, .wrap > .section-inner { padding-block: 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.6rem); margin-bottom: .5rem; }
.section-sub { font-size: 1.08rem; line-height: 1.6; color: var(--text-dim); }

/* Reading lede is calmer when bigger. */
.hero-sub, .lede { font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.6; }

/* Stat numbers prouder. */
.hero-stat-num, .stat-num { font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.hero-stat-label, .stat-label { font-size: .78rem; }

/* Small touch-up: pricing card amount feels more present. */
.price-amount { font-size: clamp(2.1rem, 3.6vw, 2.8rem); letter-spacing: -.02em; }

/* ---- signature backdrop: aurora + blueprint grid (the "infrastructure" look) */
body.we-backdrop { position: relative; }
body.we-backdrop::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(34,214,138,.10), transparent 60%),
    radial-gradient(700px 420px at -10% 12%, rgba(78,159,255,.09), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(245,166,35,.05), transparent 60%);
}
body.we-backdrop::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(228,231,240,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228,231,240,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---- nav (unified) — sticky, frosted, 3-column grid:
       logo LEFT · Product/Pricing/Why/Resources CENTER · Book a call RIGHT */
nav.we-nav { position: sticky; top: 0; z-index: 100;
  padding: 16px 30px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  background: rgba(11,14,23,.72); backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.06); }
nav.we-nav .nav-logo { font-family: var(--mono); font-size: 1.15rem; font-weight: 700;
  color: var(--green); text-decoration: none; letter-spacing: -.01em; justify-self: start; }
nav.we-nav .nav-logo span { color: var(--text-dim); font-weight: 400; }
/* .nav-links keeps the centered group: Product / Pricing / Why us / Resources */
nav.we-nav .nav-links { display: flex; align-items: center; gap: 4px; justify-self: center; }
nav.we-nav .nav-links > a,
nav.we-nav .nav-links > .nav-item { color: var(--text-dim); }
nav.we-nav .nav-links > a { text-decoration: none; font-size: .95rem;
  padding: 9px 14px; border-radius: 9px;
  transition: color .14s ease, background .14s ease; }
nav.we-nav .nav-links > a:hover { color: var(--text); background: rgba(255,255,255,.04); }
nav.we-nav .nav-links > a[aria-current="page"] { color: var(--text); background: rgba(34,214,138,.08); }
/* CTA pinned to the right, lives outside .nav-links */
nav.we-nav > a.nav-cta { justify-self: end; background: var(--green); color: var(--bg);
  font-weight: 600; padding: 10px 18px; font-size: .92rem;
  text-decoration: none; border-radius: 9px;
  transition: filter .14s, transform .14s, box-shadow .14s; }
nav.we-nav > a.nav-cta:hover { filter: brightness(1.05); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34,214,138,.28); }
/* ---- mega-menu / dropdown nav extensions */
nav.we-nav .nav-item { position: relative; }
nav.we-nav .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  color: var(--text-dim); font-family: var(--sans); font-size: .95rem;
  padding: 9px 14px; border-radius: 9px;
  transition: color .14s ease, background .14s ease;
}
nav.we-nav .nav-trigger:hover,
nav.we-nav .nav-trigger[aria-expanded="true"] { color: var(--text); background: rgba(255,255,255,.04); }
nav.we-nav .nav-caret { transition: transform .18s ease; opacity: .7; }
nav.we-nav .nav-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); opacity: 1; }

/* Dropdown panel — common */
nav.we-nav .nav-menu {
  position: absolute; top: calc(100% + 12px); left: 0;
  background: rgba(15,19,32,.96); backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 6px 16px -8px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s .15s;
  z-index: 200; padding: 14px;
}
nav.we-nav .nav-item:hover .nav-menu,
nav.we-nav .nav-item:focus-within .nav-menu,
nav.we-nav .nav-menu[data-open="true"] {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .15s ease, transform .15s ease;
}
/* invisible bridge keeps hover when crossing the gap */
nav.we-nav .nav-item::after {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 12px;
}

/* MEGA menu — Product */
nav.we-nav .nav-menu.mega {
  display: grid; grid-template-columns: repeat(3, 1fr) 220px;
  gap: 0; width: 920px; max-width: calc(100vw - 32px); padding: 20px;
  left: 0; right: auto;
}
/* If the menu would push past the right edge, anchor to right instead.
   When the parent <nav> is narrow / Product sits centred, we manually use a
   centered position below 1280px viewports. */
@media (max-width: 1280px) {
  nav.we-nav .nav-menu.mega { left: 50%; transform: translateX(-50%) translateY(-6px); }
  nav.we-nav .nav-item:hover .nav-menu.mega,
  nav.we-nav .nav-item:focus-within .nav-menu.mega { transform: translateX(-50%) translateY(0); }
}
.mega-col { padding: 0 16px; border-right: 1px solid rgba(255,255,255,.05); }
.mega-col:last-of-type { border-right: 0; }
.mega-col-h {
  font-family: var(--mono); font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
  margin-bottom: 12px;
}
.mega-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 10px; margin: 0 -10px;
  border-radius: 10px; text-decoration: none !important;
  transition: background .14s ease;
}
.mega-item:hover { background: rgba(34,214,138,.06); }
/* Icons stand on their own — no background chip, just the green glyph. */
.mega-icon {
  flex: none; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  margin-top: 2px;
}
.mega-icon svg { width: 22px; height: 22px; }
.mega-item .mega-icon.blue { color: var(--blue); }
.mega-item .mega-icon.amber { color: var(--amber); }
.mega-item .mega-icon.violet { color: #9b8cff; }
.mega-item:hover .mega-icon { filter: drop-shadow(0 0 6px rgba(34,214,138,.4)); }
.mega-text b {
  display: block; color: var(--text); font-weight: 600; font-size: .92rem;
  margin-bottom: 2px;
}
.mega-text span {
  display: block; color: var(--text-dim); font-size: .78rem; line-height: 1.45;
}
.mega-text .mega-tag {
  display: inline-block; margin-left: 6px;
  font-family: var(--mono); font-size: .58rem;
  color: var(--amber); background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.25);
  border-radius: 4px; padding: 1px 5px;
  letter-spacing: .04em; text-transform: uppercase;
  vertical-align: 2px;
}

/* Featured card on the right of the mega menu */
.mega-feature {
  background: linear-gradient(160deg, rgba(34,214,138,.08), rgba(78,159,255,.06));
  border: 1px solid rgba(34,214,138,.25);
  border-radius: 12px; padding: 22px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  margin: -4px 0 -4px 6px;
}
.mega-feature-eyebrow {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green); font-weight: 700;
}
.mega-feature h4 {
  font-size: 1.02rem; line-height: 1.2; color: var(--text);
  margin: 8px 0; font-weight: 600; letter-spacing: -.01em;
}
.mega-feature p { font-size: .78rem; line-height: 1.5; color: var(--text-dim); margin: 0 0 14px; }
.mega-feature a.mega-feature-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; color: var(--green); font-weight: 600; text-decoration: none;
}
.mega-feature a.mega-feature-cta:hover { color: var(--text); }

/* SIMPLE dropdown — Why / Resources */
nav.we-nav .nav-menu.simple { min-width: 240px; padding: 8px; }
.simple-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--text-dim) !important; text-decoration: none !important;
  font-size: .9rem;
}
.simple-item:hover { background: rgba(34,214,138,.06); color: var(--text) !important; }
.simple-item svg { width: 16px; height: 16px; opacity: .65; flex: none; }
.simple-item:hover svg { opacity: 1; color: var(--green); }
.simple-divider {
  height: 1px; margin: 6px 8px;
  background: rgba(255,255,255,.06);
}

/* mobile nav: collapse less-important items, keep logo + CTA visible */
@media (max-width: 980px) {
  nav.we-nav .nav-menu.mega {
    grid-template-columns: 1fr 1fr; min-width: 560px; left: -200px;
  }
  .mega-feature { display: none; }
}
@media (max-width: 760px) {
  nav.we-nav { padding: 12px 16px; }
  nav.we-nav .nav-links { gap: 0; }
  nav.we-nav .nav-links a:not(.nav-cta), nav.we-nav .nav-trigger { padding: 7px 10px; font-size: .85rem; }
  nav.we-nav .nav-links a.we-nav-secondary, nav.we-nav .nav-item.we-nav-secondary { display: none; }
  nav.we-nav .nav-links a.nav-cta { margin-left: 8px; padding: 8px 14px; font-size: .85rem; }
  nav.we-nav .nav-menu.mega {
    position: fixed; left: 8px; right: 8px; top: 64px;
    grid-template-columns: 1fr; min-width: 0; max-height: 70vh; overflow-y: auto;
  }
  .mega-col { padding: 6px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .mega-col:last-of-type { border-bottom: 0; }
}

/* ---- buttons (unified) */
.we-btn, .btn { transition: transform .14s ease, box-shadow .14s ease, filter .14s ease; }
.we-btn:hover, .btn:hover { transform: translateY(-1px); }
.btn-primary:hover, .btn:not(.ghost):not(.btn-secondary):hover { box-shadow: 0 8px 26px rgba(34,214,138,.28); filter: brightness(1.05); }

/* ---- focus visibility (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) { .we-btn, .btn { transition: none; } }

/* ---- shared footer */
footer.we-footer { border-top: 1px solid var(--border); background: var(--bg2); padding: 0; text-align: left; font-size: .84rem; }
.we-footer .cols { max-width: 1100px; margin: 0 auto; padding: 44px 32px 30px; display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 860px) { .we-footer .cols { grid-template-columns: 1fr 1fr; } }
.we-footer .brandcol .logo { font-family: var(--mono); font-weight: 700; color: var(--green); font-size: 1rem; text-decoration: none; }
.we-footer .brandcol .logo span { color: var(--text-dim); font-weight: 400; }
.we-footer .brandcol p { color: var(--text-dim); font-size: .82rem; margin: 10px 0 0; max-width: 300px; line-height: 1.6; }
.we-footer h4 { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 12px; font-weight: 700; }
.we-footer ul { list-style: none; padding: 0; margin: 0; }
.we-footer li { margin-bottom: 8px; }
.we-footer a { color: var(--text-dim); text-decoration: none; font-size: .84rem; }
.we-footer a:hover { color: var(--text); }
.we-footer .seo-strip { max-width: 1100px; margin: 0 auto; padding: 0 32px 18px; border-top: 1px solid var(--border); padding-top: 18px; }
.we-footer .seo-strip h4 { margin-bottom: 10px; }
.we-footer .seo-strip a { font-size: .76rem; color: var(--text-faint); margin-right: 14px; display: inline-block; margin-bottom: 6px; }
.we-footer .seo-strip a:hover { color: var(--text-dim); }
.we-footer .legal { max-width: 1100px; margin: 0 auto; padding: 14px 32px 26px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--text-faint); font-size: .76rem; border-top: 1px solid var(--border); }
.we-footer .legal a { color: var(--text-faint); font-size: .76rem; }

/* ---- lead form (claim / talk-to-us) */
.we-lead { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.we-lead h3 { font-size: .98rem; color: var(--text); margin-bottom: 4px; }
.we-lead .lh { font-size: .78rem; color: var(--text-faint); margin-bottom: 14px; }
.we-lead label { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); font-weight: 700; margin: 10px 0 5px; }
.we-lead input, .we-lead textarea, .we-lead select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: var(--sans); font-size: .88rem; padding: 10px 12px; box-sizing: border-box; }
.we-lead textarea { min-height: 70px; resize: vertical; }
.we-lead input:focus, .we-lead textarea:focus, .we-lead select:focus { outline: none; border-color: var(--green); }
.we-lead button { width: 100%; margin-top: 14px; padding: 13px; border: none; border-radius: 10px;
  background: var(--green); color: var(--bg); font-weight: 700; font-size: .92rem; cursor: pointer; font-family: var(--sans); }
.we-lead .ok { background: var(--green-dim); border: 1px solid rgba(34,214,138,.4); color: var(--green);
  border-radius: 10px; padding: 14px; font-size: .86rem; text-align: center; }
.we-lead .err { color: #f0506e; font-size: .78rem; margin-top: 8px; }
.we-lead .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
