/* ========================================
   BAS WORLD - RESPONSIVE CSS
   Mobile, Tablet & Desktop Breakpoints
   ======================================== */

/* ========================================
   MOBILE MENU & HAMBURGER
   ======================================== */

/* Mobile Menu Button (Hamburger) */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #111827;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.show {
  display: block;
  opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  max-width: 85%;
  height: 100vh;
  background: white;
  z-index: 1000;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #E5E7EB;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #6B7280;
}

.mobile-menu-close:hover {
  color: #111827;
}

.mobile-menu-content {
  flex: 1;
  padding: 1rem 0;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: #111827;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s;
}

.mobile-menu-link:hover {
  background: #F9FAFB;
  color: #00A651;
}

.mobile-menu-link.active {
  background: #F0FDF4;
  color: #00A651;
  border-left: 3px solid #00A651;
}

.mobile-menu-icon {
  width: 20px;
  height: 20px;
  color: #6B7280;
}

.mobile-menu-link.active .mobile-menu-icon,
.mobile-menu-link:hover .mobile-menu-icon {
  color: #00A651;
}

.mobile-menu-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 0.5rem 1.5rem;
}

.mobile-menu-login {
  color: #00a651;
}

.mobile-menu-login .mobile-menu-icon {
  color: #00a651;
}

.mobile-menu-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #E5E7EB;
  background: #F9FAFB;
  font-size: 0.875rem;
  color: #6B7280;
}

.mobile-menu-lang {
  margin-top: 0.75rem;
}

.mobile-lang-select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  background: white;
}

/* ========================================
   ABOUT PAGE STYLES
   ======================================== */

.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
              url('https://images.pexels.com/photos/1118777/pexels-photo-1118777.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.about-hero-overlay {
  width: 100%;
  padding: 3rem 1rem;
}

.about-hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.about-hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn-hero-white {
  background: white;
  color: #111827;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.25rem;
  font-weight: 500;
  cursor: pointer;
  font-size: 1rem;
}

.platform-section {
  padding: 4rem 0;
  background: white;
}

.platform-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.platform-image img {
  width: 100%;
  border-radius: 0.5rem;
}

.section-title-dark {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #111827;
}

.platform-description {
  font-size: 1rem;
  color: #6B7280;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.facts-section {
  padding: 4rem 0;
  background: #F9FAFB;
}

.section-title-center {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: #111827;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.fact-item {
  text-align: center;
}

.fact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: #00A651;
}

.fact-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 0.5rem;
}

.fact-label {
  font-size: 0.875rem;
  color: #6B7280;
}

.history-section {
  padding: 4rem 0;
  background: white;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.history-nav {
  display: flex;
  gap: 0.5rem;
}

.history-nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #D1D5DB;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  cursor: pointer;
}

.history-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.history-item {
  padding: 1.5rem;
  background: #F9FAFB;
  border-radius: 0.5rem;
}

.history-year {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00A651;
  margin-bottom: 0.5rem;
}

.history-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #111827;
}

.history-description {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.6;
}

.leading-section {
  padding: 4rem 0;
  background: #F9FAFB;
}

.leading-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.leading-description {
  font-size: 1rem;
  color: #6B7280;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.leading-image img {
  width: 100%;
  border-radius: 0.5rem;
}

.values-section {
  padding: 4rem 0;
  background: white;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.value-item {
  text-align: center;
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: #111827;
}

.value-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #111827;
}

.value-description {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.6;
}

.store-visit-section {
  padding: 4rem 0;
  background: #F9FAFB;
}

.store-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.store-image img {
  width: 100%;
  border-radius: 0.5rem;
}

.store-description {
  font-size: 1rem;
  color: #6B7280;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.testimonials-section-about {
  padding: 4rem 0;
  background: white;
}

