/* GrocerySnip — savings-green + deep-navy palette */
:root {
  --navy: #0e2240;
  --navy-2: #16315a;
  --green: #1f9d55;
  --green-2: #14784a;
  --green-soft: #e6f6ee;
  --gold: #f5b400;
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #1a2233;
  --muted: #5a6478;
  --line: #e3e7ef;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(14,34,64,.06), 0 8px 24px rgba(14,34,64,.06);
  --max: 1180px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--green-2); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.site-header { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; background: var(--green); border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: #fff; }
.logo-text { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.main-nav { margin-left: auto; display: flex; gap: 22px; }
.main-nav a { color: #d6dcea; font-weight: 500; }
.main-nav a:hover { color: #fff; text-decoration: none; }
.header-cta { background: var(--green); color: #fff !important; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.header-cta:hover { background: var(--green-2); text-decoration: none; }
.store-strip { background: var(--navy-2); }
.store-strip-inner { display: flex; gap: 8px; padding: 10px 20px; overflow-x: auto; }
.store-pill { color: #cfd6e6 !important; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
.store-pill:hover { background: rgba(255,255,255,.07); color: #fff !important; text-decoration: none; }

/* Layout */
.site-main { padding: 28px 0 60px; }
.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

/* Breadcrumbs */
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }

/* Hero */
.hero { position: relative; border-radius: 16px; overflow: hidden; background: var(--navy); color: #fff; margin-bottom: 32px; }
.hero-img { position: absolute; inset: 0; opacity: .35; object-fit: cover; width: 100%; height: 100%; }
.hero-inner { position: relative; padding: 56px 40px; max-width: 720px; }
.hero h1 { font-size: 44px; line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.02em; font-weight: 800; }
.hero p { font-size: 18px; color: #d6dcea; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--green); color: #fff !important; padding: 12px 20px; border-radius: 8px; font-weight: 600; border: 0; cursor: pointer; }
.btn:hover { background: var(--green-2); text-decoration: none; }
.btn-secondary { background: rgba(255,255,255,.12); }
.btn-secondary:hover { background: rgba(255,255,255,.18); }

/* Sections */
section.block { margin-bottom: 36px; }
h1, h2, h3 { color: var(--navy); letter-spacing: -0.01em; }
h2.section-title { font-size: 24px; margin: 0 0 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 22px; }
.section-head a { font-size: 14px; font-weight: 600; }

/* Cards / grids */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 800px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.deal-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: transform .12s, box-shadow .12s; }
.deal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.deal-store { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green-2); }
.deal-title { font-size: 16px; font-weight: 700; color: var(--navy); margin: 0; }
.deal-desc { font-size: 13px; color: var(--muted); margin: 0; }
.deal-meta { display: flex; gap: 10px; font-size: 12px; color: var(--muted); margin-top: auto; }
.deal-discount { display: inline-block; background: var(--green-soft); color: var(--green-2); font-weight: 700; padding: 4px 10px; border-radius: 999px; font-size: 12px; align-self: flex-start; }

.store-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.store-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.store-card-name { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0; }
.store-card-meta { font-size: 13px; color: var(--muted); }
.store-card-count { display: inline-block; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; align-self: flex-start; margin-top: 8px; }

.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cat-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.cat-card-name { font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.cat-card-count { font-size: 12px; color: var(--muted); }

/* Newsletter */
.newsletter-card { background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%); color: #fff; padding: 28px; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 28px; }
.newsletter-card h2 { color: #fff; margin: 0 0 6px; font-size: 22px; }
.newsletter-card p { margin: 0 0 18px; color: #e6f6ee; }
.newsletter-form { display: grid; grid-template-columns: 1fr 1fr 140px auto; gap: 8px; }
.newsletter-form input { padding: 11px 12px; border-radius: 8px; border: 0; font-size: 14px; }
.newsletter-form button { background: var(--navy); color: #fff; border: 0; padding: 11px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 14px; }
.newsletter-form button:hover { background: var(--navy-2); }
.newsletter-fineprint { font-size: 12px; color: #d3eddc; margin: 10px 0 0; }
@media (max-width: 720px) { .newsletter-form { grid-template-columns: 1fr; } }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.sidebar-card h3 { margin: 0 0 12px; font-size: 16px; color: var(--navy); }
.resource-list { list-style: none; padding: 0; margin: 0; }
.resource-list li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.resource-list li:first-child { border-top: 0; padding-top: 0; }
.cta-card { background: var(--navy); color: #fff; padding: 18px; border-radius: var(--radius); }
.cta-card h3 { color: #fff; margin: 6px 0 8px; font-size: 18px; }
.cta-card p { color: #d6dcea; font-size: 13px; margin: 0 0 12px; }
.cta-eyebrow { color: var(--gold); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.cta-btn { display: inline-block; background: var(--gold); color: var(--navy) !important; padding: 9px 14px; border-radius: 8px; font-weight: 700; font-size: 13px; }
.cta-btn:hover { background: #ffc933; text-decoration: none; }

/* Trust */
.trust-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.trust-badge { font-size: 11px; font-weight: 600; padding: 4px 10px; background: rgba(31,157,85,.12); color: var(--green-2); border-radius: 999px; }

/* Article */
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.article h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; }
.article .lede { font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.article h2 { font-size: 22px; margin: 28px 0 10px; }
.article h3 { font-size: 18px; margin: 22px 0 8px; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { margin: 0 0 14px 22px; }
.article li { margin-bottom: 6px; }

.callout { background: var(--green-soft); border-left: 4px solid var(--green); padding: 14px 16px; border-radius: 6px; margin: 18px 0; font-size: 14px; }
.callout strong { color: var(--green-2); }

/* In-content CTA strip */
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--navy); color: #fff; padding: 16px 20px; border-radius: var(--radius); margin: 22px 0; }
.inline-cta .ic-text { font-weight: 600; }
.inline-cta .ic-text small { display: block; color: #d6dcea; font-weight: 400; font-size: 12px; margin-top: 2px; }
.inline-cta a { background: var(--gold); color: var(--navy) !important; padding: 9px 14px; border-radius: 8px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.inline-cta a:hover { text-decoration: none; background: #ffc933; }

/* Footer */
.site-footer { background: var(--navy); color: #cfd6e6; padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-logo { color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.footer-tag { font-size: 13px; color: #aab4c8; margin: 0 0 8px; }
.footer-h { color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; font-size: 14px; }
.footer-links a { color: #cfd6e6; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; padding-top: 18px; font-size: 12px; color: #8b95ab; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.pagination a, .pagination span { padding: 8px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Tables */
table.app-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
table.app-table th, table.app-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.app-table th { background: #f0f3f9; color: var(--navy); font-weight: 700; }

/* Misc */
.tag { display: inline-block; background: #eef2f9; color: var(--navy-2); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; margin-right: 4px; }
.muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
