/* pages.css — marketing + content surfaces (home, menu, drops, blog, about,
   impact, help, legal). Extends base.css. */

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--forest), var(--pine-deep) 70%); color: #eaf5ee; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #cfe7d8; max-width: 46ch; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(120% 100% at 60% 20%, rgba(233,210,154,.24), transparent 60%); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(201,154,63,.28), transparent 65%); top: -120px; right: -120px; pointer-events: none; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 380px; margin: 0 auto; } }

/* seasonal ribbon */
.season-ribbon { background: var(--maple); color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; font-size: .94rem; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.season-ribbon a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* ---------- section headers ---------- */
.sec-head { max-width: 620px; margin-bottom: 40px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- pillars (menu cards) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: #fff; isolation: isolate; }
.pillar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(6,48,31,.82)); z-index: -1; }
.pillar img, .pillar .pillar-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease); }
.pillar:hover img, .pillar:hover .pillar-bg { transform: scale(1.05); }
.pillar h3 { color: #fff; margin-bottom: 4px; }
.pillar p { color: #dce9df; font-size: .95rem; margin: 0 0 14px; }
@media (max-width: 780px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 240px; } }

/* ---------- feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5/4; background: var(--sage-soft); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.rev .split-media { order: 0; } }

/* builder teaser (live mini) */
.teaser-cup { display: flex; align-items: center; justify-content: center; min-height: 340px; background: radial-gradient(120% 100% at 50% 10%, var(--sage-soft), var(--cream)); border-radius: var(--radius-lg); }

/* ---------- stat callouts ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: left; }
.stat .num { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1; color: var(--pine); }
.band-forest .stat .num { color: var(--gold-soft); }
.stat .lbl { font-size: .92rem; color: var(--ink-soft); margin-top: 8px; }
.band-forest .stat .lbl { color: #b9cabb; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- rewards steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--linen); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; right: 24px; font-family: var(--display); font-size: 2.4rem; color: var(--sage); font-weight: 600; }
.step h3 { font-size: 1.2rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: var(--linen); border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .p-img { aspect-ratio: 16/10; overflow: hidden; background: var(--sage-soft); }
.post-card .p-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .p-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .p-cat { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--maple); margin-bottom: 8px; }
.post-card h3 { font-size: 1.24rem; margin-bottom: 8px; }
.post-card p { font-size: .93rem; color: var(--ink-soft); margin-bottom: 14px; }
.post-card .p-meta { margin-top: auto; font-size: .84rem; color: var(--ink-mute); }
@media (max-width: 860px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.article { max-width: 720px; margin: 0 auto; }
.article .kicker { color: var(--maple); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.article h1 { margin: 10px 0 14px; }
.article .byline { color: var(--ink-mute); font-size: .92rem; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--hairline); }
.article-body { font-size: 1.12rem; line-height: 1.75; }
.article-body h2 { font-size: 1.7rem; margin: 42px 0 14px; }
.article-body h3 { font-size: 1.3rem; margin: 32px 0 10px; }
.article-body p { margin-bottom: 1.2em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote { border-left: 3px solid var(--pine); padding: 6px 0 6px 22px; margin: 26px 0; font-family: var(--display); font-size: 1.4rem; line-height: 1.4; color: var(--ink); font-style: italic; }
.article-body img { border-radius: var(--radius); margin: 26px 0; box-shadow: var(--shadow); }
.article-body a { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }
.article-body code { background: var(--cream-deep); padding: 2px 6px; border-radius: 5px; font-size: .9em; }

/* ---------- FAQ / accordion ---------- */
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 22px 40px 22px 0; font-family: var(--display); font-size: 1.2rem; font-weight: 500; color: var(--ink); cursor: pointer; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--pine); transition: transform .2s; }
.faq-q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a .inner { padding: 0 0 22px; color: var(--ink-soft); max-width: 68ch; }

