:root {
  --ae-blue: #0066ff;
  --ae-blue-dark: #0050cc;
  --ae-ink: #0b1220;
  --ae-muted: #64748b;
  --ae-line: #e2e8f0;
  --ae-surface: #ffffff;
  --ae-soft: #f4f6f8;
  --ae-success: #027a48;
  --ae-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  --ae-radius: 24px;
  --ae-nav-height: 78px;
}

html {
  scroll-padding-top: calc(var(--ae-nav-height) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  min-width: 0;
}

img, video, iframe {
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 102, 255, 0.35);
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 32px));
}

.navbar {
  isolation: isolate;
}

.nav-inner {
  position: relative;
}

.logo {
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ae-line);
  border-radius: 14px;
  background: var(--ae-surface);
  color: var(--ae-ink);
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 102, 255, 0.35);
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease;
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(6px);
}

body.nav-open .nav-toggle span {
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span::before {
  transform: rotate(90deg);
}

body.nav-open .nav-toggle span::after {
  transform: rotate(90deg);
  opacity: 0;
}

.btn,
.small-btn,
.submit-btn,
.car-tab,
.category-tab,
.theme-toggle,
.nav-cta {
  touch-action: manipulation;
}

.btn,
.small-btn,
.submit-btn {
  min-height: 44px;
}

.car-card,
.article-card,
.feature-box,
.service-box,
.brand-card,
.contact-card,
.info-item,
.why-box,
.content-card,
.gallery-card,
.side-card,
.form-card,
.choice-card,
.location-card,
.service-contact-card {
  will-change: transform;
}

.car-card img,
.article-card img,
.featured-article img,
.gallery-card img,
.choice-card img,
.featured-car img {
  object-fit: cover;
}

.car-card img {
  aspect-ratio: 16 / 10;
}

.slider img {
  width: 100%;
  object-fit: cover;
}

.old-price {
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(239, 68, 68, 0.75);
}

.new-price,
.price.new-price {
  color: var(--ae-success);
}

.ae-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.ae-reveal.ae-visible {
  opacity: 1;
  transform: translateY(0);
}

body.dark-mode .nav-toggle {
  background: #111827;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode .nav-links {
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  :root {
    --ae-nav-height: 70px;
  }

  .container {
    width: min(100% - 28px, 920px);
  }

  .section,
  .page,
  .page-header,
  .choice-section {
    padding-top: 34px !important;
    padding-bottom: 46px !important;
  }

  .section-head,
  .title-row,
  .filter-row,
  .hero-row,
  .contact-strip,
  .detail-cta,
  .top-service,
  .contact-layout,
  .detail-layout,
  .featured-car,
  .featured-article,
  .seo-info,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .section-head,
  .title-row,
  .filter-row {
    align-items: stretch !important;
  }

  .service-intro,
  .contact-info,
  .side-card {
    position: static !important;
  }

  .features-list,
  .why-grid,
  .service-grid,
  .brand-grid,
  .brands-grid,
  .article-grid,
  .articles-grid,
  .inventory-grid,
  .cars-grid,
  .car-grid,
  .choice-grid,
  .stats-grid,
  .achievement-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .nav-inner {
    min-height: 66px !important;
    flex-wrap: wrap;
    gap: 10px;
  }

  body.ae-nav-enhanced .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  body.ae-nav-enhanced .nav-links {
    order: 3;
    width: 100%;
    display: none !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 0 0 14px;
    white-space: normal !important;
    overflow: visible !important;
  }

  body.ae-nav-enhanced.nav-open .nav-links {
    display: flex !important;
    animation: ae-menu-in 0.18s ease-out both;
  }

  .nav-links a,
  .nav-links button,
  .nav-cta,
  .theme-toggle {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 44px;
    border-radius: 14px !important;
  }

  .logo {
    font-size: 21px !important;
  }

  .choice-head h1,
  h1 {
    letter-spacing: -1.5px !important;
  }

  .choice-card,
  .service-intro,
  .contact-info,
  .form-card,
  .gallery-card,
  .side-card,
  .content-card,
  .detail-cta,
  .featured-car,
  .featured-article,
  .seo-info,
  .contact-strip {
    border-radius: 22px !important;
    padding: 22px !important;
  }

  .filter-wrap {
    border-radius: 20px !important;
    padding: 12px !important;
  }

  .car-tabs,
  .category-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    width: 100%;
  }

  .car-tab,
  .category-tab {
    width: 100%;
    padding: 12px 10px !important;
    text-align: center;
  }

  .result-count {
    width: 100%;
    text-align: center;
  }

  .form-row,
  .contact-buttons,
  .form-actions,
  .cta-actions {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
  }

  .form-actions .btn,
  .contact-buttons .btn,
  .submit-btn {
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 560px) !important;
  }

  .section,
  .page,
  .page-header,
  .choice-section {
    padding-top: 26px !important;
    padding-bottom: 36px !important;
  }

  .section-head h2,
  .content-card h2,
  .detail-cta h2,
  .form-card h2 {
    font-size: clamp(26px, 9vw, 38px) !important;
    letter-spacing: -1px !important;
  }

  h1,
  .choice-head h1,
  .service-intro h1,
  .contact-info h1 {
    font-size: clamp(34px, 12vw, 52px) !important;
    line-height: 1 !important;
  }

  p,
  .short-info,
  .description,
  .section-head p {
    font-size: 15.5px !important;
  }

  .features-list,
  .why-grid,
  .service-grid,
  .brand-grid,
  .brands-grid,
  .article-grid,
  .articles-grid,
  .inventory-grid,
  .cars-grid,
  .car-grid,
  .choice-grid,
  .stats-grid,
  .achievement-grid,
  .info-grid {
    grid-template-columns: 1fr !important;
  }

  .car-card,
  .article-card,
  .feature-box,
  .service-box,
  .brand-card,
  .contact-card,
  .info-item,
  .why-box {
    border-radius: 18px !important;
  }

  .price-row,
  .car-top,
  .article-meta {
    gap: 10px !important;
  }

  .price-row {
    align-items: stretch !important;
  }

  .small-btn {
    padding-inline: 14px !important;
  }

  .old-price {
    font-size: 15px !important;
  }

  .new-price,
  .price.new-price,
  .price {
    font-size: clamp(22px, 8vw, 32px) !important;
  }

  .slider img,
  .gallery-card img {
    aspect-ratio: 4 / 3 !important;
  }

  .prev,
  .next {
    width: 40px !important;
    height: 40px !important;
  }

  .footer-grid {
    gap: 24px !important;
  }
}