.testimonials-grid-about {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.testimonial-card-about {
  background: #1F2937;
  padding: 2rem;
  border-radius: 0.5rem;
  color: white;
}

.trustpilot-stars-about {
  color: #00B67A;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-title-about {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.testimonial-text-about {
  font-size: 0.875rem;
  color: #D1D5DB;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.testimonial-author-about {
  font-size: 0.875rem;
  color: #9CA3AF;
}

.trustpilot-badge-about {
  text-align: center;
}

.trustpilot-logo-about {
  height: 40px;
}

.contact-cta-about {
  padding: 0;
  background: #111827;
}

.contact-cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.contact-cta-text {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-cta-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
}

.contact-cta-description {
  font-size: 1rem;
  color: #D1D5DB;
  margin-bottom: 2rem;
}

.btn-cta-white {
  background: white;
  color: #111827;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.25rem;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
}

.contact-cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   TABLET BREAKPOINT (768px - 1023px)
   ======================================== */

@media (max-width: 1023px) {
  /* Show mobile menu button */
  .mobile-menu-btn {
    display: flex;
  }

  /* Hide desktop navigation */
  .header-left {
    display: none;
  }

  .header-nav {
    display: none;
  }

  .login-link span {
    display: none;
  }

  /* Adjust header layout */
  .header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
  }

  .logo-wrapper {
    justify-self: center;
  }

  .header-right {
    justify-self: end;
  }

  /* About page adjustments */
  .platform-content,
  .leading-content,
  .store-content,
  .contact-cta-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .history-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid,
  .testimonials-grid-about {
    grid-template-columns: 1fr;
  }

  /* Homepage adjustments */
  .main-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
  }

  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Product page adjustments */
  .product-layout {
    grid-template-columns: 1fr;
  }

  .price-panel {
    position: static;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   MOBILE LANDSCAPE (480px - 767px)
   ======================================== */

@media (max-width: 767px) {
  .about-hero-title {
    font-size: 2rem;
  }

  .about-hero-subtitle {
    font-size: 1rem;
  }

  .section-title-dark,
  .section-title-center {
    font-size: 1.5rem;
  }

  .facts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .history-timeline {
    grid-template-columns: 1fr;
  }

  .fact-number {
    font-size: 2rem;
  }

  /* Homepage */
  .category-nav-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Product page */
  .gallery-thumbnails {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  /* Static pages */
  .steps-grid,
  .benefits-grid,
  .services-grid-large,
  .financial-grid {
    grid-template-columns: 1fr;
  }

  .category-circles,
  .categories-slider {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   MOBILE PORTRAIT (360px - 479px)
   ======================================== */

@media (max-width: 479px) {
  .container {
    padding: 0 0.75rem;
  }

  .about-hero {
    min-height: 300px;
  }

  .about-hero-title {
    font-size: 1.75rem;
  }

  .about-hero-subtitle {
    font-size: 0.875rem;
  }

  .btn-hero-white {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .section-title-dark,
  .section-title-center {
    font-size: 1.25rem;
  }

  .platform-section,
  .facts-section,
  .history-section,
  .leading-section,
  .values-section,
  .store-visit-section,
  .testimonials-section-about {
    padding: 2rem 0;
  }

  .fact-number {
    font-size: 1.75rem;
  }

  .fact-icon,
  .value-icon {
    width: 48px;
    height: 48px;
  }

  /* Header adjustments */
  .logo-text {
    font-size: 1.25rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  /* Homepage */
  .page-title {
    font-size: 1.25rem;
  }

  .vehicle-card {
    font-size: 0.875rem;
  }

  .vehicle-price {
    font-size: 1rem;
  }

  /* Product page */
  .product-title {
    font-size: 1.5rem;
  }

  .price {
    font-size: 1.5rem;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
  }

  /* Contact page */
  .page-main-title {
    font-size: 1.5rem;
  }

  .location-image {
    width: 60px;
    height: 45px;
  }

  /* All CTAs */
  .contact-cta-title,
  .cta-title {
    font-size: 2rem;
  }
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

/* Hide on mobile */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Hide on tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .hide-tablet {
    display: none !important;
  }
}

/* Hide on desktop */
@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Show only on mobile */
.show-mobile {
  display: none !important;
}

@media (max-width: 767px) {
  .show-mobile {
    display: block !important;
  }
}

/* ========================================
   SMOOTH SCROLLING
   ======================================== */

html {
  scroll-behavior: smooth;
}

/* ========================================
   TOUCH IMPROVEMENTS
   ======================================== */

@media (max-width: 1023px) {
  /* Increase touch targets */
  .btn-primary,
  .btn-secondary,
  .btn-submit,
  .btn-banner,
  .btn-hero-white {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }

  /* Better tap highlighting */
  * {
    -webkit-tap-highlight-color: rgba(0, 166, 81, 0.1);
  }

  /* Prevent text selection on buttons */
  button,
  .btn-primary,
  .btn-secondary {
    -webkit-user-select: none;
    user-select: none;
  }
}
