/* ═══════════════════════════════════════════════
   HAMAAL – Global Stylesheet
   Theme: Testing Phase · Professional Blue
   ═══════════════════════════════════════════════ */

:root {
  --primary: #1E40AF;
  --primary-dark: #1E3A8A;
  --primary-light: #3B82F6;
  --primary-pale: #EFF6FF;
  --black: #0D0D0D;
  --dark: #111418;
  --dark-2: #1A1F26;
  --dark-3: #242B34;
  --mid: #4A5568;
  --muted: #718096;
  --border: #E2E8F0;
  --border-dark: #2A3140;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --text: #1A202C;
  --text-light: #4A5568;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.16);

  --max-w: 1280px;
  --section-pad: 100px 0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

/* ── Testing Phase Banner ── */
.testing-banner {
  background: #F59E0B;
  color: #78350F;
  text-align: center;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  z-index: 1001;
  letter-spacing: 0.3px;
}
.testing-banner a {
  color: #78350F;
  text-decoration: underline;
  font-weight: 700;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ══════════════════════════════════
   NAVBAR
══════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(30,64,175,0.3);
}
.logo-mark svg {
  width: 42px;
  height: 42px;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--black);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
}
.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--mid);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.nav-active { color: var(--primary); }
.nav-cta { margin-left: auto; }
.btn-nav {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-block;
}
.btn-nav:hover { background: var(--primary-dark); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  padding: 16px 24px 24px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-weight: 500;
  color: var(--mid);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu a:hover { background: var(--primary-pale); color: var(--primary); }
.btn-mobile-cta {
  background: var(--primary) !important;
  color: white !important;
  text-align: center;
  margin-top: 8px;
}

/* ══════════════════════════════════
   BUTTONS
══════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,64,175,0.35);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--black);
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--border);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.3); }

/* ══════════════════════════════════
   SECTION COMMON
══════════════════════════════════ */
.section-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-tag.primary { background: var(--primary-pale); color: var(--primary); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding: 160px 32px 100px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,64,175,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,64,175,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(30,64,175,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-container {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid rgba(30,64,175,0.2);
}
.badge-dot {
  width: 8px; height: 8px;
  background: #F59E0B;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 24px;
}
.title-accent { color: var(--primary); }
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px 32px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: fit-content;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--black);
}
.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* Phone mockup */
.hero-visual {
  position: relative;
  flex-shrink: 0;
}
.phone-mockup {
  width: 300px;
  background: var(--dark);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.06);
}
.phone-screen {
  background: #F8F9FA;
  border-radius: 24px;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
}
.app-logo-small {
  width: 32px; height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}
.app-notif { color: var(--primary); margin-left: auto; font-size: 0.75rem; }
.app-map-placeholder {
  height: 150px;
  background: #E8F4FD;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.app-card {
  background: white;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.card-row { display: flex; align-items: center; gap: 12px; }
.vehicle-icon { font-size: 1.6rem; }
.card-title { font-size: 0.85rem; font-weight: 700; color: var(--black); }
.card-sub { font-size: 0.75rem; color: var(--muted); }
.card-eta {
  margin-left: auto;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.app-btn {
  background: var(--primary);
  color: white;
  text-align: center;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer {
  background: var(--dark);
  padding: 80px 0 40px;
}
.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.footer-main {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 32px;
}
.footer-brand .nav-logo { margin-bottom: 20px; }
.footer-brand .logo-text { color: white; }
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 28px;
}
.social-links { display: flex; gap: 14px; }
.social-links a {
  width: 38px; height: 38px;
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.social-links a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col li a,
.footer-col li span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-col li a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
}
.testing-notice {
  background: rgba(245,158,11,0.15);
  padding: 8px 16px;
  border-radius: 40px;
  color: #F59E0B;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicles-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 50px; }
  .driver-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-main { grid-template-columns: 1fr; gap: 50px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .download-inner { grid-template-columns: 1fr; gap: 50px; }
  .steps-grid { flex-direction: column; gap: 16px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 70px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 140px 24px 70px; }
  .hero-stats { flex-direction: column; gap: 20px; width: 100%; }
  .stat-divider { width: 100%; height: 1px; }
  .services-grid { grid-template-columns: 1fr; }
  .vehicles-grid { grid-template-columns: 1fr; }
  .driver-stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .download-form { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .section-container { padding: 0 24px; }
}

@media (max-width: 480px) {
  .driver-stat-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .download-inner { padding: 32px 24px; }
}

/* ══════════════════════════════════
   ANIMATIONS
══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
