/* 
 * HOM Auto Solutions LLP Global Styles (Light Theme)
 * Colors: Light Gradient Background, Matte Black (#0F0F0F), Racing Red (#E10600), Pure White (#FFFFFF)
 * Typography: Bebas Neue (Headers), Inter (Body)
 */

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

:root {
  --light-bg: linear-gradient(135deg, #ffffff 0%, #f4f5f7 50%, #e6e9ef 100%);
  --matte-black: #0F0F0F;
  --racing-red: #E10600;
  --pure-white: #FFFFFF;
  --light-card: #FFFFFF;
  --carbon-grey: #111111;
  --border-color: rgba(0, 0, 0, 0.08);
  --grey-text: #555555;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--light-bg);
  color: var(--matte-black);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: 'Bebas Neue', cursive;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
  color: var(--matte-black);
}

.text-red {
  color: var(--racing-red) !important;
}

.text-white {
  color: var(--pure-white) !important;
}

.text-grey {
  color: var(--grey-text) !important;
}

.text-black {
  color: var(--matte-black) !important;
}

.heading-xl {
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  line-height: 1;
}

@media (max-width: 768px) {
  .heading-xl {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    line-height: 1.1;
  }
}

@media (max-width: 768px) {
  .heading-lg {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.2;
  }
}

.heading-md {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  text-align: center;
}

.text-left {
  text-align: left !important;
}

.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

.section-padding {
  padding: 4rem 0;
}

.section-padding-lg {
  padding: 8rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 2.5rem 0;
  }
  
  .section-padding-lg {
    padding: 4rem 0;
  }

  .section-padding-sm {
    padding: 1.25rem 0;
  }
}

.btn-container {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .btn-container {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .btn-container .btn {
    width: 100%;
  }
}

/* Page Hero For Subpages */
.page-hero {
  position: relative;
  min-height: 60vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0 40px;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  /* Dark overlay */
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
  width: 100%;
  max-width: 1000px;
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 50vh;
    padding: 100px 0 50px;
  }

  .page-hero-content {
    padding: 0 1.5rem;
    text-align: left;
  }

  .page-hero-content .btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
  }
}

.page-hero-content p {
  color: rgba(255, 255, 255, 0.8) !important;
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

/* Split Image/Text Blocks */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 769px) {
  .split-block.reverse {
    direction: rtl;
  }

  .split-block.reverse>* {
    direction: ltr;
  }
}

.split-image {
  height: 500px;
  background-color: var(--carbon-grey);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .sc-brand-statement {
    height: auto;
    min-height: 80vh;
    padding: 4rem 0;
  }

  .sc-split {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sc-split-half {
    height: 40vh;
  }

  .sc-brand-logos {
    gap: 1.5rem;
  }

  .sc-brand-content h2 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 2rem;
  }
}
@media (max-width: 768px) {
  .split-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-image {
    height: 250px;
    grid-row: 1;
    /* Force image above text on mobile */
  }

  .split-text {
    padding: 0; /* Respect container padding */
    grid-row: 2;
  }
}

/* Global Button Spacing */
.btn-container, 
[style*="display: flex"][style*="gap"] {
  display: flex !important;
  gap: 1.25rem !important; /* Standardized 20px gap */
}

