/* AJ EV home page — layered on style.css + ajev-theme.css */

.home-page main > section {
  position: relative;
}

.home-page .section-shell {
  padding: 0;
}

.h-heading {
  max-width: 720px;
  margin: 0 0 40px;
}

.h-heading h2 {
  margin-bottom: 14px;
}

.h-heading p:last-child {
  margin: 0;
  font-size: 1.04rem;
}

/* Hero slider: full-bleed, no card chrome ----------------------------- */
.home-page .hero-banner,
.home-page .hero-slider {
  background: var(--ink);
  box-shadow: none;
}

.home-page .hero-slider {
  border-radius: 0;
}

.home-page .hero-slider-btn {
  width: 48px;
  height: 48px;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(11, 15, 19, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.home-page .hero-slider-btn:hover {
  color: var(--ink);
  border-color: #ffffff;
  background: #ffffff;
}

.home-page .hero-slider-dots button {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.home-page .hero-slider-dots button.is-active {
  width: 44px;
  background: #ffffff;
}

/* Intro + stats ------------------------------------------------------- */
.h-intro {
  padding: 96px 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(53, 211, 154, 0.14), transparent 30rem),
    var(--ink);
}

.h-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: end;
}

.h-intro-copy h2 {
  max-width: 620px;
}

.h-intro-copy p:last-child {
  max-width: 560px;
  margin: 0;
  font-size: 1.06rem;
}

.h-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--line-dark);
}

.h-stats div {
  padding: 26px 24px;
  background: var(--ink);
}

.h-stats dt {
  margin-bottom: 8px;
  color: var(--on-dark-body);
  font-size: 0.86rem;
}

.h-stats dd {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
}

.h-stats small {
  color: var(--accent-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Model selector ----------------------------------------------------- */
.h-models {
  padding: 104px 0 96px;
  background: var(--paper);
}

.model-tabs {
  display: flex;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 6px;
  overflow-x: auto;
  border-radius: 999px;
  background: var(--mist);
  scrollbar-width: none;
}

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

.model-tab {
  flex: 0 0 auto;
  min-width: 108px;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: var(--text-body);
  background: transparent;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.model-tab:hover {
  color: var(--ink);
}

.model-tab[aria-selected="true"] {
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(11, 15, 19, 0.18);
}

.model-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 48px;
  align-items: center;
  animation: modelIn 0.45s ease both;
}

.model-panel[hidden] {
  display: none;
}

@keyframes modelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.model-stage {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #eef0f2 0%, #e2e5e8 100%);
}

.model-stage img {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.model-stage.fit-contain img {
  object-fit: contain;
  mix-blend-mode: multiply;
}

.model-stage.fit-cover img {
  object-fit: cover;
}

.model-stage:hover img {
  transform: scale(1.025);
}

.model-kicker {
  margin: 0 0 8px;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.model-name {
  margin: 0 0 6px;
  color: var(--text-soft);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.model-name span {
  display: block;
  color: var(--ink);
  font-size: clamp(2.8rem, 5.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.model-tagline {
  margin: 14px 0 10px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 500;
}

.model-desc {
  margin: 0 0 26px;
}

.model-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 24px;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.model-specs div {
  padding: 18px 0;
}

.model-specs div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line-light);
}

.model-specs dt {
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.model-specs dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
}

.model-specs small {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 400;
}

.model-price {
  display: grid;
  gap: 2px;
  margin-bottom: 26px;
}

.model-price span {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.model-price strong {
  color: var(--ink);
  font-size: 1.9rem;
  font-weight: 600;
}

.model-price small {
  font-size: 1rem;
  font-weight: 400;
}

.model-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* More models */
.h-more {
  margin-top: 88px;
  padding-top: 40px;
  border-top: 1px solid var(--line-light);
}

.h-more-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 26px;
}

.h-more-head h3 {
  margin: 0;
  font-size: 1.6rem;
}

.h-more-head p {
  margin: 0;
}

.h-more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.more-card {
  display: grid;
  gap: 4px;
  padding: 14px 14px 20px;
  border-radius: var(--radius);
  background: var(--mist);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.more-card:hover {
  background: #ffffff;
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.more-card-media {
  display: block;
  aspect-ratio: 5 / 4;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #20292f;
}

.more-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-card-tag {
  color: var(--accent-ink);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.more-card strong {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 600;
}

.more-card-spec {
  color: var(--text-body);
  font-size: 0.88rem;
}

.more-card-price {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 500;
}

/* Technology mosaic -------------------------------------------------- */
.h-tech {
  padding: 104px 0;
}

.h-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 300px;
  gap: 16px;
}

.tech-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
}

.tech-tile-wide {
  grid-column: span 2;
}

.tech-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.7s ease, opacity 0.3s ease;
}

.tech-tile:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.tech-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(11, 15, 19, 0.82) 100%);
}

.tech-tile-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.tech-tile-copy small {
  color: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tech-tile-copy strong {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 500;
}

/* Compare ------------------------------------------------------------ */
.h-compare {
  padding: 104px 0;
  background: var(--mist);
}

.home-page .compare-table-wrap {
  border: 0;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.home-page .compare-table th {
  padding: 18px 22px;
  color: var(--text-soft);
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-light);
}

.home-page .compare-table td {
  padding: 20px 22px;
  color: var(--text-body);
  border-bottom: 1px solid var(--line-light);
}

.home-page .compare-table td:first-child a {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
}

.home-page .compare-table td:first-child a::after {
  content: " →";
  color: var(--text-soft);
  font-weight: 400;
}

.home-page .compare-table td:nth-child(2) {
  color: var(--ink);
  font-weight: 600;
}

.home-page .compare-table tbody tr:hover td {
  background: var(--mist);
}

/* Dealer CTA --------------------------------------------------------- */
.h-dealer {
  overflow: hidden;
  padding: 140px 0;
}

.h-dealer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-dealer::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(11, 15, 19, 0.94) 0%, rgba(11, 15, 19, 0.72) 48%, rgba(11, 15, 19, 0.2) 100%);
}

.h-dealer-inner {
  position: relative;
  z-index: 2;
}

.h-dealer-copy {
  max-width: 560px;
}

.h-dealer-copy p:not(.eyebrow) {
  font-size: 1.06rem;
}

.h-dealer-copy .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Ownership ---------------------------------------------------------- */
.h-owner {
  padding: 104px 0;
  background: var(--paper);
}

.h-owner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-page .owner-card {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-page .owner-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lift);
}

.owner-no,
.home-page .why-card > span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-page .owner-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.home-page .owner-card p {
  margin: 0;
}

.home-page .why-card {
  background: var(--mist);
  border-color: transparent;
}

.h-owner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 32px;
}

