/* ==========================================================================
   Spark Auto Solutions — stylesheet
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --bg-card: #ffffff;
  --border: #e2e6ec;
  --text: #14181f;
  --text-muted: #5a6472;
  --accent: #2563eb;
  --accent-dim: #bcd3ff;
  --spark: #d98500;
  --radius: 10px;
  --max-width: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--spark);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--spark);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 rgba(47,125,252,0);
}

.btn-primary:hover {
  background: #3f8bff;
  box-shadow: 0 8px 24px rgba(47,125,252,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-spark {
  background: var(--spark);
  color: #1a1200;
}

.btn-spark:hover {
  box-shadow: 0 8px 24px rgba(255,176,32,0.35);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255,255,255,0.96);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

@media (min-width: 701px) {
  .site-header .container { position: relative; }
  .nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
  }
  .nav-links a { white-space: nowrap; }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13.5px; }
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a { position: relative; padding: 6px 0; }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  padding: 168px 0 110px;
  position: relative;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(47,125,252,0.18), transparent 60%),
    radial-gradient(ellipse 700px 500px at 10% 10%, rgba(255,176,32,0.08), transparent 55%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: linear-gradient(135deg, var(--accent-dim), transparent 70%);
  clip-path: polygon(60% 0%, 100% 0%, 100% 100%, 20% 100%);
  opacity: 0.35;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 20px;
}

.hero h1 span { color: var(--accent); }

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.hero-stats div strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

.hero-stats div span {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 24px;
}

.btn-xl {
  padding: 22px 48px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
}

/* ---------- Audience toggle strip ---------- */

.audience-strip {
  padding: 26px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.audience-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.audience-strip a {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Services / What I Do ---------- */

.services { padding: 110px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.service-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(47,125,252,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
}

.service-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ---------- Split sections (Dealerships / Owners) ---------- */

.split {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.split.alt { background: var(--bg-alt); }

.split .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.split.reverse .container { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split.reverse .split-list { order: 1; }

.split-copy .eyebrow { margin-bottom: 14px; }

.split-copy h2 { margin-bottom: 18px; }

.split-copy p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 26px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
}

.check-list .mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,176,32,0.15);
  color: var(--spark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 2px;
}

.split-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.split-list h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ---------- Pricing ---------- */

.pricing { padding: 110px 0; }

.pricing-layout {
  display: flex;
  align-items: stretch;
  gap: 24px;
  flex-wrap: wrap;
}

.pricing-table-wrap {
  flex: 1 1 460px;
  max-width: 780px;
}

.pricing-extra-box {
  flex: 1 1 260px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.pricing-extra-box .travel-fee-icon {
  width: 68px;
  height: 68px;
  color: var(--accent);
  margin-bottom: 18px;
}

.pricing-extra-box h3 {
  font-size: 32px;
  margin-bottom: 10px;
}

.pricing-extra-box p {
  font-size: 16px;
  color: var(--text);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pricing-table th, .pricing-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}

.pricing-table th {
  background: rgba(0,0,0,0.03);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.pricing-table th:last-child, .pricing-table td.price {
  text-align: right;
  border-left: 1px solid var(--border);
}

.pricing-table tr:last-child td { border-bottom: none; }

.pricing-table td.price {
  color: var(--spark);
  font-weight: 700;
  white-space: nowrap;
  width: 1%;
}

.service-title {
  font-weight: 600;
  color: var(--text);
}

.service-sep {
  color: var(--text-muted);
}

.service-desc {
  color: var(--text-muted);
}


.pricing-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
}

/* ---------- Portfolio ---------- */

.portfolio { padding: 110px 0; border-top: 1px solid var(--border); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.ba-frame {
  position: relative;
  aspect-ratio: 1/1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ba-frame.stacked {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
}

.ba-frame .half {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
}

.ba-frame .half.before { background: repeating-linear-gradient(135deg, #14171d, #14171d 10px, #181c22 10px, #181c22 20px); }
.ba-frame .half.after { background: repeating-linear-gradient(135deg, #12181f, #12181f 10px, #16202b 10px, #16202b 20px); }

.ba-frame .half svg { width: 26px; height: 26px; opacity: 0.5; }

.ba-frame .divider {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: var(--spark);
  opacity: 0.6;
}

.ba-frame.stacked .divider {
  top: 50%; bottom: auto; left: 0; right: 0;
  width: 100%;
  height: 2px;
}

.portfolio-card-body {
  padding: 18px 20px 22px;
}

.portfolio-card-body h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.portfolio-card-body p {
  font-size: 14px;
  color: var(--text-muted);
}

.portfolio-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 30px;
}

/* ---------- Booking / Contact ---------- */

.book { padding: 110px 0; background: var(--bg-alt); border-top: 1px solid var(--border); }

.book-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.book-info {
  max-width: 700px;
}

.book-info h2 { margin-bottom: 16px; }
.book-info p { color: var(--text-muted); margin-bottom: 28px; }

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-methods .item {
  display: flex;
  gap: 14px;
  align-items: center;
}

.book-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact-methods .icon-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(47,125,252,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-methods .item strong { display: block; font-size: 14.5px; }
.contact-methods .item span { font-size: 14px; color: var(--text-muted); }

.book-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-box h3 { margin-bottom: 12px; font-size: 22px; }
.contact-box p { color: var(--text-muted); margin-bottom: 26px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea { resize: vertical; min-height: 100px; }

.radio-group {
  display: flex;
  gap: 10px;
}

.radio-group label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.radio-group input { accent-color: var(--accent); }

.radio-group input:checked + span,
.radio-group label:has(input:checked) {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(47,125,252,0.08);
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.form-success.show { display: block; }

.form-success .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,176,32,0.15);
  color: var(--spark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 26px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 50px 0 30px;
  border-top: 1px solid var(--border);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer .logo img { height: 24px; opacity: 0.85; }

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
  text-align: center;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .container,
  .split .container,
  .split.reverse .container {
    grid-template-columns: 1fr;
  }
  .book-steps { grid-template-columns: 1fr; }
  .split.reverse .split-copy,
  .split.reverse .split-list { order: initial; }
  .hero-side { padding-left: 0; }
  .btn-xl { width: 100%; text-align: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px 26px;
    gap: 18px;
  }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  .hero-stats { gap: 24px; }
}

/* ---------- Light theme card shadows ---------- */

.service-card, .portfolio-card, .book-form, .contact-box, .pricing-extra-box, .split-list, .pricing-table, .pricing-note {
  box-shadow: 0 1px 3px rgba(20,24,31,0.06);
}
