/* Fire n Grind: theme-built content pages (Client Gifts first, Sep 23 2026).
   Loaded only by templates that ask for it. Tokens come from fng-base.css.
   Header, footer and the coffee card grid come from fng-wc.css. */

.cg-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .cg-wrap { padding: 0 24px; } }

.cg-eyebrow { color: var(--fng-gold); letter-spacing: 0.18em; font-size: 11px; margin: 0 0 16px; }
.cg-h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 24px; }
.cg-lede { margin: -8px 0 24px; color: var(--fng-body); max-width: 60ch; }

.cg-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 28px;
	background: var(--fng-gold); color: var(--fng-bg); border: 1px solid var(--fng-gold);
	border-radius: var(--fng-radius);
	font: 700 14px/1 var(--fng-font-label); letter-spacing: 0.08em; text-transform: uppercase;
	cursor: pointer; transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.cg-btn:hover, .cg-btn:focus-visible { background: var(--fng-cream); border-color: var(--fng-cream); color: var(--fng-bg); }
.cg-btn:focus-visible { outline: 2px solid var(--fng-cream); outline-offset: 3px; }
.cg-btn[disabled] { opacity: 0.6; cursor: default; }
.cg-btn--full { width: 100%; }

/* Hero */
.cg-hero { padding: 48px 0 40px; }
.cg-hero__grid { display: grid; gap: 40px; align-items: center; }
.cg-hero__title { font-size: clamp(36px, 7vw, 60px); line-height: 1.08; margin: 0 0 20px; max-width: 14ch; }
.cg-hero__sub { font-size: 18px; line-height: 1.55; color: var(--fng-body); max-width: 40ch; }
.cg-hero__sub p { margin: 0 0 24px; }
.cg-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cg-hero__es { font-size: 15px; color: var(--fng-muted); font-style: italic; }

/* The label mock: shows the idea without a photo */
.cg-label { justify-self: center; display: grid; justify-items: center; gap: 14px; }
.cg-label__sticker {
	width: 240px; height: 240px; border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	padding: 28px; text-align: center;
	background: var(--fng-cream); color: var(--fng-bg);
	box-shadow: 0 0 0 6px #15110b, 0 0 0 7px var(--fng-divider-strong), 0 24px 60px rgba(0, 0, 0, 0.45);
	transform: rotate(-4deg);
}
.cg-label__brand { font-family: var(--fng-font-heading); font-size: 18px; color: var(--fng-brown); }
.cg-label__brand em { font-style: italic; }
.cg-label__for { font-family: var(--fng-font-heading); font-size: 24px; line-height: 1.15; color: var(--fng-bg); }
.cg-label__note { font-size: 13px; line-height: 1.35; color: var(--fng-brown); max-width: 18ch; }
.cg-label__from { margin-top: 4px; font: 700 10px/1 var(--fng-font-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fng-brown); }
.cg-label__spec { font: 700 11px/1.4 var(--fng-font-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fng-muted); text-align: center; }

@media (min-width: 860px) {
	.cg-hero { padding: 80px 0 64px; }
	.cg-hero__grid { grid-template-columns: 1.3fr 1fr; gap: 56px; }
	.cg-label__sticker { width: 300px; height: 300px; }
	.cg-label__for { font-size: 30px; }
}

/* Holiday line */
.cg-holiday { background: rgba(196, 153, 61, 0.1); border-top: 1px solid var(--fng-divider-strong); border-bottom: 1px solid var(--fng-divider-strong); }
.cg-holiday p { margin: 0; padding: 14px 0; font-size: 15px; color: var(--fng-cream); text-align: center; }
.cg-holiday strong { color: var(--fng-gold); font-weight: 700; }

/* Sections */
.cg-section { padding: 48px 0; border-top: 1px solid var(--fng-divider-strong); }
.cg-holiday + .cg-section { border-top: 0; }
@media (min-width: 860px) { .cg-section { padding: 72px 0; } }

/* Who it's for */
.cg-cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cg-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cg-cards { grid-template-columns: repeat(3, 1fr); } }
.cg-card { background: #15110b; border: 1px solid var(--fng-divider-strong); border-radius: var(--fng-radius); padding: 22px 20px; }
.cg-card__who { color: var(--fng-gold); margin: 0 0 10px; font-size: 11px; letter-spacing: 0.14em; }
.cg-card__title { font-size: 22px; margin: 0 0 8px; }
.cg-card__body { margin: 0; color: var(--fng-body); font-size: 15px; }
.cg-aside { margin: 24px 0 0; font-size: 15px; color: var(--fng-muted); }
.cg-aside a { text-decoration: underline; }

/* The offer */
.cg-spec { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--fng-divider-strong); }
.cg-spec > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--fng-divider-strong); }
.cg-spec dt { font: 700 12px/1.4 var(--fng-font-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fng-gold); }
.cg-spec dd { margin: 0; color: var(--fng-cream); }
@media (min-width: 700px) { .cg-spec > div { grid-template-columns: 160px 1fr; gap: 24px; align-items: baseline; } }
.cg-callout { margin-top: 28px; padding: 20px; background: #15110b; border-left: 3px solid var(--fng-gold); border-radius: var(--fng-radius); }
.cg-callout p { margin: 0 0 8px; }
.cg-callout p:last-child { margin: 0; color: var(--fng-muted); font-size: 15px; }
.cg-callout strong { color: var(--fng-cream); }

/* How it works */
.cg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.cg-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: baseline; }
.cg-num { font-family: var(--fng-font-heading); font-size: 30px; line-height: 1; color: var(--fng-gold); }
.cg-steps h3 { font-size: 20px; margin: 0 0 4px; }
.cg-steps p { margin: 0; color: var(--fng-body); }
@media (min-width: 860px) {
	.cg-steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
	.cg-steps li { grid-template-columns: 1fr; }
}

