/* The Grocery — design system (hand-written, no build step) */

:root {
  --brand-50: #f0f7f1;
  --brand-100: #dcebde;
  --brand-200: #b9d7bd;
  --brand-300: #8fbd97;
  --brand-400: #5f9c6c;
  --brand-500: #3d7c4b;
  --brand-600: #2c623a;
  --brand-700: #234e2f;
  --brand-800: #1c3f27;
  --brand-900: #16321f;

  --wheat-100: #faeecb;
  --wheat-200: #f4dc9c;
  --wheat-400: #e5a839;
  --wheat-600: #b3711b;

  --ink-900: #171d18;
  --ink-700: #3a423b;
  --ink-500: #626b62;
  --ink-300: #9aa19a;

  --cream: #fbfaf7;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1fb956;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-md: 0 10px 30px -12px rgba(23, 29, 24, 0.18);
  --shadow-lg: 0 20px 45px -18px rgba(23, 29, 24, 0.25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-900);
  background: var(--cream);
  padding-bottom: 64px; /* space for mobile bottom nav */
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container { padding: 0 32px; }
}
.container.narrow { max-width: 768px; }

.section { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.bg-white { background: var(--white); }
.border-top { border-top: 1px solid rgba(0,0,0,0.05); }

/* ---------- Typography ---------- */
h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { line-height: 1.65; color: var(--ink-500); }
@media (min-width: 768px) { h1 { font-size: 3rem; } }

.section-heading { max-width: 640px; }
.section-heading.center { margin: 0 auto; text-align: center; }
.section-heading .eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wheat-600);
}
.section-heading .heading-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink-900);
}
.section-description { margin-top: 12px; font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-600); color: var(--white); }
.btn-primary:hover { background: var(--brand-700); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--brand-600);
  color: var(--brand-700);
}
.btn-outline:hover { background: var(--brand-50); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-outline-whatsapp {
  background: transparent;
  border: 2px solid var(--whatsapp);
  color: var(--whatsapp);
}
.btn-outline-whatsapp:hover { background: rgba(37, 211, 102, 0.1); }
.btn-wheat { background: var(--wheat-400); color: var(--brand-900); }
.btn-wheat:hover { background: var(--wheat-200); }
.btn-block { display: flex; width: 100%; margin-top: 16px; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 500;
}
.pill-link:hover { background: var(--brand-100); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--brand-600); color: var(--white); font-weight: 700; font-size: 16px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 16px; color: var(--brand-800); }
.brand-tag { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-500); }

.primary-nav { display: none; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .primary-nav { display: flex; } }
.primary-nav > a, .nav-dropdown-trigger {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-700);
}
.primary-nav > a:hover, .nav-dropdown-trigger:hover { background: var(--brand-50); color: var(--brand-700); }

.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  padding-top: 12px;
  visibility: hidden; opacity: 0;
  transition: opacity .15s ease;
  z-index: 40;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { visibility: visible; opacity: 1; }

.mega-menu {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  width: 560px; background: var(--white); border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px; padding: 24px; box-shadow: var(--shadow-lg);
}
.mega-menu-heading { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--brand-700); }
.mega-menu-col li { margin-top: 4px; }
.mega-menu-col a { font-size: 14px; color: var(--ink-700); }
.mega-menu-col a:hover { color: var(--brand-700); }

.business-menu {
  display: flex; flex-direction: column; width: 240px;
  background: var(--white); border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px; padding: 12px; box-shadow: var(--shadow-lg);
}
.business-menu a { padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-700); }
.business-menu a:hover { background: var(--brand-50); color: var(--brand-700); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.desktop-only { display: none; }
@media (min-width: 1024px) { .desktop-only { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(to bottom, var(--brand-50), var(--cream)); padding: 64px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.hero-compact { padding: 56px 0; }
@media (min-width: 768px) { .hero { padding: 96px 0; } }

.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-badge {
  display: inline-block; margin-bottom: 16px; padding: 6px 16px;
  border-radius: var(--radius-full); background: var(--brand-100);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--brand-700);
}
.hero-tagline { margin-top: 12px; font-size: 18px; font-weight: 500; color: var(--brand-700); }
.hero-lead { margin-top: 20px; max-width: 520px; font-size: 16px; }

.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-mini-card {
  border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid rgba(0,0,0,0.05); padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.hero-mini-card h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--brand-700); }
.hero-mini-card p { font-size: 12px; }
.hero-contact-card {
  grid-column: 1 / -1; border-radius: var(--radius-lg);
  background: var(--brand-900); color: var(--white); padding: 20px;
}
.hero-contact-card p:first-child { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--white); }
.hero-contact-card p:last-child { font-size: 12px; color: var(--brand-200); }

/* ---------- Cards & grids ---------- */
.card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); border: 1px solid rgba(0,0,0,0.05);
  background: var(--white); overflow: hidden; transition: box-shadow .15s ease;
}
.card:hover { box-shadow: var(--shadow-md); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.two-col { display: grid; gap: 32px; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col h2 { color: var(--ink-900); font-size: 1.1rem; margin-bottom: 8px; }
.two-col p { margin-top: 8px; font-size: 14px; }

.image-placeholder {
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-100), var(--brand-50) 60%, var(--wheat-100));
  aspect-ratio: 4 / 3;
}
.image-placeholder span { font-size: 28px; font-weight: 700; letter-spacing: 0.02em; color: rgba(44, 98, 58, 0.55); }
.product-card-image { border-radius: 0; }
.hero-product-image { aspect-ratio: 1 / 1; }
.product-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-card-body h3 { color: var(--ink-900); }
.product-card-body p { margin-top: 6px; font-size: 14px; flex: 1; }
.product-card-sizes { margin-top: 12px !important; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand-600); }

