/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
	/* Raghada heritage tokens */
	--raghada-bg: #f5e6cc;
	--raghada-bg-light: #fdf6e7;
	--raghada-card: #fffcf0;
	--raghada-gold: #c9a84c;
	--raghada-gold-dark: #a07838;
	--raghada-brown: #8b5e3c;
	--raghada-brown-dark: #5b351f;
	--raghada-dark: #2c1a10;
	--raghada-darker: #1e1208;
	--raghada-sand: #e8d5a3;
	--raghada-muted: #9a7a5a;
	--raghada-primary: var(--raghada-gold);
	--raghada-primary-hover: var(--raghada-gold-dark);
	--raghada-primary-light: rgba(201, 168, 76, 0.15);
	--raghada-text: var(--raghada-dark);
	--raghada-text-light: var(--raghada-brown);
	--raghada-text-muted: var(--raghada-muted);
	--raghada-border: var(--raghada-sand);
	--raghada-bg-soft: var(--raghada-bg-light);
	--raghada-header-bg: rgba(253, 246, 231, 0.97);
	--raghada-footer-bg: var(--raghada-darker);
	--raghada-error: #c53030;
	--raghada-radius: 1rem;
	--raghada-radius-sm: 0.5rem;
	--raghada-radius-lg: 1.375rem;
	--raghada-shadow: 0 3px 16px rgba(91, 53, 31, 0.05);
	--raghada-shadow-lg: 0 16px 40px rgba(91, 53, 31, 0.13);
	--raghada-max-w: 1280px;
	--raghada-font: 'Tajawal', sans-serif;
	--raghada-font-display: 'Aref Ruqaa', serif;
	--raghada-transition: 0.25s ease;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: var(--raghada-font);
	color: var(--raghada-text);
	background: var(--raghada-bg);
	line-height: 1.82;
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

body:not(.raghada-layout--auth) {
	display: block;
}

.raghada-main {
	flex: 1;
	min-width: 0;
	width: 100%;
}

.raghada-layout--auth .raghada-main {
	max-width: 480px;
	margin-inline: auto;
	padding: 1.5rem 1rem 3rem;
}

body.raghada-layout--auth {
	background: linear-gradient(180deg, var(--raghada-bg-light) 0%, var(--raghada-bg) 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

.raghada-container {
	max-width: var(--raghada-max-w);
	margin-inline: auto;
	padding-inline: 1rem;
}
@media (min-width: 640px) { .raghada-container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .raghada-container { padding-inline: 2rem; } }

.raghada-sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.32; }
h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-family: var(--raghada-font-display); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-family: var(--raghada-font-display); }

/* ── Section spacing ── */
.raghada-section { padding-block: 3rem; }
.raghada-section__title {
	font-family: var(--raghada-font-display);
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	font-weight: 700;
	text-align: center;
	margin-bottom: 2rem;
	color: var(--raghada-text);
}
.raghada-section__subtitle {
	text-align: center;
	color: var(--raghada-text-muted);
	font-size: 0.875rem;
	margin-top: -1.5rem;
	margin-bottom: 2rem;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ── App shell ── */
.raghada-app {
	display: block;
	min-height: 100vh;
	background: var(--raghada-bg);
}

.raghada-app--auth {
	display: block;
	min-height: 100vh;
}

.raghada-main-column {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 100%;
}

/* RTL date/time fix */
html[dir="rtl"] input[type="date"],
html[dir="rtl"] input[type="time"],
html[dir="rtl"] input[type="datetime-local"],
html[dir="rtl"] input[type="month"],
html[dir="rtl"] input[type="week"] {
	direction: ltr;
	text-align: left;
	unicode-bidi: isolate;
}