/* Coffees (card base from fng-wc.css) */
.cg-coffee__line { margin: 4px 0 4px; font-size: 13px; color: var(--fng-gold); letter-spacing: 0.02em; }
.cg-coffee__notes { margin: 0; font-size: 14px; color: var(--fng-muted); line-height: 1.45; }

/* Quote form */
.cg-quote { background: #120f0a; }
.cg-quote__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .cg-quote__grid { grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; } }
.cg-quote__intro p { color: var(--fng-body); }
.cg-quote__alt { font-size: 15px; color: var(--fng-muted); }
.cg-quote__alt a { text-decoration: underline; }

.cg-form { display: grid; gap: 16px; }
.cg-form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .cg-form__row { grid-template-columns: 1fr 1fr; } }
.cg-field { display: grid; gap: 6px; margin: 0; min-width: 0; border: 0; padding: 0; }
.cg-field > span, .cg-field legend { font: 700 12px/1.3 var(--fng-font-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fng-muted); padding: 0; }
.cg-field em { color: var(--fng-gold); font-style: normal; }
.cg-field input, .cg-field select, .cg-field textarea {
	width: 100%; min-height: 48px; padding: 12px 14px;
	background: var(--fng-bg); color: var(--fng-cream);
	border: 1px solid var(--fng-brown); border-radius: var(--fng-radius);
	font-size: 16px; line-height: 1.4;
}
.cg-field textarea { min-height: 112px; resize: vertical; }
.cg-field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fng-gold) 50%), linear-gradient(135deg, var(--fng-gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.cg-field input[type="date"] { color-scheme: dark; }
.cg-field input:focus, .cg-field select:focus, .cg-field textarea:focus { outline: none; border-color: var(--fng-gold); box-shadow: 0 0 0 1px var(--fng-gold); }
.cg-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cg-seg label { position: relative; display: block; }
.cg-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cg-seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--fng-brown); border-radius: var(--fng-radius); font: 700 13px/1 var(--fng-font-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fng-cream); cursor: pointer; }
.cg-seg input:checked + span { background: rgba(196, 153, 61, 0.12); border-color: var(--fng-gold); box-shadow: inset 0 0 0 1px var(--fng-gold); color: var(--fng-gold); }
.cg-seg input:focus-visible + span { outline: 2px solid var(--fng-cream); outline-offset: 2px; }
.cg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cg-form__msg { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--fng-radius); font-weight: 600; }
.cg-form__msg.is-ok { border: 1px solid #59b26a; color: #7fd08e; }
.cg-form__msg.is-err { border: 1px solid #e05252; color: #ff8a8a; }

/* FAQ (matches The Rotation page) */
.cg-faq { max-width: 820px; }
.cg-faq details { border-bottom: 1px solid var(--fng-divider-strong); }
.cg-faq summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 17px; font-weight: 500; color: var(--fng-cream); }
.cg-faq summary::-webkit-details-marker { display: none; }
.cg-faq summary::after { content: "+"; flex: none; font-size: 24px; line-height: 1; color: var(--fng-gold); transition: transform 150ms ease; }
.cg-faq details[open] summary::after { transform: rotate(45deg); }
.cg-faq summary:focus-visible { outline: 2px solid var(--fng-gold); outline-offset: 2px; }
.cg-faq details p { margin: 0 0 20px; max-width: 62ch; color: var(--fng-body); }

html { scroll-behavior: smooth; }
#quote { scroll-margin-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Polish after the render check (Sep 23 2026) */
.cg-hero__title { max-width: 16ch; text-wrap: balance; }
.cg-h2, .cg-card__title, .cg-steps h3 { text-wrap: balance; }
.fng-cg h2[id] { scroll-margin-top: 120px; }
.cg-steps, .cg-steps li { align-items: start; }
@media (max-width: 639px) {
	.cg-coffees { grid-template-columns: 1fr; gap: 12px; }
	.cg-coffee { display: grid; grid-template-columns: 88px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; }
	.cg-coffee .fng-shop__card-media { grid-row: 1 / span 3; margin: 0; }
	.cg-coffee .fng-shop__card-media img { width: 88px; height: 88px; object-fit: cover; }
	.cg-coffee .fng-shop__card-title { margin: 0; font-size: 20px; }
	.cg-coffee__line, .cg-coffee__notes { margin: 0; }
}

/* ---------- Homepage (Sep 23 2026, templates/page-home.php) ---------- */
.cg-btn--ghost { background: transparent; color: var(--fng-cream); border-color: var(--fng-muted); }
.cg-btn--ghost:hover, .cg-btn--ghost:focus-visible { background: transparent; color: var(--fng-gold); border-color: var(--fng-gold); }

.hm-hero {
	position: relative; overflow: hidden;
	background-color: var(--fng-bg);
	background-image: linear-gradient(90deg, rgba(15, 13, 9, 0.96) 0%, rgba(15, 13, 9, 0.86) 45%, rgba(15, 13, 9, 0.55) 100%), var(--hm-hero-img);
	background-size: cover; background-position: center;
	padding: 72px 0 64px;
}
.hm-hero__title { font-size: clamp(38px, 7.5vw, 68px); line-height: 1.06; margin: 0 0 20px; max-width: 13ch; text-wrap: balance; }
.hm-hero__sub { font-size: 18px; line-height: 1.55; color: var(--fng-body); max-width: 38ch; }
.hm-hero__sub p { margin: 0 0 12px; }
.hm-hero__sub p:last-child { margin-bottom: 28px; }
.hm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 860px) { .hm-hero { padding: 120px 0 112px; } }
@media (max-width: 639px) {
	.hm-hero { background-image: linear-gradient(180deg, rgba(15, 13, 9, 0.8) 0%, rgba(15, 13, 9, 0.94) 60%, var(--fng-bg) 100%), var(--hm-hero-img); }
	.hm-hero__actions .cg-btn { flex: 1 1 100%; }
}

