/* Al Fakher landing page — black + gold (#c9a24b), Amiri / Tajawal. */

:root {
	--af-bg: #0f0e0c;
	--af-band: #131210;
	--af-card: #171512;
	--af-line: #2a2721;
	--af-line-2: #3a362d;
	--af-gold: #c9a24b;
	--af-gold-2: #e3c173;
	--af-text: #f3eee2;
	--af-soft: #b9b2a1;
	--af-mute: #8a8270;
	--af-serif: Amiri, serif;
	--af-sans: Tajawal, system-ui, sans-serif;
}

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

body.af {
	margin: 0;
	background: var(--af-bg);
	color: var(--af-text);
	font-family: var(--af-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.af a { color: var(--af-gold); }
.af a:hover { color: var(--af-gold-2); }
.af img, .af video { display: block; max-width: 100%; }
.af ul, .af ol { margin: 0; padding: 0; list-style: none; }
.af h1, .af h2, .af h3, .af p { margin: 0; }
html { scroll-behavior: smooth; }
.af section[id], #af-order-form { scroll-margin-top: 16px; }

.af-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.af-band { background: var(--af-band); border-top: 1px solid var(--af-line); border-bottom: 1px solid var(--af-line); }
.af-sec { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 40px; }
.af-sec-tight { padding-top: 80px; padding-bottom: 80px; }
.af-narrow { max-width: 820px; gap: 28px; }
.af-stack { display: flex; flex-direction: column; gap: 20px; }
.af-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.af-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.af-center { text-align: center; }
.af-self-start { align-self: flex-start; }

.af-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
.af-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.af-top-align { align-items: start; }
.af-stretch { align-items: stretch; }
.af-cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 860px; width: 100%; margin-inline: auto; }
/* Card photos: swipe sideways, dots underneath */
.af-gal { display: flex; flex-direction: column; gap: 10px; }
.af-gal-row {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	aspect-ratio: 3 / 4; border-radius: 6px; background: var(--af-card);
}
.af-gal-row::-webkit-scrollbar { display: none; }
.af-gal-img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.af-gal-dots { display: flex; justify-content: center; gap: 8px; }
.af-gal-video .af-gal-row { aspect-ratio: 4 / 5; border-radius: 8px; }
.af-gal-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(201, 162, 75, .3); cursor: pointer; }
.af-gal-dots button.is-on { background: var(--af-gold); }

/* Type */
.af-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--af-gold); }
.af-h1 { font-family: var(--af-serif); font-size: 58px; line-height: 1.2; font-weight: 700; color: var(--af-text); }
.af-h2 { font-family: var(--af-serif); font-size: 44px; line-height: 1.25; font-weight: 700; color: var(--af-text); }
.af-p { font-size: 18px; line-height: 1.75; color: var(--af-soft); }
.af-lead { font-size: 20px; }
.af-sm { font-size: 15px; }
.af-xs { font-size: 14px; }

/* Buttons */
.af-btn, .af-btn-ghost {
	display: inline-flex; align-items: center; justify-content: center; text-align: center;
	min-height: 56px; padding: 0 32px; border-radius: 4px;
	font-family: var(--af-sans); font-weight: 800; font-size: 18px; line-height: 1.3;
	text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.af .af-btn { background: var(--af-gold); color: var(--af-bg); border: 0; }
.af .af-btn:hover { background: var(--af-gold-2); color: var(--af-bg); }
.af .af-btn-ghost { background: transparent; color: var(--af-text); border: 1px solid #4a4538; font-weight: 700; font-size: 16px; padding: 0 24px; }
.af .af-btn-ghost:hover { border-color: var(--af-gold); color: var(--af-gold-2); }
.af-btn-sm { min-height: 46px; padding: 0 24px; font-size: 16px; }
.af-full { width: 100%; }
.af-btn:focus-visible, .af-btn-ghost:focus-visible, .af summary:focus-visible { outline: 2px solid var(--af-gold-2); outline-offset: 3px; }

/* Top strip + header */
.af-top { background: var(--af-gold); color: var(--af-bg); text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 800; }
.af-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.af .af-logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.af-logo-ar { font-family: var(--af-serif); font-size: 34px; font-weight: 700; color: var(--af-text); }
.af-logo-en { font-size: 12px; letter-spacing: 2px; color: var(--af-gold); font-weight: 700; }
.af-logo-sm { font-size: 22px; }

/* Hero */
.af-hero { padding-top: 24px; padding-bottom: 72px; }
.af-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--af-soft); }
.af-checks li::before { content: "✓"; color: var(--af-gold); margin-left: 6px; font-weight: 800; }
.af-checks-col { flex-direction: column; font-size: 15px; margin-top: 8px; }

