/**
 * Banooyi base theme styles (mobile-first, RTL).
 *
 * Phase 0 establishes the foundation: reset, typography, layout container,
 * and a couple of shared primitives (card, button) that later phases reuse.
 */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.8;
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.4;
	color: var(--text);
	margin: 0 0 var(--space-4);
}

p {
	margin: 0 0 var(--space-4);
}

a {
	color: var(--primary-deep);
	text-decoration: none;
}

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

img {
	max-width: 100%;
	height: auto;
}

/* Layout */
.banooyi-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--space-4);
}

/* Shared primitives */
.banooyi-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: var(--space-5);
}

.banooyi-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-5);
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--primary-deep);
	color: #fff;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: background .2s ease, transform .15s ease;
}

.banooyi-btn:hover {
	background: var(--text);
	color: #fff;
}

.banooyi-btn:active {
	transform: translateY(1px);
}

.banooyi-btn--ghost {
	background: transparent;
	color: var(--primary-deep);
	border: 1px solid var(--border);
}

/* Site chrome */
.banooyi-site-header,
.banooyi-site-footer {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

.banooyi-site-footer {
	border-bottom: 0;
	border-top: 1px solid var(--border);
	color: var(--text-soft);
	padding-block: var(--space-6);
	text-align: center;
}

.banooyi-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: var(--space-4);
}

.banooyi-logo {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--primary-deep);
}

@media (min-width: 768px) {
	body {
		font-size: 17px;
	}
}
