/* CoCo Joy brand layer. Loaded on the front end and inside the block editor. */
:root {
	--cj-leaf: #7FAF00;
	--cj-leaf-ink: #4E6E00;
	--cj-palm: #17301A;
	--cj-shell-green: #2F6B35;
	--cj-flesh: #FAFCF4;
	--cj-mist: #EEF3E2;
	--cj-mango: #FFB21E;
	--cj-melon: #EE4D6E;
	--cj-ink: #1B2416;
	--cj-muted: #56614E;
	--cj-line: #D6DEC6;
	--cj-white: #FFFFFF;
	--cj-font-display: "Fredoka", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
	--cj-font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
	--cj-radius: 22px;
}

/* ---------- Bands (full-width sections) ---------- */
.cj-band {
	padding-block: clamp(56px, 8vw, 96px);
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
	margin-block: 0 !important;
	color: var(--cj-ink);
	font-family: var(--cj-font-body);
	background: var(--cj-flesh);
}
.cj-band + .cj-band { margin-top: 0 !important; }
.cj-band--mist  { background: var(--cj-mist); }
.cj-band--white { background: var(--cj-white); border-block: 1px solid var(--cj-line); }
.cj-band--shell { background: var(--cj-shell-green); color: #F4FAE6; }
.cj-band h1, .cj-band h2, .cj-band h3 {
	font-family: var(--cj-font-display);
	font-weight: 600;
	line-height: 1.08;
	text-wrap: balance;
	color: inherit;
	margin-top: 0;
}
.cj-band h2 { font-size: clamp(30px, 4.4vw, 48px); }
.cj-band h3 { font-size: 21px; }
.cj-eyebrow {
	font: 600 13px/1 var(--cj-font-body) !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--cj-leaf-ink);
	margin-bottom: 12px !important;
}
.cj-lede { font-size: 19px; color: var(--cj-muted); max-width: 60ch; }
.cj-footnote { font-size: 13px; color: var(--cj-muted); }

