/* ================================================================
   DealerMS — Main Stylesheet
   Dark Navy + Orange design system
   ================================================================ */

:root {
  --navy:       #0A1628;
  --navy-2:     #112035;
  --navy-3:     #0D2040;
  --border:     #1E3050;
  --orange:     #FF6B35;
  --orange-h:   #e85a22;
  --green:      #00C853;
  --text:       #E8EAF0;
  --muted:      #8892A4;
  --white:      #FFFFFF;
  --radius:     12px;
  --radius-sm:  8px;
  --radius-pill:999px;
  --shadow:     0 4px 24px rgba(0,0,0,0.25);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.35);
  --font-head:  'Poppins', sans-serif;
  --font-body:  'Inter', sans-serif;
  --trans:      0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--navy); color: var(--text); font-family: var(--font-body); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--orange-h); }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); color: var(--white); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem,5vw,3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem,3.5vw,2.3rem); }
h3 { font-size: clamp(1.1rem,2.5vw,1.5rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text); line-height: 1.75; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul,ol { padding-left: 1.2rem; }
li { margin-bottom: .4rem; color: var(--text); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--navy-3); }
.section--dark { background: var(--navy-2); }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; transition: all var(--trans);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-h); border-color: var(--orange-h); color: var(--white); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,107,53,.06); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }

/* ── Section label ── */
.section-label {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange); background: rgba(255,107,53,.12);
  padding: 4px 14px; border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--muted); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

/* ── Cards ── */
.card {
  background: var(--navy-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; transition: all var(--trans);
}
.card:hover { border-color: rgba(255,107,53,.25); transform: translateY(-4px); box-shadow: var(--shadow); }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ═══════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(10,22,40,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--trans);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 68px;
}
.nav-logo {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 800;
  color: var(--white); text-decoration: none; flex-shrink: 0;
}
.nav-logo span { color: var(--orange); }
.nav-logo img { height: 36px; width: auto; }
.nav-menu {
  display: flex; align-items: center; gap: 4px;
  list-style: none; padding: 0; margin: 0 auto;
}
.nav-menu a {
  display: block; padding: 8px 14px; color: var(--muted); font-size: .92rem;
  font-weight: 500; border-radius: var(--radius-sm); transition: all var(--trans);
}
.nav-menu a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-menu a.active { color: var(--orange); }
.nav-cta { flex-shrink: 0; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: all var(--trans);
}
.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 890;
  background: var(--navy); flex-direction: column; align-items: center;
  justify-content: center; gap: 32px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1.4rem; color: var(--text); font-weight: 600; }
