/*
Theme Name: GeneratePress Child
Theme URI: https://grocersage.com
Description: GrocerSage child theme for GeneratePress
Author: GrocerSage
Author URI: https://grocersage.com
Template: generatepress
Version: 1.0.3
Text Domain: generatepress-child
*/

/* ═══════════════════════════════════════════════════
   FONTS
   ═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,700;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ═══════════════════════════════════════════════════
   VARIABLES
   ═══════════════════════════════════════════════════ */
:root {
  --g:      #1D9E75;
  --g-dark: #0D6B4F;
  --g-light:#E1F5EE;
  --g-pale: #F0FAF6;
  --ink:    #141410;
  --ink-2:  #4a4a42;
  --ink-3:  #8a8a80;
  --rule:   #E8E4D8;
  --paper:  #FAFAF6;
  --white:  #FFFFFF;
  --serif:  'Fraunces', Georgia, serif;
  --sans:   'DM Sans', sans-serif;
}

/* ═══════════════════════════════════════════════════
   HIDE GENERATEPRESS CHROME ON HOMEPAGE
   ═══════════════════════════════════════════════════ */
.home .site-header,
.home #site-header,
.home .main-navigation,
.home #site-navigation,
.home .site-footer,
.home #colophon,
.home .navigation-branding,
.home .inside-header,
.home .inside-navigation,
.home .inside-top-bar,
.home .entry-header,
.home .entry-footer,
.home .entry-meta,
.home .page-hero-section {
  display: none !important;
}

/* ═══════════════════════════════════════════════════
   STRIP WP WRAPPERS
   ═══════════════════════════════════════════════════ */
body.home,
body.home #page,
body.home #content,
body.home #primary,
body.home #main,
body.home .site-content,
body.home .content-area,
body.home .site-main,
body.home .inside-article,
body.home .entry-content,
body.home .grid-container {
  padding:   0 !important;
  margin:    0 !important;
  max-width: 100% !important;
  width:     100% !important;
  float:     none !important;
}

body.home {
  overflow-x: visible !important;
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
}

body.home #page {
  overflow-x: clip !important;
}

/* ═══════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════ */
body.home *, body.home *::before, body.home *::after {
  box-sizing: border-box;
}
body.home h1, body.home h2, body.home h3,
body.home p, body.home ul, body.home li {
  margin: 0;
  padding: 0;
}

/* ═══════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════ */
body.home nav.gs-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 64px;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  box-sizing: border-box !important;
}

body.home .nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
body.home .nav-leaf {
  width: 32px; height: 32px; background: var(--g); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
body.home .nav-name {
  font-family: var(--serif); font-size: 18px; font-weight: 400;
  color: var(--ink); letter-spacing: -0.02em;
}
body.home .nav-links {
  display: flex; align-items: center; gap: 2rem;
}
body.home .nav-links a {
  font-size: 14px; color: var(--ink-2); text-decoration: none; font-weight: 400;
}
body.home .nav-links a:hover { color: var(--g); }
body.home .nav-cta {
  background: var(--g); color: var(--white) !important;
  padding: 8px 20px; border-radius: 99px; font-weight: 500 !important;
}
body.home .nav-cta:hover { background: var(--g-dark) !important; }

/* Admin bar offset */
.admin-bar body.home nav.gs-nav { top: 32px !important; }
#wpadminbar { z-index: 999999 !important; }
@media screen and (max-width:782px) {
  .admin-bar body.home nav.gs-nav { top: 46px !important; }
}
@media(max-width:640px) {
  body.home .nav-links { gap: 1rem; }
  body.home .nav-links a:not(.nav-cta) { display: none; }
  body.home .nav-links a.nav-cta { display: flex; }
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
body.home .gs-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 120px clamp(1.5rem, 6vw, 6rem) 6rem;
  position: relative;
  background: var(--white);
  width: 100%;
}
body.home .gs-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%; height: 100%;
  background: var(--g-pale);
  z-index: 0;
  pointer-events: none;
}
body.home .hero-text { position: relative; z-index: 1; }
body.home .hero-visual {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: center;
}
body.home .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--g); margin-bottom: 1.5rem;
}
body.home .hero-eyebrow::before {
  content: ''; width: 20px; height: 1px; background: var(--g);
}
body.home .gs-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 300; line-height: 1.12;
  letter-spacing: -0.03em; color: var(--ink); margin-bottom: 1.5rem;
}
body.home .gs-hero h1 em { font-style: italic; color: var(--g); }
body.home .hero-sub {
  font-size: clamp(1rem,1.5vw,1.1rem); color: var(--ink-2);
  max-width: 480px; line-height: 1.75; margin-bottom: 2.5rem; font-weight: 300;
}
body.home .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