/* ---------- Buttons ---------- */
.wp-block-button[class*="is-style-cj-"] .wp-block-button__link {
	border-radius: 999px;
	padding: 15px 26px;
	font: 600 16px/1 var(--cj-font-body);
	border: 2px solid transparent;
	text-decoration: none;
	transition: filter .15s;
}
.wp-block-button[class*="is-style-cj-"] .wp-block-button__link:hover { filter: brightness(1.08); }
.is-style-cj-leaf .wp-block-button__link { background: var(--cj-leaf); color: #fff; }
.is-style-cj-dark .wp-block-button__link { background: var(--cj-palm); color: #fff; }
.is-style-cj-ghost .wp-block-button__link { background: transparent; color: inherit; border: 2px solid currentColor !important; }
.wp-block-button[class*="is-style-cj-"] .wp-block-button__link:focus-visible { outline: 3px solid var(--cj-mango); outline-offset: 3px; }

.is-style-cj-card {
	background: var(--cj-flesh);
	border: 1px solid var(--cj-line);
	border-radius: 18px;
	padding: 22px;
}

/* ---------- Hero ---------- */
.cj-hero { background: var(--cj-leaf); color: #fff; padding-bottom: 0; overflow: hidden; }
.cj-hero .cj-eyebrow { color: #E8F5C8; }
.cj-hero__cols { align-items: center !important; gap: 40px; }
.cj-hero__title { font-size: clamp(44px, 7vw, 86px) !important; font-weight: 700 !important; letter-spacing: -.01em; }
.cj-hero__title mark, .cj-accent { background: none; color: var(--cj-palm); }
.cj-hero .cj-lede { color: #F4FAE6; margin-top: 18px; }
.cj-hero__ctas { margin-top: 28px; gap: 12px; }
.cj-hero__ctas .is-style-cj-ghost .wp-block-button__link { color: #fff; }
.cj-chips {
	list-style: none;
	padding: 0 0 56px !important;
	margin: 30px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.cj-chips li {
	background: rgba(255,255,255,.16);
	border: 1px solid rgba(255,255,255,.35);
	border-radius: 999px;
	padding: 7px 14px;
	font-weight: 600;
	font-size: 14px;
	margin: 0;
}
.cj-hero__art { align-self: flex-end !important; }
.cj-hero__img { margin: 0; }
.cj-hero__img img { width: 100%; max-width: 440px; height: auto; display: block; margin-inline: auto; }
@media (max-width: 781px) { .cj-chips { padding-bottom: 12px; } .cj-hero__img img { max-width: 300px; } }

/* ---------- Quick facts ---------- */
.cj-facts { background: var(--cj-palm); color: #EAF2DA; padding-block: 28px; }
.cj-facts__cols { gap: 24px; margin: 0; }
.cj-stat { font: 600 32px/1.1 var(--cj-font-display); color: #fff; margin: 0; font-variant-numeric: tabular-nums; }
.cj-stat-label { font-size: 14px; color: #BFD0A6; margin: 2px 0 0; }
@media (max-width: 781px) {
	.cj-facts__cols { display: grid !important; grid-template-columns: 1fr 1fr; }
}

/* ---------- Benefits ---------- */
.cj-benefits__head { align-items: flex-end !important; margin-bottom: 40px; }
.cj-benefits__grid { gap: 0 !important; border-top: 2px solid var(--cj-ink); }
.cj-benefit { padding: 26px 22px 6px 0; }
.cj-benefit + .cj-benefit { padding-left: 22px; border-left: 1px solid var(--cj-line); }
.cj-benefit p { color: var(--cj-muted); font-size: 16px; }
.cj-benefit .cj-benefit__num { font: 600 54px/1 var(--cj-font-display); color: var(--cj-leaf-ink); margin: 0 0 12px; }
.cj-benefit__num small { font-size: 22px; }
@media (max-width: 781px) {
	.cj-benefit, .cj-benefit + .cj-benefit { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--cj-line); padding-bottom: 20px; }
}
.cj-lytes { list-style: none; padding: 0 !important; margin: 40px 0 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.cj-lytes li { border: 1.5px solid var(--cj-leaf); border-radius: 12px; padding: 8px 12px; font-weight: 600; margin: 0; }
.cj-lytes code { background: none; font-size: 13px; color: var(--cj-leaf-ink); padding: 0; }

/* ---------- Tree to bottle ---------- */
.cj-story__cols { align-items: center !important; gap: 56px; }
.cj-film {
	aspect-ratio: 16 / 10;
	max-width: 100%;
	border-radius: 24px;
	background: radial-gradient(120% 90% at 30% 20%, #2F5A1F 0%, var(--cj-palm) 60%);
	color: #fff;
	display: flex !important;
	align-items: flex-end;
	padding: 20px !important;
}
.cj-film__label { font-size: 14px; font-weight: 600; margin: 0; }
.cj-steps { list-style: none; counter-reset: cjstep; padding: 0 !important; margin: 26px 0 0; display: grid; gap: 18px; }
.cj-steps li { counter-increment: cjstep; position: relative; padding-left: 60px; min-height: 44px; color: var(--cj-muted); margin: 0; }
.cj-steps li::before {
	content: counter(cjstep);
	position: absolute; left: 0; top: 0;
	font: 600 18px/44px var(--cj-font-display);
	text-align: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--cj-leaf);
	color: #fff;
}
.cj-steps li strong { display: block; color: var(--cj-ink); font: 600 19px/1.3 var(--cj-font-display); margin-bottom: 2px; }

/* ---------- Reviews ---------- */
.cj-reviews { gap: 20px; margin-top: 32px; }
.cj-review__badge { font: 600 12px/1 var(--cj-font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--cj-leaf-ink); }
.cj-review__text { font-size: 17px; font-style: italic; color: var(--cj-muted); }
.cj-review__meta { font-size: 14px; }

/* ---------- FAQ ---------- */
.cj-faq { gap: 56px; }
.cj-faq__item { border-bottom: 1px solid var(--cj-line); padding: 18px 0; margin: 0 !important; }
.cj-faq__item summary {
	cursor: pointer;
	font: 600 19px/1.3 var(--cj-font-display);
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.cj-faq__item summary::-webkit-details-marker { display: none; }
.cj-faq__item summary::after { content: "+"; font-size: 26px; line-height: .9; color: var(--cj-leaf-ink); }
.cj-faq__item[open] summary::after { content: "\2013"; }
.cj-faq__item > :not(summary) { color: var(--cj-muted); margin-top: 12px; }

/* ---------- Private label ---------- */
.cj-pl { padding-block: 56px; }
.cj-pl .cj-eyebrow { color: #CFEA8C; }
.cj-pl p { color: #D3E6BC; max-width: 56ch; }
.cj-pl__cols { align-items: center !important; }
.cj-pl__cta .wp-block-buttons { justify-content: flex-end; }
@media (max-width: 781px) { .cj-pl__cta .wp-block-buttons { justify-content: flex-start; } }

@media (prefers-reduced-motion: reduce) {
	.wp-block-button[class*="is-style-cj-"] .wp-block-button__link { transition: none; }
}

/* ---------- Inner pages ---------- */
.cj-band h1.wp-block-heading { font-size: clamp(34px, 5vw, 56px); }
.cj-faq-group h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cj-faq-group { padding-block: 48px; }

/* ---------- Inner page layouts ---------- */
.cj-page-hero { padding-block: clamp(48px, 7vw, 88px); }
.cj-split { align-items: center !important; gap: clamp(28px, 5vw, 56px); }
.cj-split--top { align-items: flex-start !important; }
.cj-photo { margin: 0; }
.cj-photo img { border-radius: var(--cj-radius); width: 100%; height: auto; display: block; }
.cj-cards { gap: 20px; margin-top: 28px; }
.cj-cards .wp-block-column { display: flex; }
.cj-cards .is-style-cj-card { width: 100%; background: var(--cj-white); }
.cj-cards .is-style-cj-card h3 { margin-bottom: 8px; }
.cj-cards .is-style-cj-card p { color: var(--cj-muted); }
.cj-band--mist .cj-cards .is-style-cj-card { background: var(--cj-white); }
.cj-checklist { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 6px; }
.cj-checklist li { padding-left: 24px; position: relative; color: var(--cj-muted); margin: 0; }
.cj-checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--cj-leaf); }
.cj-contact__title { font-size: 15px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--cj-leaf-ink) !important; margin: 28px 0 8px !important; font-family: var(--cj-font-body) !important; }
.cj-contact__info .cj-contact__title:first-child { margin-top: 0 !important; }
.cj-contact { margin: 0 0 12px; }
.cj-contact a { color: var(--cj-ink); }
.cj-contact__form .is-style-cj-card { background: var(--cj-white); padding: 28px; }
.cj-band--shell.cj-page-hero h1, .cj-band--shell.cj-page-hero p { color: #fff; }
.cj-band--shell .is-style-cj-ghost .wp-block-button__link { color: #fff; }
@media (max-width: 781px) { .cj-cards { gap: 14px; } }

/* ---------- Footer (Blocksy footer with CoCo Joy widgets) ---------- */
.ct-footer { background: var(--cj-palm) !important; color: #C9D7B5; }
.ct-footer [data-row] { background: transparent !important; }
.ct-footer [data-row="middle"] { padding-block: 56px 24px; }
.ct-footer [data-row="middle"] .ct-container { gap: 40px; }
.ct-footer [data-row="bottom"] { border-top: 1px solid #2D4728; }
.ct-footer, .ct-footer p, .ct-footer li { color: #C9D7B5; font-size: 15px; }
.ct-footer a { color: #E9F2DA; text-decoration: none; }
.ct-footer a:hover { color: #9BCB1E; }
.ct-footer .cj-foot-title { font: 600 13px/1.2 var(--cj-font-body) !important; letter-spacing: .14em; text-transform: uppercase; color: #fff !important; margin: 0 0 14px !important; }
.ct-footer .cj-foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ct-footer .cj-foot-list li { margin: 0; }
.ct-footer .cj-foot-logo { margin: 0 0 14px; }
.ct-footer .cj-foot-tag { max-width: 32ch; }
.ct-footer .cj-foot-cta a { display: inline-block; background: var(--cj-leaf); color: #fff; font-weight: 600; padding: 10px 18px; border-radius: 999px; }
.ct-footer .ct-footer-copyright { font-size: 13px; color: #93A67E; }

/* ---------- Story, stats, tables ---------- */
.cj-story-text p { max-width: 68ch; font-size: 18px; color: var(--cj-muted); margin-left: 0 !important; }
.cj-cards--5 .is-style-cj-card { text-align: center; }
.cj-stat-big { font: 600 clamp(28px, 3vw, 36px)/1 var(--cj-font-display) !important; color: var(--cj-leaf-ink) !important; margin: 0 0 6px !important; }
.cj-table { overflow-x: auto; }
.cj-table table { background: #fff; border-radius: 16px; overflow: hidden; border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.cj-table th { background: var(--cj-palm); color: #fff; text-align: left; font-weight: 600; }
.cj-table th, .cj-table td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--cj-line); }
@media (max-width: 781px) { .cj-table table { min-width: 620px; } }

/* Hero lifestyle photo: framed like the drink tiles. */
.cj-hero__art:has(.cj-hero__photo) { align-self: center !important; }
.cj-hero__photo { margin: 0; border: 3px solid var(--cj-ink); border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: 12px 12px 0 #c9e58a; transform: rotate(1.5deg); }
.cj-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
@media (max-width: 781px) { .cj-hero__photo { transform: none; box-shadow: 8px 8px 0 #c9e58a; margin-inline: 4px 12px; } }

/* Reviews: Amazon rating summary + review cards styled like the drink tiles. */
.cj-reviews-head { align-items: center !important; gap: 40px; }
.cj-reviews-head__rating { flex-basis: 380px !important; flex-grow: 0 !important; }
.cj-rating { background: var(--cj-white); border: 3px solid var(--cj-ink); border-radius: var(--cj-radius); box-shadow: 8px 8px 0 color-mix(in srgb, var(--cj-mango) 55%, #fff); padding: 26px 28px; text-align: center; }
.cj-rating > * { margin-block: 0 !important; }
.cj-rating__score { font: 700 64px/1 var(--cj-font-display); color: var(--cj-ink); }
.cj-rating__count { margin-top: 8px !important; font-size: 16px; }
.cj-rating__sub { margin-top: 2px !important; font-size: 14px; color: var(--cj-muted); }
.cj-rating .wp-block-buttons { justify-content: center; margin-top: 18px !important; }
.cj-rating__note { font-size: 13px; color: var(--cj-muted); text-align: center; margin-top: 28px !important; }
.cj-stars { color: var(--cj-mango); font-size: 20px; letter-spacing: 3px; line-height: 1; margin: 0 0 10px !important; }
.cj-stars--lg { font-size: 30px; margin-top: 8px !important; }
.cj-stars--46 { background: linear-gradient(90deg, var(--cj-mango) 0 91%, var(--cj-line) 91%); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.cj-reviews-band .cj-reviews { gap: 26px; margin-top: 40px; }
.cj-reviews .wp-block-column { display: flex; }
.cj-review { --cj-tone: var(--cj-leaf); width: 100%; display: flex; flex-direction: column; background: var(--cj-white); border: 3px solid var(--cj-ink); border-radius: var(--cj-radius); box-shadow: 8px 8px 0 color-mix(in srgb, var(--cj-tone) 55%, #fff); padding: 26px 26px 22px; transition: transform .2s ease, box-shadow .2s ease; }
.cj-review:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 color-mix(in srgb, var(--cj-tone) 55%, #fff); }
.cj-review--mango { --cj-tone: var(--cj-mango); }
.cj-review--melon { --cj-tone: var(--cj-melon); }
.cj-review > * { margin-block: 0 !important; }
.cj-review .cj-stars { margin-bottom: 12px !important; }
.cj-review__title { font-size: 20px !important; line-height: 1.25; }
.cj-review .cj-review__text { margin-top: 10px !important; font-size: 16px; font-style: normal; color: var(--cj-ink); line-height: 1.6; }
.cj-review .cj-review__text::before { content: "\201C"; } .cj-review .cj-review__text::after { content: "\201D"; }
.cj-review .cj-review__meta { margin-top: auto !important; padding-top: 18px; font-size: 13px; color: var(--cj-muted); line-height: 1.5; }
.cj-review .cj-review__meta strong { color: var(--cj-ink); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .cj-review, .cj-review:hover { transition: none; transform: none; } }
@media (max-width: 781px) { .cj-reviews-head__rating { flex-basis: 100% !important; } .cj-reviews-band .cj-reviews { gap: 22px; } }
