/* ==========================================================
   JUNGLE GREEN SS — Premium Single-Vehicle Sales Page
   Color Palette: Matte Black / Charcoal / Deep Emerald Green
   ========================================================== */

/* ── CSS Variables ── */
:root {
  --black:        #0a0a0a;
  --black-light:  #111111;
  --charcoal:     #1a1a1a;
  --graphite:     #2a2a2a;
  --gray:         #3a3a3a;
  --gray-light:   #888888;
  --gray-text:    #b0b0b0;
  --white:        #f0f0f0;
  --white-dim:    #cccccc;

  --emerald:      #0d6b3d;
  --emerald-light:#15a05c;
  --emerald-glow: rgba(13, 107, 61, 0.4);
  --emerald-dim:  rgba(13, 107, 61, 0.15);

  --glass-bg:     rgba(20, 20, 20, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur:   16px;

  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width:    1200px;
  --section-pad:  24px 0;
  --radius:       12px;
  --radius-sm:    8px;

  --transition:   0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--gray-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Carbon Fiber Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    repeating-conic-gradient(
      var(--charcoal) 0% 25%,
      var(--black-light) 0% 50%
    ) 0 0 / 4px 4px;
  opacity: 0.3;
}

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

a {
  color: var(--emerald-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--white);
}

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

.accent {
  color: var(--emerald-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 40px;
}

/* ── Glass Panel ── */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__glow {
    animation: none !important;
  }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  padding: 100px 0 40px;
  text-align: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--emerald-glow) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowBreathe 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes glowBreathe {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.7; transform: translate(-50%, -50%) scale(1.15); }
}

.hero__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.3;
}

.hero__price {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--emerald-light);
  margin-top: 16px;
  text-shadow: 0 0 30px var(--emerald-glow);
}

/* ==========================================================
   SHOWCASE CARD
   ========================================================== */
.showcase {
  padding: 20px 0 40px;
}

.showcase__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--emerald-dim);
  max-height: 600px;
}

.showcase__img {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: cover;
  transition: opacity var(--transition);
}

.showcase__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  border: 1px solid var(--glass-border);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase__arrow:hover {
  background: var(--emerald);
  border-color: var(--emerald-light);
}

.showcase__arrow--left  { left: 16px; }
.showcase__arrow--right { right: 16px; }

/* ==========================================================
   QUICK FACTS STRIP
   ========================================================== */
.quick-facts {
  padding: 24px 0;
}

.quick-facts__strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.fact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  min-width: 120px;
}

.fact-item__label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--emerald-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.fact-item__value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
}

/* ==========================================================
   CTA ROW
   ========================================================== */
.cta-row {
  padding: 16px 0 40px;
}

.cta-row__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--emerald);
  color: var(--white);
  border-color: var(--emerald-light);
  box-shadow: 0 0 20px var(--emerald-glow);
}

.btn--primary:hover {
  background: var(--emerald-light);
  color: var(--black);
  box-shadow: 0 0 30px var(--emerald-glow);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--gray);
}

.btn--secondary:hover {
  border-color: var(--emerald-light);
  color: var(--emerald-light);
  transform: translateY(-2px);
}

/* ==========================================================
   GALLERY
   ========================================================== */
.gallery {
  padding: var(--section-pad);
}

.gallery__carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
  flex: 1;
}

.gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.gallery__thumb {
  flex: 0 0 auto;
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all var(--transition);
}

.gallery__thumb:hover {
  opacity: 1;
  border-color: var(--gray-light);
}

.gallery__thumb.active {
  opacity: 1;
  border-color: var(--emerald-light);
  box-shadow: 0 0 12px var(--emerald-glow);
}

.gallery__arrow {
  flex: 0 0 auto;
  background: var(--graphite);
  color: var(--white);
  border: 1px solid var(--glass-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__arrow:hover {
  background: var(--emerald);
  border-color: var(--emerald-light);
}

/* ==========================================================
   SUMMARY
   ========================================================== */
.summary {
  padding: var(--section-pad);
}

.summary__content {
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.summary__content p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--white-dim);
}

.summary__content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================
   MODIFICATION CARDS
   ========================================================== */
.modifications {
  padding: var(--section-pad);
}

.modifications__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.mod-card {
  padding: 32px 24px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  border: 1px solid var(--glass-border);
  font-family: inherit;
  color: inherit;
  width: 100%;
}

.mod-card:hover {
  border-color: var(--emerald);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--emerald-dim);
}