.h-owner-links a {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid rgba(11, 15, 19, 0.25);
}

.h-owner-links a:hover {
  border-color: var(--ink);
}

/* News --------------------------------------------------------------- */
.h-news {
  padding: 104px 0;
  background: var(--mist);
}

.h-section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.h-section-bar .h-heading {
  margin: 0;
}

.home-page .home-news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-page .official-news-card {
  padding: 0 0 26px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: none;
}

.home-page .official-news-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.home-page .official-news-card .news-thumb {
  margin: 0 0 20px;
  border-radius: 0;
}

.home-page .official-news-card .news-card-top,
.home-page .official-news-card h3,
.home-page .official-news-card > p {
  padding: 0 24px;
}

.home-page .news-card-top {
  margin-bottom: 12px;
}

.home-page .news-card-top span {
  padding: 5px 10px;
  border: 0;
  color: var(--accent-ink);
  background: rgba(53, 211, 154, 0.12);
  font-weight: 600;
}

.home-page .official-news-card h3 {
  font-size: 1.2rem;
  line-height: 1.4;
}

.home-page .official-news-card h3 a {
  font-weight: 600;
}

.home-page .official-news-card > p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video -------------------------------------------------------------- */
.h-video {
  padding: 104px 0;
}

.home-page .video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.home-page .video-card {
  border: 0;
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: none;
}

.home-page .video-card h3 {
  padding: 16px 18px 20px;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
}

/* Contact ------------------------------------------------------------ */
.h-contact {
  padding: 104px 0;
  background: var(--paper);
}

.home-page .contact-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.home-page .contact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 32px;
  border: 0;
  border-radius: var(--radius);
  background: var(--mist);
  box-shadow: none;
}

