/* ============================================
   BAKRI DELIVERY - PRODUCTION VERSION
   Exact replica with high-quality assets
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: #1F2937;
  line-height: 1.6;
  background: #FFFFFF;
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* ============================================
   HEADER - EXACT WHITE DESIGN
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  padding: 14px 0;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 32px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 15px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: #F3F4F6;
  color: #1F2937;
}

.btn-create {
  background: #3B82F6;
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.1);
}

.btn-create:hover {
  background: #2563EB;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: #F3F4F6;
}

.lang-icon {
  font-size: 16px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 3px;
  background: #1F2937;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav.active {
  max-height: 500px;
}

.mobile-nav a,
.mobile-nav button {
  display: block;
  padding: 16px 24px;
  color: #1F2937;
  text-decoration: none;
  border-bottom: 1px solid #F3F4F6;
  transition: background 0.2s ease;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #F3F4F6;
  font-size: 16px;
  cursor: pointer;
}

.mobile-nav a:hover,
.mobile-nav button:hover {
  background: #F9FAFB;
}

.mobile-nav .btn-create {
  margin: 16px 24px;
  text-align: center;
  border: none;
  border-radius: 6px;
}

/* ============================================
   HERO - HIGH QUALITY BACKGROUND
   ============================================ */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #4B6CB7 0%, #182848 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/delivery-van-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-bg video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(75, 108, 183, 0.72) 0%,
    rgba(59, 82, 139, 0.68) 40%,
    rgba(24, 40, 72, 0.64) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #FFFFFF;
  max-width: 900px;
  padding: 0 32px;
  animation: fadeInUp 0.8s ease-out;
}

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

/* Contact Pill */
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-pill svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Hero Typography */
.hero-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  margin-bottom: 32px;
  opacity: 0.96;
  font-weight: 400;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: #3B82F6;
  color: #FFFFFF;
  padding: 13px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-hero-primary:hover {
  background: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 13px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Service Chips - EXACT 2x3 Grid */
.service-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.chip:hover {
  background: rgba(0, 0, 0, 0.52);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 80px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

section h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 52px;
  color: #111827;
  letter-spacing: -0.02em;
}

/* Partners Section */
.partners {
  background: #F9FAFB;
  padding: 40px 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}

.partner-logos img {
  height: 32px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partner-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Cards */
.card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: #3B82F6;
}

.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111827;
}

.card p {
  font-size: 15px;
  color: #6B7280;
  line-height: 1.65;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: #3B82F6;
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Background Variations */
.bg-light {
  background: #F9FAFB;
}

/* Footer */
.footer {
  background: #111827;
  color: #FFFFFF;
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #FFFFFF;
}

.footer a {
  display: block;
  color: #9CA3AF;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  text-align: center;
  color: #9CA3AF;
  font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
  .service-chips {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .hero {
    height: 500px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .service-chips {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
  }
  
  section {
    padding: 60px 0;
  }
}

/* Print Styles */
@media print {
  .header {
    position: relative;
  }
  
  .hero {
    height: auto;
    page-break-inside: avoid;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-bg {
    background-image: url('../assets/hero-background.jpg');
  }
}

/* Quote Section Tabs */
.quote-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.quote-tab.active {
  transform: scale(1.05);
}

/* Quote Forms */
.quote-form-container input:focus,
.quote-form-container select:focus,
.quote-form-container textarea:focus {
  outline: none;
  border-color: #0066FF;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.quote-form-container button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

/* Mobile responsive for quote forms */
@media (max-width: 768px) {
  .quote-form-container {
    padding: 24px !important;
  }
  
  .quote-form-container > form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}
