/* CSS Variables - GrocerGo Theme */
:root {
  --primary: #00985F;
  --secondary: #121212;
  --surface: #FCFCFC;
  --error: #FC4646;
  --outline: #6E6E6E;
  --shadow: #E0E0E0;
  --tertiary: #DF5F2C;
  --on-primary: #000000;
  --on-secondary: #FFFFFF;
  --white: #FFFFFF;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--secondary);
  background-color: var(--surface);
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--outline);
  margin-bottom: var(--spacing-sm);
}

/* Buttons */
.cta-button {
  background-color: var(--primary);
  color: var(--on-primary);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.cta-button:hover {
  background-color: #007a4d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 152, 95, 0.3);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-button.secondary:hover {
  background-color: var(--primary);
  color: var(--on-primary);
}

/* Header */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.logo {
  height: 40px;
  width: auto;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

.menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
}

/* Hero Section */
.hero {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, #f8fffe 0%, #f0fdf7 100%);
}

.hero-content {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--outline);
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Value Props Section */
.value-props {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--secondary);
}

.props-grid {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: 1fr;
}

.prop-card {
  background: var(--surface);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.prop-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.prop-card h3 {
  color: var(--secondary);
  margin-bottom: var(--spacing-xs);
}

.prop-card p {
  font-size: 0.9rem;
  color: var(--outline);
}

/* Featured Products Section */
.featured-products {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, #f0fdf7 0%, #f8fffe 100%);
}

.products-grid {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: repeat(2, 1fr);
}

.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.product-card h3,
.product-card p {
  padding: 0 var(--spacing-sm);
  margin: var(--spacing-xs) 0;
}

.product-card h3 {
  font-size: 1rem;
  color: var(--secondary);
}

.product-card p {
  color: var(--primary);
  font-weight: 600;
  padding-bottom: var(--spacing-sm);
}

/* How It Works Section */
.how-it-works {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
}

.steps {
  margin-bottom: var(--spacing-lg);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.step-number {
  background-color: var(--primary);
  color: var(--on-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step h3 {
  margin-bottom: var(--spacing-xs);
  color: var(--secondary);
}

.step p {
  color: var(--outline);
  margin: 0;
}

.delivery-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.delivery-image img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: var(--surface);
}

/* Testimonials Section */
.testimonials {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, #f8fffe 0%, #f0fdf7 100%);
}

.testimonials-grid {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: 1fr;
}

.testimonial {
  background: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.testimonial p {
  font-style: italic;
  margin-bottom: var(--spacing-sm);
  color: var(--secondary);
}

.customer strong {
  color: var(--secondary);
  display: block;
}

.customer span {
  color: var(--outline);
  font-size: 0.9rem;
}

/* Final CTA Section */
.final-cta {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
}

.cta-content {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.cta-content h2 {
  color: var(--secondary);
  margin-bottom: var(--spacing-sm);
}

.cta-content p {
  color: var(--outline);
  margin-bottom: var(--spacing-lg);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.payment-icon {
  height: 32px;
  width: auto;
}

.mobile-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.mobile-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Footer */
.footer {
  background-color: var(--secondary);
  color: var(--on-secondary);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

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

.footer-logo {
  height: 40px;
  width: auto;
  margin: 0 auto var(--spacing-sm);
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: var(--outline);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

@media (min-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.link-group h4 {
  color: var(--on-secondary);
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
}

.link-group a {
  color: var(--outline);
  text-decoration: none;
  display: block;
  margin-bottom: var(--spacing-xs);
  transition: color 0.3s ease;
}

.link-group a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid #333;
}

.footer-bottom p {
  color: var(--outline);
  margin: 0;
}

/* Tablet Styles */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-image img {
    height: 300px;
  }
  
  .props-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 2fr 1fr;
    text-align: left;
  }
  
  .footer-brand {
    text-align: left;
  }
  
  .footer-logo {
    margin-left: 0;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .hero {
    padding: var(--spacing-xl) 0 80px;
  }
  
  .hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
  }
  
  .hero-content {
    text-align: left;
    margin-bottom: 0;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    margin-left: 0;
    margin-right: 0;
  }
  
  .props-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .how-it-works .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
  }
  
  .final-cta .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
  }
  
  .cta-content {
    text-align: left;
    margin-bottom: 0;
  }
  
  .cta-content p {
    margin-left: 0;
    margin-right: 0;
  }
  
  .cta-buttons {
    justify-content: flex-start;
  }
  
  .payment-methods {
    justify-content: flex-start;
  }
}