/* EV Doctor — evdoctors.net
   Palette: fresh EV green + white + neutral grays */

:root {
  --green-600: #059669;
  --green-500: #10B981;
  --green-400: #34D399;
  --green-50: #ECFDF5;
  --green-100: #D1FAE5;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 4px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 12px 40px rgba(17, 24, 39, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --max-w: 1120px;
  --nav-h: 72px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* ── Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gray-900);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--green-600); text-decoration: none; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--green-600);
  color: white !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
}
.nav-cta:hover { background: #047857; text-decoration: none; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--gray-900);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--green-600);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #047857; box-shadow: var(--shadow-md); }
.btn-outline {
  background: white;
  color: var(--gray-900);
  border: 1.5px solid var(--gray-200);
}
.btn-outline:hover { border-color: var(--green-500); color: var(--green-600); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

/* ── Hero ── */
.hero {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--green-100);
  color: var(--green-600);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--gray-900);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero-lead {
  font-size: 1.125rem;
  color: var(--gray-500);
  margin: 0 0 1.75rem;
  max-width: 32rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}
.hero-trust span { display: flex; align-items: center; gap: 0.35rem; }
.hero-visual {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}
.phone-mock {
  width: 180px;
  height: 360px;
  border: 3px solid var(--gray-900);
  border-radius: 28px;
  background: var(--gray-50);
  padding: 12px 8px;
  box-shadow: var(--shadow-md);
}
.phone-screen {
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--green-50), white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--gray-700);
}
.phone-screen .icon-car {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-600);
  margin-bottom: 0.75rem;
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.5rem;
}

/* ── Sections ── */
section { padding: 5rem 0; }
section.alt { background: var(--gray-50); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-head h2 {
  font-size: clamp(1.625rem, 3vw, 2rem);
  color: var(--gray-900);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--gray-500);
  font-size: 1.0625rem;
}
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-600);
  margin-bottom: 0.5rem;
}

/* ── Cards grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-50);
  color: var(--green-600);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  color: var(--gray-900);
}
.card p { margin: 0; font-size: 0.9375rem; color: var(--gray-500); }

/* ── Feature rows ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-box {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-box ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--gray-500);
}
.feature-box li { margin-bottom: 0.35rem; }
.feature-box h3 {
  margin: 0 0 0.5rem;
  color: var(--gray-900);
  font-size: 1.25rem;
}

/* ── Dual entry ── */
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.dual-card {
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--gray-100);
}
.dual-card.workshop {
  background: linear-gradient(135deg, var(--gray-900), #1e3a5f);
  color: white;
}
.dual-card.workshop h3,
.dual-card.workshop p { color: white; }
.dual-card.workshop p { opacity: 0.85; }
.dual-card.owner { background: var(--white); }
.dual-card h3 { margin: 0 0 0.75rem; font-size: 1.375rem; }
.dual-card p { margin: 0 0 1.25rem; color: var(--gray-500); }
.dual-card .btn-outline { border-color: rgba(255,255,255,0.3); color: white; }
.dual-card .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ── Hardware ── */
.hardware-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hardware-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.spec-item {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 1rem;
}
.spec-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 0.25rem;
}
.spec-item span { color: var(--gray-900); font-weight: 600; font-size: 0.9375rem; }
.hardware-visual {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.vci-device {
  width: 200px;
  height: 120px;
  background: var(--gray-900);
  border-radius: 12px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.vci-device::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 16px;
  right: 16px;
  height: 8px;
  background: var(--green-500);
  border-radius: 4px;
}
.vci-led {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  background: var(--green-400);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-400);
}

/* ── Cases ── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.case-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
}
.case-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: var(--green-50);
  color: var(--green-600);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.case-body { padding: 1.5rem; }
.case-body h3 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--gray-900); }
.case-body p { margin: 0; font-size: 0.875rem; color: var(--gray-500); }
.case-meta {
  padding: 0.75rem 1.5rem;
  background: var(--gray-50);
  font-size: 0.8125rem;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-100);
}

/* ── Partners strip ── */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  padding: 2rem;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
}
.partner-item {
  font-weight: 600;
  color: var(--gray-400);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-100);
  padding: 1.25rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--gray-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--green-600); font-size: 1.25rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0.75rem 0 0; color: var(--gray-500); font-size: 0.9375rem; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 { margin: 0 0 0.5rem; color: var(--gray-900); }
.contact-info p { margin: 0 0 1.5rem; color: var(--gray-500); }
.contact-detail {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.contact-form {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font: inherit;
  color: var(--gray-900);
  background: var(--gray-50);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-consent {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin: 1rem 0;
}
.form-consent a { color: var(--green-600); }

/* ── Footer ── */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 3.5rem 0 2rem;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo { color: white; margin-bottom: 0.75rem; }
.footer-brand p { margin: 0; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: white;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--gray-400); text-decoration: none; }
.footer-col a:hover { color: var(--green-400); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Legal pages ── */
.legal-page { padding: 3rem 0 5rem; }
.legal-page h1 {
  font-size: 2rem;
  color: var(--gray-900);
  margin: 0 0 0.5rem;
}
.legal-meta { color: var(--gray-400); font-size: 0.875rem; margin-bottom: 2rem; }
.legal-page h2 {
  font-size: 1.125rem;
  color: var(--gray-900);
  margin: 2rem 0 0.75rem;
}
.legal-page p, .legal-page li { color: var(--gray-500); }
.legal-page ul { padding-left: 1.25rem; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-md);
  }
  .menu-toggle { display: block; }
  .hero-grid,
  .feature-row,
  .hardware-grid,
  .contact-grid,
  .dual-grid { grid-template-columns: 1fr; }
  .feature-row.reverse { direction: ltr; }
  .card-grid,
  .case-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 3rem; }
  .hero-visual { order: -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hardware-specs { grid-template-columns: 1fr; }
}
