/*
 * farm.css — Steward Farms shared design system
 * stewardfarmsmarietta.com
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #F9F6EE;
  --bg-alt:    #EFF8E6;
  --bg-green:  #E4F2D6;
  --green-dk:  #1A3D0A;
  --green-md:  #2D7A1F;
  --green-lt:  #4DB535;
  --text:      #1A2E10;
  --muted:     #567048;
  --amber:     #C8920F;
  --amber-lt:  #F5C842;
  --border:    rgba(45,122,31,0.14);
  --white:     #FFFFFF;
  --nav-h:     68px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* ─────────────────────────────────────
   NAV
───────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(249,246,238,0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
}

.nav-brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--green-dk);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--green-dk); }

.nav-cta {
  background: var(--green-md);
  color: #fff;
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover { background: var(--green-lt); }

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  margin-left: 12px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dk);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────
   TRUST BAR
───────────────────────────────────── */
.trust-bar {
  background: var(--green-dk);
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 17px 48px;
  flex-wrap: wrap;
  overflow: hidden;
}

.trust-item {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(228,242,214,0.75);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.trust-item .dot { color: var(--amber-lt); }

/* ─────────────────────────────────────
   BUTTONS
───────────────────────────────────── */
.btn-green {
  display: inline-block;
  background: var(--green-md);
  color: #fff;
  padding: 15px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-green:hover { background: var(--green-lt); }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--border);
  color: var(--green-dk);
  padding: 13px 36px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--green-md); color: var(--green-md); }

.btn-amber {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  padding: 15px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-amber:hover { opacity: 0.88; }

.btn-ghost-light {
  display: inline-block;
  border: 1px solid rgba(228,242,214,0.25);
  color: rgba(228,242,214,0.85);
  padding: 15px 36px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-ghost-light:hover { background: rgba(228,242,214,0.07); }

/* ─────────────────────────────────────
   FACEBOOK CTA
───────────────────────────────────── */
.fb-section {
  background: linear-gradient(135deg, #1877F2, #1050BB);
  padding: 80px 48px;
  text-align: center;
}

.fb-section .fb-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.5);
  object-fit: cover;
  margin: 0 auto 20px;
}

.fb-heading {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(30px, 5vw, 48px);
  color: #fff;
  margin-bottom: 10px;
}

.fb-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.fb-btn {
  display: inline-block;
  background: #fff;
  color: #1877F2;
  padding: 15px 40px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.fb-btn:hover { opacity: 0.9; }

/* ─────────────────────────────────────
   NEWSLETTER
───────────────────────────────────── */
.newsletter-section {
  background: var(--green-dk);
  padding: 80px 56px;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.newsletter-heading {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(34px, 4vw, 54px);
  color: #E4F2D6;
  line-height: 1.05;
  flex: 0 0 auto;
  max-width: 360px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
}

.newsletter-input {
  flex: 1;
  border: 1px solid rgba(228,242,214,0.2);
  background: rgba(255,255,255,0.07);
  color: #E4F2D6;
  padding: 15px 22px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.newsletter-input:focus { border-color: rgba(228,242,214,0.4); }
.newsletter-input::placeholder { color: rgba(228,242,214,0.35); }

.newsletter-btn {
  background: var(--amber);
  color: var(--green-dk);
  border: none;
  padding: 15px 28px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.newsletter-btn:hover { opacity: 0.9; }

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
footer {
  background: var(--green-dk);
  border-top: 1px solid rgba(228,242,214,0.08);
  padding: 56px 80px 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(228,242,214,0.2);
}

.footer-brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  color: #E4F2D6;
}

.footer-spacer { flex: 1; min-width: 40px; }

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(228,242,214,0.4);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(228,242,214,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: #E4F2D6; }

.footer-copy {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(228,242,214,0.08);
  font-size: 13px;
  color: rgba(228,242,214,0.25);
  text-align: center;
  line-height: 1.6;
}

/* ─────────────────────────────────────
   PAGE UTILITIES
───────────────────────────────────── */
.page-offset { padding-top: var(--nav-h); }

.section-eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}

.section-eyebrow-amber {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-eyebrow-amber::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(200,146,15,0.22);
}

/* ─────────────────────────────────────
   BREADCRUMB (SEO + UX)
───────────────────────────────────── */
.breadcrumb {
  padding: calc(var(--nav-h) + 20px) 80px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a,
.breadcrumb span {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--green-md); }
.breadcrumb .sep { color: rgba(86,112,72,0.35); }
.breadcrumb .current { color: var(--green-dk); font-weight: 500; }

/* ─────────────────────────────────────
   RESPONSIVE — TABLET (≤1024px)
───────────────────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }
  footer { padding: 48px 40px 28px; }
  .newsletter-section { padding: 64px 40px; }
  .fb-section { padding: 64px 40px; }
  .breadcrumb { padding-left: 40px; padding-right: 40px; }
  .footer-cols { gap: 36px; }
}

/* ─────────────────────────────────────
   RESPONSIVE — MOBILE (≤768px)
───────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  nav { padding: 0 20px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(249,246,238,0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 20px 20px;
    gap: 0;
    box-shadow: 0 8px 32px rgba(26,61,10,0.1);
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .nav-links li:last-child a { border-bottom: none; }

  .nav-cta { display: none; }

  .trust-bar {
    gap: 16px;
    padding: 12px 20px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .trust-bar::-webkit-scrollbar { display: none; }
  .trust-item { font-size: 11px; }

  /* Newsletter */
  .newsletter-section { padding: 56px 24px; }
  .newsletter-inner { flex-direction: column; gap: 24px; }
  .newsletter-heading { max-width: none; text-align: center; font-size: clamp(28px, 7vw, 40px); }
  .newsletter-form { flex-direction: column; }
  .newsletter-btn { width: 100%; }

  /* Footer */
  footer { padding: 44px 24px 28px; }
  .footer-inner { flex-direction: column; gap: 36px; }
  .footer-cols { flex-direction: column; gap: 28px; }
  .footer-spacer { display: none; }

  /* Facebook */
  .fb-section { padding: 56px 24px; }

  /* Breadcrumb */
  .breadcrumb { padding-left: 20px; padding-right: 20px; }

  /* Buttons */
  .btn-green, .btn-outline, .btn-amber, .btn-ghost-light {
    padding: 14px 28px;
    font-size: 13px;
  }
}

/* ─────────────────────────────────────
   RESPONSIVE — SMALL MOBILE (≤480px)
───────────────────────────────────── */
@media (max-width: 480px) {
  .nav-brand-name { display: none; }
}
