/* ============================================================
   LIMITLESS MOTORSPORTS — Main Stylesheet
   Colors: #de2630 (red), #000 (black), #fff (white)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@300;400;600;700;900&display=swap');

/* === VARIABLES === */
:root {
  --red: #de2630;
  --red-dark: #8b0a14;
  --red-glow: rgba(222, 38, 48, 0.35);
  --black: #000000;
  --off-black: #0a0a0a;
  --card-bg: #111111;
  --white: #ffffff;
  --gray: #aaaaaa;
  --light-gray: #e0e0e0;
  --nav-height: 80px;
  --transition: 0.3s ease;
}

/* === RESET === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  line-height: 1.05;
}

.section-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--red);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}

.section-title span { color: var(--red); }

.red-divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 1rem 0 2rem;
}

.red-divider.center { margin: 1rem auto 2rem; }

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 6rem 0; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.12);
  transition: left 0.3s ease;
}

.btn-primary:hover::before { left: 0; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px var(--red-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--red);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-outline:hover {
  background: var(--red);
  box-shadow: 0 10px 35px var(--red-glow);
}

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  padding: 1rem 2.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  white-space: nowrap;
  transition: all var(--transition);
  font-weight: 400;
}

.btn-white:hover {
  background: #000;
  color: var(--white);
  box-shadow: 0 10px 35px rgba(0,0,0,0.5);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: #000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  transition: all var(--transition);
}

.nav.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  color: var(--white);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--red); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.1em;
  color: var(--white);
  transition: color var(--transition);
}

.mobile-nav a:hover { color: var(--red); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero.jpg');
  background-size: cover;
  background-position: center top;
  transform: scale(1.06);
  transition: transform 1.2s ease;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(0, 0, 0, 0.93) 0%,
    rgba(0, 0, 0, 0.78) 50%,
    rgba(0, 0, 0, 0.90) 100%
  );
}

.hero-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, #000);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.93;
  margin-bottom: 1.5rem;
}

.hero h1 .line-1 { color: var(--white); }
.hero h1 .line-2 { color: var(--red); }

.hero-sub {
  font-size: 1rem;
  color: var(--light-gray);
  max-width: 460px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.75;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 5rem) 0 4rem;
  background: linear-gradient(180deg, #150204 0%, #000 100%);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: -10%;
  width: 55%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(222, 38, 48, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.page-hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  position: relative;
  z-index: 1;
}

.page-hero-divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 1rem 0;
}

.page-hero-sub {
  color: var(--gray);
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  background: var(--off-black);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(222, 38, 48, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(222, 38, 48, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-header p.body-copy {
  color: var(--gray);
  max-width: 540px;
  margin: 0 auto;
  font-size: 0.9rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid #1c1c1c;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  background: #161616;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  z-index: 2;
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: block;
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--white);
  transition: color var(--transition);
}

.service-card:hover h3 { color: var(--red); }

.service-card p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.75;
  font-weight: 300;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.about::after {
  content: 'LIMITLESS';
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16vw;
  color: rgba(222, 38, 48, 0.035);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
  user-select: none;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.25em;
  padding: 0.35rem 1rem;
  margin-bottom: 1.25rem;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--light-gray);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 0.75rem;
  border: 1px solid #222;
  position: relative;
}

.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--red);
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--red);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.about-image { position: relative; }

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  right: 12px; bottom: 12px;
  border: 2px solid var(--red);
  z-index: -1;
  opacity: 0.6;
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background: var(--red);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.25) 0%, transparent 60%);
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.cta-strip h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-section { background: var(--black); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  background: var(--card-bg);
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid #1c1c1c;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(222, 38, 48, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay svg {
  width: 44px;
  height: 44px;
  fill: white;
}

/* Instagram embed container */
.ig-embed-container {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid #1c1c1c;
}

.ig-embed-container .instagram-media {
  min-width: unset !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Empty state */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 6rem 2rem;
  border: 2px dashed #1c1c1c;
}

.gallery-empty h3 {
  font-size: 1.8rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.gallery-empty p {
  font-size: 0.9rem;
  color: #555;
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { background: var(--black); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-info-sub {
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(222, 38, 48, 0.1);
  border: 1px solid rgba(222, 38, 48, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
  font-size: 1.1rem;
}

.contact-detail-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--white);
  display: block;
  margin-bottom: 0.2rem;
}

.contact-detail-text {
  font-size: 0.88rem;
  color: var(--light-gray);
  line-height: 1.6;
}

/* Contact Form */
.contact-form {
  background: var(--card-bg);
  padding: 2.5rem;
  border: 1px solid #1c1c1c;
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
}

.form-title {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.form-sub {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 1.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: #000;
  border: 1px solid #2a2a2a;
  color: var(--white);
  padding: 0.9rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group select option {
  background: #111;
}

.btn-submit {
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Form success */
#formSuccess {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

#formSuccess h3 {
  font-size: 2.5rem;
  color: var(--red);
  margin-bottom: 1rem;
}

#formSuccess p {
  color: var(--light-gray);
  font-size: 0.95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--off-black);
  border-top: 1px solid #1a1a1a;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  font-size: 0.83rem;
  color: var(--gray);
  line-height: 1.85;
  max-width: 270px;
}

.footer-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--red);
  display: inline-block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--gray);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-links a::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

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

.footer-contact-item {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.6;
}

.footer-contact-item .icon {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--gray);
}

.footer-bottom a {
  color: var(--red);
  transition: opacity var(--transition);
}

.footer-bottom a:hover { opacity: 0.8; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }
.fade-up-delay-6 { transition-delay: 0.6s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-image { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .cta-strip-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .container { padding: 0 1.2rem; }
  .contact-form { padding: 1.5rem; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5rem); }
}