@media (max-width: 768px) {
  .btn-container,
  [style*="display: flex"][style*="gap"] {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .btn {
    width: 100% !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.8rem;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--racing-red);
  color: var(--pure-white);
}

.btn-primary:hover {
  background-color: #C00500;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(225, 6, 0, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--matte-black);
  border: 2px solid var(--matte-black);
}

.btn-outline:hover {
  background-color: var(--matte-black);
  color: var(--pure-white);
  transform: translateY(-3px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--pure-white);
  border: 2px solid var(--pure-white);
}

.btn-outline-white:hover {
  background-color: var(--pure-white);
  color: var(--matte-black);
  transform: translateY(-3px);
}


/* Dark Section Modifier (For full screen image sections) */
.dark-section {
  color: var(--pure-white);
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4,
.dark-section h5,
.dark-section h6 {
  color: var(--pure-white);
}

.dark-section p {
  color: #eeeeee;
}

/* Navigation */
.navbar,
.navbar.inverse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  background-color: transparent;
}

.navbar.scrolled {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 2px solid var(--racing-red);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-logo img {
  filter: invert(1);
}

.navbar.scrolled .nav-links a {
  color: var(--matte-black);
}

.navbar.scrolled .mobile-menu-btn {
  color: var(--matte-black);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h2 {
  font-size: 2.5rem;
  margin: 0;
  color: var(--pure-white);
  letter-spacing: 4px;
}

.nav-logo img {
  height: 45px;
  transition: filter var(--transition-speed), transform var(--transition-speed);
}

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

/* Base links are white for the transparent hero header */
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: color var(--transition-speed) ease;
  color: var(--pure-white);
}

.navbar.inverse .nav-links a {
  color: var(--matte-black);
}

.navbar.inverse .nav-logo img {
  filter: invert(1);
}

.navbar.inverse .mobile-menu-btn {
  color: var(--matte-black);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--racing-red);
  transition: width var(--transition-speed) ease;
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--pure-white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--pure-white);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s ease;
    z-index: 999;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links a {
    color: var(--matte-black);
    font-size: 1.25rem;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }
}

/* Footer structure */
footer {
  background-color: var(--matte-black);
  color: var(--pure-white);
  padding: 3rem 0 1.5rem;
}

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

.footer-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.5rem;
  color: var(--pure-white);
  display: block;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.footer-desc {
  color: #aaaaaa;
  line-height: 1.6;
  max-width: 300px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: left;
  }

  .footer-desc {
    margin: 0 0 2rem;
    padding: 0 1.5rem;
  }

  .footer-logo {
    margin: 0 0 1.5rem;
    padding: 0 1.5rem;
  }

  .footer-links {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .footer-links h4 {
    margin-bottom: 0;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    font-size: 1.25rem;
  }

  .footer-links h4::after {
    content: '+';
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
  }

  .footer-links.open h4::after {
    content: '−';
    transform: rotate(180deg);
  }

  .footer-links ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links.open ul {
    max-height: 500px;
    padding-bottom: 1.5rem;
  }
}

.footer-links h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--pure-white);
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  color: #aaaaaa;
  transition: color var(--transition-speed) ease;
}

.footer-links ul li a:hover {
  color: var(--racing-red);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaaaaa;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  footer {
    padding: 3rem 1.75rem 1rem !important;
  }
}

/* Racing Events Components */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.event-card {
  background: var(--pure-white);
  border: 1px solid var(--border-color);
  position: relative;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.event-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--racing-red);
  color: var(--pure-white);
  padding: 0.4rem 1rem;
  font-family: 'Bebas Neue', cursive;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.event-info {
  padding: 1.5rem;
}

.event-meta {
  font-size: 0.85rem;
  color: var(--grey-text);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 4rem;
  position: relative;
  width: 50%;
  padding: 0 3rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--racing-red);
  border-radius: 50%;
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-date {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.5rem;
  color: var(--racing-red);
  margin-bottom: 0.5rem;
}

/* Achievement Cards */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.achievement-card {
  background: var(--pure-white);
  color: var(--matte-black);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--racing-red);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.achievement-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.achievement-badge {
  display: inline-block;
  background: rgba(225, 6, 0, 0.1);
  color: var(--racing-red);
  padding: 0.2rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid var(--racing-red);
}

/* Masonry Gallery */
.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 300px;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .masonry-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    height: auto;
  }
  
  .gallery-item {
    height: 250px;
  }

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: auto;
    grid-column: auto;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  font-size: 2rem;
}

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