.category-card { padding: 24px; }
.category-card h3 { color: var(--ink-900); font-size: 1.15rem; }
.category-card p { margin-top: 8px; font-size: 14px; }
.category-card-products { margin-top: 16px !important; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand-600); }

.info-tile {
  border-radius: var(--radius-md); border: 1px solid rgba(0,0,0,0.05);
  background: var(--white); padding: 16px;
}
.info-tile .label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--ink-300); }
.info-tile .value { margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--ink-900); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { border-bottom: 1px solid rgba(0,0,0,0.05); background: rgba(255,255,255,0.6); }
.breadcrumbs .container { padding-top: 12px; padding-bottom: 12px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--ink-500); }
.breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.breadcrumbs a:hover { color: var(--brand-700); }
.breadcrumbs .current { font-weight: 500; color: var(--ink-700); }

/* ---------- FAQ accordion ---------- */
.faq-accordion {
  border-radius: var(--radius-lg); border: 1px solid rgba(0,0,0,0.05);
  background: var(--white); overflow: hidden;
}
.faq-item { padding: 20px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none; font-weight: 600; color: var(--ink-900); font-size: 15px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex-shrink: 0; font-size: 22px; line-height: 1; color: var(--brand-600); transition: transform .15s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand-700); }
.cta-band-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 56px 0; text-align: center; }
.cta-band h2 { color: var(--white); font-size: 1.75rem; }
.cta-band p { max-width: 560px; color: var(--brand-100); }
.cta-band-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: var(--brand-100); }
.footer-grid { display: grid; gap: 40px; padding: 56px 0; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { font-size: 20px; font-weight: 700; color: var(--white); }
.footer-about p { margin-top: 12px; max-width: 360px; font-size: 14px; color: var(--brand-200); }
.site-footer h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--white); margin-bottom: 12px; }
.site-footer h3.mt { margin-top: 24px; }
.site-footer ul li { margin-top: 8px; font-size: 14px; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom-inner {
  display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--brand-300); text-align: center;
}
@media (min-width: 768px) { .footer-bottom-inner { flex-direction: row; text-align: left; } }

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
  position: fixed; right: 16px; bottom: 80px; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--whatsapp); color: var(--white); box-shadow: var(--shadow-lg);
  transition: transform .15s ease;
}
.floating-whatsapp:hover { transform: scale(1.06); }
@media (min-width: 1024px) { .floating-whatsapp { bottom: 24px; } }

/* ---------- Mobile bottom nav ---------- */
.mobile-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,0.97); border-top: 1px solid rgba(0,0,0,0.1);
}
@media (min-width: 1024px) { .mobile-nav { display: none; } }
.mobile-nav a, .mobile-nav button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0; font-size: 11px; color: var(--ink-700);
}
.mobile-nav-whatsapp { color: var(--whatsapp) !important; }
.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle.is-open .icon-open { display: none; }
.mobile-menu-toggle.is-open .icon-close { display: block; }

.mobile-menu-backdrop {
  position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,0.4);
  display: none;
}
.mobile-menu-panel {
  position: fixed; left: 0; right: 0; bottom: 64px; z-index: 40;
  max-height: 75vh; overflow-y: auto;
  border-radius: 24px 24px 0 0; background: var(--white);
  padding: 24px; box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
  display: none;
}
body.mobile-menu-open .mobile-menu-backdrop,
body.mobile-menu-open .mobile-menu-panel { display: block; }
.mobile-menu-label { margin: 0 0 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--brand-600); }
.mobile-menu-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mobile-menu-links a { padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-700); }
.mobile-menu-links a:hover { background: var(--brand-50); }
@media (min-width: 1024px) { .mobile-menu-backdrop, .mobile-menu-panel { display: none !important; } }

/* ---------- Forms ---------- */
.form-card {
  display: grid; gap: 16px;
  border-radius: var(--radius-lg); border: 1px solid rgba(0,0,0,0.05);
  background: var(--white); padding: 24px;
}
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--ink-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12); font: inherit; font-size: 14px; color: var(--ink-900);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); }

.form-confirmation {
  border-radius: var(--radius-lg); border: 1px solid var(--brand-200);
  background: var(--brand-50); padding: 24px; text-align: center;
}
.form-confirmation p:first-child { font-size: 16px; font-weight: 600; color: var(--brand-700); }
.form-confirmation p { margin-top: 8px; font-size: 14px; }

/* ---------- Misc content pages ---------- */
.prose h2 { margin-top: 28px; font-size: 1.1rem; color: var(--ink-900); }
.prose p { margin-top: 8px; font-size: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }

.dl-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin-top: 24px; }

.not-found-hero { min-height: 60vh; display: flex; align-items: center; }
.not-found-hero .container { text-align: center; }
.not-found-hero h1 { margin-top: 8px; }
.not-found-hero .lead { margin: 16px auto 0; max-width: 420px; }
