/* ============================================
   Revival Electric Vehicles — Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Typography --- */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: #444;
  line-height: 1.5;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}

p {
  color: #444;
  line-height: 1.7;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #111;
  border-bottom: 1px solid #222;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: #aaa;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a.active {
  font-weight: 500;
  color: #fff;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #111;
  border-top: 1px solid #222;
  padding: 16px 24px;
  gap: 0;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 0.95rem;
  color: #aaa;
  border-bottom: 1px solid #222;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu.open {
  display: flex;
}

/* Page offset for fixed nav */
.page-content {
  margin-top: 64px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1.5px solid #111;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-dark {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn-dark:hover {
  background: #333;
  border-color: #333;
}

.btn-outline {
  background: transparent;
  color: #111;
  border-color: #111;
}

.btn-outline:hover {
  background: #111;
  color: #fff;
}

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h2 {
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Photo Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}

.gallery-grid img:hover {
  opacity: 0.9;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* --- Services --- */
.services {
  background: #f8f8f8;
}

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

.service-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 10px;
}

/* --- Featured News --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.news-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #111;
}

.news-card a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid #111;
  padding-bottom: 1px;
}

.news-card a:hover {
  opacity: 0.6;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 48px;
}

.section-header h4 {
  margin-bottom: 8px;
}

/* --- Before/After Specs (BMW page) --- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.9rem;
}

.specs-table thead th {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 2px solid #e8e8e8;
}

.specs-table tbody tr:hover {
  background: #f9f9f9;
}

.specs-table .label-col {
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 160px;
}

.specs-section {
  background: #f8f8f8;
}

/* --- Video --- */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Contact --- */
.contact-hero {
  padding: 100px 0 80px;
}

.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 0;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #ccc;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: #111;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- News List --- */
.news-list-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid #e8e8e8;
}

.news-list-item:last-child {
  border-bottom: 1px solid #e8e8e8;
}

.news-list-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.news-list-meta {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.news-list-title {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 16px;
  color: #111;
}

.news-list-title a:hover {
  opacity: 0.7;
}

/* --- Footer --- */
footer {
  background: #111;
  color: #fff;
  padding: 60px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-company h4 {
  color: #888;
  margin-bottom: 12px;
}

.footer-company p {
  color: #aaa;
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer-company a {
  color: #aaa;
  text-decoration: underline;
  text-decoration-color: #555;
}

.footer-company a:hover {
  color: #fff;
}

.footer-social h4 {
  color: #888;
  margin-bottom: 12px;
}

.footer-social-links {
  display: flex;
  gap: 20px;
}

.footer-social-links a {
  font-size: 0.875rem;
  color: #aaa;
  transition: color 0.2s;
}

.footer-social-links a:hover {
  color: #fff;
}

.footer-newsletter h4 {
  color: #888;
  margin-bottom: 12px;
}

.newsletter-input-row {
  display: flex;
  gap: 8px;
}

.newsletter-input-row input[type="email"] {
  flex: 1;
  padding: 10px 0;
  font-size: 0.875rem;
  font-family: inherit;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #444;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input-row input[type="email"]::placeholder {
  color: #666;
}

.newsletter-input-row input[type="email"]:focus {
  border-bottom-color: #fff;
}

.newsletter-input-row button {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.02em;
  color: #111;
  background: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-input-row button:hover {
  background: #ddd;
}

.newsletter-thanks {
  color: #aaa;
  font-size: 0.875rem;
}

/* Newsletter section on contact page */
.newsletter-section {
  border-top: 1px solid #e8e8e8;
  padding-top: 48px;
  margin-top: 48px;
  max-width: 560px;
}

.newsletter-section h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #111;
  margin-bottom: 8px;
}

.newsletter-section p {
  margin-bottom: 24px;
}

.newsletter-section .newsletter-input-row input[type="email"] {
  color: #111;
  border-bottom-color: #ccc;
}

.newsletter-section .newsletter-input-row input[type="email"]::placeholder {
  color: #aaa;
}

.newsletter-section .newsletter-input-row input[type="email"]:focus {
  border-bottom-color: #111;
}

.newsletter-section .newsletter-input-row button {
  color: #fff;
  background: #111;
}

.newsletter-section .newsletter-input-row button:hover {
  background: #333;
}

.newsletter-section .newsletter-thanks {
  color: #444;
}

/* --- Benefits --- */
.benefits-hero {
  padding: 100px 0 64px;
}

.benefits-hero h1 {
  margin-bottom: 20px;
}

.benefits-hero h2 {
  max-width: 600px;
}

.benefits-video-section {
  padding-top: 0;
  padding-bottom: 64px;
}

.benefits-video-embed {
  max-width: 540px;
}

.benefits-section {
  padding-top: 0;
  padding-bottom: 80px;
}

.benefit-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid #e8e8e8;
  max-width: 760px;
}

.benefit-item:last-child {
  border-bottom: 1px solid #e8e8e8;
}

.benefit-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #bbb;
  padding-top: 4px;
}

.benefit-body h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 12px;
  color: #111;
}

