/* Mobile-First Responsive Design for LineDiet Qatar */

/* Base Mobile Styles (320px+) */
:root {
  --touch-target-size: 44px;
  --mobile-padding: 1rem;
  --mobile-margin: 0.75rem;
  --mobile-font-base: 16px;
  --mobile-line-height: 1.5;
}

/* Touch-Friendly Base Styles */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(45, 122, 62, 0.2);
}

/* Body and Typography */
body {
  font-size: var(--mobile-font-base);
  line-height: var(--mobile-line-height);
  padding-top: 70px; /* Account for fixed header */
}

/* Touch Target Sizing */
button,
.btn,
.cta-button,
a[role="button"],
input[type="submit"],
input[type="button"] {
  min-height: var(--touch-target-size);
  min-width: var(--touch-target-size);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

/* Form Elements */
input,
textarea,
select {
  min-height: var(--touch-target-size);
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2d7a3e;
  box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.1);
}

/* Container and Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--mobile-padding);
}

.section {
  padding: 2rem var(--mobile-padding);
  margin-bottom: var(--mobile-margin);
}

/* Hero Section Mobile */
.hero-section {
  min-height: 100vh;
  padding: 2rem var(--mobile-padding);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  background: white;
  color: #2d7a3e;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.hero-cta:hover,
.hero-cta:active {
  transform: translateY(-2px);
  color: #2d7a3e;
}

/* Grid Systems */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Card Styles */
.card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

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

.package-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.package-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #2d7a3e;
}

.package-price {
  font-size: 2rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 1rem;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.package-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}

.package-features li:last-child {
  border-bottom: none;
}

/* Navigation Enhancements */
.nav-links {
  display: none; /* Hidden on mobile, shown via hamburger */
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  color: white;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: #2d7a3e;
  outline: none;
}

.form-submit {
  background: linear-gradient(135deg, #2d7a3e 0%, #4caf50 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 2rem var(--mobile-padding);
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #4caf50;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4caf50;
}

/* Tablet Styles (768px+) */
@media (min-width: 768px) {
  :root {
    --mobile-padding: 2rem;
    --mobile-margin: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section {
    padding: 3rem var(--mobile-padding);
  }
}

/* Desktop Styles (1024px+) */
@media (min-width: 1024px) {
  :root {
    --mobile-padding: 3rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.375rem;
  }
  
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .nav-links {
    display: flex; /* Show desktop navigation */
  }
  
  .whatsapp-button {
    width: 70px;
    height: 70px;
  }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .container {
    padding: 0 4rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section {
    background-image: url('./images/Amazing Healthy Food - Salads Qatar.webp');
    background-size: cover;
    background-position: center;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 80vh;
    padding: 1rem var(--mobile-padding);
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .card {
    background: #2a2a2a;
    color: white;
    border-color: #444;
  }
  
  .form-input {
    background: #333;
    color: white;
    border-color: #555;
  }
  
  .form-input:focus {
    border-color: #4caf50;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .whatsapp-button,
  .header,
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}