/* Racing Highlights Grid (Desktop) */
.highlights-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .highlights-scroll {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Highlights Scroll (Mobile) */
@media (max-width: 768px) {
  .event-grid,
  .achievement-grid,
  .highlights-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 2rem;
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none; /* IE and Edge */
    /* Ensure no vertical overflow during bounce */
    overflow-y: hidden;
  }

  /* Prevent sections from bulging due to scrollers */
  section {
    overflow-x: hidden;
    width: 100%;
  }

  .event-grid::-webkit-scrollbar,
  .achievement-grid::-webkit-scrollbar,
  .highlights-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
  }

  .event-card,
  .achievement-card,
  .highlights-scroll .light-card {
    min-width: 85%;
    scroll-snap-align: center;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px;
    text-align: left !important;
  }

  .timeline-dot {
    left: 11px !important;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Card components for Light Theme */
.light-card {
  background-color: var(--light-card);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}

.light-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  border-color: rgba(225, 6, 0, 0.3);
}

/* Make headers inverse when on light pages without dark heroes */
.navbar.inverse {
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.navbar.scrolled.inverse {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 2px solid var(--racing-red);
}

.navbar.scrolled.inverse .nav-logo img {
  filter: invert(1);
}

.navbar.scrolled.inverse .nav-links a {
  color: var(--matte-black);
}

/* Brands Section with Images */
.brand-image-card {
  background: var(--pure-white);
  padding: 0;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-speed);
}

/* Testimonials Slider */
.testimonial-slider {
  padding: 4rem 1rem !important;
  overflow: visible !important;
}