@media (max-width: 420px) {
  .car-tabs,
  .category-tabs {
    grid-template-columns: 1fr;
  }

  .btn,
  .small-btn,
  .submit-btn {
    width: 100%;
  }

  .price-row {
    flex-direction: column !important;
  }
}

@keyframes ae-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Auto Energjia smooth interaction layer */
html {
  scroll-behavior: smooth;
}

.ae-count {
  font-variant-numeric: tabular-nums;
}

.about-section {
  padding-top: 10px;
}

.about-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--ae-line);
  border-radius: 34px;
  padding: 34px;
  box-shadow: var(--ae-shadow);
}

.about-copy h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -1.5px;
  margin: 14px 0 16px;
}

.about-copy p {
  color: var(--ae-muted);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 700;
  max-width: 760px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-card {
  background: #f8fafc;
  border: 1px solid var(--ae-line);
  border-radius: 22px;
  padding: 22px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.about-card:hover,
.stat-hover:hover,
.featured-points span:hover,
.intro-points span:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(0, 102, 255, 0.38) !important;
  box-shadow: 0 22px 48px rgba(0, 102, 255, 0.14);
}

.about-card strong {
  display: block;
  font-size: 27px;
  line-height: 1;
  color: var(--ae-ink);
  margin-bottom: 10px;
}

.about-card span {
  color: var(--ae-muted);
  font-weight: 800;
  line-height: 1.45;
}

.stat-hover,
.featured-points span,
.intro-points span {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.featured-points span:hover,
.intro-points span:hover {
  background: #ffffff;
  color: var(--ae-blue);
}

body.dark-mode .about-wrap,
body.dark-mode .about-card {
  background: #111827 !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .about-card {
  background: #0f172a !important;
}

body.dark-mode .about-copy p,
body.dark-mode .about-card span {
  color: #cbd5e1 !important;
}

body.dark-mode .about-card strong {
  color: #f8fafc !important;
}

@media (max-width: 980px) {
  .about-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-wrap {
    border-radius: 22px;
    padding: 22px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    border-radius: 18px;
  }
}
/* Polished counters and footer contact */
.achievement-card strong .ae-count,
.stat strong .ae-count {
  display: inline !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

.achievement-card strong,
.stat strong {
  white-space: nowrap;
}

.footer p a,
body.dark-mode .footer p a {
  display: inline !important;
  margin-top: 0 !important;
  color: inherit !important;
  font-weight: inherit !important;
}

@media (max-width: 640px) {
  .achievement-card strong {
    font-size: clamp(34px, 12vw, 46px) !important;
  }

  .stat strong {
    font-size: clamp(27px, 9vw, 36px) !important;
  }
}
/* Global layout centering */
.container {
  margin-left: auto;
  margin-right: auto;
}
/* Unified top navigation */
.nav-links {
  gap: 20px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  align-items: center !important;
  color: #475569 !important;
}

.nav-links a:not(.nav-cta) {
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  transition: color 0.22s ease, transform 0.22s ease !important;
}

.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta).active {
  color: #0066ff !important;
}

.theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 44px !important;
  min-width: 94px !important;
  padding: 10px 15px !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0b1220 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease !important;
}

.theme-toggle:hover {
  background: #0066ff !important;
  color: #ffffff !important;
  border-color: #0066ff !important;
  transform: translateY(-2px) !important;
}

.nav-cta,
.nav-links a.nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  min-width: 98px !important;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  background: #0b1220 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transition: background 0.22s ease, transform 0.22s ease !important;
}

