/* ====================================================================== */
/* LIFETIME GOLF CART BATTERIES - CUSTOM THEME (2025)                    */
/* Bootstrap 5 Base with Heavy Modern Overrides                          */
/* ====================================================================== */

/* ====== GOOGLE FONTS IMPORT ====== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ====== CSS CUSTOM PROPERTIES (2025 Design Tokens) ====== */
:root {
  /* Brand Colors */
  --color-primary: #158FC2;      /* Professional Blue */
  --color-primary-dark: #0D6B9E; /* Deep Blue */
  --color-accent: #71B13D;       /* Fresh Green */
  --color-neutral: #FAFAF9;      /* Warm White */
  --color-neutral-light: #F5F5F5; /* Light Gray */
  --color-text: #1A1A1A;         /* Charcoal */
  --color-text-muted: #6B7280;   /* Gray 500 */
  --color-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-size-base: 1.125rem; /* 18px base - relative units */
  --font-size-lg: 1.25rem; /* 20px */
  --font-size-xl: 1.5rem; /* 24px */
  --line-height-base: 1.6;
  --line-height-heading: 1.3; /* Improved from 1.2 for better readability */

  /* Spacing (generous, 2025-appropriate) - all relative units */
  --space-xs: 0.5rem; /* 8px */
  --space-sm: 1rem; /* 16px */
  --space-md: 1.5rem; /* 24px */
  --space-lg: 2rem; /* 32px */
  --space-xl: 3rem; /* 48px */
  --space-2xl: 4rem; /* 64px */
  --space-3xl: 6rem; /* 96px */
  --space-4xl: 8rem; /* 128px */
  --space-5xl: 10rem; /* 160px */

  /* Shadows (multi-layer, subtle depth) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Border Radius (generous, modern) - relative units */
  --radius-sm: 0.5rem; /* 8px */
  --radius-md: 0.75rem; /* 12px */
  --radius-lg: 1rem; /* 16px */
  --radius-xl: 1.5rem; /* 24px */
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 200ms ease-out;
  --transition-base: 300ms ease-out;
  --transition-slow: 400ms ease-out;
}

/* ====== BOOTSTRAP OVERRIDES (Make it NOT look like Bootstrap) ====== */

/* Global Typography */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body) !important;
  font-size: var(--font-size-base) !important;
  line-height: var(--line-height-base) !important;
  color: var(--color-text) !important;
  background: var(--color-white);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: var(--space-md) !important;
  line-height: var(--line-height-heading) !important;
  color: var(--color-text);
}

h1, .h1 { font-size: 3.5rem !important; }    /* 56px */
h2, .h2 { font-size: 2.75rem !important; }   /* 44px */
h3, .h3 { font-size: 2rem !important; }      /* 32px */
h4, .h4 { font-size: 1.5rem !important; }    /* 24px */
h5, .h5 { font-size: 1.25rem !important; }   /* 20px */
h6, .h6 { font-size: 1.125rem !important; }  /* 18px */

/* Hero-specific typography */
.hero-title {
  font-size: 3rem !important;   /* 72px */
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;

}

.hero-subtitle {
  font-size: 1.375rem !important;  /* 22px */
  line-height: 1.6 !important;
  font-weight: 400 !important;
  color: var(--color-text-muted);
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1, .h1 { font-size: 2.5rem !important; }    /* 40px */
  h2, .h2 { font-size: 2rem !important; }      /* 32px */
  h3, .h3 { font-size: 1.5rem !important; }    /* 24px */

  .hero-title {
    font-size: 2.75rem !important;  /* 44px */
  }

  .hero-subtitle {
    font-size: 1.125rem !important;  /* 18px */
  }
}

/* Buttons (Custom, Premium Feel) */
.btn {
  padding: 0.5rem 1rem !important;
  font-size: var(--font-size-base) !important;
  font-weight: 600 !important;
  font-family: var(--font-heading) !important;
  border-radius: var(--radius-full) !important;
  border: none !important;
  transition: all var(--transition-base) !important;
  box-shadow: var(--shadow-sm) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  line-height:1.3rem;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-lg) !important;
}

.btn:focus {
  outline: 3px solid rgba(21, 143, 194, 0.5) !important;
  outline-offset: 2px !important;
}

.btn:active {
  transform: translateY(0) !important;
}

.btn-primary {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-primary-dark) !important;
  color: var(--color-white) !important;
}

.btn-accent {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
}

