/* --------------------
   RESET & VARIABLES
--------------------- */
@import "../fonts/one3d-fonts.css";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
  text-decoration: none;
}
:root {
  --primary-red: #cf2230;
  --secondary-red: #ff4545;
  --dark-bg: #1a1a1a;
  --darker-bg: #0f0f0f;
  --text-light: #e0e0e0;
  --white: #ffffff;
  --black: #000000;
  --text-gray: #a0a0a0;
  --border-radius: 12px;
  --font-primary: "Gill Sans";
  /* --font-secondary: "Roboto"; */
}
/* --------------------
   BASE
--------------------- */
body {
  font-family: var(--font-primary);
  background-color: var(--black);
  color: var(--text-light);
  min-height: 100vh;
  overflow: hidden;
  background-image: url(../images/banner-bg.png);
  background-position: top right;
  background-size: contain;
  background-repeat: no-repeat;
}
.one3d-container {
  max-width: 95vw;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
}
/* --------------------
   INITIAL LAYOUT STABILITY
--------------------- */
body:not(.js-ready) .hero-car-image,
body:not(.js-ready) .hero-content h1,
body:not(.js-ready) .hero-content .pricing {
  transform: translateY(8px);
}
/* Remove hero from layout until ready */
body.js-ready .hero,
.hero {
  display: grid;
}
/* --------------------
   HEADER
--------------------- */
header {
  padding: 2vw 0;
  position: relative;
  z-index: 10;
}
.logo-disclaimer-wrap {
  display: flex;
  align-items: center;
  position: relative;
  top: 2vw;
}
.disclaimer-text {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.6vw;
  line-height: 1.4;
  vertical-align: middle;
  color: var(--white);
  margin-left: 2vw;
}
.disclaimer-text span {
  color: var(--primary-red);
}
.logo a {
  display: flex;
  width: 4vw;
  height: 4vw;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInDown 0.8s ease;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* --------------------
   HERO SECTION
--------------------- */
.hero {
  grid-template-columns: 45% 55%;
  align-items: center;
  gap: 4vw;
  padding: 1vw 0vw;
  min-height: 30vh;
}
body.js-ready .hero-content {
  animation: fadeInLeft 0.8s ease;
}
body.js-ready .hero-car {
  animation: fadeInRight 0.8s ease;
}
/* --- Text --- */
.hero-content h1 {
  font-family: var(--font-primary);
  font-size: 4.4vw;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1vw;
  letter-spacing: -1px;
  min-height: 5vw;
  transition-delay: 0.05s;
  color: var(--white);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}
.hero-content .pricing {
  font-size: 2vw;
  color: var(--text-gray);
  margin-bottom: 2vw;
  font-weight: 300;
  min-height: 1.1em;
  transition-delay: 0.12s;
}
.hero-content h1:empty::before,
.hero-content .pricing:empty::before {
  content: " ";
}
/* --- CTA --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8vw;
  padding: 1vw 2.2vw;
  background: var(--primary-red);
  color: #fff;
  border-radius: 8px;
  font-size: 1.2vw;
  font-weight: 400;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(212, 32, 39, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInDown 0.8s ease;
}
.cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}
.cta-button svg {
  width: 2.4vw;
}
.cta-button:hover::before {
  left: 100%;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 32, 39, 0.4);
}
/* --------------------
   HERO IMAGE
--------------------- */
.hero-car {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.hero-car img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* --------------------
   FADE TRANSITIONS
--------------------- */
.hero-car-image,
.hero-content h1,
.hero-content .pricing {
  opacity: 1;
  will-change: opacity, transform;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-out {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(2px);
}
.fade-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
/* Disable animations after first render */
.animations-done * {
  animation: none !important;
}
/* --------------------
   CAR SELECTOR
--------------------- */
.car-selector {
  padding:1vw 1vw 0.5vw;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  background-color: var(--dark-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 1s ease 0.3s backwards;
  background-image: url(../images/thumbnails-bg.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 11.4vw;
}
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8vw, 1fr));
  gap: 1vw;
}
.car-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vw;
  padding: 0.4vw;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.car-item:hover {
  transform: translateY(-5px);
}
/* --- Thumbnail --- */
.car-thumbnail {
  --size: clamp(64px, 7vw, 200px);
  --ring-gap: clamp(4px, 0.4vw, 8px);
  --ring-width: clamp(3px, 0.3vw, 6px);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    rgba(70, 70, 70, 0.8),
    rgba(172, 172, 172, 0.5)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Ring setup (hidden) */
  outline: var(--ring-width) solid var(--secondary-red);
  outline-offset: var(--ring-gap);
  outline-color: transparent;
  backdrop-filter: blur(2px);
  transition: outline-color 0.35s ease, outline-offset 0.35s ease,
    transform 0.35s ease;
}
.active .car-thumbnail {
  outline-color: var(--secondary-red);
  outline-offset: calc(var(--ring-gap) + 2px);
  transform: scale(1.04);
  background: rgba(255, 107, 107, 0.3);
}
.car-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* --- Name --- */
.item-car-name {
  min-height: 1.2em;
  font-size: 1vw;
  font-weight: 500;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: color 0.3s ease;
  margin-top: 1vw;
}
.item-car-name:empty::before {
  content: " ";
}
.car-item:hover .item-car-name,
.car-item.active .item-car-name {
  color: #fff;
}
/* --------------------
   BACKGROUND DECORATION
--------------------- */
/* --------------------
   ANIMATIONS
--------------------- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}
.car-selector-title  { 
  font-size: 1.6vw;
  font-weight: 600; 
  margin: 0 0 0.5vw;
}
.car-item.skeleton {
  pointer-events: none;
}
.car-item.skeleton .car-thumbnail,
.car-item.skeleton .item-car-name {
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    rgba(70, 70, 70, 0.8),
    rgba(255, 255, 255, 0.5)
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.car-item.skeleton .car-thumbnail {
  --size: clamp(64px, 7vw, 200px);
  --ring-gap: clamp(4px, 0.4vw, 8px);
  --ring-width: clamp(3px, 0.3vw, 6px);
  width: var(--size);
  height: var(--size);
}
.car-item.skeleton .item-car-name {
  height: 14px;
  margin-top: 8px;
  border-radius: 4px;
}
@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
.car-selector-wrapper {
    position: fixed;
    width: 95vw;
    left: 50%;
    bottom: 1vw;
    transform: translateX(-50%);
}
@media screen and (max-width: 991px) {
  body {
    overflow-y: auto;
  }
  .logo a {
    width: 40px;
    height: 40px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
    min-height: initial;
  }
  .hero-car {
    order: 1;
  }
  .hero-content {
    order: 2;
  }
  .hero-content h1 {
    font-size: 36px;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
  }
  .hero-content .pricing {
    font-size: 16px;
    margin: 4px 0;
  }
  .cta-button {
    width: 100%;
    font-size: 20px;
    padding: 10px 20px;
    justify-content: center;
    margin: 10px 0;
  }
  .cta-button svg {
    width: 40px;
    margin-left: 10px;
  }
  .car-selector {
    background-image: none;
    border: none;
    border-radius: 0;
    background-color: transparent;
    margin-bottom: 20px;
    padding: 0;
  }
  .car-item {
    flex-direction: row;
    background: #262626;
    border: 3px solid transparent;
    border-radius: 8px;
    transition: all ease 0.4s ;
  }
  .car-thumbnail {
    width: 40%;
    height: auto;
    background: none;
    outline: none;
    backdrop-filter: none;
    border-radius: 0;
    flex: 0 0 auto;
  }
  .item-car-name {
    width: 60%;
    flex: 0 0 auto;
    font-size: 14px;
    justify-content: flex-start;
    margin: 0 0 0 6px;
  }
  .active .car-thumbnail {
    background: none;
    transform: none;
  }
  .car-item:hover {
    transform: translateY(0px);
  }
  .car-item.active {
    /* box-shadow: 0px 4px 8px 0px rgba(228, 170, 170, 0.2) inset; */
    border: 3px solid rgba(235, 80, 92, 1);
    /* background: linear-gradient(#1a1a1a, #1a1a1a) padding-box,
      linear-gradient(90deg, rgba(235, 80, 92, 1), rgba(64, 64, 64, 0.4))
        border-box; */
  }
  .car-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .car-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .disclaimer-text {
    font-size: 12px;
  }
  .logo-disclaimer-wrap {
    margin-top: 16px;
  }
  .car-item-box {
    display: flex;
    align-items: center;
  }
  .car-selector-title {
    font-size: 14px;
    margin: 0 0 16px;
  }
  .car-selector-wrapper {
    position: static;
    transform: none;
    margin:0 auto;
  }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 500px;
  }
}
@media screen and (min-width: 992px) and (max-width: 1199px) {
   .car-selector-wrapper {
    position: static;
    transform: none;
    margin:0 auto;
  }
}