/*
Theme Name: Double P Farms
Theme URI: https://doublepfarms.com
Author: Logic Web Media
Author URI: https://logicwebmedia.com
Description: Custom WordPress theme for Double P Farms & Microgreens of Long Island — converted from Lovable. SEO-optimized, fully responsive, call-to-order design.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: double-p-farms
Tags: custom, microgreens, local-business, seo
*/

/* =============================
   DESIGN TOKENS
   ============================= */
:root {
  --primary: #3a7d44;
  --primary-dark: #2d6234;
  --primary-light: #eef6f0;
  --cream: #f5f0e8;
  --foreground: #1a1a1a;
  --muted: #555e58;
  --border: #e2ddd4;
  --card: #ffffff;
  --topbar-bg: #2d6234;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.09), 0 2px 4px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 40px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.07);
  --max-width: 1280px;
}

/* =============================
   RESET & BASE
   ============================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--foreground);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; }
ul { list-style: none; }

/* =============================
   UTILITIES
   ============================= */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  transition: all .2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* =============================
   TOP ANNOUNCEMENT BAR
   ============================= */
.top-bar {
  background: var(--topbar-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 0;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-msg { letter-spacing: 0.01em; }
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-bar-right a {
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  transition: color .15s;
}
.top-bar-right a:hover { color: #fff; }

/* =============================
   HEADER / NAV
   ============================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 44px; width: auto; }
.site-logo .logo-text { font-family: var(--font-display); font-size: 18px; color: var(--foreground); line-height: 1.2; }
.site-logo .logo-sub { font-size: 11px; color: var(--muted); font-family: var(--font-body); letter-spacing: 0.05em; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all .15s;
}
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: var(--primary-light); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  font-size: 15px;
  font-weight: 700;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-phone:hover { color: var(--primary); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: all .25s;
  border-radius: 2px;
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 200;
  overflow-y: auto;
  padding: 0;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 72px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-nav-logo { display: flex; align-items: center; gap: 10px; }
.mobile-nav-logo img { height: 38px; width: auto; }
.mobile-nav-logo span { font-family: var(--font-display); font-size: 16px; color: var(--foreground); }
.mobile-nav-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--foreground);
  flex-shrink: 0;
}
.mobile-nav-links {
  flex: 1;
  padding: 8px 0;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--primary); background: var(--primary-light); }
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  font-size: 17px;
  border-radius: 10px;
  text-align: center;
}

@media (max-width: 900px) {
  .site-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
}

/* =============================
   HERO
   ============================= */
.hero {
  background: var(--cream);
  padding: 80px 0 64px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { max-width: 560px; }
.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--foreground);
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero-content p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  display: block;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Hero Google badge */
.hero-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
}
.hero-google-badge:hover { box-shadow: var(--shadow-md); }
.hero-stars { color: #f59e0b; font-size: 14px; letter-spacing: 1px; }
.hero-badge-text strong { color: var(--foreground); }
.hero-badge-text { color: var(--muted); }

/* Trust bar */
.trust-bar {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.trust-item .trust-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--foreground);
  display: block;
}
.trust-item .trust-sub {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}

/* Scrolling product preview strip */
.product-strip {
  overflow: hidden;
  background: var(--primary-light);
  padding: 12px 0;
}
.product-strip-track {
  display: flex;
  gap: 12px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
/* hover pause removed per client request */
.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.strip-item img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.strip-item span { font-size: 13px; font-weight: 500; color: var(--foreground); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =============================
   SECTIONS — COMMON
   ============================= */
.section { padding: 80px 0; }
.section-cream { background: var(--cream); }
.section-white { background: #fff; }
.section-dark { background: var(--foreground); color: #fff; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: inherit; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--muted); max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* =============================
   PRODUCT GRID
   ============================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--primary-light);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-body { padding: 20px; }
.product-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}
.product-card-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.product-card-body p { font-size: 14px; color: var(--muted); min-height: 40px; margin-bottom: 16px; }
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.product-price { font-size: 13px; font-weight: 600; color: var(--primary-dark); }
.product-call {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  transition: color .15s;
}
.product-call:hover { color: var(--primary); }

/* =============================
   GOOGLE REVIEWS CAROUSEL
   ============================= */
.reviews-section { background: var(--cream); }
.reviews-track-wrap { overflow: hidden; position: relative; }
.reviews-track {
  display: flex;
  gap: 20px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
/* hover pause removed per client request */
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 320px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.review-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.review-meta .review-name { font-weight: 600; font-size: 14px; }
.review-meta .review-source { font-size: 12px; color: var(--muted); }
.review-stars { color: #fbbc04; font-size: 13px; letter-spacing: 1px; margin-bottom: 10px; }
.review-card blockquote { font-size: 14px; color: var(--muted); line-height: 1.65; font-style: italic; }

/* Static review card (no carousel) */
.review-card--static {
  animation: none !important;
  width: auto !important;
  flex-shrink: unset;
}

/* Google badge */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}
.google-dots span { font-weight: 700; }
.google-dots .g-blue  { color: #4285F4; }
.google-dots .g-red   { color: #EA4335; }
.google-dots .g-yellow{ color: #FBBC05; }
.google-dots .g-green { color: #34A853; }

/* =============================
   ABOUT SECTION
   ============================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-content h2 { font-size: clamp(1.8rem, 2.5vw, 2.4rem); margin-bottom: 20px; }
.about-content p { font-size: 16px; color: var(--muted); line-height: 1.75; }

/* =============================
   WHY CARDS
   ============================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.why-card:hover { box-shadow: var(--shadow-md); }
.why-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
  font-size: 22px;
}
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* =============================
   CTA BANNER
   ============================= */
.cta-banner {
  background: var(--primary);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; margin-bottom: 16px; }
.cta-banner p { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-white {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
}
.cta-banner .btn-white:hover { background: var(--cream); transform: translateY(-1px); }

/* =============================
   FOOTER
   ============================= */
.site-footer {
  background: var(--foreground);
  color: rgba(255,255,255,.75);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .footer-logo { font-family: var(--font-display); font-size: 22px; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* =============================
   PAGE TEMPLATES
   ============================= */

/* About page */
.page-about-hero { background: var(--cream); padding: 72px 0; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.page-hero-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.page-hero-img.full-height { aspect-ratio: unset; height: 100%; min-height: 500px; }
.page-hero-img.full-height img { aspect-ratio: unset; height: 100%; object-position: top; }
.page-hero-content h1 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 20px; }
.page-hero-content p { font-size: 16px; color: var(--muted); line-height: 1.75; }

/* Shop page */
.shop-header { background: var(--cream); padding: 64px 0; text-align: center; border-bottom: 1px solid var(--border); }
.shop-header h1 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 16px; }
.shop-header p { font-size: 17px; color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* What Are Microgreens page */
.wam-features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wam-feature {
  display: flex;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.wam-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 20px;
}
.wam-feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.wam-feature p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* Events page */
.event-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: box-shadow .2s;
}
.event-card:hover { box-shadow: var(--shadow-md); }
.event-date { font-size: 12px; font-weight: 600; color: var(--primary); letter-spacing: 0.15em; text-transform: uppercase; }
.event-name { font-size: 1.25rem; font-family: var(--font-display); color: var(--foreground); }
.event-location { font-size: 14px; color: var(--muted); }

/* =============================
   SEO SCHEMA BLOCK (hidden)
   ============================= */
.schema-block { display: none; }

/* =============================
   TESTIMONIALS GRID
   ============================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  /* Layout */
  .hero { padding: 48px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-image { display: none; } /* hide on mobile — text first */
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 16px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid .about-img { order: -1; aspect-ratio: 16/9; }

  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-img { max-height: 280px; }
  .page-hero-img img { aspect-ratio: 16/9 !important; object-fit: cover; }
  .page-hero-img.full-height { min-height: 280px; max-height: 360px; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Why cards */
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Reviews carousel */
  .review-card { width: 280px; }

  /* Trust bar */
  .trust-bar-inner { flex-wrap: wrap; }
  .trust-item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 1.7rem; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }

  /* CTA banner */
  .cta-banner { padding: 48px 0; }
  .cta-banner h2 { font-size: 1.6rem; }

  /* WAM features */
  .wam-features { grid-template-columns: 1fr; }

  /* Events */
  .event-card { flex-direction: column; }

  /* Shop header */
  .shop-header { padding: 48px 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .trust-item { min-width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border-bottom: none; }
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; width: 100%; }
  .cta-banner .btn { width: 100%; justify-content: center; }
  .review-card { width: 260px; }
  /* Product strip hidden on very small */
  .product-strip { display: none; }
}
