/* ═══════════════════════════════════════════════════════════
   LAYOUT — Automotive Excellence
   ═══════════════════════════════════════════════════════════ */

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Section padding ── */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
}

/* ── Utility ── */
.text-center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ══ NAV ═══════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  min-height: 56px;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background: rgba(11, 17, 32, 0.95);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--color-accent);
  transition: width var(--transition-mid);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Hamburger */
.hamburger {
  display: none;
  width: 28px;
  height: 20px;
  min-height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  position: relative;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:nth-child(1) { top: calc(50% - 10px); }
.hamburger span:nth-child(2) { top: calc(50% - 1px); }
.hamburger span:nth-child(3) { top: calc(50% + 8px); }

.hamburger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 999;
  background: rgba(11, 17, 32, 0.98);
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 3vh, 2.5rem);
  padding: clamp(1.5rem, 5vh, 3rem) 0;
  overflow-y: auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(-100%);
  transition: transform 0.65s var(--ease-out);
  pointer-events: none;
}

.mobile-overlay.is-open {
  transform: translateX(0);
  pointer-events: all;
}

.mobile-overlay a {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 10vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  text-align: center;
  width: 100%;
  transition: color var(--duration-fast);
  opacity: 0;
  transform: translateX(-30px);
  flex-shrink: 0;
}

.mobile-overlay.is-open a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-overlay a:hover {
  color: var(--color-accent);
}

/* ══ HERO ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -15% 0;
  background-size: cover;
  background-position: center center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 17, 32, 0.92) 0%,
    rgba(15, 23, 42, 0.75) 40%,
    rgba(30, 41, 59, 0.65) 65%,
    rgba(11, 17, 32, 0.88) 100%
  );
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--nav-height);
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow i {
  font-size: 1rem;
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 9rem);
  line-height: 0.92;
  color: var(--color-text-primary);
  margin-bottom: 1.75rem;
  font-weight: 900;
}

.hero-title-line1,
.hero-title-line2 {
  display: block;
}

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

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollLine 1.6s ease-in-out infinite;
}

/* ══ ABOUT ═══════════════════════════════════════════════ */
.about-section {
  background: var(--color-bg-mid);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
  margin-bottom: 1rem;
  font-weight: 600;
}

.about-heading {
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  line-height: 0.95;
  font-weight: 800;
}

.about-body {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.about-body p + p {
  margin-top: 1rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--size-stat-num);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  text-shadow: var(--glow-accent);
}

.stat-item.stat-plain .stat-number {
  color: var(--color-accent-warm);
  text-shadow: var(--glow-warm);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--color-bg-light);
  position: relative;
  border: 2px solid rgba(37, 99, 235, 0.25);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.15);
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background: var(--color-accent);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.about-badge-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

.about-badge-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.about-badge-value i {
  color: #fff;
}

/* ══ SERVICES (TABS) ════════════════════════════════════ */
.services-section {
  background: var(--color-bg-primary);
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
  margin-bottom: 0.75rem;
  display: block;
  font-weight: 600;
}

.section-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  line-height: 1;
  font-weight: 800;
}

.section-sub {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.7;
}

/* Tabs navigation */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--color-border-dim);
  padding-bottom: 0.5rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  transition: color var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  min-height: 44px;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  background: rgba(37, 99, 235, 0.06);
}

.tab-letter {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  opacity: 0.5;
}

.tab-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* Tab panels */
.tabs-content {
  position: relative;
}

.tab-panel {
  display: none;
  max-width: 720px;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.tab-panel-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  text-shadow: var(--glow-accent-sm);
}

.tab-panel h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.tab-panel p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.tab-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.tab-bullets li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.tab-bullets li i {
  color: var(--color-accent);
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* ══ GALLERY ════════════════════════════════════════════ */
.gallery-section {
  background: var(--color-bg-mid);
}

.gallery-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.gallery-wrap {
  position: relative;
}

.gallery-track-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gallery-track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
}

.gallery-card {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(11, 17, 32, 0.85));
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-prev,
.gallery-next {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-dim);
  color: var(--color-text-primary);
  font-size: 1.2rem;
  transition: background var(--duration-fast), border-color var(--duration-fast), box-shadow var(--duration-fast);
  cursor: pointer;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: var(--glow-accent-sm);
}

.gallery-counter {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

.gallery-current {
  color: var(--color-accent);
}

/* ══ REVIEWS ════════════════════════════════════════════ */
.reviews-section {
  background: var(--color-bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-dim);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal), transform var(--duration-normal);
}

.testimonial-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--glow-accent-sm);
  transform: translateY(-3px);
}

.testimonial-stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 1rem;
  color: var(--color-accent-warm);
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.testimonial-author strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ══ CONTACT ════════════════════════════════════════════ */
.contact-section {
  background: var(--color-bg-mid);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-item i {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.contact-info-text strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.contact-info-text a,
.contact-info-text span {
  font-size: 0.95rem;
  color: var(--color-text-primary);
  transition: color var(--duration-fast);
}

.contact-info-text a:hover {
  color: var(--color-accent);
}

.social-row {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-dim);
  font-size: 1.25rem;
  color: var(--color-text-muted);
  transition: color var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast);
}

.social-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-border);
  background: rgba(37, 99, 235, 0.08);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-dim);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  color: var(--color-text-primary);
  font-size: 0.95rem;
  transition: border-color var(--duration-fast);
  min-height: 44px;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

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

/* ══ FOOTER ════════════════════════════════════════════ */
#footer {
  background: var(--color-bg-deep);
  border-top: 1px solid var(--color-border-dim);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo-text {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-brand-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: 220px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  transition: color var(--duration-fast);
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-contact p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  font-size: 0.9rem;
  color: var(--color-accent-light);
  transition: color var(--duration-fast);
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ══ MOBILE BREAKPOINTS ════════════════════════════════ */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  /* Nav */
  .nav-links {
    display: none;
  }

  .btn-nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }

  .hero-title-line1,
  .hero-title-line2 {
    display: block;
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-scroll-hint {
    display: none;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual {
    order: -1;
  }

  .about-badge {
    left: 0;
    bottom: 1.25rem;
  }

  .about-stats {
    gap: 1.75rem;
  }

  /* Services tabs — horizontal scroll on mobile */
  .tabs-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0;
  }

  .tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    padding: 0.65rem 1rem;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Gallery */
  .gallery-card figcaption {
    font-size: 1rem;
    padding: 1rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .footer-brand-tagline {
    max-width: 100%;
  }

  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
}

/* ══ KEYFRAMES ═════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}