body.home .phone-mockup {
  width: 240px;
  background: var(--ink);
  border-radius: 36px; padding: 10px;
  box-shadow: 0 32px 80px rgba(20,20,16,.18);
  animation: gsFloat 5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes gsFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
body.home .phone-inner { background: var(--paper); border-radius: 28px; overflow: hidden; }
body.home .phone-bar {
  height: 26px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
body.home .phone-notch {
  width: 64px; height: 7px; border-radius: 99px; background: #333;
}
body.home .phone-content { padding: 16px 14px; }
body.home .pc-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
body.home .pc-title { font-size: 14px; font-weight: 600; color: var(--ink); }
body.home .pc-date  { font-size: 11px; color: var(--ink-3); }
body.home .pc-progress {
  background: #E8E4D8; height: 4px; border-radius: 99px;
  margin-bottom: 14px; overflow: hidden;
}
body.home .pc-progress-fill {
  height: 100%; width: 68%; background: var(--g); border-radius: 99px;
}
body.home .pc-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 7px; margin-bottom: 5px;
  background: var(--white); border: 1px solid var(--rule);
}
body.home .pc-item.checked { opacity: .45; }
body.home .pc-check {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--rule); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: var(--white);
}
body.home .pc-check.done { background: var(--g); border-color: var(--g); }
body.home .pc-item-name { flex: 1; font-size: 11px; color: var(--ink); }
body.home .pc-item-name.cross { text-decoration: line-through; color: var(--ink-3); }
body.home .pc-qty { font-size: 10px; color: var(--ink-3); }
body.home .pc-alert {
  background: var(--g-light); border-radius: 7px; padding: 7px 9px;
  margin-top: 8px; font-size: 10px; color: var(--g-dark);
}

@media(max-width:800px) {
  body.home .gs-hero {
    grid-template-columns: 1fr; padding-top: 100px; gap: 2rem;
  }
  body.home .gs-hero::after { display: none; }
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
body.home .btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--g); color: var(--white);
  padding: 14px 28px; border-radius: 99px;
  font-size: 14px; font-weight: 500; font-family: var(--sans);
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
body.home .btn-primary:hover { background: var(--g-dark); transform: translateY(-1px); color: var(--white); }
body.home .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink-2);
  padding: 14px 28px; border-radius: 99px;
  font-size: 14px; font-weight: 400; font-family: var(--sans);
  text-decoration: none; border: 1px solid var(--rule); cursor: pointer;
  transition: border-color .2s, color .2s;
}
body.home .btn-ghost:hover { border-color: var(--g); color: var(--g); }

/* ═══════════════════════════════════════════════════
   TICKER
   ═══════════════════════════════════════════════════ */
body.home .gs-ticker {
  background: var(--g); overflow: hidden; padding: 11px 0;
  white-space: nowrap; width: 100%;
}
body.home .ticker-track {
  display: inline-flex;
  animation: gsTicker 28s linear infinite;
}
@keyframes gsTicker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
body.home .ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 20px; font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--white);
  white-space: nowrap;
}
body.home .ticker-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.4); flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════ */
body.home .gs-section {
  padding: clamp(4rem,8vw,7rem) clamp(1.5rem,6vw,6rem);
  width: 100%;
}
body.home .gs-section.bg-paper { background: var(--paper); }
body.home .gs-section.bg-pale  { background: var(--g-pale); }
body.home .gs-section.bg-dark  { background: var(--ink); }

body.home .section-label {
  font-size: 11px; font-weight: 500; letter-spacing: .15em;
  text-transform: uppercase; color: var(--g); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}
body.home .section-label::before { content:''; width:20px; height:1px; background:var(--g); }
body.home .gs-section.bg-dark .section-label { color: var(--g); }

body.home h2 {
  font-family: var(--serif);
  font-size: clamp(2rem,3.5vw,3rem);
  font-weight: 300; line-height: 1.15;
  letter-spacing: -0.025em; color: var(--ink); margin-bottom: 1.25rem;
}
body.home h2 em { font-style: italic; color: var(--g); }
body.home .gs-section.bg-dark h2 { color: var(--white); }