.home-page .contact-form .contact-full,
.home-page .contact-form button,
.home-page .contact-form .contact-email-note {
  grid-column: 1 / -1;
}

.home-page .contact-form label {
  font-size: 0.88rem;
  font-weight: 500;
}

.home-page .contact-form input,
.home-page .contact-form select,
.home-page .contact-form textarea {
  border-color: transparent;
  background: #ffffff;
  font-weight: 400;
}

.home-page .contact-form input:focus,
.home-page .contact-form select:focus,
.home-page .contact-form textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(11, 15, 19, 0.08);
}

.home-page .contact-form button {
  justify-self: start;
}

.home-page .contact-card {
  padding: 16px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: none;
}

.home-page .contact-card h3,
.home-page .contact-card p {
  padding: 0 10px;
}

.home-page .contact-card h3 {
  margin-top: 18px;
  font-size: 1.1rem;
}

.home-page .map-embed {
  border: 0;
  border-radius: var(--radius-sm);
}

/* Responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  .model-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .h-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .home-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .h-intro-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .h-tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 240px;
  }

  .h-owner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .h-intro,
  .h-models,
  .h-tech,
  .h-compare,
  .h-owner,
  .h-news,
  .h-video,
  .h-contact {
    padding: 72px 0;
  }

  .h-dealer {
    padding: 96px 0;
  }

  .h-dealer::before {
    background: linear-gradient(180deg, rgba(11, 15, 19, 0.6) 0%, rgba(11, 15, 19, 0.92) 70%);
  }

  .h-heading {
    margin-bottom: 28px;
  }

  .h-stats div {
    padding: 20px 18px;
  }

  .model-tabs {
    width: 100%;
  }

  .model-tab {
    min-width: 0;
    flex: 1 0 auto;
    padding: 0 16px;
  }

  .model-specs dd {
    font-size: 1.2rem;
  }

  .model-specs div + div {
    padding-left: 12px;
  }

  .model-actions .btn {
    flex: 1;
  }

  .h-more {
    margin-top: 64px;
  }

  .h-more-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .more-card {
    padding: 10px 10px 16px;
  }

  .more-card strong {
    font-size: 1.1rem;
  }

  .more-card-spec {
    font-size: 0.8rem;
  }

  .h-tech-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .tech-tile-wide {
    grid-column: auto;
  }

  .h-owner-grid,
  .home-page .home-news-grid,
  .home-page .video-grid {
    grid-template-columns: 1fr;
  }

  .home-page .contact-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .home-page .contact-form button {
    justify-self: stretch;
  }
}

/* Fixes after first visual pass */
.home-page .contact-form {
  align-self: start;
  align-content: start;
}

.home-page .contact-form button {
  min-height: 52px;
  height: auto;
}

.h-dealer-copy {
  max-width: 660px;
}

.home-page .news-thumb.is-fallback {
  background:
    url("AJEV_logo_transparent.png") center / 42% auto no-repeat,
    radial-gradient(circle at 80% 10%, rgba(53, 211, 154, 0.25), transparent 60%),
    var(--ink);
}


@media (max-width: 600px) {
  .home-page .hero-slider-btn,
  .home-page .hero-slider-toggle {
    display: none;
  }

  .home-page .hero-slider-dots {
    bottom: 10px;
  }
}

/* Studio photo with its own grey backdrop: match the stage to the photo edges */
.model-stage.fit-studio {
  aspect-ratio: 1 / 1;
}

.model-stage.fit-studio img {
  object-fit: cover;
}

/* Brand intro now sits between the model selector and the dark tech band */
.h-intro + .h-tech {
  padding-top: 88px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Preserve the complete supplied product posters and all printed specifications. */
.model-stage.fit-poster { aspect-ratio: 2250 / 2812; }
.model-stage.fit-poster img { object-fit: contain; mix-blend-mode: normal; }
.model-stage.fit-poster:hover img { transform: none; }

/* Soft studio light follows the pointer without moving the artwork. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-page #home .hero-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle 240px at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(205, 236, 221, .18), rgba(210, 228, 239, .06) 45%, transparent 75%);
    mix-blend-mode: screen;
    transition: opacity .35s ease;
  }
  .home-page #home .hero-slider.has-spotlight::after { opacity: 1; }
}
