/* ================================================================
   Earth Basket Foods — Website Styles
   Design: "The Modern Showcase"
   Palette: Forest Green, Cream, Gold, Terracotta
   ================================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --forest: #1B4332;
  --forest-deep: #0F2B1E;
  --green-mid: #3A7D44;
  --green-light: #4A9D54;
  --gold: #D4A843;
  --gold-hover: #C49A35;
  --cream: #F5EFE0;
  --cream-dark: #E8DFD0;
  --terracotta: #C4622D;
  --terracotta-dark: #A0501F;
  --warm-grey: #8B7D6B;
  --text-dark: #1B4332;
  --text-light: #F5EFE0;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-height: 72px;
  --container-max: 1200px;
  --container-padding: 24px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--forest);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Section Labels & Titles --- */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.section-label--light { color: var(--gold); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--forest);
  margin-bottom: 24px;
}
.section-title--light { color: var(--cream); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--gold {
  background: var(--gold);
  color: var(--forest);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 239, 224, 0.3);
}
.btn--outline:hover {
  border-color: var(--cream);
  background: rgba(245, 239, 224, 0.08);
}

.btn--full { width: 100%; text-align: center; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  background: rgba(15, 43, 30, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.5px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(245, 239, 224, 0.75);
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.nav__links a:hover { color: var(--cream); }

.nav__cta {
  background: var(--gold) !important;
  color: var(--forest) !important;
  padding: 10px 24px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.3s ease, transform 0.3s ease !important;
}
.nav__cta:hover {
  background: var(--gold-hover) !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero__content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--container-padding);
  align-items: center;
  padding-top: var(--nav-height);
}

.hero__text {
  padding-right: 60px;
}

.hero__logo {
  max-width: 420px;
  margin-bottom: 24px;
  /* Invert colors for dark background - make text cream instead of dark green */
  filter: brightness(0) invert(0.96) sepia(0.1) saturate(0.3) hue-rotate(20deg);
}

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(245, 239, 224, 0.7);
  margin-bottom: 36px;
  max-width: 440px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 0;
}

.hero__photo {
  width: 100%;
  max-width: 450px;
  max-height: 75vh;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 32px;
}

.hero__scroll span {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 239, 224, 0.35);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ================================================================
   ABOUT
   ================================================================ */
.about {
  background: var(--cream);
  padding: 120px 0;
  text-align: center;
}

.about__text {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--warm-grey);
  max-width: 720px;
  margin: 0 auto 60px;
}

.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.stat__label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--warm-grey);
}

.stat__divider {
  width: 1px;
  height: 48px;
  background: var(--cream-dark);
}

/* ================================================================
   PRODUCE
   ================================================================ */
.produce {
  background: var(--forest);
  padding: 120px 0;
}

.produce__intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(245, 239, 224, 0.6);
  max-width: 640px;
  margin-bottom: 60px;
}

/* Flagship product card */
.product-card--flagship {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--forest-deep);
  border: 1px solid rgba(245, 239, 224, 0.08);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  transition: border-color 0.3s ease;
}
.product-card--flagship:hover { border-color: rgba(212, 168, 67, 0.3); }

.product-card__image { overflow: hidden; }
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card--grid .product-card__image {
  height: 220px;
}

.product-card--grid .product-card__image img {
  height: 220px;
}

.product-card__content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.product-card__content h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 16px;
}

.product-card__content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(245, 239, 224, 0.65);
  margin-bottom: 20px;
}

