/* =====================================================
   KARTING PAGE STYLES
   ===================================================== */

/* Hero */
.kart-hero {
  background: #000;
  padding: 12rem 0 4rem;
}

.kart-hero-tag {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #ff0000;
  margin-bottom: 0.75rem;
}

.kart-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

/* Section tag */
.kart-section-tag {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #ff0000;
  margin-bottom: 0.6rem;
}

.kart-feature .kart-section-tag {
  color: #000;
}

/* Intro section */
.kart-intro {
  background: #fff;
  padding: 5rem 0;
}

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

.kart-intro-image {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
  will-change: transform;
}

.kart-intro-image img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  display: block;
}

.kart-intro-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.85);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.kart-intro-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.kart-intro-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}

.kart-intro-text h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #000;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.kart-intro-text h2 .red {
  color: #ff0000;
}

.kart-intro-text p {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Checklist */
.kart-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.kart-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #444;
}

.kart-checklist li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff0000;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: cover;
}

/* Feature sections */
.kart-feature {
  background: #f5f5f5;
  padding: 5rem 0;
}

.kart-feature:nth-child(even) {
  background: #fff;
}

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

.kart-feature--reverse .kart-feature-grid {
  direction: rtl;
}

.kart-feature--reverse .kart-feature-grid > * {
  direction: ltr;
}

.kart-feature-text h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #000;
  line-height: 1;
  margin-bottom: 1rem;
}

.kart-feature-text h2 .red {
  color: #ff0000;
}

.kart-feature-text p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.7;
}

.kart-feature-image {
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
  will-change: transform;
}

.kart-feature-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* CTA section */
.kart-cta {
  position: relative;
  overflow: hidden;
}

.kart-cta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.kart-cta-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.kart-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #000 0%, #000 30%, transparent 35%);
}

.kart-cta-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
}

.kart-cta-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 16rem 0 16rem 12rem;
}

.kart-cta-inner {
  max-width: 500px;
}

.kart-cta-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-top: 0.5rem;
  white-space: nowrap;
}

.kart-cta-content h2 .red {
  color: #ff0000;
}

.kart-cta-tag {
  color: rgba(255,255,255,0.7) !important;
}

/* FAQ section */
.kart-faq {
  background: #f5f5f5;
  padding: 5rem 0;
}

.kart-faq-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.kart-faq-label {
  position: sticky;
  top: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.kart-faq-label span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ff0000;
  line-height: 1;
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* FAQ items override for light bg */
.kart-faq .faq-item {
  border-top: 1px solid #d0d0d0;
}

.kart-faq .faq-item:last-child {
  border-bottom: 1px solid #d0d0d0;
}

.kart-faq .faq-question {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  cursor: pointer;
}

.kart-faq .faq-question h4 {
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex: 1;
}

.kart-faq .faq-toggle {
  color: #aaa;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  width: auto;
  height: auto;
  background: none !important;
  border: none;
  border-radius: 0;
}

.kart-faq .faq-item.open .faq-toggle {
  background: none !important;
  color: #000;
}

.kart-faq .faq-answer {
  overflow: hidden;
  height: 0;
  max-height: none !important;
  transition: height 0.3s ease;
  color: #555;
  font-size: 0.9rem;
  padding: 0 0 0 3.75rem;
}

.kart-faq .faq-answer,
.kart-faq .faq-answer p,
.kart-faq .faq-answer li,
.kart-faq .faq-answer a {
  color: #555 !important;
}

.faq-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #555;
  flex-shrink: 0;
  width: 2.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .kart-intro-grid,
  .kart-feature-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .kart-feature--reverse .kart-feature-grid {
    direction: ltr;
  }

  .kart-faq-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .kart-faq-label {
    position: static;
  }
}

@media (max-width: 767px) {
  .kart-intro-image img,
  .kart-feature-image img {
    height: 260px;
  }
}