.btn-accent:hover,
.btn-accent:focus {
  background: #5F9635 !important;
  color: var(--color-white) !important;
}

.btn-outline {
  background: transparent !important;
  border: 2px solid var(--color-primary) !important;
  color: var(--color-primary) !important;
  box-shadow: none !important;
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
}

.btn-lg {
  padding: 1.125rem 2.5rem !important;
  font-size: 1.125rem !important;
}

/* Cards (Elevated, Modern) */
.card {
  border: none !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-md) !important;
  transition: all var(--transition-base) !important;
  overflow: hidden !important;
  background: var(--color-white);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-xl) !important;
}

.card-body {
  padding: var(--space-xl) !important;
}

.card-img-top {
  transition: transform var(--transition-slow) !important;
}

.card:hover .card-img-top,
.card:focus-within .card-img-top {
  transform: scale(1.05) !important;
}

/* Forms (Modern, Accessible) */
.form-control,
.form-select {
  padding: 0.875rem 1.25rem !important;
  font-size: var(--font-size-base) !important;
  font-family: var(--font-body) !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  border-radius: var(--radius-sm) !important;
  transition: all var(--transition-fast) !important;
  background: var(--color-white);
  min-height: 3rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(21, 143, 194, 0.3) !important;
  outline: 3px solid rgba(21, 143, 194, 0.5) !important;
  outline-offset: 2px !important;
}

.form-label {
  font-weight: 600 !important;
  margin-bottom: var(--space-sm) !important;
  color: var(--color-text);
  font-size: 1rem !important;
}

textarea.form-control {
  min-height: 7.5rem;
}

/* Containers (Generous Padding) */
.container,
.container-fluid,
.container-lg,
.container-xl {
  padding-left: var(--space-lg) !important;
  padding-right: var(--space-lg) !important;
}

@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-xl {
    max-width: 1200px !important;
  }
}

/* Sections (Breathe!) */
.section {
  padding-top: var(--space-3xl) !important;
  padding-bottom: var(--space-3xl) !important;
}

.section-hero {
  min-height: 70vh !important;
  padding-top: var(--space-5xl) !important;
  padding-bottom: var(--space-2xl) !important;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #F0F9FF 0%, #FAFAF9 100%);
  position: relative;
}

.section-hero .row {
  width: 100%;
  align-items: stretch;
}

.section-hero .row > [class*='col-'] {
  display: flex;
  flex-direction: column;
}

.section-hero .col-lg-6:first-child {
  justify-content: center;
  padding-right: var(--space-xl);
}

.section-hero .col-lg-6:last-child {
  justify-content: center;
  align-items: center;
}

.section-alt {
  background: var(--color-neutral);
}

/* Pricing Hero Section - Full Width Background Image */
.section-pricing-hero {
  position: relative;
  min-height: 500px;
  padding: var(--space-5xl) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.6) 100%
    ),
    url('/assets/img/photo-9.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.section-pricing-hero .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.pricing-hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: var(--line-height-heading);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pricing-hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-2xl) !important;
    padding-bottom: var(--space-2xl) !important;
  }

  .section-hero {
    padding-top: var(--space-3xl) !important;
    padding-bottom: var(--space-xl) !important;
    min-height: 60vh !important;
  }

  .section-hero .hero-title {
    margin-top: var(--space-lg) !important;
  }

  .section-hero .row > [class*='col-'] {
    min-height: auto;
  }

  .hero-trust-badges {
    justify-content: center !important;
  }

  .hero-trust-badges > div:last-child {
    flex-basis: 100% !important;
    justify-content: center !important;
  }

  .video-thumbnail-container {
    min-height: auto !important;
    max-height: none !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-top: var(--space-lg);
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16 / 9 !important;
  }

  .video-thumbnail-container video,
  .video-thumbnail-container img {
    min-height: auto !important;
    height: auto !important;
    width: 100% !important;
    object-fit: contain !important;
    aspect-ratio: 16 / 9 !important;
  }

  .section-hero .col-lg-6.order-1 {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .play-button-overlay {
    width: 60px !important;
    height: 60px !important;
  }

  .play-button-overlay i {
    font-size: 30px !important;
  }

  .section-pricing-hero {
    min-height: 400px;
    padding: var(--space-3xl) 0;
    background-attachment: scroll;
  }

  .pricing-hero-title {
    font-size: 2.25rem;
    margin-bottom: var(--space-md);
  }

  .pricing-hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
  }
}