.product-card__details {
  list-style: none;
}
.product-card__details li {
  font-size: 0.85rem;
  color: rgba(245, 239, 224, 0.5);
  padding: 6px 0;
  border-top: 1px solid rgba(245, 239, 224, 0.06);
}
.product-card__details li strong {
  color: rgba(245, 239, 224, 0.75);
  font-weight: 600;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.product-card--grid {
  background: var(--forest-deep);
  border: 1px solid rgba(245, 239, 224, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.product-card--grid:hover {
  border-color: rgba(212, 168, 67, 0.25);
  transform: translateY(-4px);
}

.product-card--grid .product-card__content {
  padding: 28px;
}

.product-card--grid .product-card__content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-card--grid .product-card__content p {
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.product-card__season {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--gold);
  opacity: 0.8;
}

/* Produce CTA */
.produce__cta {
  text-align: center;
  padding: 48px;
  border: 1px dashed rgba(212, 168, 67, 0.3);
  border-radius: 16px;
}

.produce__cta p {
  font-size: 1rem;
  color: rgba(245, 239, 224, 0.6);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   WHY US
   ================================================================ */
.why-us {
  background: var(--terracotta);
  padding: 120px 0;
}

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

.feature {
  padding: 8px 0;
}

.feature__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}
.feature__icon svg { width: 100%; height: 100%; }

.feature h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.feature p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(245, 239, 224, 0.8);
}

/* ================================================================
   STANDARDS
   ================================================================ */
.standards {
  background: var(--cream);
  padding: 120px 0;
  text-align: center;
}

.standards__intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--warm-grey);
  max-width: 600px;
  margin: 0 auto 60px;
}

.certs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.cert {
  padding: 32px 20px;
  border-radius: 12px;
  border: 1px solid var(--cream-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.cert:hover {
  border-color: var(--green-mid);
  box-shadow: 0 8px 30px rgba(27, 67, 50, 0.08);
}

.cert__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}
.cert__icon svg { width: 100%; height: 100%; }

.cert h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 8px;
}

.cert p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--warm-grey);
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact {
  background: var(--forest);
  padding: 120px 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(245, 239, 224, 0.6);
  margin-bottom: 40px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__detail-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.contact__detail span,
.contact__detail a {
  font-size: 0.95rem;
  color: rgba(245, 239, 224, 0.8);
  transition: color 0.3s ease;
}

.contact__detail a:hover { color: var(--gold); }

/* Contact form */
.contact__form-wrapper {
  background: var(--forest-deep);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(245, 239, 224, 0.06);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(245, 239, 224, 0.5);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--cream);
  background: rgba(245, 239, 224, 0.04);
  border: 1px solid rgba(245, 239, 224, 0.1);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(245, 239, 224, 0.25);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(245, 239, 224, 0.06);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--forest-deep);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(245, 239, 224, 0.06);
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(245, 239, 224, 0.06);
  margin-bottom: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__logo {
  width: 32px;
  height: 32px;
}

.footer__tagline {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(245, 239, 224, 0.4);
}

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__links a {
  font-size: 0.82rem;
  color: rgba(245, 239, 224, 0.45);
  transition: color 0.3s ease;
}
.footer__links a:hover { color: var(--cream); }

.footer__bottom p {
  font-size: 0.75rem;
  color: rgba(245, 239, 224, 0.25);
  text-align: center;
}

/* ================================================================
   ANIMATIONS (scroll reveal)
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero__text { padding: 80px 0 40px; padding-right: 0; }
  .hero__logo { margin: 0 auto 24px; }
  .hero__subtitle { margin: 0 auto 36px; }
  .hero__actions { justify-content: center; }
  .hero__image { display: none; }
  .hero__scroll { display: none; }

  .features { grid-template-columns: 1fr; gap: 40px; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .certs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --nav-height: 64px;
  }

  /* Mobile nav */
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: rgba(15, 43, 30, 0.98);
    backdrop-filter: blur(16px);
    padding: 40px var(--container-padding);
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a {
    font-size: 1.1rem;
    color: var(--cream) !important;
  }
  .nav__cta {
    text-align: center !important;
    margin-top: 16px;
  }

  .about, .produce, .why-us, .standards, .contact { padding: 80px 0; }

  .product-card--flagship {
    grid-template-columns: 1fr;
  }
  .product-card__content { padding: 32px 24px; }

  .product-grid { grid-template-columns: 1fr; }

  .stats { gap: 32px; }
  .stat__divider { display: none; }

  .certs { grid-template-columns: 1fr; }

  .footer__content { flex-direction: column; gap: 24px; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }
  .contact__form-wrapper { padding: 28px 20px; }
}
