/**
 * C-Persian — Foundation
 *
 * Global design tokens, normalization, RTL foundation,
 * typography primitives and layout utilities.
 */


/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
	--cp-red: #D2344F;
	--cp-red-dark: #96152A;
	--cp-burgundy: #590E20;

	--cp-navy: #1C3248;
	--cp-blue: #2A4E68;
	--cp-blue-light: #608AAD;

	--cp-coral: #F79F9B;

	--cp-bg: #F7F7F5;
	--cp-surface: #FFFFFF;

	--cp-text: #171717;
	--cp-text-muted: #666A70;

	--cp-border: #E4E5E7;

	--cp-success: #247A52;
	--cp-warning: #A66310;
	--cp-danger: #B4233D;

	--cp-font-family: Tahoma, Arial, sans-serif;

	--cp-radius-sm: 10px;
	--cp-radius-md: 16px;
	--cp-radius-lg: 24px;
	--cp-radius-xl: 32px;

	--cp-shadow-sm: 0 8px 24px rgba(23, 23, 23, 0.06);
	--cp-shadow-md: 0 16px 40px rgba(23, 23, 23, 0.08);

	--cp-container: 1240px;

	--cp-space-1: 4px;
	--cp-space-2: 8px;
	--cp-space-3: 12px;
	--cp-space-4: 16px;
	--cp-space-5: 20px;
	--cp-space-6: 24px;
	--cp-space-7: 32px;
	--cp-space-8: 40px;
	--cp-space-9: 48px;
	--cp-space-10: 64px;
	--cp-space-11: 80px;
	--cp-space-12: 96px;

	--cp-transition: 180ms ease;
}


/* ==========================================================================
   Box sizing
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}


/* ==========================================================================
   Document
   ========================================================================== */

html {
	direction: rtl;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--cp-bg);
	color: var(--cp-text);
	font-family: var(--cp-font-family);
	font-size: 16px;
	line-height: 1.9;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}


/* ==========================================================================
   Basic elements
   ========================================================================== */

img,
svg,
video,
canvas {
	display: block;
	max-width: 100%;
	height: auto;
}

iframe {
	max-width: 100%;
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration: none;
}

a,
button,
input,
textarea,
select {
	-webkit-tap-highlight-color: transparent;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block-start: 0;
}

p {
	margin-block-end: var(--cp-space-4);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--cp-text);
	font-weight: 700;
	line-height: 1.45;
}

ul,
ol {
	margin-block-start: 0;
}

figure {
	margin: 0;
}


/* ==========================================================================
   Selection
   ========================================================================== */

::selection {
	background: var(--cp-red);
	color: #fff;
}


/* ==========================================================================
   Accessibility
   ========================================================================== */

:focus-visible {
	outline: 3px solid rgba(210, 52, 79, 0.35);
	outline-offset: 3px;
}

.cp-sr-only {
	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;
}


/* ==========================================================================
   Global layout
   ========================================================================== */

.cp-container {
	width: min(
		calc(100% - 32px),
		var(--cp-container)
	);
	margin-inline: auto;
}

.cp-section {
	padding-block: var(--cp-space-10);
}

.cp-section--surface {
	background: var(--cp-surface);
}

.cp-section--navy {
	background: var(--cp-navy);
	color: #fff;
}


/* ==========================================================================
   Generic content helpers
   ========================================================================== */

.cp-eyebrow {
	margin-block-end: var(--cp-space-3);
	color: var(--cp-red);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
}

.cp-section-title {
	max-width: 760px;
	margin-block-end: var(--cp-space-4);
	font-size: clamp(28px, 7vw, 48px);
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.cp-section-description {
	max-width: 720px;
	margin-block-end: 0;
	color: var(--cp-text-muted);
	font-size: 15px;
	line-height: 2;
}


/* ==========================================================================
   Buttons
   ========================================================================== */

.cp-button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: var(--cp-space-2);
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	transition:
		background-color var(--cp-transition),
		color var(--cp-transition),
		border-color var(--cp-transition),
		transform var(--cp-transition);
}

.cp-button:hover {
	transform: translateY(-1px);
}

.cp-button--primary {
	background: var(--cp-red);
	color: #fff;
}

.cp-button--primary:hover {
	background: var(--cp-red-dark);
}

.cp-button--secondary {
	border-color: var(--cp-border);
	background: var(--cp-surface);
	color: var(--cp-text);
}

.cp-button--secondary:hover {
	border-color: var(--cp-navy);
	color: var(--cp-navy);
}


/* ==========================================================================
   Cards
   ========================================================================== */

.cp-card {
	border: 1px solid var(--cp-border);
	border-radius: var(--cp-radius-lg);
	background: var(--cp-surface);
}

.cp-card--shadow {
	box-shadow: var(--cp-shadow-sm);
}


/* ==========================================================================
   Mobile-first responsive foundation
   ========================================================================== */

@media (min-width: 768px) {

	.cp-container {
		width: min(
			calc(100% - 48px),
			var(--cp-container)
		);
	}

	.cp-section {
		padding-block: var(--cp-space-11);
	}

	.cp-section-description {
		font-size: 16px;
	}
}


@media (min-width: 1200px) {

	.cp-container {
		width: min(
			calc(100% - 64px),
			var(--cp-container)
		);
	}

	.cp-section {
		padding-block: var(--cp-space-12);
	}
}


/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}