/* ==========================================================================
   Al Fajar — global base
   Ported from the shared page stylesheet in AL-FAJAR-TRANSPORT HTML/.
   Every colour, font and size comes from design-tokens/tokens.css.
   Changes from the HTML: gold TEXT uses --accent-text (--gold-dk fails AA
   as text), physical left/right replaced with logical properties.
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
	margin: 0;
	background: var(--page);
	color: var(--text);
	font-family: var(--body);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
svg { max-width: 100%; }

img { height: auto; }

a { color: inherit; }

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--display);
	font-weight: var(--fw-extrabold);
	line-height: var(--lh-heading);
	letter-spacing: var(--ls-heading);
	text-wrap: balance;
}

p { margin: 0; }

ul,
ol { margin: 0; padding: 0; list-style: none; }

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

[hidden] { display: none !important; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
	position: absolute;
	top: 0;
	inset-inline-start: -9999px;
	z-index: 200;
	padding: .7rem 1.1rem;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: var(--fw-semibold);
}

.skip:focus { inset-inline-start: .5rem; top: .5rem; }

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

/* ---------- shared atoms ---------- */
.on-plate { color: var(--on-plate); }

.mono {
	font-family: var(--mono);
	font-size: var(--fs-mono);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; color: var(--accent-text); }
.eyebrow::before { content: ""; flex: none; width: 26px; height: 2px; background: var(--accent); }
.on-plate .eyebrow { color: var(--on-plate-accent); }

.lead { max-width: 62ch; color: var(--text-mid); font-size: var(--fs-lead); line-height: var(--lh-text); }
.on-plate .lead { color: var(--on-plate-mid); }

.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	min-height: 54px;
	padding: 0 1.6rem;
	border: 1px solid transparent;
	border-radius: var(--r);
	font-family: var(--body);
	font-size: .95rem;
	font-weight: var(--fw-semibold);
	letter-spacing: var(--ls-ui);
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s cubic-bezier(.22, 1, .36, 1), background-color .18s, border-color .18s, box-shadow .18s;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px rgba(168, 124, 44, .28); }
.btn-gold:hover { background: var(--gold-lt); }

.btn-ghost { background: transparent; color: var(--on-plate); border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(206, 164, 73, .10); }

.btn-ink { background: var(--text); color: var(--page); }
.btn-ink:hover { background: var(--gold-700); color: #fff; }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-text); }

.btn-sm { min-height: 44px; padding: 0 1.05rem; font-size: .875rem; }

/* ---------- tags & status ---------- */
.tag {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .3rem .6rem;
	border: 1px solid var(--accent-line);
	border-radius: var(--r-sm);
	background: var(--accent-subtle);
	color: var(--accent-text);
}

/* Green is status-only ("new", "open now") — never decorative. */
.tag-new { background: var(--success-subtle); color: var(--success-text); border-color: rgba(46, 125, 91, .32); }

.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(46, 125, 91, .18); }

/* ---------- photo slots: art-directed placeholders, swap via --img ---------- */
.slot {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--plate-line);
	border-radius: var(--r-lg);
	background-color: var(--ink);
	background-image: var(--img,
		radial-gradient(80% 70% at 22% 108%, rgba(206, 164, 73, .30), rgba(12, 12, 12, 0) 62%),
		repeating-linear-gradient(115deg, rgba(255, 255, 255, .028) 0 2px, rgba(255, 255, 255, 0) 2px 9px),
		var(--grad-dawn));
	background-size: cover;
	background-position: center;
}

.slot::after {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(206, 164, 73, .22);
	border-radius: var(--r);
	pointer-events: none;
}

.slot-cap {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .5rem;
	padding: 1.5rem 1.15rem .95rem;
	color: var(--on-plate-muted);
	background: linear-gradient(180deg, rgba(12, 12, 12, 0), rgba(12, 12, 12, .86));
}

.slot-cap b { color: var(--gold-lt); font-weight: var(--fw-semibold); }
