/**
 * Styles: base. Design tokens (Havana Royal), reset, typography, buttons, ornaments, reveal motion.
 * Uses logical properties (inline/block) so Arabic RTL mirrors automatically.
 */

:root {
	/* Palette (from the logo) */
	--rc-onyx: #0B0908;
	--rc-espresso: #1E1410;
	--rc-espresso-2: #2A1C15;
	--rc-tobacco: #6B4423;
	--rc-gold: #C9A24A;
	--rc-gold-light: #E6C77A;
	--rc-crimson: #B3171C;
	--rc-cream: #F3E9D7;
	--rc-muted: #B8A992;
	--rc-success: #4E8B5A;
	--rc-line: rgba(201, 162, 74, .22);
	--rc-line-soft: rgba(201, 162, 74, .12);
	--rc-gold-grad: linear-gradient(135deg, #B08A3A 0%, #C9A24A 35%, #E6C77A 55%, #C9A24A 75%, #9C7A30 100%);

	/* Type */
	--rc-font-label: "RC Riyal", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--rc-font-heading: "RC Riyal", "Cormorant Garamond", Georgia, serif;
	--rc-font-body: "RC Riyal", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Layout */
	--rc-container: 1320px;
	--rc-gutter: clamp(16px, 4vw, 40px);
	--rc-section: clamp(64px, 9vw, 128px);
	--rc-header-h: 84px;

	/* Motion */
	--rc-ease: cubic-bezier(.22, .61, .36, 1);
	--rc-slow: .9s;

	/* Faint Arabic geometric pattern in gold */
	--rc-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23C9A24A' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M48 6l11 31 31 11-31 11-11 31-11-31L6 48l31-11z'/%3E%3Crect x='27' y='27' width='42' height='42' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3C/g%3E%3C/svg%3E");
}

/* Arabic / Urdu fonts */
html:lang(ar) {
	--rc-font-heading: "RC Riyal", "Amiri", "Cormorant Garamond", serif;
	--rc-font-body: "RC Riyal", "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
	--rc-font-label: "RC Riyal", "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
}
html:lang(ur) {
	--rc-font-heading: "RC Riyal", "Noto Nastaliq Urdu", serif;
	--rc-font-body: "RC Riyal", "Noto Nastaliq Urdu", system-ui, sans-serif;
	--rc-font-label: "RC Riyal", "Noto Nastaliq Urdu", serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--rc-onyx);
	color: var(--rc-cream);
	font-family: var(--rc-font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--rc-gold); text-decoration: none; transition: color .3s var(--rc-ease); }
a:hover { color: var(--rc-gold-light); }
button { font: inherit; color: inherit; cursor: pointer; }
/* :where() keeps this at zero specificity, so classes like .rc-container keep their margin/padding. */
:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--rc-gold); color: var(--rc-onyx); }

:focus-visible { outline: 1px solid var(--rc-gold-light); outline-offset: 3px; }

.screen-reader-text, .rc-sr {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.rc-skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 1000; background: var(--rc-gold); color: var(--rc-onyx); padding: 10px 16px; }
.rc-skip:focus { top: 16px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--rc-font-heading);
	font-weight: 500;
	line-height: 1.08;
	color: var(--rc-cream);
	margin: 0 0 .5em;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }

.rc-eyebrow {
	font-family: var(--rc-font-label); font-weight: 600;
	font-size: .78rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rc-gold);
	margin: 0 0 14px;
	display: inline-flex;
	align-items: center;
	gap: 14px;
}
.rc-eyebrow::before, .rc-eyebrow::after {
	content: "";
	inline-size: 6px; block-size: 6px;
	background: var(--rc-gold);
	transform: rotate(45deg);
	opacity: .8;
}
.rc-title { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; }

/* Gold rule with ◆ ornament */
.rc-rule {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	inline-size: 160px; margin-block: 18px 0; color: var(--rc-gold);
}
.rc-rule::before, .rc-rule::after {
	content: ""; flex: 1; block-size: 1px;
	background: linear-gradient(90deg, transparent, var(--rc-gold));
}
.rc-rule::after { background: linear-gradient(90deg, var(--rc-gold), transparent); }
.rc-rule i { inline-size: 7px; block-size: 7px; background: var(--rc-gold); transform: rotate(45deg); }

/* Icons */
.rc-icon { inline-size: 22px; block-size: 22px; flex: none; }
[dir="rtl"] .rc-flip { transform: scaleX(-1); }

/* Buttons */
.rc-btn {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 30px;
	font-family: var(--rc-font-label);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	line-height: 1;
	border: 1px solid var(--rc-gold);
	border-radius: 0;
	background: transparent;
	color: var(--rc-gold);
	overflow: hidden;
	isolation: isolate;
	transition: color .4s var(--rc-ease), background-color .4s var(--rc-ease), border-color .4s var(--rc-ease), transform .4s var(--rc-ease);
	white-space: nowrap;
}
.rc-btn::after {
	/* shimmer sweep */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 240, 200, .45) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform .9s var(--rc-ease);
}
.rc-btn:hover::after { transform: translateX(120%); }
.rc-btn:hover { color: var(--rc-onyx); background: var(--rc-gold); }
.rc-btn--gold { background: var(--rc-gold-grad); background-size: 200% 100%; color: var(--rc-onyx); border-color: transparent; }
.rc-btn--gold:hover { background-position: 100% 0; color: var(--rc-onyx); }
.rc-btn--cream { border-color: rgba(243, 233, 215, .5); color: var(--rc-cream); }
.rc-btn--cream:hover { background: var(--rc-cream); color: var(--rc-onyx); border-color: var(--rc-cream); }
.rc-btn--sm { padding: 11px 20px; font-size: .7rem; }
.rc-btn .rc-icon { inline-size: 16px; block-size: 16px; }

.rc-link {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--rc-font-label); font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--rc-gold);
	padding-block-end: 4px;
	background: linear-gradient(var(--rc-gold), var(--rc-gold)) no-repeat 0 100% / 0 1px;
	transition: background-size .5s var(--rc-ease), color .3s;
}
[dir="rtl"] .rc-link { background-position: 100% 100%; }
.rc-link:hover { background-size: 100% 1px; }
.rc-link .rc-icon { inline-size: 16px; block-size: 16px; transition: transform .4s var(--rc-ease); }
.rc-link:hover .rc-icon { transform: translateX(4px); }
[dir="rtl"] .rc-link:hover .rc-icon { transform: scaleX(-1) translateX(4px); }

/* Forms (basic) */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
	font: inherit; color: var(--rc-cream);
	background: rgba(243, 233, 215, .04);
	border: 1px solid var(--rc-line);
	border-radius: 0;
	padding: 13px 16px;
	inline-size: 100%;
	transition: border-color .3s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rc-gold); }
::placeholder { color: rgba(243, 233, 215, .45); }

/* Reveal on scroll (only when JS is running, so content is never hidden without JS) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity var(--rc-slow) var(--rc-ease), transform var(--rc-slow) var(--rc-ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: .12s; }
.js [data-reveal-delay="2"] { transition-delay: .24s; }
.js [data-reveal-delay="3"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
	.js [data-reveal] { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.rc-empty { color: var(--rc-muted); text-align: center; padding: 40px 0; }