.benefit-body p {
  font-size: 0.925rem;
  line-height: 1.75;
}

.benefits-cta-section {
  padding-top: 0;
  padding-bottom: 100px;
}

.benefits-cta {
  max-width: 560px;
  border-top: 1px solid #e8e8e8;
  padding-top: 48px;
}

.benefits-cta h3 {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
  color: #111;
}

.benefits-cta p {
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .benefit-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* --- FAQ --- */
.faq-hero {
  padding: 100px 0 64px;
}

.faq-hero h1 {
  margin-bottom: 20px;
}

.faq-hero h2 {
  max-width: 560px;
}

.faq-section {
  padding-top: 0;
  padding-bottom: 100px;
}

.faq-container {
  max-width: 760px;
}

.faq-group {
  margin-bottom: 56px;
}

.faq-group-label {
  margin-bottom: 24px;
}

.faq-item {
  border-top: 1px solid #e8e8e8;
}

.faq-item:last-of-type {
  border-bottom: 1px solid #e8e8e8;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  color: #111;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
}

.faq-question:hover {
  color: #444;
}

.faq-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: #111;
  transition: transform 0.25s, opacity 0.25s;
}

.faq-icon::before {
  width: 16px;
  height: 1.5px;
  top: 7px;
  left: 0;
}

.faq-icon::after {
  width: 1.5px;
  height: 16px;
  top: 0;
  left: 7px;
}

.faq-item.open .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 0.925rem;
  line-height: 1.75;
}

.faq-list {
  padding-left: 20px;
  padding-bottom: 24px;
  font-size: 0.925rem;
  color: #444;
  line-height: 1.75;
}

.faq-list li {
  margin-bottom: 8px;
}

.faq-cta {
  border-top: 1px solid #e8e8e8;
  padding-top: 48px;
  margin-top: 8px;
}

.faq-cta h3 {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
  color: #111;
}

.faq-cta p {
  margin-bottom: 24px;
}

/* --- Workshop Grid --- */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 880px;
}

.workshop-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-bottom: 16px;
}

.workshop-card img:hover {
  opacity: 0.9;
}

.workshop-card h3 {
  margin-bottom: 6px;
}

.workshop-card p {
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .workshop-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Social Proof Ticker --- */
.social-proof {
  padding: 0;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  overflow: hidden;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 36s linear infinite;
}

.social-proof:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  font-size: 0.8rem;
  color: #555;
  padding: 18px 32px;
}

.marquee-item a {
  color: #555;
}

.marquee-item a:hover {
  color: #111;
}

.marquee-sep {
  color: #ccc;
  font-size: 0.65rem;
  user-select: none;
}

/* --- Dividers & Spacing --- */
.divider {
  height: 1px;
  background: #e8e8e8;
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .news-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .news-list-item {
    grid-template-columns: 1fr;
  }

  .news-list-item img {
    max-width: 400px;
  }
}

@media (max-width: 640px) {
  section {
    padding: 56px 0;
  }

  .hero {
    padding: 80px 0 56px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .newsletter-section {
    max-width: 100%;
  }

  .specs-table .label-col {
    display: none;
  }
}
