/* =========================================
   Base & Variables
   ========================================= */
:root {
  /* Colors */
  --primary: #FF6B00;
  --primary-hover: #E56000;
  --text-main: #1C1C1C;
  --text-muted: #6B6B6B;
  --bg-main: #FFFFFF;
  --bg-customer: #F8EADC;
  --bg-restaurant: #FFF7D4;
  --bg-rider: #E2F5E9;
  --bg-why-us: #FFF3EB;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container-width: 1200px;
  --border-radius: 20px;
  --border-radius-lg: 32px;
  --border-radius-sm: 12px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

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

.mt-4 {
  margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.btn-secondary {
  background-color: #FFF2E5;
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: #FFE6CC;
  transform: translateY(-2px);
}

.btn-light {
  background-color: white;
  color: #1C1C1C;
}

.btn-light:hover {
  background-color: #F8F8F8;
  transform: translateY(-2px);
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
  padding: 24px 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  padding: 160px 0 0 0;
  text-align: center;
  background-color: var(--bg-main);
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: white;
  border: 1px solid #EAEAEA;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-subtitle span {
  color: #34A853;
  /* Green for 20 minutes */
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-image-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   Section Globals
   ========================================= */
.section {
  padding: 80px 0;
}

.section-badge {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 64px;
}

/* =========================================
   Features Grid
   ========================================= */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 0 20px;
}

.feature-card.reverse {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
}

.feature-tag {
  display: inline-block;
  padding: 6px 12px;
  background-color: white;
  border: 1px solid #EAEAEA;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.feature-card-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.feature-card-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 500;
}

.feature-list li span {
  color: var(--primary);
  font-weight: bold;
}

.feature-image-container {
  flex: 1;
  border-radius: var(--border-radius-lg);
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 500px;
}

.bg-customer {
  background-color: var(--bg-customer);
}

.bg-restaurant {
  background-color: var(--bg-restaurant);
}

.bg-rider {
  background-color: var(--bg-rider);
}

.feature-img {
  max-width: 100%;
  max-height: 110%;
  /* Slight oversize for effect */
  object-fit: contain;
  transform: translateY(20px);
}

/* =========================================
   Why Choose Us
   ========================================= */
.section-why {
  margin-top: 40px;
}

.section-why .section-header {
  position: relative;
  margin-bottom: 48px;
}

.why-cta-top {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background-color: var(--bg-why-us);
  padding: 32px 24px;
  border-radius: var(--border-radius);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  /* For even heights */
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(255, 107, 0, 0.1);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 24px;
}

.why-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.why-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================================
   Bottom CTA
   ========================================= */
.cta-banner {
  background-color: var(--primary);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 64px;
  overflow: hidden;
  position: relative;
  min-height: 300px;
}

.cta-content {
  flex: 1;
  color: white;
  padding: 64px 0;
  z-index: 2;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.125rem;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-image-wrapper {
  flex: 1;
  position: relative;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  /* Align to bottom instead of stretch */
  height: 300px;
}

.cta-img {
  height: 100%;
  object-fit: contain;
  /* Don't crop the image */
  object-position: right bottom;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  padding: 40px 0;
  border-top: 1px solid #EAEAEA;
  margin-top: 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-slogan {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
}

.social-link {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.social-link:hover {
  transform: translateY(-2px);
}

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

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .feature-card {
    gap: 40px;
  }

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

  .why-cta-top {
    display: none;
  }

  /* Hide button on top for mobile/tablet */
  .section-why .section-title {
    margin-bottom: 32px;
    text-align: center;
  }

  .section-why .section-badge {
    text-align: center;
  }

  .cta-banner {
    padding: 40px;
    flex-direction: column;
    text-align: center;
  }

  .cta-content {
    padding: 0 0 40px 0;
  }

  .cta-image-wrapper {
    height: 200px;
    justify-content: center;
  }

  .cta-img {
    object-position: center;
    border-radius: 12px;
  }
}

@media (max-width: 768px) {

  .feature-card,
  .feature-card.reverse {
    flex-direction: column;
  }

  .feature-image-container {
    width: 100%;
    height: 350px;
  }

  .hero {
    padding-top: 120px;
  }

  .cta-image-wrapper {
    display: none;
  }

  .cta-content {
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    padding: 0 20px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-title {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  /* Navbar mobile fixes */
  .nav-btn {
    padding: 8px 16px;
    font-size: 0.875rem;
  }

  .logo-text {
    font-size: 1rem !important;
  }
}

/* =========================================
   Modal & Interactivity
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--bg-main);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  width: 90%;
  max-width: 480px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--transition-normal);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: #F5F5F5;
  color: var(--text-main);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-header h3 {
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.875rem;
  text-align: left;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #EAEAEA;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  color: var(--text-main);
  background-color: #FAFAFA;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.modal-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.125rem;
  margin-top: 12px;
  position: relative;
}

.modal-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Loader in button */
.btn-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  animation: rotate 2s linear infinite;
  width: 24px;
  height: 24px;
  display: block;
}

.spinner .path {
  stroke: white;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }

  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.modal-success {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  color: #34A853;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.modal-success h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.modal-success p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .modal {
    padding: 32px 24px;
  }
}