/* =========================================================
   VegetablesGo - Main Stylesheet
   Author: Senior Web Designer
   Mobile-first, responsive, accessible
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root {
  --green: #2E7D32;
  --green-dark: #1B5E20;
  --green-light: #E8F5E9;
  --orange: #F57C00;
  --orange-dark: #E65100;
  --bg: #FAFFF5;
  --bg-alt: #F1F8E9;
  --text: #1B1B1B;
  --text-muted: #4A4A4A;
  --border: #E0E0E0;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: all 0.25s ease;
  --max-width: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-dark); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.5em;
}
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); }
p { margin-bottom: 1em; color: var(--text-muted); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-light {
  background: var(--white);
  color: var(--green);
}
.btn-light:hover {
  background: var(--green-light);
  color: var(--green-dark);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--green);
}
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 255, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  min-height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  flex-shrink: 0;
}
.logo-icon { font-size: 1.5rem; }
.logo-accent { color: var(--green); }

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--green); }

.header-cta { display: none; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.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 nav */
@media (max-width: 767px) {
  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .main-nav a {
    display: block;
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .main-nav a::after { display: none; }
  .main-nav a.active { color: var(--green); font-weight: 600; }
}

@media (min-width: 768px) {
  .hamburger { display: none; }
}
@media (min-width: 900px) {
  .header-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 2.5rem 0 3rem;
  background: linear-gradient(135deg, var(--bg) 0%, var(--green-light) 100%);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-text { max-width: 600px; }
.badge {
  display: inline-block;
  background: var(--white);
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.hero h1 { margin-bottom: 1rem; }
.text-accent { color: var(--green); }
.hero-sub {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero { padding: 4rem 0 5rem; }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .hero-sub { font-size: 1.15rem; }
}

/* ---------- Section Head ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.section-head h2 { margin-bottom: 0.5rem; }
.section-head p { font-size: 1.05rem; }

/* ---------- Grids ---------- */
.grid-3, .grid-4, .grid-5 {
  display: grid;
  gap: 1.25rem;
}
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 600px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}
.feature-card { text-align: center; }
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Categories ---------- */
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: block;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover img { transform: scale(1.08); }
.category-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.category-overlay span {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Steps ---------- */
.steps { position: relative; }
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--border);
}
.step-num {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  box-shadow: var(--shadow-md);
}
.step-icon { font-size: 2.5rem; margin: 0.5rem 0 0.75rem; }

/* ---------- Testimonials ---------- */
.testimonial { text-align: left; }
.stars { color: var(--orange); font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.testimonial p { font-style: italic; color: var(--text); margin-bottom: 1rem; }
.testimonial-author {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.testimonial-author strong { color: var(--green-dark); }
.testimonial-author span { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  padding: 3rem 0;
  margin-top: 2rem;
}
.cta-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 0; }
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
@media (min-width: 900px) {
  .cta-inner { grid-template-columns: 1fr auto; text-align: left; }
  .cta-buttons { justify-content: flex-end; }
}

/* ---------- Page Hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--bg) 100%);
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { font-size: 1.05rem; margin-bottom: 0; }

/* ---------- Legal Content ---------- */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
}
.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--green-dark);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}
.legal-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.legal-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.contact-block li::before { content: '•'; }
.contact-block li { padding-left: 1.25rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 3rem; }
}
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); }
.contact-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  border-radius: 50%;
}
.contact-card h3 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact-card p { margin-bottom: 0; font-size: 0.95rem; color: var(--text); }

.contact-form {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: var(--transition);
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}
.form-group input.error,
.form-group textarea.error { border-color: #D32F2F; }
.error-msg {
  display: block;
  color: #D32F2F;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  min-height: 1em;
}
.form-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}
.form-note.success { color: var(--green-dark); }
.form-note.error { color: #D32F2F; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  line-height: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #14351A;
  color: rgba(255,255,255,0.85);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 1rem 2rem;
}
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2rem; }
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}
.footer-logo { color: var(--white); margin-bottom: 0.75rem; }
.footer-logo .logo-accent { color: #81C784; }
.footer-col p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--white); }
.contact-list li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.contact-list strong { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-float:hover {
  background: #1EBE5A;
  color: var(--white);
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 1rem;
  z-index: 1001;
  display: none;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  text-align: center;
}
.cookie-banner.show { display: flex; }
.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}
.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    text-align: left;
    padding: 1rem 1.5rem;
  }
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Small phones (360px) ---------- */
@media (max-width: 380px) {
  .container { padding: 0 0.75rem; }
  .logo-text { font-size: 1.1rem; }
  .btn { padding: 0.65rem 1.15rem; font-size: 0.9rem; }
  .btn-lg { padding: 0.85rem 1.25rem; font-size: 0.95rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .header-inner { padding: 0.6rem 0.75rem; gap: 0.5rem; }
}