.testimonial-card {
  background: var(--pure-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.4;
  transform: scale(0.85);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Middle slide focus */
.swiper-slide-active .testimonial-card {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 20px 50px rgba(225, 6, 0, 0.15);
  border-color: rgba(225, 6, 0, 0.3);
  z-index: 10;
}

.stars {
  color: #FFD700;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--grey-text);
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.4rem;
  color: var(--matte-black);
  letter-spacing: 1px;
}

.author-meta {
  font-size: 0.85rem;
  color: var(--racing-red);
  font-weight: 600;
  text-transform: uppercase;
}

/* Swiper navigation custom styles */
.testimonial-slider .swiper-button-next,
.testimonial-slider .swiper-button-prev {
  color: var(--racing-red);
  background: var(--pure-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.testimonial-slider .swiper-button-next:after,
.testimonial-slider .swiper-button-prev:after {
  font-size: 1.5rem;
  font-weight: bold;
}

.testimonial-slider .swiper-button-next:hover,
.testimonial-slider .swiper-button-prev:hover {
  background: var(--racing-red);
  color: var(--pure-white);
}

.testimonial-slider .swiper-pagination-bullet-active {
  background: var(--racing-red);
}

@media (max-width: 768px) {

  .testimonial-slider .swiper-button-next,
  .testimonial-slider .swiper-button-prev {
    display: none;
    /* Hide arrows on mobile if using touch slider, but user requested arrows */
  }

  /* Show arrows on mobile as requested */
  .testimonial-slider .swiper-button-next,
  .testimonial-slider .swiper-button-prev {
    display: flex;
    width: 40px;
    height: 40px;
  }

  .testimonial-slider .swiper-button-next:after,
  .testimonial-slider .swiper-button-prev:after {
    font-size: 1.2rem;
  }

  .testimonial-card {
    opacity: 1;
    transform: scale(1);
    padding: 2rem;
  }

  .swiper-slide-active .testimonial-card {
    transform: scale(1);
  }
}

.brand-image-card .image-wrapper {
  height: 200px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: background 0.3s;
}

.brand-image-card .image-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.brand-image-card:hover .image-wrapper img {
  transform: scale(1.1);
}

.brand-image-card .brand-details {
  padding: 2rem;
  border-top: 1px solid var(--border-color);
}

/* Premium Automotive Sections */
.premium-white-section {
  background-color: var(--pure-white);
  color: var(--matte-black);
}

.sleek-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.sleek-brand-card {
  padding: 2rem 0;
  transition: transform var(--transition-speed);
}

.sleek-brand-card:hover {
  transform: translateY(-5px);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--matte-black);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--transition-speed);
}

.arrow-link span {
  margin-left: 0.5rem;
  transition: transform var(--transition-speed);
}

.arrow-link:hover {
  color: var(--racing-red);
}

.arrow-link:hover span {
  transform: translateX(5px);
}

.minimalist-link:hover {
  border-color: var(--racing-red);
}

/* Featured Brand Row (Brands Page) */
.featured-brand-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.featured-brand-row:nth-child(even) {
  flex-direction: row-reverse;
}

.featured-brand-image {
  flex: 1;
  height: 450px;
  background-color: var(--carbon-grey);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-brand-content {
  flex: 1;
}

@media (max-width: 992px) {
  .featured-brand-row {
    gap: 2rem;
  }
}

@media (max-width: 768px) {

  .featured-brand-row,
  .featured-brand-row:nth-child(even) {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .featured-brand-image {
    width: 100%;
    height: 320px;
  }
}

.premium-dark-section {
  background-color: var(--matte-black);
  color: var(--pure-white);
}

.showcase-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  overflow: hidden;
}

@media (max-width: 992px) {
  .showcase-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .showcase-image {
    min-height: 350px;
    margin: 1rem;
  }

  .showcase-content {
    padding: 1.5rem 1rem;
    text-align: center;
    align-items: center;
  }

  .showcase-content p:first-child {
    margin-bottom: 0.5rem !important;
  }

  .showcase-content h2 {
    font-size: 2.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .showcase-content p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
  }

  .showcase-content .btn {
    width: 100%;
    padding: 1rem !important;
  }
}

.showcase-image {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 500px;
  background-color: #0c0c0c;
  margin: 2rem;
}

@media (max-width: 768px) {
  .sleek-brands-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.25rem;
    padding-bottom: 2rem;
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
    scrollbar-width: none;
  }

  .sleek-brands-grid::-webkit-scrollbar {
    display: none;
  }

  .sleek-brand-card,
  .brand-image-card {
    min-width: 85%;
    scroll-snap-align: center;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    background: var(--pure-white);
    display: flex;
    flex-direction: column;
  }

  .brand-image-card .image-wrapper {
    height: 150px;
    padding: 1rem;
  }

  .brand-image-card .brand-details {
    padding: 1.25rem;
  }

  .sleek-brand-card div {
    justify-content: center !important;
  }

  .showcase-image {
    min-height: 220px;
    margin: 0.5rem;
  }
}

.showcase-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem;
}

/* Stats Grid Utility */
.responsive-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .responsive-stats-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Store Blocks */
.store-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin: 4rem 0;
}

.store-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--pure-white);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

.store-image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

.store-info {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.store-info h2 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: var(--matte-black);
}

.store-info h3 {
  font-size: 1.5rem;
  color: var(--racing-red);
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.info-row {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.info-row .icon {
  font-size: 1.5rem;
  margin-right: 1.5rem;
  color: var(--grey-text);
}

.info-row p {
  color: var(--matte-black);
  font-size: 1.1rem;
  margin: 0;
}

@media (max-width: 900px) {
  .store-block {
    grid-template-columns: 1fr;
  }

  .store-info {
    padding: 2.5rem;
    text-align: center;
    align-items: center;
  }

  .info-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .info-row .icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .store-image {
    height: 300px;
    min-height: auto;
  }
}

/* Discover Image Cards */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .discover-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.25rem;
    padding-bottom: 2rem;
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
    scrollbar-width: none;
  }

  .discover-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
  }
}

.discover-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 400px;
  background-color: var(--matte-black);
  display: flex;
  align-items: flex-end;
  transition: transform var(--transition-speed);
}