.mod-card:focus-visible {
  outline: 2px solid var(--emerald-light);
  outline-offset: 2px;
}

.mod-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--emerald-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.mod-card__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray-light);
  margin-bottom: 10px;
}

/* ==========================================================
   MODAL
   ========================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--gray-light);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}

.modal__close:hover {
  color: var(--white);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--emerald-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.modal__list {
  list-style: none;
}

.modal__list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--white-dim);
  font-size: 0.95rem;
  position: relative;
  padding-left: 20px;
}

.modal__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--emerald-light);
  border-radius: 50%;
}

.modal__list li:last-child {
  border-bottom: none;
}

/* ==========================================================
   SPECS
   ========================================================== */
.specs {
  padding: var(--section-pad);
}

.specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--glass-bg);
}

.spec-row__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--emerald-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.spec-row__value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  text-align: right;
}

/* ==========================================================
   CONDITION BARS
   ========================================================== */
.condition {
  padding: var(--section-pad);
}

.condition__bars {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
}

.condition-item {
  margin-bottom: 24px;
}

.condition-item:last-child {
  margin-bottom: 0;
}

.condition-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.condition-item__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.condition-item__score {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald-light);
}

.condition-item__bar {
  height: 8px;
  background: var(--graphite);
  border-radius: 4px;
  overflow: hidden;
}

.condition-item__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--emerald-light));
  border-radius: 4px;
  transition: width 1.2s ease;
  box-shadow: 0 0 8px var(--emerald-glow);
}

/* ==========================================================
   KNOWN FLAWS
   ========================================================== */
.flaws {
  padding: var(--section-pad);
}

.flaws__intro {
  text-align: center;
  color: var(--gray-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.flaws__list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 40px;
}

.flaws__list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--white-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  padding-left: 24px;
}

.flaws__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  background: var(--gray-light);
  border-radius: 50%;
}

.flaws__list li:last-child {
  border-bottom: none;
}

/* ==========================================================
   STANDOUT
   ========================================================== */
.standout {
  padding: var(--section-pad);
}

.standout__list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.standout__item {
  padding: 24px 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--emerald);
  border-radius: var(--radius-sm);
  color: var(--white-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: border-color var(--transition);
}

.standout__item:hover {
  border-left-color: var(--emerald-light);
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact {
  padding: var(--section-pad);
}

.contact__card {
  text-align: center;
  padding: 48px 40px;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--emerald-dim);
}

.contact__label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.contact__methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact__delivery {
  font-size: 0.85rem;
  color: var(--gray-light);
  font-style: italic;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer__disclaimer {
  font-size: 0.8rem;
  color: var(--gray-light);
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--gray);
}

/* ==========================================================
   BACK TO TOP
   ========================================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--graphite);
  color: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: rotate(90deg);
  transition: all var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--emerald);
  border-color: var(--emerald-light);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 768px) {
  :root {
    --section-pad: 56px 0;
  }

  .hero {
    padding: 70px 0 32px;
  }

  .hero__title {
    font-size: clamp(1rem, 5vw, 1.4rem);
    letter-spacing: 1px;
  }

  .hero__price {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .showcase__card {
    max-height: 300px;
  }

  .showcase__img {
    max-height: 300px;
  }

  .showcase__arrow {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .fact-item {
    min-width: 100px;
    padding: 10px 14px;
  }

  .fact-item__label {
    font-size: 0.6rem;
  }

  .fact-item__value {
    font-size: 0.75rem;
  }

  .cta-row__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .modifications__grid {
    grid-template-columns: 1fr;
  }

  .gallery__thumb {
    width: 80px;
    height: 56px;
  }

  .summary__content,
  .condition__bars,
  .flaws__list {
    padding: 24px;
  }

  .modal__content {
    padding: 24px;
    max-height: 90vh;
  }

  .contact__card {
    padding: 32px 24px;
  }

  .specs__grid {
    grid-template-columns: 1fr;
  }

  .standout__item {
    padding: 20px 24px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .fact-item {
    min-width: 80px;
    padding: 8px 10px;
  }

  .fact-item__label {
    font-size: 0.55rem;
  }

  .fact-item__value {
    font-size: 0.7rem;
  }

  .section-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
}