body.home .lead {
  font-size: clamp(.95rem,1.3vw,1.05rem);
  color: var(--ink-2); line-height: 1.8; font-weight: 300; max-width: 560px;
}
body.home .gs-section.bg-dark .lead { color: #8a8a80; }

/* ═══════════════════════════════════════════════════
   STORY GRID + STATS
   ═══════════════════════════════════════════════════ */
body.home .story-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem,6vw,6rem); align-items: center;
}
@media(max-width:720px) {
  body.home .story-grid { grid-template-columns: 1fr; }
}

body.home .stat-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 12px;
  overflow: hidden; margin-bottom: 1rem;
}
body.home .stat-cell { background: var(--white); padding: 1.5rem; }
body.home .stat-n {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 300;
  color: var(--ink); line-height: 1; margin-bottom: .4rem;
}
body.home .stat-n.green { color: var(--g); }
body.home .stat-l { font-size: 12px; color: var(--ink-3); line-height: 1.4; }

/* ═══════════════════════════════════════════════════
   FEATURES GRID
   ═══════════════════════════════════════════════════ */
body.home .features-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}
@media(max-width:900px) {
  body.home .features-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:560px) {
  body.home .features-grid { grid-template-columns: 1fr; }
}
body.home .feature-card {
  border: 1px solid var(--rule); border-radius: 12px;
  padding: 1.5rem; background: var(--white);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
body.home .feature-card::before {
  content:''; position:absolute; top:0; left:0;
  width:3px; height:100%; background:var(--g);
  transform:scaleY(0); transition:transform .3s; transform-origin:bottom;
}
body.home .feature-card:hover {
  border-color: var(--g); transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(29,158,117,.1);
}
body.home .feature-card:hover::before { transform: scaleY(1); }
body.home .fc-icon {
  width:40px; height:40px; border-radius:10px; background:var(--g-pale);
  display:flex; align-items:center; justify-content:center;
  font-size:18px; margin-bottom:1rem;
}
body.home .fc-title { font-size:14px; font-weight:500; color:var(--ink); margin-bottom:.4rem; }
body.home .fc-body  { font-size:13px; color:var(--ink-2); line-height:1.6; }

/* ═══════════════════════════════════════════════════
   PRICE TRAP
   ═══════════════════════════════════════════════════ */
body.home .price-trap {
  background: var(--ink);
  padding: clamp(4rem,8vw,7rem) clamp(1.5rem,6vw,6rem);
  width: 100%;
}
body.home .price-trap .section-label { color: var(--g); }
body.home .price-trap h2 { color: var(--white); }
body.home .price-trap .lead { color: #8a8a80; }
body.home .price-trap-inner { max-width: 1100px; margin: 0 auto; }

body.home .price-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; max-width: 520px; margin: 2.5rem 0;
}
@media(max-width:480px) {
  body.home .price-cards { grid-template-columns: 1fr; }
}
body.home .price-card {
  border-radius: 12px; padding: 1.25rem; border: 1px solid #2a2a20;
}
body.home .price-card.winner { border-color: var(--g); background: #0a2018; }
body.home .price-card.loser  { background: #1a1a14; }
body.home .pc-store {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem;
}
body.home .price-card.winner .pc-store { color: #5DCAA5; }
body.home .price-card.loser  .pc-store { color: #6a6a60; }
body.home .pc-receipt-price { font-size: 11px; margin-bottom: 4px; }
body.home .price-card.winner .pc-receipt-price { color: #5DCAA5; }
body.home .price-card.loser  .pc-receipt-price { color: #6a6a60; }
body.home .pc-big {
  font-size: 2rem; font-weight: 300; font-family: var(--serif); color: var(--white);
}
body.home .pc-promo { font-size: 11px; }
body.home .price-card.winner .pc-promo { color: #5DCAA5; }
body.home .price-card.loser  .pc-promo { color: #4a4a40; }
body.home .pc-divider {
  border: none; border-top: 1px solid; margin: .75rem 0;
}
body.home .price-card.winner .pc-divider { border-color: #1D4A35; }
body.home .price-card.loser  .pc-divider { border-color: #252520; }
body.home .pc-unit-label { font-size: 10px; }
body.home .price-card.winner .pc-unit-label { color: #5DCAA5; }
body.home .price-card.loser  .pc-unit-label { color: #6a6a60; }
body.home .pc-unit-price {
  font-size: 1.6rem; font-weight: 600; font-family: var(--serif);
}
body.home .price-card.winner .pc-unit-price { color: var(--g); }
body.home .price-card.loser  .pc-unit-price { color: #E24B4A; }
body.home .price-verdict {
  background: #0a2018; border: 1px solid var(--g);
  border-radius: 10px; padding: 1rem 1.25rem;
  max-width: 520px; font-size: 14px; color: var(--white); line-height: 1.6;
}
body.home .price-verdict strong { color: var(--g); }

/* ═══════════════════════════════════════════════════
   COMMUNITY
   ═══════════════════════════════════════════════════ */
body.home .community-grid {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem; margin-top: 2.5rem;
}
@media(max-width:720px) {
  body.home .community-grid { grid-template-columns: 1fr; }
}
body.home .community-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 12px; padding: 1.25rem;
}
body.home .cc-type {
  font-size: 9px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .75rem;
  padding: 3px 8px; border-radius: 99px; display: inline-block;
}
body.home .cc-honest   { background: var(--g-light); color: var(--g-dark); }
body.home .cc-community{ background: #E6F1FB; color: #0C447C; }
body.home .cc-paid     { background: #FAEEDA; color: #633806; }
body.home .cc-text { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
body.home .cc-note { font-size: 11px; color: var(--ink-3); margin-top: .5rem; }

body.home .pull-quote {
  border-left: 2px solid var(--g); padding: 1.5rem 2rem;
  background: var(--g-pale); border-radius: 0 8px 8px 0; margin-top: 2rem;
}
body.home .pull-quote p {
  font-family: var(--serif); font-size: 1.2rem; font-style: italic;
  color: var(--g-dark); line-height: 1.5;
}
body.home .pull-quote cite {
  font-size: 12px; color: var(--ink-3); font-style: normal;
  display: block; margin-top: .5rem;
}

/* ═══════════════════════════════════════════════════
   DOWNLOAD
   ═══════════════════════════════════════════════════ */
body.home .download-section {
  background: var(--g);
  padding: clamp(5rem,10vw,8rem) clamp(1.5rem,6vw,6rem);
  text-align: center; width: 100%;
}
body.home .download-section h2 { color: var(--white); }
body.home .download-section .lead {
  color: rgba(255,255,255,.75); margin: 0 auto 2.5rem;
}
body.home .download-badges {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
body.home .badge-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--ink);
  padding: 12px 24px; border-radius: 12px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
body.home .badge-btn:hover {
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
body.home .badge-icon { font-size: 22px; }
body.home .badge-sub  { font-size: 10px; color: var(--ink-3); display: block; }
body.home .badge-name { font-size: 14px; font-weight: 500; color: var(--ink); display: block; }
body.home .download-note { font-size: 13px; color: rgba(255,255,255,.55); }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
body.home .gs-footer {
  background: var(--ink);
  padding: 3rem clamp(1.5rem,6vw,6rem);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
  width: 100%;
}
body.home .footer-logo {
  font-family: var(--serif); font-size: 18px;
  color: var(--white); font-weight: 300;
}
body.home .footer-links { display: flex; gap: 1.5rem; }
body.home .footer-links a {
  font-size: 13px; color: #5a5a50; text-decoration: none;
}
body.home .footer-links a:hover { color: var(--g); }
body.home .footer-copy { font-size: 12px; color: #3a3a32; width: 100%; }

/* ═══════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════ */
body.home .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
body.home .reveal.on { opacity: 1; transform: translateY(0); }
body.home .reveal-delay-1 { transition-delay: .1s; }
body.home .reveal-delay-2 { transition-delay: .2s; }
body.home .reveal-delay-3 { transition-delay: .3s; }

/* ── ADMIN BAR FIX ── */
#wpadminbar {
  z-index: 999999 !important;
}

html.admin-bar .gs-nav {
  top: 32px !important;
  z-index: 99998 !important;
}

html.admin-bar .gs-hero {
  padding-top: 152px !important;
}

@media screen and (max-width: 782px) {
  html.admin-bar .gs-nav {
    top: 46px !important;
  }
  html.admin-bar .gs-hero {
    padding-top: 166px !important;
  }
}