/* ---------- generic content grid (help topics) ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic { background: var(--linen); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; transition: border-color .2s, transform .2s; display: block; }
.topic:hover { border-color: var(--pine); transform: translateY(-3px); }
.topic .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--sage-soft); display: flex; align-items: center; justify-content: center; color: var(--pine); margin-bottom: 14px; }
.topic h3 { font-size: 1.1rem; margin-bottom: 6px; }
.topic p { font-size: .9rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .topic-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin: 0 auto 16px; }
.cta-band .btn { margin-top: 8px; }

/* countdown */
.countdown { display: flex; gap: 14px; justify-content: center; margin: 24px 0; }
.cd-unit { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 14px 18px; min-width: 82px; text-align: center; }
.cd-unit .n { font-family: var(--display); font-size: 2.4rem; font-weight: 600; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.cd-unit .u { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin-top: 6px; }

/* page hero (content pages) */
.page-hero { padding: clamp(48px, 7vw, 92px) 0 clamp(30px, 4vw, 48px); }
.page-hero h1 { max-width: 18ch; }
.page-hero p { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }

/* ---------- rewards dashboard ---------- */
.rw-card { background: linear-gradient(135deg, var(--pine), var(--forest)); color: #eaf5ee; border-radius: var(--radius-lg); padding: 28px 30px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.rw-card .rw-glow { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(201,154,63,.35), transparent 65%); }
.rw-card .rw-tier { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.rw-card .rw-balance { font-family: var(--display); font-size: 3.4rem; line-height: 1; margin: 6px 0 2px; color: #fff; }
.rw-card .rw-star { color: var(--star); }
.rw-progress { margin-top: 20px; }
.rw-bar { height: 10px; background: rgba(255,255,255,.16); border-radius: 6px; overflow: hidden; margin: 8px 0; }
.rw-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); border-radius: 6px; transition: width .8s var(--ease); }
.rw-meta { font-size: .88rem; color: #cfe7d8; display: flex; justify-content: space-between; }

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier { border: 1.5px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; background: var(--linen); position: relative; }
.tier.active { border-color: var(--pine); box-shadow: 0 0 0 1px var(--pine) inset; }
.tier .t-badge { position: absolute; top: 18px; right: 20px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pine); background: var(--sage-soft); padding: .2rem .6rem; border-radius: 8px; }
.tier h3 { font-size: 1.3rem; margin-bottom: 2px; }
.tier .t-req { color: var(--maple); font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.tier ul { list-style: none; padding: 0; margin: 0; }
.tier li { padding: 6px 0 6px 24px; position: relative; font-size: .92rem; color: var(--ink-soft); }
.tier li::before { content: "★"; position: absolute; left: 0; color: var(--star); }
@media (max-width: 780px) { .tier-grid { grid-template-columns: 1fr; } }

.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reward { border: 1.5px solid var(--hairline); border-radius: var(--radius); padding: 18px; background: var(--linen); display: flex; flex-direction: column; gap: 4px; }
.reward .r-stars { font-family: var(--display); font-size: 1.5rem; color: var(--pine); font-weight: 600; }
.reward .r-name { font-weight: 600; font-size: .96rem; }
.reward .r-cap { font-size: .82rem; color: var(--ink-mute); }
.reward button { margin-top: 10px; }
.reward.locked { opacity: .62; }
@media (max-width: 760px) { .catalog { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .catalog { grid-template-columns: 1fr; } }

.ledger { border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.ledger-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--hairline-soft); background: var(--linen); font-size: .94rem; }
.ledger-row:last-child { border-bottom: none; }
.ledger-row .l-when { font-size: .8rem; color: var(--ink-mute); }
.ledger-row .l-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.ledger-row .l-amt.pos { color: var(--pine); }
.ledger-row .l-amt.neg { color: var(--maple); }

/* ---------- store locator ---------- */
.locator { display: grid; grid-template-columns: 380px 1fr; gap: 0; border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; min-height: 560px; }
.loc-list { border-right: 1px solid var(--hairline); display: flex; flex-direction: column; background: var(--linen); }
.loc-search { padding: 16px; border-bottom: 1px solid var(--hairline); }
.loc-search input { width: 100%; border: 1.5px solid var(--hairline); border-radius: var(--radius-pill); padding: .7rem 1rem; font-family: var(--sans); font-size: .95rem; }
.loc-search input:focus { outline: none; border-color: var(--pine); }
.loc-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.loc-scroll { overflow-y: auto; flex: 1; }
.loc-item { padding: 16px 18px; border-bottom: 1px solid var(--hairline-soft); cursor: pointer; transition: background .15s; }
.loc-item:hover, .loc-item.active { background: var(--sage-soft); }
.loc-item h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 3px; display: flex; justify-content: space-between; }
.loc-item .dist { color: var(--ink-mute); font-weight: 500; font-size: .84rem; }
.loc-item .addr { font-size: .88rem; color: var(--ink-soft); margin-bottom: 6px; }
.loc-item .chips { display: flex; gap: 5px; flex-wrap: wrap; }
.loc-map { position: relative; background: var(--sage-soft); overflow: hidden; }
.loc-map svg { width: 100%; height: 100%; display: block; }
.map-pin { cursor: pointer; transition: transform .2s var(--ease); transform-origin: center bottom; }
.map-pin:hover, .map-pin.active { transform: scale(1.25); }
@media (max-width: 820px) { .locator { grid-template-columns: 1fr; } .loc-map { min-height: 280px; order: -1; } .loc-list { border-right: none; border-top: 1px solid var(--hairline); } }

@media (max-width: 720px) { .dash-grid { grid-template-columns: 1fr !important; } }
