/* ========================================
   1 Day Delivery - Landing Page Styles
   Mobile-first responsive design
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #F5A623;
  --color-primary-dark: #E09000;
  --color-primary-light: #FFF3D6;
  --color-dark: #1A1A2E;
  --color-text: #2D2D3A;
  --color-text-light: #6B6B80;
  --color-white: #FFFFFF;
  --color-grey-bg: #F7F7FA;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1EBE57;
  --color-call: #0078FF;
  --color-call-hover: #0060D0;
  --font-en: 'Inter', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  --header-height: 64px;
  --section-padding: 48px 20px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-en);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
  overflow-x: hidden;
}

[dir="rtl"] body {
  font-family: var(--font-ar);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--color-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
  min-height: 48px;
  min-width: 48px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

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

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-hover);
}

.btn-call {
  background: var(--color-call);
  color: var(--color-white);
}

.btn-call:hover {
  background: var(--color-call-hover);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-dark);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
}

.btn-outline:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-dark);
  z-index: 1001;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  padding: 8px 14px;
  border: 2px solid var(--color-dark);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  color: var(--color-dark);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  min-height: 40px;
  min-width: 48px;
}

.lang-toggle:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

.header-cta {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  min-height: 48px;
  min-width: 48px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  padding: 30px 20px;
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.mobile-menu-links a {
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: background var(--transition);
}

.mobile-menu-links a:hover {
  background: var(--color-grey-bg);
}

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 120px 20px 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #F7B733 50%, var(--color-primary-dark) 100%);
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(255,255,255,0.05) 30px,
    rgba(255,255,255,0.05) 60px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.2rem;
  color: var(--color-dark);
  margin-bottom: 16px;
  line-height: 1.15;
}

/* Rotating hero words */
.rotate-container {
  position: relative;
  display: inline-block;
}

.rotate-word {
  display: inline-block;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 4px 18px;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 0.83em;
  line-height: 1.3;
}

.rotate-word.active {
  opacity: 1;
  position: relative;
  transform: translateY(0);
}

.hero-text {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--color-dark);
  line-height: 1;
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--color-text);
}

/* ---------- Services Section ---------- */
.services {
  padding: var(--section-padding);
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid #E8E8EF;
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- How It Works ---------- */
.how-it-works {
  padding: var(--section-padding);
  background: var(--color-primary-light);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step-number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-dark);
}

.step-content h3 {
  margin-bottom: 6px;
}

.step-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.step-connector {
  width: 2px;
  height: 32px;
  background: var(--color-primary);
  margin-inline-start: 27px;
  opacity: 0.4;
  display: none;
}

/* ---------- Coverage Section ---------- */
.coverage {
  padding: var(--section-padding);
  background: var(--color-white);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.coverage-card {
  background: var(--color-grey-bg);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.coverage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.coverage-card .city-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.coverage-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.coverage-card p {
  color: var(--color-text-light);
  font-size: 0.8rem;
}

.coverage-note {
  text-align: center;
  margin-top: 24px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.coverage-note strong {
  color: var(--color-primary-dark);
}

/* ---------- Why Choose Us ---------- */
.why-us {
  padding: var(--section-padding);
  background: var(--color-grey-bg);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.why-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
}

.why-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--color-primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.why-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  padding: 40px 20px;
  background: var(--color-dark);
  color: var(--color-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* ---------- CTA / Contact Section ---------- */
.cta-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #F7B733 100%);
  text-align: center;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: 500;
}

.contact-item .ci-icon {
  font-size: 1.2rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 20px 24px;
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-logo .logo-icon {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary);
}

.footer-bottom {
  font-size: 0.85rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  text-align: center;
}

/* ---------- FAQ Section ---------- */
.faq-item {
  background: var(--color-grey-bg);
  border-radius: 12px;
  border: 1px solid #E8E8EF;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-dark);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-text-light);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 24px 18px;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- FAB (Floating Action Buttons) ---------- */
.fab-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 998;
}

[dir="rtl"] .fab-container {
  right: auto;
  left: 20px;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.fab-whatsapp {
  background: var(--color-whatsapp);
}

.fab-call {
  background: var(--color-call);
}

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

/* ==========================================
   Responsive Breakpoints (min-width)
   ========================================== */

/* Tablet (640px+) */
@media (min-width: 640px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }

  .hero { padding: 140px 20px 80px; }
  .hero h1 { font-size: 2.8rem; }

  .hero-buttons {
    flex-direction: row;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coverage-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  :root {
    --header-height: 72px;
    --section-padding: 80px 20px;
  }

  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }

  .hero { padding: 160px 40px 100px; min-height: 80vh; }
  .hero h1 { font-size: 3.4rem; max-width: 650px; }
  .hero-text { font-size: 1.2rem; }

  .hamburger { display: none; }
  .mobile-menu { display: none; }

  .header-cta {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .header-cta .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .steps {
    flex-direction: row;
    max-width: 1000px;
    gap: 40px;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }

  .coverage-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .cta-section h2 {
    font-size: 2.2rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: start;
  }

  .footer-bottom {
    text-align: center;
  }
}

/* ==========================================
   RTL Overrides
   ========================================== */
[dir="rtl"] {
  font-family: var(--font-ar);
}

[dir="rtl"] .hero-text,
[dir="rtl"] .service-card p,
[dir="rtl"] .step-content p,
[dir="rtl"] .why-card p {
  line-height: 1.8;
}

[dir="rtl"] .mobile-menu {
  transform: translateX(-100%);
}

[dir="rtl"] .mobile-menu.active {
  transform: translateX(0);
}
