/* Bump and Beyond: R5 brand layer (COLOURS ONLY).
   Loaded ONLY when bb_is_r5() is true (inc/brand.php), after every other bb-*
   stylesheet, so equal-specificity ties go to this file. Nothing in the original
   stylesheets is edited: tokens are re-mapped here (same names) and every
   hard-coded colour is overridden with the same selector.
   Fonts are deliberately NOT touched (owner decision): Fraunces + Nunito Sans stay.

   - Warm brown #4A2F27: text, headings, dark panels, footer.
   - Cream #FFF6F0: page background, cards on brown, reversed logo.
   - Coral #E07A5F: shapes, dots, icons, progress bars. NEVER text.
   - Deep coral #C2563B: large accent words only (24px and up).
   - Button coral #B04A30: buttons, links, small coral text (white on it 5.4:1).
   - Light coral #F2A48C: accents on brown. */

/* ---------- Tokens (same names as bb-tokens.css; no font tokens) ---------- */
:root {
	--bb-cream: #FFF6F0;
	--bb-ink: #4A2F27;
	--bb-olive-900: #4A2F27;   /* brown */
	--bb-olive-700: #B04A30;   /* button coral */
	--bb-olive-500: #E07A5F;   /* coral (shapes only) */
	--bb-sage-100: #FBEAE2;
	--bb-peach-100: #FDE1D6;
	--bb-muted: #6E5249;       /* 6.6:1 on cream, 6.0:1 on sage-100, 5.7:1 on peach-100 */
	--bb-over: #B04A30;
	--bb-under: #4A2F27;
	--bb-line: rgba(74, 47, 39, .12);
	--bb-field: #8A746C;
	--bb-shadow-md: 0 12px 32px -12px rgba(74, 47, 39, .22);
	--bb-shadow-sm: 0 1px 2px rgba(74, 47, 39, .06);

	/* New in R5 */
	--bb-coral: #E07A5F;
	--bb-coral-deep: #C2563B;
	--bb-coral-btn: #B04A30;
	--bb-coral-btn-hover: #9A3F28;
	--bb-coral-light: #F2A48C;
	--bb-line-strong: rgba(74, 47, 39, .16);
}

/* Elementor kit (post 5) colour globals: point the standard ids at the R5 palette
   so widgets that use globals follow. Per-widget hex values do NOT follow
   (see CHANGELOG-r5.md: Elementor checks). */
.elementor-kit-5 {
	--e-global-color-primary: #B04A30;
	--e-global-color-secondary: #4A2F27;
	--e-global-color-text: #4A2F27;
	--e-global-color-accent: #FDE1D6;
}

/* Accent words in headings: deep coral (large text only; font style untouched).
   Heading levels that can render under 24px use button coral instead. */
