/*
 * BeeTcommerce Core: site-wide base styles.
 * Only reusable rules live here (rule 1b). Colours and fonts read Elementor globals.
 */
:root {
	--btc-ink: var(--e-global-color-text, #000000);
	--btc-accent: var(--e-global-color-accent, #F6A00D);
	--btc-surface: var(--e-global-color-secondary, #FFFFFF);
	--btc-soft: var(--e-global-color-surface, #F5F5F5);
	--btc-muted: var(--e-global-color-muted, #5C5C5C);
	--btc-line: var(--e-global-color-line, #E2E2E2);
	--btc-radius: 6px;
	--btc-font-body: var(--e-global-typography-text-font-family, "Instrument Sans"), system-ui, sans-serif;
	--btc-font-head: var(--e-global-typography-primary-font-family, "Cal Sans"), system-ui, sans-serif;
}

/* Screen-reader-only text */
.btc-nav .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Header menu */
.btc-nav {
	position: relative;
}
.btc-nav__list {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.btc-nav__list a {
	display: inline-block;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	color: var(--btc-ink);
	font-family: var(--btc-font-body);
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.15s ease;
}
.btc-nav__list a:hover,
.btc-nav__list a:focus-visible,
.btc-nav__list .current-menu-item > a {
	border-bottom-color: var(--btc-accent);
}
.btc-nav__list a:focus-visible,
.btc-nav__toggle:focus-visible {
	outline: 2px solid var(--btc-ink);
	outline-offset: 3px;
}
.btc-nav__toggle {
	display: none;
}
@media (max-width: 1024px) {
	.btc-nav__toggle {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid var(--btc-line);
		border-radius: var(--btc-radius);
		background: transparent;
		cursor: pointer;
	}
	.btc-nav__bars,
	.btc-nav__bars::before,
	.btc-nav__bars::after {
		display: block;
		width: 20px;
		height: 2px;
		background: var(--btc-ink);
		content: "";
	}
	.btc-nav__bars {
		position: relative;
	}
	.btc-nav__bars::before,
	.btc-nav__bars::after {
		position: absolute;
		left: 0;
	}
	.btc-nav__bars::before {
		top: -6px;
	}
	.btc-nav__bars::after {
		top: 6px;
	}
	.btc-nav__panel {
		display: none;
		position: absolute;
		top: calc(100% + 12px);
		right: 0;
		z-index: 1000;
		min-width: 220px;
		padding: 8px 0;
		border: 1px solid var(--btc-line);
		border-radius: var(--btc-radius);
		background: var(--btc-surface);
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	}
	.btc-nav__panel.is-open {
		display: block;
	}
	.btc-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
	.btc-nav__list a {
		display: block;
		padding: 12px 18px;
		border-bottom: 0;
	}
	.btc-nav__list .current-menu-item > a {
		box-shadow: inset 3px 0 0 var(--btc-accent);
	}
}

/*
 * Text-link buttons (class "btc-link" on an Elementor Button widget).
 * Amber text on white fails WCAG AA, so links stay black and the amber
 * moves to the underline. Colour and padding come from the widget's own
 * controls; only the underline needs CSS.
 */
.btc-link .elementor-button,
.btc-link .elementor-button:hover,
.btc-link .elementor-button:focus {
	text-decoration: underline;
	text-decoration-color: var(--btc-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}
.btc-link .elementor-button:hover {
	text-decoration-thickness: 3px;
}

/* Visible keyboard focus on every Elementor button */
.elementor-button:focus-visible {
	outline: 2px solid var(--btc-ink);
	outline-offset: 3px;
}
.btc-on-dark .elementor-button:focus-visible {
	outline-color: var(--btc-surface);
}

/* Respect reduced-motion: show animated elements immediately, without movement */
@media (prefers-reduced-motion: reduce) {
	.elementor-invisible {
		visibility: visible !important;
	}
	.elementor-element.animated {
		animation: none !important;
	}
	.btc-nav__list a {
		transition: none;
	}
}

/* Plain links inside dark sections (footer, dark heroes) stay readable */
.btc-on-dark a:not(.elementor-button):not(.elementor-icon):not(.elementor-social-icon) {
	color: var(--btc-surface);
	text-decoration: underline;
	text-decoration-color: var(--btc-accent);
	text-underline-offset: 4px;
}

/* Draft notice on policy pages */
.btc-draft-note {
	margin-bottom: 32px;
	padding: 16px 20px;
	border-left: 4px solid var(--btc-accent);
	background: var(--btc-soft);
}
/* Header menu centred between logo and actions on desktop */
@media (min-width: 1025px) {
	.btc-nav__list {
		justify-content: center;
	}
}

/* Footer link lists: underline on hover only, so the columns read calmly */
.btc-on-dark .elementor-icon-list-item > a:not(.elementor-button):not(.elementor-icon):not(.elementor-social-icon) {
	text-decoration: none;
}
.btc-on-dark .elementor-icon-list-item > a:not(.elementor-button):not(.elementor-icon):not(.elementor-social-icon):hover,
.btc-on-dark .elementor-icon-list-item > a:not(.elementor-button):not(.elementor-icon):not(.elementor-social-icon):focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--btc-accent);
	text-underline-offset: 4px;
}

/* Buttons never underline; text links keep the amber underline */
.elementor-widget-button:not(.btc-link) .elementor-button,
.woocommerce a.button,
.woocommerce button.button,
.wc-block-components-button,
.btc-btn,
.btc-drawer__wa {
	text-decoration: none !important;
}
.woocommerce ul.products li.product a.btc-card-quote {
	text-decoration: underline;
	text-decoration-color: var(--btc-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}
.woocommerce ul.products li.product .price .btc-por {
	font-size: 16px;
}