.nav-cta:hover,
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active {
  background: #0066ff !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

body.dark-mode .nav-links a:not(.nav-cta) {
  color: #cbd5e1 !important;
}

body.dark-mode .nav-links a:not(.nav-cta):hover,
body.dark-mode .nav-links a:not(.nav-cta).active {
  color: #4da3ff !important;
}

body.dark-mode .theme-toggle {
  background: #111827 !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.14) !important;
}

body.dark-mode .theme-toggle:hover {
  background: #0066ff !important;
  border-color: #0066ff !important;
}

body.dark-mode .nav-cta,
body.dark-mode .nav-links a.nav-cta {
  background: #0066ff !important;
  color: #ffffff !important;
}
/* Vehicle detail polish */
.page-header .title-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-content: start !important;
  align-items: start !important;
  gap: 12px !important;
}

.page-header .title-row > div {
  max-width: 980px !important;
}

.page-header h1 {
  margin-bottom: 0 !important;
}

.page-header .short-info {
  display: block !important;
  max-width: 780px !important;
  margin-top: 2px !important;
  color: #52647c !important;
  font-size: clamp(16px, 1.5vw, 19px) !important;
  line-height: 1.65 !important;
  font-weight: 800 !important;
}

.content-card .description {
  max-width: 980px !important;
  color: #5d6f88 !important;
  font-size: clamp(16px, 1.45vw, 18px) !important;
  line-height: 1.75 !important;
  font-weight: 650 !important;
}

.detail-cta {
  display: none !important;
}

body.dark-mode .page-header .short-info,
body.dark-mode .content-card .description {
  color: #cbd5e1 !important;
}

@media (max-width: 640px) {
  .page-header .short-info {
    max-width: 100% !important;
    line-height: 1.55 !important;
  }
}
/* Final mobile inventory polish */
.vehicle-contact {
  min-height: 56px !important;
  border-radius: 16px !important;
  font-weight: 950 !important;
}

.inventory,
.car-card,
.car-image img,
.price-row,
.small-btn,
.side-card,
.content-card {
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background 0.26s ease, color 0.26s ease !important;
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .navbar .nav-inner {
    min-height: auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 0 12px !important;
  }

  .navbar .logo {
    font-size: clamp(27px, 8vw, 36px) !important;
    line-height: 1 !important;
  }

  .navbar .nav-links {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 16px !important;
    padding: 2px 0 8px !important;
  }

  .navbar .nav-links::-webkit-scrollbar {
    display: none !important;
  }

  .navbar .nav-links a,
  .navbar .theme-toggle {
    flex: 0 0 auto !important;
  }

  .section {
    padding: 46px 0 !important;
  }

  .section-head h2 {
    font-size: clamp(34px, 11vw, 50px) !important;
    line-height: 1.02 !important;
  }

  .inventory {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .car-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px !important;
    border-radius: 24px !important;
  }

  .car-image {
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    max-height: 240px !important;
    border-radius: 18px !important;
  }

  .car-info {
    padding: 18px 4px 4px !important;
  }

  .car-top {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .car-top h3 {
    font-size: clamp(27px, 8.5vw, 38px) !important;
    line-height: 1.05 !important;
    letter-spacing: -1.2px !important;
  }

  .car-top p {
    font-size: 15px !important;
    margin-top: 8px !important;
  }

  .pill {
    margin-top: 4px !important;
    padding: 8px 11px !important;
    font-size: 12px !important;
  }

  .car-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 18px 0 !important;
  }

  .car-meta span {
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    border-radius: 999px !important;
  }

  .price-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 14px !important;
  }

  .new-price,
  .price {
    font-size: clamp(31px, 9vw, 42px) !important;
    line-height: 1.02 !important;
  }

  .small-btn {
    min-height: 50px !important;
    padding: 13px 20px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
  }

  .detail-layout,
  .content-grid,
  .why-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 430px) {
  .car-top {
    display: block !important;
  }

  .price-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .small-btn {
    width: 100% !important;
    text-align: center !important;
  }
}
