/*
 * SkillGrox brand layer (1.0.52): the client's dusty-blue / sand / pearl design on top of the existing plugin CSS.
 * Loaded last (see inc/brand.php). Remove the file or the `sgx_brand_enabled` filter to fall back to the plain 1.0.51 structure.
 *
 *   brand #1E7A4C  brand-dark #155C39  brand-soft #E4F3E8  sand #C9F27B  sand-soft #E4F3E8
 *   ink #14251D  ink-2 #2A4033  muted #4B6156  line #D5E3D9  mist #EEF6F0  paper #FAFCF9
 * Contrast (WCAG): ink on white 12.5:1, muted on white 6.2:1, white on brand 6.8:1, white on brand-dark 8.8:1, ink on sand 8.9:1.
 * Fonts: Baloo 2 (headings) and Nunito (body), self-hosted (assets/fonts, see skillgrox-fonts.css).
 */

/* ---------- tokens ---------- */
:root {
	--sgx-brand: #1E7A4C;
	--sgx-brand-dark: #155C39;
	--sgx-brand-soft: #E4F3E8;
	--sgx-sand: #C9F27B;
	--sgx-sand-soft: #E4F3E8;
	--sgx-paper: #FAFCF9;
	--sgx-mist: #EEF6F0;
	--sgx-font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--sgx-font-head: "Baloo 2", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Tutor LMS 4 builds its whole UI from this brand scale: one override brands the dashboard and the lesson player. */
	--tutor-brand-50: #F1F8F3;
	--tutor-brand-100: #E4F3E8;
	--tutor-brand-200: #CDE8D5;
	--tutor-brand-300: #B7D3C0;
	--tutor-brand-400: #8DB59C;
	--tutor-brand-500: #1E7A4C;
	--tutor-brand-600: #155C39;
	--tutor-brand-700: #0F4A2E;
	--tutor-brand-800: #0B3A24;
	--tutor-brand-900: #0E2A1F;
	--tutor-brand-950: #08180F;
}

/* Woodmart reads its colours and fonts from variables set on :root; a closer ancestor wins. */
body.sgx-site-page, body.sgx-checkout-page, body.sgx-home-page {
	--wd-primary-color: #1E7A4C;
	--wd-alternative-color: #155C39;
	--wd-link-color: #1E7A4C;
	--wd-link-color-hover: #155C39;
	--btn-accented-bgcolor: #1E7A4C;
	--btn-accented-bgcolor-hover: #155C39;
	--btn-accented-color: #FFFFFF;
	--wd-text-color: #4B6156;
	--wd-title-color: #14251D;
	--wd-entities-title-color: #14251D;
	--wd-entities-title-color-hover: #1E7A4C;
	--wd-main-bgcolor: #FAFCF9;
	--wd-form-brd-color-focus: #1E7A4C;
	--wd-text-font: var(--sgx-font-body);
	--wd-title-font: var(--sgx-font-head);
	--wd-entities-title-font: var(--sgx-font-head);
	--wd-widget-title-font: var(--sgx-font-head);
	--wd-text-font-weight: 400;
	--wd-title-font-weight: 700;
	font-family: var(--sgx-font-body);
	background-color: #FAFCF9;
}
body.sgx-site-page :is(h1, h2, h3, h4, h5, h6),
body.sgx-checkout-page :is(h1, h2, h3, h4, h5, h6),
body.sgx-home-page :is(h1, h2, h3, h4, h5, h6),
.sgx-site :is(h1, h2, h3, h4, h5, h6),
.sgx-card__title, .sgx-tile__name, .sgx-brand {
	font-family: var(--sgx-font-head);
	letter-spacing: -.01em;
}
.sgx-site, .sgx-site :is(button, input, select, textarea) { font-family: var(--sgx-font-body); }
.sgx-site { background: #FAFCF9; }

/* ---------- announcement: sand ---------- */
.sgx-announce { background: var(--sgx-sand); color: #14251D; }
.sgx-announce a { color: #14251D; }

/* ---------- header and buttons: defined once in skillgrox-home.css (design fidelity pass) ---------- */

/* ---------- hero: geometry lives in skillgrox-home.css ---------- */
.sgx-hero__text, .sgx-trust { color: #2A4033; }

/* ---------- sections ---------- */
.sgx-section--tint { background: #E4F3E8; }
.sgx-section--dark { background: var(--sgx-brand-soft); color: #14251D; }
.sgx-section--dark::before { background: none; }
.sgx-feature__icon { background: var(--sgx-brand-soft); color: #155C39; }
.sgx-tile a, .sgx-feature, .sgx-quote { border-radius: 20px; box-shadow: 0 1px 2px rgba(14, 42, 31, .05), 0 8px 24px rgba(14, 42, 31, .05); }
.sgx-tile a:hover { box-shadow: 0 2px 4px rgba(14, 42, 31, .06), 0 18px 36px rgba(14, 42, 31, .10); border-color: #B7D3C0; }

/* ---------- final CTA band: brand blue with white text ---------- */

/* ---------- footer: brand-soft, ink text ---------- */
body .sgx-site--bottom, body.sgx-ctx-about .website-wrapper, body.sgx-ctx-contact .website-wrapper { background: var(--sgx-brand-soft); }

/* ---------- Woodmart/Woo/Tutor widgets that carry their own accent colour ---------- */
body.sgx-site-page .woocommerce-message, body.sgx-site-page .woocommerce-info { border-top-color: #1E7A4C; }
body.sgx-site-page .woocommerce-message::before, body.sgx-site-page .woocommerce-info::before { color: #1E7A4C; }
body.sgx-site-page .price, body.sgx-site-page .price .amount { color: #14251D; }
body.sgx-site-page .price del, body.sgx-site-page .price del .amount { color: #4B6156; }
body.sgx-site-page .price ins, body.sgx-site-page .price ins .amount { color: #14251D; }
body.sgx-site-page :is(.onsale, .product-label.onsale) { background: #C9F27B; color: #14251D; }

/* ---------- Tutor LMS: lesson player and dashboard follow the same palette ---------- */
.tutor-learning-area, body.tutor-screen-frontend-dashboard {
	--tutor-text-brand: #1E7A4C;
	--tutor-text-brand-hover: #155C39;
	--tutor-icon-brand: #1E7A4C;
	font-family: var(--sgx-font-body);
}
.tutor-learning-area :is(h1, h2, h3, h4),
body.tutor-screen-frontend-dashboard :is(h1, h2, h3, h4) { font-family: var(--sgx-font-head); }
.tutor-learning-area :is(.tutor-progress-bar-fill, .tutor-progress-bar .tutor-progress-value) { background-color: #1E7A4C; }

@media (prefers-reduced-motion: reduce) {
	.sgx-site .sgx-btn, .sgx-card, .sgx-tile a { transition: none !important; transform: none !important; }
}

/* ---------- focused landing page (standalone template) ---------- */
body.sgx-landing-page { font-family: var(--sgx-font-body); background: #FAFCF9; }
body.sgx-landing-page :is(h1, h2, h3, h4, .sgxl-price) { font-family: var(--sgx-font-head); }

/* ---------- footer (1.0.54): four columns, bottom bar, room for floating buttons ---------- */
@media (max-width: 959.98px) {
	.sgx-footer__bottom-inner { padding-inline-end: 80px; } /* keep clear of the theme's round floating buttons */
}
