/* Reset, typography and base elements. */

*,
*::before,
*::after {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
}

body {
	margin: 0;
	background: var(--bk-bg-page);
	color: var(--bk-text-primary);
	font-family: var(--bk-font-ar);
	font-size: var(--bk-fs-body);
	font-weight: 400;
	line-height: var(--bk-lh-body);
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.bk-lock {
	overflow: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s var(--bk-ease), opacity 0.2s var(--bk-ease), background-color 0.2s var(--bk-ease);
}

a:hover {
	color: var(--bk-text-accent);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	color: var(--bk-text-brand);
	font-family: var(--bk-font-ar);
	font-weight: 800;
	text-wrap: balance;
}

h1 { font-size: var(--bk-fs-h1); line-height: var(--bk-lh-heading); }
h2 { font-size: var(--bk-fs-h2); line-height: var(--bk-lh-heading); }
h3 { font-size: var(--bk-fs-h3); font-weight: 700; line-height: var(--bk-lh-h3); }
h4, h5, h6 { font-size: var(--bk-fs-h4); font-weight: 700; line-height: var(--bk-lh-h4); }

p {
	margin: 0;
	text-wrap: pretty;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

::selection {
	background: var(--bk-brown-800);
	color: var(--bk-cream-50);
}

:focus-visible {
	outline: 2px solid var(--bk-caramel-600);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	inset-inline-start: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 20px;
	background: var(--bk-bg-surface);
	color: var(--bk-text-brand);
}

/* Type utilities (Figma text styles) */
.bk-display { font-size: var(--bk-fs-display); font-weight: 900; line-height: var(--bk-lh-display); color: var(--bk-text-brand); }
.bk-h1 { font-size: var(--bk-fs-h1); font-weight: 800; line-height: var(--bk-lh-heading); }
.bk-h2 { font-size: var(--bk-fs-h2); font-weight: 800; line-height: var(--bk-lh-heading); }
.bk-h3 { font-size: var(--bk-fs-h3); font-weight: 700; line-height: var(--bk-lh-h3); }
.bk-lead { font-size: var(--bk-fs-body-lg); line-height: var(--bk-lh-body); color: var(--bk-text-secondary); }
.bk-small { font-size: var(--bk-fs-small); line-height: 1.7; }
.bk-muted { color: var(--bk-text-muted); }
.bk-center { display: flex; justify-content: center; margin-top: var(--bk-space-2xl); }

.bk-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--bk-text-accent);
	font-family: var(--bk-font-latin);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	line-height: 1.5;
	direction: ltr;
}

.bk-eyebrow--line::before {
	content: "";
	width: 40px;
	height: 1.5px;
	background: currentColor;
	order: 2;
}

/* Prose (policies, default pages, product descriptions) */
.bk-prose {
	font-size: var(--bk-fs-body-lg);
	line-height: var(--bk-lh-body);
	color: var(--bk-text-secondary);
}

.bk-prose > * + * { margin-top: 1.1em; }
.bk-prose h2, .bk-prose h3 { margin-top: 1.8em; font-size: var(--bk-fs-h3); }
.bk-prose h4 { margin-top: 1.4em; }
.bk-prose a { color: var(--bk-text-accent); text-decoration: underline; text-underline-offset: 4px; }
.bk-prose ul, .bk-prose ol { padding-inline-start: 1.4em; }
.bk-prose li + li { margin-top: 0.4em; }
.bk-prose ul li::marker { color: var(--bk-caramel-600); }
.bk-prose strong { color: var(--bk-text-primary); }
.bk-prose img, .bk-prose figure { margin-inline: 0; width: 100%; border-radius: var(--bk-radius-md); }
.bk-prose table { width: 100%; border-collapse: collapse; font-size: var(--bk-fs-body); }
.bk-prose th, .bk-prose td { padding: 12px; border-bottom: 1px solid var(--bk-border-default); text-align: right; }
.bk-prose blockquote { margin-inline: 0; padding: 16px 24px; border-inline-start: 3px solid var(--bk-caramel-600); background: var(--bk-bg-muted); border-radius: var(--bk-radius-sm); color: var(--bk-text-brand); }