h1 em, h2 em, .elementor-heading-title em,
h1 i, h2 i, .elementor-heading-title i { color: #C2563B; }
h3 em, h4 em, h3 i, h4 i,
h3.elementor-heading-title em, h4.elementor-heading-title em { color: #B04A30; }
/* On brown bands deep coral is only 2.6:1; light coral is 5.8:1. */
.bb-cta-final h1 em, .bb-cta-final h2 em, .bb-cta-final h3 em,
.bb-cta-final .elementor-heading-title em,
.bb-cta-final .elementor-heading-title i { color: #F2A48C; }

/* ---------- Buttons ----------
   Button coral, white text, hover #9A3F28, visible focus ring.
   The plain .bb-btn rule excludes the secondary, cream and "coming soon" variants,
   which keep their own colours from bb-base / bb-offer. */
.bb-btn:not(.elementor-widget):not(.bb-btn-secondary):not(.bb-btn--oncream):not(.bb-btn--soon),
button.button, input.button, a.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wp-block-button__link {
	background: var(--bb-coral-btn);
	color: #FFFFFF;
}
.bb-btn:not(.elementor-widget):not(.bb-btn-secondary):not(.bb-btn--oncream):not(.bb-btn--soon):hover,
.bb-btn:not(.elementor-widget):not(.bb-btn-secondary):not(.bb-btn--oncream):not(.bb-btn--soon):focus,
button.button:hover, input.button:hover, a.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.wp-block-button__link:hover {
	background: var(--bb-coral-btn-hover);
	color: #FFFFFF;
}
body .elementor-widget-button .elementor-button {
	background-color: var(--bb-coral-btn);
	color: #FFFFFF;
}
body .elementor-widget-button .elementor-button:hover,
body .elementor-widget-button .elementor-button:focus {
	background-color: var(--bb-coral-btn-hover);
	color: #FFFFFF;
}

/* Focus ring: 2px cream gap + 2px brown ring (3:1 or better on cream and on brown). */
.bb-btn:focus-visible,
.elementor-button:focus-visible,
button.button:focus-visible, input.button:focus-visible, a.button:focus-visible,
.woocommerce a.button:focus-visible, .woocommerce button.button:focus-visible,
.woocommerce input.button:focus-visible, .wp-block-button__link:focus-visible,
.bb-consent__btn:focus-visible {
	outline: 2px solid #4A2F27;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #FFF6F0;
}

/* ---------- Header and logo ---------- */
.bb-wordmark--logo {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	line-height: 0;
}
.bb-logo { display: block; width: 180px; max-width: 100%; height: auto; }
@media (max-width: 767px) {
	.bb-header .bb-logo { width: 130px; }
}
.bb-nav-primary a:hover { color: var(--bb-coral-btn); }

/* ---------- Footer: brown, cream text, light-coral accents, reversed logo ---------- */
.bb-footer { background: #4A2F27; color: #FFF6F0; }
.bb-footer a { color: #FFF6F0; }
.bb-footer a:hover { color: #F2A48C; }
.bb-footer :focus-visible,
.bb-footer a:focus-visible,
.bb-footer button:focus-visible { outline-color: #F2A48C; box-shadow: none; }
.bb-footer-grid .bb-footer-heading { color: #F2A48C; }
.bb-footer-wordmark--logo { display: block; margin-bottom: var(--bb-space-3); line-height: 0; }
.bb-footer .bb-logo { width: 200px; }
@media (max-width: 767px) {
	.bb-footer .bb-logo { width: 170px; }
}
.bb-footer-bottom { border-top-color: rgba(255, 246, 240, .18); }
.bb-footer .bb-cookie-settings { color: #FFF6F0; }
.bb-footer .bb-cookie-settings:hover { color: #F2A48C; }
.bb-footer ::selection, .bb-cta-final ::selection { background: #F2A48C; color: #4A2F27; }
/* Footer decorative wordmark: base was button coral on brown (now too loud), ink was a peach mix.
   Kept (it is typography, untouched) but recoloured quietly. */
.bb-footer-mark-base { color: #5E4339; }
.bb-footer-mark-ink {
	color: #B98C7C; /* fallback = the mix below */
	color: color-mix(in srgb, #F2A48C 60%, #4A2F27);
}

/* Final CTA band (brown) */
.e-con.bb-cta-final { box-shadow: inset 0 -1px 0 rgba(255, 246, 240, .16); }
.bb-cta-final :focus-visible,
.bb-cta-final a:focus-visible { outline-color: #F2A48C; }
.bb-cta-final a.bb-link, .bb-cta-final a.bb-text-link { color: #FFF6F0; }

/* ---------- Coral shapes: progress rings and bars ---------- */
.bb-mock-ring { background: conic-gradient(var(--bb-coral) calc(var(--bb-pct) * 1%), var(--bb-sage-100) 0); }
.bb-mock-row-fill { background: var(--bb-coral); }
.bb-mock-row-fill.bb-fill-over { background: var(--bb-over); }

/* Hand-drawn stroke under the hero's highlighted word: coral. */
.bb-hero-h1 .bb-mark::after {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 40 2, 80 12, 100 7 S 160 2, 198 8' fill='none' stroke='%23E07A5F' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

/* ---------- Hard-coded rgba(38, 49, 28, ...) -> warm brown ---------- */
/* bb-base.css */
.bb-plan-dash .bb-plan-list li { border-top-color: rgba(74, 47, 39, .16); }
/* bb-home.css */
.bb-mock-card { box-shadow: 0 20px 40px -18px rgba(74, 47, 39, 0.28), 0 2px 6px rgba(74, 47, 39, 0.05); }
.e-con.bb-empathy-row { border-top-color: var(--bb-line-strong); }
.bb-empathy-items > .bb-empathy-row:last-child { border-bottom-color: var(--bb-line-strong); }
.bb-scrub-panels { box-shadow: 0 16px 32px -18px rgba(74, 47, 39, 0.22), 0 2px 6px rgba(74, 47, 39, 0.05); }
/* bb-pages.css */
.bb-reassure-list { border-top-color: var(--bb-line-strong); border-bottom-color: var(--bb-line-strong); }
.bb-reassure-item + .bb-reassure-item { border-left-color: var(--bb-line-strong); border-top-color: var(--bb-line-strong); }
.bb-reassure-item:nth-child(n+3) { border-top-color: var(--bb-line-strong); }
.bb-faq-group + .bb-faq-group .bb-faq-group-inner::after { background: var(--bb-line-strong); }
.bb-section .e-con > .e-con.bb-hiw-step-row { border-top-color: var(--bb-line-strong); }
.bb-hiw-steps > .bb-hiw-step-row:last-child { border-bottom-color: var(--bb-line-strong); }
.bb-hiw-illus-card { box-shadow: 0 16px 32px -18px rgba(74, 47, 39, 0.22), 0 2px 6px rgba(74, 47, 39, 0.05); }
.e-con.bb-about-ledger { border-top-color: var(--bb-line-strong); }
.bb-section .e-con > .e-con.bb-about-row { border-bottom-color: var(--bb-line-strong); }
.bb-section .e-con > .e-con.bb-about-belief { border-top-color: var(--bb-line-strong); }
/* bb-motion.css: the empathy rules draw themselves in with their own colour. */
.bb-motion-ready .bb-empathy-items.bb-rv > .bb-empathy-row::before,
.bb-motion-ready .bb-empathy-items.bb-rv > .bb-empathy-row:last-child::after { background: var(--bb-line-strong); }
/* bb-offer.css */
.bb-btn.bb-btn--soon[aria-disabled="true"]:not(.elementor-widget),
.bb-btn.bb-btn--soon[aria-disabled="true"]:not(.elementor-widget):hover { border-color: rgba(74, 47, 39, .4); }
.bb-btn.bb-btn--soon.bb-btn--oncream[aria-disabled="true"]:not(.elementor-widget),
.bb-btn.bb-btn--soon.bb-btn--oncream[aria-disabled="true"]:not(.elementor-widget):hover { border-color: rgba(255, 246, 240, .5); }

/* ---------- Consent bar (bb-consent.css follows the tokens; accept button gets white text and R5 hover) ---------- */
.bb-consent__btn--accept { background: var(--bb-coral-btn); border-color: var(--bb-coral-btn); color: #FFFFFF; }
.bb-consent__btn--accept:hover,
.bb-consent__btn--accept:active { background: var(--bb-coral-btn-hover); border-color: var(--bb-coral-btn-hover); color: #FFFFFF; }
.bb-consent__btn--decline { border-color: #4A2F27; color: #4A2F27; }
.bb-consent__link:hover { color: var(--bb-coral-btn-hover); }