/* Navigation (Minimal, Modern) */
.navbar {
  padding: var(--space-md) 0 !important;
  transition: all var(--transition-base);
  background: var(--color-white) !important;
}

.navbar.scrolled {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  color: var(--color-primary) !important;
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.2rem !important;
  }
}

.nav-link {
  font-family: var(--font-heading) !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  padding: var(--space-sm) var(--space-xs) !important;
  transition: color var(--transition-fast) !important;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-primary) !important;
  outline: 2px solid transparent !important;
  outline-offset: 2px !important;
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}

/* Footer */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer a:hover,
.footer a:focus {
  color: var(--color-white);
  outline: 2px solid transparent !important;
  outline-offset: 2px !important;
}

.footer a:focus-visible {
  outline: 2px solid var(--color-white) !important;
  outline-offset: 2px !important;
}
.accordion-header {
  margin-bottom: 0 !important;
}
/* Accordion (FAQ) */
.accordion-item {
  border: none !important;
  margin-bottom: var(--space-md) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm) !important;
}

.accordion-button {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  font-size: 1.125rem !important;
  padding: var(--space-lg) !important;
  background: var(--color-white) !important;
  color: var(--color-text) !important;
  border: none !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(21, 143, 194, 0.1) !important;
  border: none !important;
}

.accordion-body {
  padding: var(--space-lg) !important;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

/* ====== CUSTOM UTILITY CLASSES ====== */

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Backdrop Blur */
.backdrop-blur {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
}

/* Hover Lift */
.hover-lift {
  transition: transform var(--transition-base) !important;
}

.hover-lift:hover,
.hover-lift:focus {
  transform: translateY(-4px) !important;
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}

/* Icon Boxes */
.icon-box {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-md);
}

/* Step Numbers */
.step-number {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-lg);
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(21, 143, 194, 0.3);
  background: var(--color-white);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.feature-card:hover,
.feature-card:focus-within {
  background: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

/* Badge Pills */
.badge {
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  font-family: var(--font-heading) !important;
}

/* Mobile Sticky Footer */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  padding: var(--space-lg);
  display: none;
  gap: var(--space-sm);
  z-index: 1000;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: flex;
  }

  /* Add bottom padding to body to prevent content overlap */
  body {
    padding-bottom: 80px;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Prevent horizontal overflow */
body {
  overflow-x: hidden;
}

.section .row {
  margin-left: 0;
  margin-right: 0;
}

.section .row > [class*='col-'] {
  padding-left: 12px;
  padding-right: 12px;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .g-5 {
    --bs-gutter-x: 1.5rem !important;
    --bs-gutter-y: 1.5rem !important;
  }
}

/* Selection Color */
::selection {
  background: var(--color-primary);
  color: var(--color-white);
}

::-moz-selection {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Video Thumbnail Container */
.video-thumbnail-container {
  position: relative;
  width: 100%;
  min-height: 500px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.video-thumbnail-container video {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  transition: opacity var(--transition-base);
}

.video-thumbnail-container img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  transition: opacity var(--transition-base);
}

.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(21, 143, 194, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.play-button-overlay i {
  font-size: 40px;
  color: white;
  margin-left: 5px;
}

/* Video Thumbnail Hover */
.video-thumbnail-container:hover .play-button-overlay,
.video-thumbnail-container:focus .play-button-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--color-primary) !important;
}

.video-thumbnail-container:focus {
  outline: 3px solid var(--color-primary) !important;
  outline-offset: 4px !important;
}

.video-thumbnail-container:hover img,
.video-thumbnail-container:hover video,
.video-thumbnail-container:focus img,
.video-thumbnail-container:focus video {
  opacity: 0.9;
}

/* ====== ACCESSIBILITY: REDUCED MOTION SUPPORT ====== */
@media (prefers-reduced-motion: reduce) {
  /* Disable smooth scrolling for users who prefer reduced motion */
  html {
    scroll-behavior: auto;
  }

  /* Remove all transitions and animations */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Prevent transforms on interactive elements */
  .btn:hover,
  .btn:focus,
  .btn:active,
  .card:hover,
  .card:focus-within,
  .hover-lift:hover,
  .hover-lift:focus,
  .feature-card:hover,
  .feature-card:focus-within,
  .video-thumbnail-container:hover .play-button-overlay,
  .video-thumbnail-container:focus .play-button-overlay {
    transform: none !important;
  }

  /* Keep image scaling disabled */
  .card:hover .card-img-top,
  .card:focus-within .card-img-top {
    transform: none !important;
  }
}