.nav-mobile a:hover { color: var(--orange); }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  background: radial-gradient(ellipse at 60% 0%, rgba(255,107,53,.08) 0%, transparent 60%), var(--navy);
  padding: 160px 0 96px;
  border-bottom: 1px solid var(--border);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,53,.1); border: 1px solid rgba(255,107,53,.25);
  padding: 6px 16px; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 600; color: var(--orange);
  margin-bottom: 24px;
}
.hero-badge-dot { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; }
.hero-content h1 span { color: var(--orange); }
.hero-tagline { font-size: 1.1rem; color: var(--muted); margin: 20px 0 36px; max-width: 520px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.hero-trust-item .icon { font-size: 1.1rem; }

/* Hero dashboard mockup */
.hero-visual { position: relative; }
.hero-visual-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.mock-window {
  background: var(--navy-2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; background: var(--navy-3); border-bottom: 1px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.r { background: #FF5F57; } .mock-dot.y { background: #FFBD2E; } .mock-dot.g { background: #28C840; }
.mock-title { font-size: .78rem; color: var(--muted); margin-left: 8px; }
.mock-body { padding: 20px; }
.mock-stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 20px; }
.mock-stat-card { background: var(--navy-3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.mock-stat-num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.mock-stat-lbl { font-size: .7rem; color: var(--muted); margin-top: 2px; }
.mock-prog-wrap { margin-bottom: 14px; }
.mock-prog-label { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-bottom: 5px; }
.mock-prog { height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; }
.mock-prog-fill { height: 100%; background: linear-gradient(90deg,var(--orange),#ff9a6c); border-radius: 4px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .8rem; }
.mock-row:last-child { border: none; }
.mock-badge { font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); }
.mock-badge.active { background: rgba(0,200,83,.15); color: var(--green); }
.mock-badge.pending { background: rgba(255,189,46,.12); color: #FFBD2E; }

/* ═══════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════ */
.stats-bar { background: var(--navy-3); border-bottom: 1px solid var(--border); }
.stats-bar .container { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { text-align: center; padding: 32px 16px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--orange); display: block; }
.stat-label { font-size: .88rem; color: var(--muted); }

/* ═══════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════ */
.feature-card {
  background: var(--navy-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all var(--trans); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(255,107,53,.05) 0%, transparent 65%);
  opacity: 0; transition: opacity var(--trans);
}
.feature-card:hover { border-color: rgba(255,107,53,.3); transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 2.4rem; margin-bottom: 18px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.feature-card ul { list-style: none; padding: 0; }
.feature-card ul li { font-size: .85rem; color: var(--muted); padding: 5px 0; padding-left: 18px; position: relative; margin: 0; }
.feature-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ═══════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; align-items: start; }
.pricing-card {
  background: var(--navy-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px; transition: all var(--trans); position: relative;
}
.pricing-card:hover { border-color: rgba(255,107,53,.3); transform: translateY(-5px); box-shadow: var(--shadow); }
.pricing-card.featured { border-color: var(--orange); }
.pricing-badge {
  display: inline-block; background: var(--orange); color: var(--white);
  font-size: .72rem; font-weight: 700; padding: 4px 12px;
  border-radius: var(--radius-pill); margin-bottom: 16px;
}
.pricing-name { font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.pricing-price { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--white); line-height: 1; }
.pricing-price sup { font-size: 1.2rem; font-weight: 600; vertical-align: super; }
.pricing-period { font-size: .85rem; color: var(--muted); margin-left: 4px; }
.pricing-per-month { font-size: .82rem; color: var(--green); font-weight: 600; margin: 4px 0; }
.pricing-savings { font-size: .82rem; color: var(--green); font-weight: 700; margin-bottom: 24px; }
.pricing-features { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid var(--border); padding-top: 24px; }
.pricing-features li { padding: 7px 0; font-size: .9rem; color: var(--muted); padding-left: 22px; position: relative; }
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pricing-cta { display: block; text-align: center; }

/* ═══════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════ */
.testi-card {
  background: var(--navy-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
}
.testi-stars { font-size: 1.1rem; margin-bottom: 16px; }
.testi-text { color: var(--muted); font-style: italic; line-height: 1.8; margin-bottom: 24px; font-size: .95rem; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-initials {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,var(--orange),#ff9a6c);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: .85rem;
}
.testi-name { font-weight: 600; font-size: .9rem; color: var(--white); }
.testi-role { font-size: .8rem; color: var(--muted); }

/* ═══════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════ */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: border-color var(--trans); }
.faq-item.open { border-color: rgba(255,107,53,.35); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 24px; display: flex; justify-content: space-between; align-items: center;
  color: var(--white); font-size: .98rem; font-weight: 600; transition: background var(--trans);
}
.faq-q:hover { background: rgba(255,255,255,.03); }
.faq-icon { font-size: 1.2rem; color: var(--orange); transition: transform var(--trans); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: .93rem; line-height: 1.75; }

/* ═══════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════ */
.cta-banner {
  background: radial-gradient(ellipse at 50% 0%, rgba(255,107,53,.12) 0%, transparent 65%), var(--navy-2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 96px 0;
}
.cta-banner h2 { font-size: clamp(1.6rem,3.5vw,2.4rem); margin-bottom: 16px; }
.cta-banner p { color: var(--muted); max-width: 500px; margin: 0 auto 36px; font-size: 1.05rem; }
.cta-banner .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════════════════════════ */
.page-hero {
  background: radial-gradient(ellipse at 60% 0%, rgba(255,107,53,.07) 0%, transparent 55%), var(--navy);
  padding: 140px 0 72px; border-bottom: 1px solid var(--border); text-align: center;
}
.page-hero p { color: var(--muted); max-width: 600px; margin: 16px auto 32px; font-size: 1.1rem; }

/* ═══════════════════════════════════════════════
   LEGAL PAGES
═══════════════════════════════════════════════ */
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 80px 24px; }
.legal-wrap h1 { margin-bottom: 6px; }
.legal-updated { color: var(--muted); font-size: .85rem; margin-bottom: 40px; display: block; }
.legal-summary {
  background: var(--navy-2); border: 1px solid rgba(255,107,53,.25);
  border-radius: var(--radius); padding: 24px; margin-bottom: 48px;
  font-size: .95rem; color: var(--muted); line-height: 1.8;
}
.legal-summary strong { color: var(--orange); }
.legal-content h2 { font-size: 1.2rem; margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.legal-content h3 { font-size: 1rem; margin: 20px 0 8px; color: var(--orange); }
.legal-content p { font-size: .95rem; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.legal-content ul,
.legal-content ol { margin: 12px 0 20px; }
.legal-content li { color: var(--muted); font-size: .95rem; line-height: 1.75; margin-bottom: 6px; }

/* ═══════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-info-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-info-text { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.contact-info-text strong { color: var(--white); display: block; margin-bottom: 2px; }

/* ═══════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-required { color: var(--orange); }
.form-control {
  width: 100%; background: var(--navy-3); border: 1px solid var(--border);
  color: var(--text); padding: 12px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; transition: border-color var(--trans);
  appearance: none;
}
.form-control:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,53,.12); }
.form-control::placeholder { color: var(--muted); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }
.form-error { font-size: .8rem; color: #FF4D4D; margin-top: 5px; display: none; }
.form-error.show { display: block; }
.form-success {
  background: rgba(0,200,83,.12); border: 1px solid rgba(0,200,83,.3);
  border-radius: var(--radius-sm); padding: 16px; color: var(--green);
  font-size: .9rem; margin-bottom: 24px; display: none;
}
.form-success.show { display: block; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer { background: var(--navy-2); border-top: 1px solid var(--border); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand p { color: var(--muted); font-size: .9rem; line-height: 1.7; margin: 16px 0 24px; max-width: 280px; }
.footer-logo { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--white); }
.footer-logo span { color: var(--orange); }
.footer-logo img { height: 36px; width: auto; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .85rem; transition: all var(--trans); text-decoration: none;
}
.social-btn:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,107,53,.08); }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: var(--white); margin-bottom: 18px; letter-spacing: .04em; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--muted); font-size: .88rem; transition: color var(--trans); }
.footer-col ul a:hover { color: var(--orange); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer-contact-item .icon { font-size: .95rem; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px;
}
.footer-copy { color: var(--muted); font-size: .82rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--muted); font-size: .82rem; transition: color var(--trans); }
.footer-legal a:hover { color: var(--orange); }

/* ═══════════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════════ */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--navy-2); color: var(--text); font-size: 1.1rem; cursor: pointer;
  opacity: 0; pointer-events: none; transition: all var(--trans);
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
.animate { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.animate.visible { opacity: 1; transform: none; }
.animate-delay-1 { transition-delay: .1s; }
.animate-delay-2 { transition-delay: .2s; }
.animate-delay-3 { transition-delay: .3s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 130px 0 72px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-brand p { max-width: none; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
}
