/* =========================================================
   BiG Organics and Naturals — Public Site Design System
   Official brand palette (sun-gold orange, lime green, sky
   blue, forest green) on a clean white base, with a livelier,
   organic-growth character: rounded pill buttons, soft blob
   icon badges, a wave divider at the hero (echoing rolling
   fields from the logo), and gentle hover motion — spent once,
   deliberately, rather than scattered on every element.
   ========================================================= */

:root {
  /* Official brand colors (from BiG Color Scheme) */
  --c-green: #229f4e;      /* primary — nav, buttons, headings accents */
  --c-green-dark: #1b7d3d; /* hover/active state for green */
  --c-orange: #fcad1c;     /* sun gold — secondary accent, CTAs */
  --c-orange-dark: #e0960a;
  --c-lime: #bad432;       /* crop lime — tertiary accent */
  --c-lime-dark: #a3bd25;
  --c-blue: #24acdf;       /* sky blue — quaternary accent, links */
  --c-blue-dark: #1c8fb8;

  /* Neutrals — none of the 4 brand colors are strong enough for body
     text on white, so text stays a dark neutral throughout. */
  --c-ink: #1C2B20;                    /* body text — near-black, faint green cast */
  --c-ink-soft: rgba(28,43,32,0.72);   /* secondary/muted text */
  --c-paper: #FFFFFF;                  /* primary background */
  --c-paper-tint: #F4FAF2;             /* alternating section background */
  --c-line: #E3ECE0;                   /* borders, dividers */

  --font-display: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --radius-card: 20px;
  --radius-btn: 50px;
  --ease: cubic-bezier(.25,.8,.25,1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-paper);
  line-height: 1.6;
  overflow-x: hidden; /* the hero's decorative shapes intentionally bleed to the edge */
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { max-width: 62ch; }
.no-max { max-width: none; }

a { color: var(--c-green); text-decoration: none; }
a:hover { color: var(--c-green-dark); }

::selection { background: var(--c-lime); color: var(--c-ink); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Touch targets: every interactive element gets at least a 44px hit
   area on touch devices, per WCAG 2.5.5 / mobile usability baseline. */
@media (pointer: coarse) {
  a, button, .btn-shop-primary, .btn-outline-cream, .btn-outline-ink, .btn-accent-orange {
    min-height: 44px;
  }
}

/* ---------- Layout helpers ---------- */

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-green { background: var(--c-green); color: #fff; }
.section-green h1, .section-green h2, .section-green h3 { color: #fff; }
.section-green p { color: rgba(255,255,255,0.88); }
.section-green a:not(.btn) { color: #fff; text-decoration: underline; }
.section-tint { background: var(--c-paper-tint); position: relative; overflow: hidden; }

.eyebrow-line {
  color: var(--c-green);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.section-green .eyebrow-line { color: var(--c-lime); }

/* A single, sparing decorative watermark -- used on ONE section only
   (see home.php), not repeated as a tiled texture everywhere. */
.leaf-watermark {
  position: absolute;
  width: 340px;
  height: 340px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.leaf-watermark svg { width: 100%; height: 100%; }
.section > .container { position: relative; z-index: 1; }

/* ---------- Header ---------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--c-ink);
  text-decoration: none;
}
.site-logo img { height: 46px; width: auto; }
.site-logo i { color: var(--c-orange); }

.site-nav { gap: 2rem; }
.site-nav a {
  text-decoration: none;
  color: var(--c-ink);
  font-weight: 500;
  font-size: .95rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--c-green); border-bottom-color: var(--c-orange); }

.header-phone { color: var(--c-ink-soft); text-decoration: none; font-size: .88rem; }
.header-phone:hover { color: var(--c-green); }

.cart-icon-link { position: relative; color: var(--c-ink); font-size: 1.2rem; text-decoration: none; }
.cart-count-badge {
  position: absolute; top: -8px; right: -10px; background: var(--c-orange); color: var(--c-ink);
  font-size: .65rem; font-weight: 700; padding: .05rem .4rem; border-radius: 20px; font-family: var(--font-body);
}

/* ---------- Mobile navigation ----------
   A real hamburger + slide-down panel, since nav links otherwise have
   nowhere to go below desktop width. */

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: var(--c-ink);
  padding: .5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-nav-panel {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: .5rem 0 1rem;
}
.mobile-nav-panel.is-open { display: flex; }

.mobile-nav-panel a {
  display: flex;
  align-items: center;
  padding: .85rem 1.25rem;
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 10px;
  margin: .1rem .75rem;
}
.mobile-nav-panel a:hover, .mobile-nav-panel a.is-active { background: var(--c-paper-tint); color: var(--c-green); }

.mobile-nav-panel .mobile-nav-phone {
  padding: .85rem 1.25rem;
  margin: .3rem .75rem 0;
  color: var(--c-ink-soft);
  font-size: .92rem;
  border-top: 1px solid var(--c-line);
  padding-top: 1rem;
}

@media (max-width: 991.98px) {
  .site-nav { display: none !important; }
  .mobile-nav-toggle { display: inline-flex; }
}

/* ---------- Buttons ----------
   Pill-shaped, with a gentle user-triggered hover lift -- contrast
   checked: dark text reads best on ALL four brand colors at these
   shades (including green), so every solid button uses dark text
   rather than assuming white-on-color works. */

.btn-shop-primary {
  background: var(--c-green); border: 1px solid var(--c-green); color: #fff;
  font-weight: 600; padding: .7rem 1.6rem; border-radius: var(--radius-btn);
  display: inline-block; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .15s ease;
}
.btn-shop-primary:hover {
  background: var(--c-green-dark); border-color: var(--c-green-dark); color: #fff;
  transform: translateY(-2px); box-shadow: 0 10px 20px rgba(34,159,78,0.25);
}

.btn-outline-cream {
  background: transparent; border: 1.5px solid rgba(255,255,255,0.7); color: #fff;
  font-weight: 600; padding: .7rem 1.6rem; border-radius: var(--radius-btn);
  display: inline-block; transition: transform .18s var(--ease), background-color .15s ease, border-color .15s ease;
}
.btn-outline-cream:hover { border-color: #fff; background: rgba(255,255,255,0.15); color: #fff; transform: translateY(-2px); }

.btn-outline-ink {
  background: transparent; border: 1.5px solid var(--c-line); color: var(--c-ink);
  font-weight: 600; padding: .65rem 1.5rem; border-radius: var(--radius-btn);
  display: inline-block; transition: transform .18s var(--ease), background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-outline-ink:hover { border-color: var(--c-green); color: var(--c-green); background: rgba(34,159,78,0.06); transform: translateY(-2px); }

.btn-accent-orange {
  background: var(--c-orange); border: 1px solid var(--c-orange); color: var(--c-ink);
  font-weight: 600; padding: .7rem 1.6rem; border-radius: var(--radius-btn);
  display: inline-block; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .15s ease;
}
.btn-accent-orange:hover {
  background: var(--c-orange-dark); border-color: var(--c-orange-dark); color: var(--c-ink);
  transform: translateY(-2px); box-shadow: 0 10px 20px rgba(252,173,28,0.3);
}

/* ---------- Hero ----------
   The one deliberate "bold" moment: a wave divider at the bottom edge
   (rolling fields, echoing the logo) -- not repeated elsewhere. */

.hero {
  background: var(--c-green);
  color: #fff;
  padding: 4rem 0 6.5rem;
  overflow: hidden;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #fff;
  margin-bottom: 1.2rem;
}
.hero .lede { font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 2;
}
.hero-wave svg { width: 100%; height: 60px; display: block; }

.loop-diagram-wrap { display: flex; align-items: center; justify-content: center; }
.loop-diagram-wrap svg { max-width: 100%; height: auto; }

.hero-image-wrap { display: flex; align-items: center; justify-content: center; }
.hero-image {
  width: 100%; max-width: 480px; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-card); box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.page-banner-image-wrap { width: 100%; max-height: 380px; overflow: hidden; }
.page-banner-image { width: 100%; height: 380px; object-fit: cover; display: block; }
@media (max-width: 767.98px) {
  .page-banner-image-wrap { max-height: 220px; }
  .page-banner-image { height: 220px; }
}
.loop-node-label { font-family: var(--font-body); font-size: 13px; font-weight: 700; fill: var(--c-ink); }
.loop-path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: loop-draw 2.2s ease forwards .3s;
}
@media (prefers-reduced-motion: reduce) { .loop-path { animation: none; stroke-dashoffset: 0; } }
@keyframes loop-draw { to { stroke-dashoffset: 0; } }

/* ---------- Icon badges ----------
   Soft circular badges instead of bare colored icons -- the
   recurring "organic growth" signature, reused consistently across
   Approach and Services. */

.icon-badge {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem; flex-shrink: 0;
  color: var(--c-ink);
}
.icon-badge--orange { background: linear-gradient(135deg, var(--c-orange), var(--c-lime)); }
.icon-badge--lime { background: linear-gradient(135deg, var(--c-lime), var(--c-green)); }
.icon-badge--blue { background: linear-gradient(135deg, var(--c-blue), var(--c-lime)); }
.icon-badge--green { background: linear-gradient(135deg, var(--c-green), var(--c-blue)); color: #fff; }
.icon-badge-inline { width: 40px; height: 40px; font-size: 1rem; margin-bottom: 0; margin-right: .7rem; }

/* ---------- Cards: rounded, soft-lift on hover (user-triggered) ---------- */

.accent-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-orange);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  height: 100%;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.accent-card:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(28,43,32,0.1); }
.accent-card.accent-lime { border-top-color: var(--c-lime); }
.accent-card.accent-blue { border-top-color: var(--c-blue); }
.accent-card.accent-green { border-top-color: var(--c-green); }
.accent-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.accent-card p { font-size: .92rem; color: var(--c-ink-soft); margin-bottom: 0; }

.accent-card-dark {
  background: var(--c-green-dark);
  border: none;
  border-top: 4px solid var(--c-orange);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  height: 100%;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.accent-card-dark:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(0,0,0,0.22); }
.accent-card-dark h3 { font-size: 1.05rem; color: #fff; margin-bottom: .5rem; }
.accent-card-dark p { font-size: .88rem; color: rgba(255,255,255,0.85); margin-bottom: 0; }

/* ---------- Product grid ---------- */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }

.product-card {
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-green);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(28,43,32,0.1); }

.product-card-image { height: 180px; background: var(--c-paper-tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-image i { font-size: 2rem; color: var(--c-lime); }

.product-card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.product-card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: .2rem; color: var(--c-ink); text-decoration: none; }
.product-card-category { font-size: .74rem; color: var(--c-blue); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.product-card-price { margin-top: .6rem; font-weight: 700; font-family: var(--font-mono); font-size: .95rem; color: var(--c-green-dark); }
.product-card-price .old-price { text-decoration: line-through; color: #9c9c94; font-weight: 400; font-size: .82rem; margin-right: .4rem; font-family: var(--font-body); }

/* ---------- Cart / checkout ---------- */

.cart-table th { font-size: .74rem; text-transform: uppercase; color: var(--c-ink-soft); border-bottom-width: 1px; font-weight: 600; }
.cart-table td { vertical-align: middle; }
.cart-item-thumb { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--c-line); border-radius: 10px; }

.checkout-summary { background: var(--c-paper-tint); border: 1px solid var(--c-line); border-top: 4px solid var(--c-green); border-radius: var(--radius-card); padding: 1.6rem; position: sticky; top: 90px; }
.qty-input { width: 70px; min-height: 44px; }

/* ---------- Sections: Approach loop / SDG strip / team / testimonials ---------- */

.approach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }

.sdg-strip { display: flex; flex-wrap: wrap; gap: .6rem; }
.sdg-chip {
  background: var(--c-paper-tint); border: 1px solid var(--c-line); color: var(--c-ink);
  padding: .5rem .9rem; border-radius: 30px; font-size: .82rem; display: flex; align-items: center; gap: .5rem;
}
.sdg-chip .num { font-family: var(--font-mono); color: var(--c-green); font-weight: 700; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.6rem; }
.team-card { text-align: left; transition: transform .2s var(--ease); }
.team-card:hover { transform: translateY(-5px); }
.team-photo {
  width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: .9rem; border-radius: var(--radius-card); border: 1px solid var(--c-line);
}
.team-photo-placeholder {
  width: 100%; aspect-ratio: 1; margin-bottom: .9rem; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-green), var(--c-blue)); color: #fff; font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
  border-radius: var(--radius-card);
}
.team-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: .1rem; }
.team-position { color: var(--c-green); font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }
.team-bio { font-size: .86rem; color: var(--c-ink-soft); }

.testimonial-block { border-left: 4px solid var(--c-orange); padding-left: 1.4rem; margin-bottom: 2rem; }
.testimonial-block blockquote { font-family: var(--font-display); font-size: 1.2rem; font-style: normal; margin-bottom: .6rem; }
.testimonial-block cite { font-size: .85rem; color: rgba(255,255,255,0.75); font-style: normal; }

/* ---------- Blog ---------- */

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.blog-card-image { height: 190px; background: var(--c-paper-tint); overflow: hidden; margin-bottom: 1rem; border-radius: var(--radius-card); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.blog-grid a:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: .4rem; }
.blog-card-meta { font-size: .78rem; color: var(--c-blue); font-weight: 600; margin-bottom: .6rem; }
.blog-body { max-width: 68ch; }
.blog-body h2 { margin-top: 2rem; }
.blog-body p { margin-bottom: 1.2rem; }

/* ---------- Contact ---------- */

.contact-info-item { display: flex; gap: .8rem; margin-bottom: 1.2rem; }
.contact-info-item i { color: var(--c-orange); font-size: 1.1rem; width: 20px; padding-top: .2rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--c-green-dark); color: #fff; }
.footer-brand { color: #fff; font-family: var(--font-display); font-size: 1.2rem; }
.footer-heading { color: #fff; font-family: var(--font-display); font-size: 1rem; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.footer-list li { margin-bottom: .6rem; }
.footer-list a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-list a:hover { color: var(--c-orange); }
.footer-social a { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-right: .9rem; display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.footer-social a:hover { color: var(--c-orange); }

/* ---------- Status badges (shared naming with admin) ---------- */

.badge-status {
  display: inline-block; padding: .2rem .55rem; border-radius: 20px; font-size: .72rem;
  text-transform: capitalize; background: #eee; color: #444;
}
.badge-status--paid, .badge-status--completed { background: #e3f5e6; color: #1e7e34; }
.badge-status--pending { background: #fff4e0; color: #9a6700; }
.badge-status--failed, .badge-status--cancelled { background: #fdecea; color: #c0392b; }

/* ---------- Empty states ---------- */

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--c-ink-soft); }
.empty-state i { font-size: 2.5rem; margin-bottom: 1rem; display: block; color: var(--c-lime); }

/* ---------- Focus visibility ---------- */

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 767.98px) {
  .section { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }
  .hero { padding: 2.5rem 0 5rem; }
  .hero h1 { font-size: 2rem; }
  .hero .lede { font-size: 1rem; }
  .hero-actions .btn-shop-primary,
  .hero-actions .btn-outline-cream { width: 100%; text-align: center; }
  .hero-actions { flex-direction: column; }

  .accent-card, .accent-card-dark, .product-card { border-radius: 16px; }
  .checkout-summary { position: static; margin-top: 1.5rem; }

  /* Cart table becomes a stacked card layout instead of a cramped
     horizontal table -- the single biggest real mobile usability
     problem on a data table this narrow. */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr {
    border: 1px solid var(--c-line); border-radius: 14px; margin-bottom: 1rem; padding: .75rem;
  }
  .cart-table td { border: none; padding: .35rem 0; }
  .cart-table td[data-label]::before {
    content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase;
    color: var(--c-ink-soft); font-weight: 600; margin-bottom: .15rem;
  }

  .site-logo img { height: 36px; }
}

@media (max-width: 575.98px) {
  .hero-wave svg { height: 36px; }
}
