/* ==========================================================================
   Base Site Styles - Motokaz
   ========================================================================== */

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Body fade-in effect */
body {
  margin: 0;
  padding: 0;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Focus styles for accessibility */
.btn:focus, 
.btn:active:focus, 
.btn-link.nav-link:focus, 
.form-control:focus, 
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #FF6B35;
}

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #FF6B35;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10001;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* Remove outline for mouse users, keep for keyboard users */
.js-focus-visible :focus:not(.focus-visible) {
  outline: none;
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Smooth scrolling for reduced motion users */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --text-primary: #000000;
    --background-primary: #ffffff;
  }
}

/* Dark mode preference support */
@media (prefers-color-scheme: dark) {
  /* This would be extended if we implement dark mode */
}

/* Print styles */
@media print {
  body {
    opacity: 1 !important;
  }
  
  .navbar,
  .hero-scroll-indicator,
  .waiting-list-section,
  .footer,
  .modal-overlay {
    display: none !important;
  }
  
  .hero-section {
    background: white !important;
    color: black !important;
    min-height: auto;
    padding: 20px 0;
  }
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* Loading states */
.loading {
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #FF6B35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error states */
.error {
  border-color: #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.1);
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Success states */
.success {
  border-color: #28a745 !important;
  background-color: rgba(40, 167, 69, 0.1);
}

.success-message {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Utility classes */
.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;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Focus management for modals and overlays */
.modal-open {
  overflow: hidden;
}

/* Ensure proper stacking context */
.sticky-top {
  z-index: 1020;
}

.fixed-top {
  z-index: 1030;
}

/* Bootstrap override for better button focus */
.btn:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Selection colors */
::selection {
  background: rgba(255, 107, 53, 0.3);
  color: inherit;
}

::-moz-selection {
  background: rgba(255, 107, 53, 0.3);
  color: inherit;
}
/* === Motokaz Hero Section & Trust Markers === */
.hero-section {
  position: relative;
  padding: 4rem 0 2.5rem 0;
  background: linear-gradient(120deg, #232526 0%, #414345 100%);
  color: #fff;
  overflow: hidden;
}
.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2.5rem;
}
.hero-text {
  flex: 1 1 340px;
  min-width: 300px;
  max-width: 540px;
  z-index: 2;
}
.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.title-main {
  display: block;
  font-size: 2.8rem;
  color: #FF6B35;
  letter-spacing: 1px;
}
.title-sub {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  margin-top: 0.25rem;
}
.hero-subtitle {
  font-size: 1.15rem;
  margin: 1.2rem 0 0.5rem 0;
  color: #f3f3f3;
}
.hero-description {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
}
.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}
.trust-markers {
  display: flex;
  gap: 1.25rem;
  margin: 1.2rem 0 1.2rem 0;
  flex-wrap: wrap;
}
.trust-marker {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: 2rem;
  padding: 0.35rem 1.1rem 0.35rem 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 0.5rem;
}
.trust-icon {
  margin-right: 0.5rem;
  font-size: 1.2em;
}
.hero-visual {
  flex: 1 1 320px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.real-riders-visual {
  margin-bottom: 1.2rem;
  text-align: center;
}
.real-riders-img {
  width: 100%;
  max-width: 340px;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.visual-caption {
  font-size: 0.98rem;
  color: #e0e0e0;
  margin-top: 0.5rem;
  font-style: italic;
}
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .hero-visual, .hero-text {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .hero-section {
    padding: 2.2rem 0 1.2rem 0;
  }
  .hero-title {
    font-size: 2rem;
  }
  .title-main {
    font-size: 2.1rem;
  }
  .hero-content {
    gap: 1.2rem;
  }
  .trust-markers {
    gap: 0.7rem;
    margin: 0.7rem 0 0.7rem 0;
  }
}