/* Visuals: real image, or a brand panel until photos arrive */
.af-media { width: 100%; height: auto; object-fit: cover; border-radius: 8px; background: var(--af-card); }
.af-panel {
	width: 100%; border-radius: 8px; background: var(--af-card); border: 1px solid var(--af-line);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px;
}
.af-panel-mark { font-family: var(--af-serif); font-size: clamp(32px, 6vw, 64px); color: var(--af-gold); font-weight: 700; line-height: 1.1; }
.af-panel-sub { font-size: 14px; color: var(--af-mute); letter-spacing: 1px; }
.af-card .af-panel-mark { font-size: 36px; }
.af-card .af-panel, .af-card .af-media { border-radius: 6px; }

/* Trust strip */
.af-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-top: 22px; padding-bottom: 22px; text-align: center; }
.af-trust-t { font-family: var(--af-serif); font-size: 26px; color: var(--af-gold); line-height: 1.3; }
.af-trust-s { font-size: 14px; color: var(--af-soft); }

/* Numbered points */
.af-steps { counter-reset: af; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.af-steps li { counter-increment: af; display: flex; gap: 14px; font-size: 16px; color: var(--af-soft); line-height: 1.7; }
.af-steps li::before { content: "٠" counter(af, arabic-indic); color: var(--af-gold); font-weight: 800; flex: none; }

/* Cards */
.af-card { background: var(--af-card); border: 1px solid var(--af-line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.af-card-hot { border-color: var(--af-gold); }
.af-card-t { font-family: var(--af-sans); font-size: 20px; font-weight: 800; color: var(--af-text); line-height: 1.4; }
.af-ico { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--af-gold); color: var(--af-gold); display: flex; align-items: center; justify-content: center; flex: none; }
.af-badge { position: absolute; top: -14px; right: 20px; background: var(--af-gold); color: var(--af-bg); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 3px; }
.af-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.af-price span { font-family: var(--af-serif); font-size: 34px; color: var(--af-gold); line-height: 1.2; }
.af-price small { font-size: 13px; color: var(--af-mute); }
.af-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Gift */
.af-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.af-tags li { border: 1px solid var(--af-line-2); border-radius: 20px; padding: 8px 16px; font-size: 14px; }

/* FAQ */
.af-faq details { border-top: 1px solid var(--af-line); padding: 20px 0; }
.af-faq details:last-child { border-bottom: 1px solid var(--af-line); }
.af-faq summary { font-size: 18px; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 28px; }
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq summary::after { content: "+"; color: var(--af-gold); font-size: 22px; line-height: 1; }
.af-faq details[open] summary::after { content: "−"; }
.af-faq details p { margin-top: 10px; }

/* Order form */
.af-form { padding: 32px; gap: 16px; }
.af-field { display: flex; flex-direction: column; gap: 6px; }
.af-field label { font-size: 14px; color: var(--af-soft); font-weight: 700; }
.af-form input, .af-form select {
	width: 100%; min-height: 52px; background: var(--af-bg); border: 1px solid var(--af-line-2); border-radius: 4px;
	color: var(--af-text); font-family: var(--af-sans); font-size: 16px; padding: 0 16px;
}
.af-form input::placeholder { color: var(--af-mute); }
.af-form input:focus, .af-form select:focus { outline: none; border-color: var(--af-gold); }
.af-form input[dir="ltr"] { text-align: right; }
.af-field .af-label { font-size: 14px; color: var(--af-soft); font-weight: 700; }
.af-hint { margin: 0; font-size: 13px; color: var(--af-mute); }
.af-field-error { margin: 0; font-size: 14px; font-weight: 700; color: #f0a08a; }
.af-form textarea {
	width: 100%; min-height: 96px; padding: 12px 16px; resize: vertical;
	background: var(--af-bg); border: 1px solid var(--af-line-2); border-radius: 4px;
	color: var(--af-text); font: 16px/1.6 var(--af-sans);
}
.af-form textarea::placeholder { color: var(--af-mute); }
.af-form textarea:focus { outline: none; border-color: var(--af-gold); }
.af-stepper {
	display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; min-height: 52px;
	background: var(--af-bg); border: 1px solid var(--af-line-2); border-radius: 4px; overflow: hidden;
}
.af-step {
	min-height: 52px; background: transparent; border: 0; cursor: pointer;
	color: var(--af-gold); font: 700 26px/1 var(--af-sans);
}
.af-step:hover:not(:disabled) { background: var(--af-card); }
.af-step:disabled { color: var(--af-line-2); cursor: default; }
.af-step:focus-visible { outline: 2px solid var(--af-gold-2); outline-offset: -2px; }
.af-qty-view {
	display: flex; align-items: center; justify-content: center;
	border-inline: 1px solid var(--af-line-2); font-size: 18px; font-weight: 800; color: var(--af-text);
}
.af-form [aria-invalid="true"] { border-color: #d0694c; }
/* Boxes, cart style: photo, name + price, counter. A box at 0 is dimmed; at 1 the minus is a bin. */
.af-items { display: flex; flex-direction: column; gap: 10px; }
.af-item {
	display: grid; grid-template-columns: 56px minmax(0, 1fr) 132px; align-items: center; gap: 12px;
	padding: 10px; background: var(--af-bg); border: 1px solid var(--af-gold); border-radius: 6px; transition: border-color .15s, opacity .15s;
}
.af-item.is-off { border-color: var(--af-line-2); }
.af-item.is-off .af-item-img, .af-item.is-off .af-item-txt { opacity: .55; }
.af-item-img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: var(--af-card); }
.af-item-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.af-item-txt b { font-size: 15px; color: var(--af-text); line-height: 1.4; }
.af-item-txt small { font-size: 13px; color: var(--af-gold); }
.af-item-step { grid-template-columns: 40px minmax(0, 1fr) 40px; min-height: 44px; }
.af-item-step .af-step { min-height: 44px; font-size: 22px; }
.af-item-step .af-qty-view { font-size: 16px; }
.af-trash { display: none; }
.af-trash svg { display: block; margin: auto; }
.af-item.is-one .af-minus { display: none; }
.af-item.is-one .af-trash { display: block; color: #f0a08a; }
.af-error[hidden] { display: none; }
.af-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.af-error { background: #3a1a14; border: 1px solid #a5482f; color: #f6d5cb; border-radius: 4px; padding: 12px 14px; font-size: 15px; font-weight: 700; }
/* Order summary: top bar + bottom total row, both open the same breakdown */
.af-chev { flex: 0 0 16px; color: var(--af-gold); transition: transform .2s; }
.is-open > .af-chev, .is-open .af-osum-lb .af-chev { transform: rotate(180deg); }
.af-osum { margin: -32px -32px 4px; background: var(--af-band); border-bottom: 1px solid var(--af-line); border-radius: 8px 8px 0 0; }
.af-osum-h {
	display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 56px; padding: 0 32px; background: transparent; border: 0; cursor: pointer;
	font: 700 15px var(--af-sans); color: var(--af-gold);
}
.af-osum-lb { display: inline-flex; align-items: center; gap: 6px; }
.af-osum-total { font: 700 22px var(--af-serif); color: var(--af-text); }
.af-osum-p { padding: 4px 32px 16px; }
.af-breakdown { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--af-soft); }
.af-breakdown[hidden] { display: none; }
.af-bi { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--af-line); }
.af-bi-pic { position: relative; flex: 0 0 56px; height: 56px; border-radius: 8px; background: var(--af-card); border: 1px solid var(--af-line-2); }
.af-bi-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.af-bi-pic i {
	position: absolute; top: -8px; inset-inline-end: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
	background: var(--af-gold); color: var(--af-bg); font: 800 12px/22px var(--af-sans); text-align: center; font-style: normal;
}
.af-bi-name { flex: 1; color: var(--af-text); font-weight: 700; line-height: 1.4; }
.af-bi-price { color: var(--af-text); white-space: nowrap; }
.af-bl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.af-bl span:last-child { color: var(--af-text); text-align: end; }
.af-bl-t { padding-top: 10px; border-top: 1px solid var(--af-line); font-weight: 800; }
.af-bl-t span:last-child { font: 700 24px var(--af-serif); color: var(--af-gold); }

.af-bl-d span:last-child { color: var(--af-gold); }

/* Coupon */
.af-cpn { display: flex; flex-direction: column; gap: 8px; }
.af-cpn-toggle {
	align-self: flex-start; padding: 0; background: none; border: 0; cursor: pointer;
	color: var(--af-gold); font: 700 14px var(--af-sans); text-decoration: underline; text-underline-offset: 3px;
}
.af-cpn-box[hidden] { display: none; }
.af-cpn-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.af-cpn-row input { text-transform: uppercase; text-align: right; }
.af-cpn-apply {
	min-height: 52px; padding: 0 22px; border: 1px solid var(--af-gold); border-radius: 4px; background: transparent;
	color: var(--af-gold); font: 800 15px var(--af-sans); cursor: pointer;
}
.af-cpn-apply:hover:not(:disabled) { background: var(--af-gold); color: var(--af-bg); }
.af-cpn-apply:disabled { opacity: .6; cursor: default; }
.af-cpn-msg { margin: 0; font-size: 14px; font-weight: 700; }
.af-cpn-msg:empty { display: none; }
.af-cpn-msg.is-ok { color: var(--af-gold); }
.af-cpn-msg.is-bad { color: #f0a08a; }
.af-cpn-rm { padding: 0; background: none; border: 0; cursor: pointer; color: var(--af-mute); font: 700 13px var(--af-sans); text-decoration: underline; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.af-tot {
	display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--af-line);
	cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.af-tot:focus-visible { outline: 2px solid var(--af-gold-2); outline-offset: 4px; }
.af-tot-img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; border: 1px solid var(--af-line-2); background: var(--af-card); }
.af-tot-txt { flex: 1; display: flex; flex-direction: column; }
.af-tot-txt b { font-size: 17px; color: var(--af-text); }
.af-tot-txt small { font-size: 13px; color: var(--af-mute); }
.af-tot-amt { font: 700 28px var(--af-serif); color: var(--af-gold); white-space: nowrap; }
.af-tot-p { margin-top: -4px; padding: 14px 16px; background: var(--af-band); border: 1px solid var(--af-line); border-radius: 8px; }
.af-note { font-size: 13px; color: var(--af-mute); text-align: center; }

/* Footer */
.af-footer { border-top: 1px solid var(--af-line); }
.af-footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--af-mute); }
.af-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* Buyer reviews: chat screenshots shown one at a time, fading to the next (landing.js) */
.af-reviews { display: flex; flex-direction: column; gap: 20px; }
.af-rev-row { position: relative; width: 100%; max-width: 340px; height: 520px; align-self: center; touch-action: pan-y; }
.af-rev { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .6s ease; }
.af-rev:first-child, .af-rev.is-on { opacity: 1; }
.af-rev-row:has(.is-on) .af-rev:not(.is-on) { opacity: 0; }
.af-rev img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border: 1px solid var(--af-line-2); border-radius: 10px; background: #fff; }
.af-rev-dots { align-self: center; }

/* Sticky mobile CTA */
.af-sticky { display: none; }

@media (max-width: 900px) {
	.af-grid4, .af-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.af-grid2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.af-h1 { font-size: 42px; }
	.af-h2 { font-size: 34px; }
	/* Ad traffic lands on the product first, with the headline still above the fold. */
	.af-hero { padding-top: 8px; }
	.af-hero .af-grid2 { gap: 24px; }
	.af-hero .af-media,
	.af-hero .af-panel { order: -1; aspect-ratio: auto !important; height: auto; }
}

@media (max-width: 768px) {
	.af-sticky {
		display: block; position: fixed; inset: auto 0 0 0; z-index: 50;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: rgba(15, 14, 12, .96); border-top: 1px solid var(--af-line);
		transition: transform .2s ease;
	}
	.af-sticky.is-hidden { transform: translateY(110%); }
	body.af { padding-bottom: 80px; }
}

@media (max-width: 600px) {
	.af-wrap { padding: 0 16px; }
	.af-sec { padding-top: 56px; padding-bottom: 56px; gap: 28px; }
	.af-hero { padding-bottom: 48px; }
	.af-grid4, .af-cards2 { grid-template-columns: minmax(0, 1fr); }
	.af-h1 { font-size: 36px; }
	.af-h2 { font-size: 30px; }
	.af-lead { font-size: 18px; }
	.af-p { font-size: 16px; }
	.af-row .af-btn, .af-row .af-btn-ghost { width: 100%; }
	.af-form { padding: 22px; }
	.af-osum { margin: -22px -22px 4px; }
	.af-osum-h { padding: 0 22px; }
	.af-osum-p { padding: 4px 22px 16px; }
	.af-header .af-btn-sm { display: none; }
	/* Box rows: counter goes under the name so the name gets the full width. */
	.af-item { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "img txt" "img step"; row-gap: 8px; }
	.af-item-img { grid-area: img; width: 64px; height: 64px; align-self: start; }
	.af-item-txt { grid-area: txt; }
	.af-item-step { grid-area: step; width: 132px; }
	.af-trust-t { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.af-sticky { transition: none; }
}