.hm-coffees { border-top: 0; }
.hm-card .fng-shop__card-price { margin-top: 10px; }
@media (max-width: 639px) {
	.hm-grid { grid-template-columns: 1fr; gap: 16px; }
	.hm-card .fng-shop__card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
}

.hm-rot { background: #120f0a; }
.hm-rot__grid { display: grid; gap: 28px; align-items: center; }
.hm-rot__copy { font-size: 17px; color: var(--fng-body); max-width: 40ch; margin: 0; }
.hm-rot__box { background: #15110b; border: 1px solid var(--fng-divider-strong); border-radius: var(--fng-radius); padding: 24px 20px; }
.hm-rot__tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.hm-tier { display: grid; gap: 4px; justify-items: start; }
.hm-tier__price { font-family: var(--fng-font-heading); font-size: 44px; line-height: 1; color: var(--fng-cream); }
.hm-tier__size { font-size: 14px; color: var(--fng-body); }
.hm-tier__save { font: 700 11px/1 var(--fng-font-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fng-gold); border: 1px solid var(--fng-divider-strong); border-radius: 999px; padding: 5px 9px; margin-top: 4px; }
.hm-rot__fine { margin: 12px 0 0; font-size: 14px; color: var(--fng-muted); text-align: center; }
@media (min-width: 860px) { .hm-rot__grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } .hm-rot__box { padding: 32px 28px; } }

.hm-gifts__grid { display: grid; gap: 32px; align-items: center; }
.hm-gifts__copy { color: var(--fng-body); max-width: 46ch; margin: 0 0 24px; }
.hm-gifts__label .cg-label__sticker { width: 200px; height: 200px; padding: 22px; }
.hm-gifts__label .cg-label__for { font-size: 21px; }
@media (min-width: 860px) {
	.hm-gifts__grid { grid-template-columns: 1.4fr 1fr; gap: 56px; }
	.hm-gifts__label .cg-label__sticker { width: 250px; height: 250px; }
	.hm-gifts__label .cg-label__for { font-size: 26px; }
}

.hm-roaster { background: rgba(196, 153, 61, 0.03); }
.hm-roaster__inner { max-width: 820px; }
.hm-roaster__quote { font-family: var(--fng-font-heading); font-style: italic; font-size: clamp(21px, 3vw, 28px); line-height: 1.45; color: var(--fng-cream); margin: 0 0 20px; }
.hm-roaster__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; font-size: 15px; }
.hm-roaster__meta a { text-decoration: underline; }
.hm-sca { font: 700 11px/1 var(--fng-font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fng-cream); border: 1px solid var(--fng-gold); border-radius: var(--fng-radius); padding: 8px 10px; }

.hm-notes__inner { display: grid; gap: 20px; align-items: center; }
.hm-notes__inner .cg-h2 { margin-bottom: 8px; }
.hm-notes__inner p { margin: 0; color: var(--fng-body); max-width: 48ch; }
@media (min-width: 760px) { .hm-notes__inner { grid-template-columns: 1fr auto; gap: 40px; } }
