/* 
   Crash Course Driving Lessons - Main Stylesheet
   Design Philosophy: Bold Editorial with Organic Flow
*/

:root {
  /* Color System - Warm, Trustworthy, Energetic */
  --primary-sunset: #FF6B35;
  --primary-deep: #D64420;
  --secondary-ocean: #004E89;
  --secondary-sky: #1A7FB7;
  --accent-amber: #FFA500;
  --accent-lime: #9ACD32;
  
  /* Neutrals with Warmth */
  --neutral-100: #FAFAF9;
  --neutral-200: #F5F5F4;
  --neutral-300: #E7E5E4;
  --neutral-400: #A8A29E;
  --neutral-600: #57534E;
  --neutral-800: #292524;
  --neutral-900: #1C1917;
  
  /* Semantic Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: var(--secondary-sky);
  
  /* Typography Scale */
  --font-display: 'Playfair Display', serif;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  
  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.16);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--neutral-800);
  background-color: var(--neutral-100);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-900);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary-sunset);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--primary-deep);
}

/* Display Typography */
.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--neutral-900);
}

.subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--neutral-600);
  line-height: 1.6;
}

/* Container System */
.container-custom {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 900px;
}

/* Navigation */
.navbar-custom {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-base);
}

.navbar-custom.scrolled {
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand-custom {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--neutral-900);
  letter-spacing: -0.01em;
  transition: var(--transition-fast);
}

.navbar-brand-custom:hover {
  color: var(--primary-sunset);
  transform: translateY(-2px);
}

.nav-link-custom {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--neutral-700);
  padding: var(--space-xs) var(--space-md);
  margin: 0 var(--space-xs);
  border-radius: 8px;
  transition: var(--transition-base);
  position: relative;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary-sunset);
  transition: var(--transition-base);
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--primary-sunset);
  background: rgba(255, 107, 53, 0.08);
}

.nav-link-custom:hover::after {
  width: 60%;
}

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-sunset) 0%, var(--primary-deep) 100%);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: var(--transition-slow);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.btn-primary-custom:hover::before {
  left: 100%;
}

.btn-secondary-custom {
  background: white;
  color: var(--primary-sunset);
  padding: 1rem 2.5rem;
  border: 2px solid var(--primary-sunset);
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-secondary-custom:hover {
  background: var(--primary-sunset);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--neutral-700);
  padding: 0.875rem 2rem;
  border: 2px solid var(--neutral-300);
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: var(--transition-base);
}

.btn-ghost:hover {
  border-color: var(--neutral-600);
  color: var(--neutral-900);
  background: var(--neutral-100);
}

/* Hero Section */
.hero-layered {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #FFF8F3 0%, #FFF0E6 50%, #FFE5D9 100%);
  overflow: hidden;
  padding: var(--space-2xl) 0;
}

.hero-layered::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.hero-layered::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 78, 137, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

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

.hero-badge {
  display: inline-block;
  background: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-sunset);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-md);
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cards */
.card-custom {
  background: white;
  border-radius: 20px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  height: 100%;
  border: 1px solid var(--neutral-200);
}

.card-custom:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-sunset) 0%, var(--accent-amber) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: var(--space-md);
  box-shadow: 0 8px 16px rgba(255, 107, 53, 0.25);
}

/* Section Styles */
.section-padding {
  padding: var(--space-2xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2 {
  margin-bottom: var(--space-sm);
}

.section-title .subtitle {
  max-width: 700px;
  margin: 0 auto;
}

/* Background Decorations */
.bg-pattern {
  position: relative;
  overflow: hidden;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(30deg, rgba(255, 107, 53, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(255, 107, 53, 0.03) 87.5%, rgba(255, 107, 53, 0.03)),
    linear-gradient(150deg, rgba(255, 107, 53, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(255, 107, 53, 0.03) 87.5%, rgba(255, 107, 53, 0.03)),
    linear-gradient(30deg, rgba(255, 107, 53, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(255, 107, 53, 0.03) 87.5%, rgba(255, 107, 53, 0.03)),
    linear-gradient(150deg, rgba(255, 107, 53, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(255, 107, 53, 0.03) 87.5%, rgba(255, 107, 53, 0.03));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
  pointer-events: none;
}

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: 24px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--neutral-200);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 8rem;
  font-family: var(--font-display);
  color: var(--primary-sunset);
  opacity: 0.15;
  line-height: 1;
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
}

.testimonial-rating {
  color: var(--accent-amber);
  font-size: 1.25rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding: var(--space-lg) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-sunset), var(--secondary-ocean));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: var(--primary-sunset);
  border: 5px solid white;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.timeline-content {
  width: 45%;
  background: white;
  padding: var(--space-lg);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-200);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

/* Footer */
.footer-custom {
  background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-800) 100%);
  color: var(--neutral-300);
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}

.footer-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-sunset), transparent);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
}

.footer-link {
  color: var(--neutral-400);
  display: block;
  padding: var(--space-xs) 0;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-sunset);
  padding-left: var(--space-xs);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--neutral-500);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: var(--space-lg);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 3px solid var(--primary-sunset);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Form Styles */
.form-control-custom {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--neutral-300);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-base);
  background: white;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--primary-sunset);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-label-custom {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--neutral-800);
  margin-bottom: var(--space-xs);
  display: block;
}

/* Price Card */
.price-card {
  background: white;
  border-radius: 24px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--neutral-200);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-sunset), var(--accent-amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-sunset);
}

.price-card:hover::before {
  transform: scaleX(1);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary-sunset);
  line-height: 1;
}

.price-features {
  list-style: none;
  margin: var(--space-lg) 0;
}

.price-features li {
  padding: var(--space-sm) 0;
  position: relative;
  padding-left: var(--space-lg);
}

.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 991px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-dot {
    left: 30px;
    transform: translateX(-50%);
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 4rem;
    --space-xl: 3rem;
  }
  
  .hero-layered {
    min-height: 70vh;
  }
  
  .display-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  
  .cookie-actions {
    flex-direction: column;
  }
  
  .cookie-actions button {
    width: 100%;
  }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-sunset) 0%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-sunset) 0%, var(--primary-deep) 100%);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-ocean) 0%, var(--secondary-sky) 100%);
}

.rounded-xl {
  border-radius: 20px;
}

.shadow-custom {
  box-shadow: var(--shadow-lg);
}

/* Loading States */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--neutral-200);
  border-top-color: var(--primary-sunset);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles */
*:focus-visible {
  outline: 3px solid var(--primary-sunset);
  outline-offset: 3px;
}

/* Print Styles */
@media print {
  .navbar-custom,
  .cookie-banner,
  .footer-custom {
    display: none;
  }
}




.navbar-brand img{
    max-width: 250px;
    width: 250px;
    object-fit: contain;
}

html{
    overflow-x: hidden;
}


footer .navbar-brand img{
    filter: brightness(0) invert(1);
}

.footer-text{
    margin-top: 20px;
}