@media (max-width: 768px) {
  .discover-card {
    min-width: 85%;
    scroll-snap-align: center;
    height: 350px;
  }
}

.discover-card:hover {
  transform: translateY(-5px);
}

/* Base states for images / overlays */
.discover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: 1;
}

.discover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  z-index: 2;
}

.discover-card:hover .discover-bg {
  transform: scale(1.05);
}

.discover-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
  width: 100%;
  color: var(--pure-white);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.discover-text h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Contact Section */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 4rem 0;
  align-items: start;
}

.contact-info,
.contact-form {
  background-color: var(--pure-white);
  padding: 4rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

.contact-form {
  border-top: 4px solid var(--racing-red);
}

.info-block {
  margin-bottom: 3rem;
}

.info-block h3 {
  font-size: 1.5rem;
  color: var(--racing-red);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.info-block p {
  color: var(--matte-black);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--matte-black);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: #f9f9f9;
  border: 1px solid var(--border-color);
  color: var(--matte-black);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color var(--transition-speed);
}

.form-control:focus {
  outline: none;
  border-color: var(--racing-red);
  background-color: rgba(255, 255, 255, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

@media (max-width: 900px) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info,
  .contact-form {
    padding: 2.5rem;
  }

  .contact-info {
    text-align: center;
  }
}

.discover-card:hover .discover-content a {
  background-color: var(--racing-red);
}

@media (max-width: 900px) {
  .showcase-container {
    grid-template-columns: 1fr;
  }

  .showcase-content {
    padding: 4rem 2rem;

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

.dealer-map-section {
  background: transparent;
  border: none;
}

.dealer-map-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  border: none;
}

.dealer-map-left {
  flex: 1.2;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.dealer-map-left::after {
  display: none;
}

.dealer-map-left img {
  max-width: 100%;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.dealer-stats-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background: transparent;
}

.dealer-stat-box {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  margin: 0.4rem;
  transition: all 0.3s ease;
  background: #f9f9f9;
}

.dealer-stat-box:hover {
  background-color: #fcfcfc;
}

.dealer-stat-box:nth-child(even) {
  border-right: none;
}

.dealer-stat-box:nth-child(3),
.dealer-stat-box:nth-child(4) {
  border-bottom: none;
}

.dealer-stat-box h4 {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  font-weight: 500;
  color: var(--matte-black);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dealer-stat-box h4 span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-text);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .dealer-map-container {
    flex-direction: column;
  }

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

  .dealer-stat-box {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
}

@media (max-width: 768px) {
  .light-divider {
    padding: 3rem 0 1rem !important;
  }

  .discover-section {
    padding-bottom: 3rem !important;
  }

  .discover-button-container {
    margin-top: 2rem !important;
  }

  .dealer-map-section {
    padding: 1rem 0 !important;
  }

  .dealer-map-container {
    flex-direction: column;
    margin: 0;
    border: none;
    background: transparent;
  }

  .dealer-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .dealer-map-left {
    padding: 0;
    background: transparent;
  }

  .dealer-map-left img {
    max-height: 250px !important;
    border-radius: 4px;
  }

  .dealer-stat-box {
    padding: 0.75rem 0.5rem;
    background: #f8f8f8;
    border-radius: 4px;
    border: 1px solid #eee;
  }

  .dealer-stat-box h4 {
    font-size: 1.1rem;
  }

  .dealer-stat-box span {
    font-size: 0.75rem;
  }

  .dealer-stat-box {
    padding: 2rem 1.5rem;
    text-align: center;
  }
}

/* Store Showcase Refinement */
.store-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.store-info {
  padding-right: 2rem;
}

.store-image {
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .store-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .store-info {
    padding: 1.5rem;
    background: var(--pure-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }

  .store-image {
    height: 250px;
    order: -1 !important; /* Always image first on mobile */
  }

  /* Split Content Fix for Training page */
  .split-content {
    padding: 2.5rem 20px !important;
  }
}