/* ==========================================================================
   FALCON — styles
   Brand palette: Midnight Black / Deep Navy / Warm Sand / Stone Olive / Cream
   RTL is handled with logical properties (margin-inline, inset-inline, ...).
   ========================================================================== */
:root {
  --black: #111214;
  --navy: #252B32;
  --sand: #E9E5DC;
  --olive: #696B64;
  --cream: #F4F2EC;
  --gold: #B59A5B;           /* antique gold accent, used sparingly */
  --line-light: rgba(244, 242, 236, .16);
  --line-dark: rgba(17, 18, 20, .16);
  --muted-on-dark: rgba(244, 242, 236, .72);
  --muted-on-light: #55574f;
  --font-en: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Cairo", "Tajawal", Tahoma, "Segoe UI", sans-serif;
  --font: var(--font-en);
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
html[lang="ar"] { --font: var(--font-ar); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--black); color: var(--cream);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

/* Arabic: never letter-space or uppercase connected script */
html[dir="rtl"] * { letter-spacing: 0 !important; text-transform: none !important; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--cream); color: var(--black); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(17, 18, 20, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand__word { font-family: var(--font-en); font-weight: 800; font-size: 22px; letter-spacing: .34em; padding-inline-end: .1em; }
.brand__img { height: 30px; width: auto; }
.nav { display: flex; gap: 36px; }
.nav a {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), opacity .3s;
  opacity: .8;
}
html[lang="ar"] .nav a { font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; border-color: var(--gold); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; background: none; border: 0; padding: 0 8px; color: inherit;
}
.lang-btn { font-size: 13px; letter-spacing: .1em; font-weight: 600; border: 1px solid var(--line-light); padding: 0 14px; height: 38px; background: none; }
.lang-btn:hover { border-color: var(--cream); }
.cart-count {
  position: absolute; top: 4px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--gold); color: var(--black); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); inset-inline: 0; flex-direction: column; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--line-light);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line-light); font-size: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 34px; border: 1px solid var(--cream);
  background: var(--cream); color: var(--black);
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-align: center;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
html[lang="ar"] .btn { font-size: 16px; }
.btn:hover { background: transparent; color: var(--cream); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--cream); color: var(--black); border-color: var(--cream); }
.btn--dark { background: var(--black); color: var(--cream); border-color: var(--black); }
.btn--dark:hover { background: transparent; color: var(--black); }
.section--cream .btn--ghost:hover, .section--sand .btn--ghost:hover { background: var(--black); color: var(--cream); border-color: var(--black); }
.btn--sm { min-height: 42px; padding: 0 22px; font-size: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
html[lang="ar"] .link-arrow { font-size: 16px; }
html[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- Sections / type ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--dark { background: var(--black); color: var(--cream); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--cream { background: var(--cream); color: var(--black); }
.section--sand { background: var(--sand); color: var(--black); }
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; color: var(--gold); margin-bottom: 18px; }
html[lang="ar"] .eyebrow { font-size: 15px; }
.h1 { font-weight: 800; font-size: clamp(44px, 9vw, 120px); line-height: .98; letter-spacing: -.015em; text-transform: uppercase; }
.h2 { font-weight: 700; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -.01em; text-transform: uppercase; }
.h3 { font-weight: 600; font-size: 18px; letter-spacing: .02em; }
html[lang="ar"] .h1 { line-height: 1.25; }
html[lang="ar"] .h2 { line-height: 1.3; }
.lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 56ch; color: var(--muted-on-dark); }
.section--cream .lead, .section--sand .lead { color: var(--muted-on-light); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,18,20,.88), rgba(17,18,20,.1) 60%); }
.hero__content { position: relative; z-index: 1; padding-block: clamp(48px, 9vw, 112px); }
.hero__sub { margin-top: 24px; font-size: clamp(17px, 2vw, 22px); color: var(--muted-on-dark); max-width: 40ch; }
.hero__cta { margin-top: 36px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: rise .9s var(--ease) both; }
  .hero__content > *:nth-child(2) { animation-delay: .1s; }
  .hero__content > *:nth-child(3) { animation-delay: .2s; }
  .hero__content > *:nth-child(4) { animation-delay: .3s; }
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Product grid / cards ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid, .grid--2 { grid-template-columns: 1fr; } }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.1s var(--ease); }
.card__alt { opacity: 0; }
.card:hover .card__alt, .card:focus-within .card__alt { opacity: 1; }
.card:hover .card__media img:first-child { transform: scale(1.03); }
.card__body { padding-top: 18px; display: grid; gap: 4px; }
.card__name { font-size: 17px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
html[lang="ar"] .card__name { font-size: 19px; }
.card__meta { font-size: 14px; opacity: .7; }
.card__price { font-size: 16px; font-weight: 500; margin-bottom: 12px; }

/* ---------- Brand story / quality ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.story-visual { aspect-ratio: 4 / 5; background: var(--navy); position: relative; overflow: hidden; }
.story-visual img { width: 100%; height: 100%; object-fit: cover; }
.quality { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(32px, 5vw, 64px); }
@media (max-width: 800px) { .quality { grid-template-columns: 1fr; } }
.quality__item { border-top: 1px solid var(--line-light); padding-top: 24px; }
.quality__item p { margin-top: 10px; color: var(--muted-on-dark); }
.lifestyle { position: relative; min-height: 70vh; display: flex; align-items: center; overflow: hidden; }
.lifestyle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lifestyle__inner { position: relative; z-index: 1; }
.note-small { margin-top: 20px; font-size: 13px; opacity: .6; max-width: 48ch; }

/* ---------- Page header ---------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 48px); }
.page-head .h2 { margin-top: 4px; }
.page-head .lead { margin-top: 20px; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.gallery__main { aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.gallery__thumb { aspect-ratio: 1; background: var(--sand); border: 1px solid transparent; padding: 0; overflow: hidden; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-pressed="true"] { border-color: var(--black); }
.badge-note { margin-top: 12px; font-size: 13px; color: var(--muted-on-light); }
.product__info { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 860px) { .product__info { position: static; } }
.product__price { font-size: 24px; margin-top: 12px; font-weight: 500; }
.product__desc { margin-top: 24px; color: var(--muted-on-light); }
.field { margin-top: 28px; }
.field__label { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
html[lang="ar"] .field__label { font-size: 15px; }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.option {
  min-width: 56px; height: 48px; padding: 0 18px; background: transparent; color: var(--black);
  border: 1px solid var(--line-dark); font-weight: 500; transition: all .25s var(--ease);
}
.option:hover { border-color: var(--black); }
.option[aria-pressed="true"] { background: var(--black); color: var(--cream); border-color: var(--black); }
.swatch { display: inline-flex; align-items: center; gap: 10px; padding-inline: 14px 18px; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-dark); display: inline-block; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-dark); }
.qty button { width: 44px; height: 46px; background: none; border: 0; font-size: 20px; color: inherit; }
.qty button:hover { background: rgba(17,18,20,.06); }
.qty output { min-width: 40px; text-align: center; font-weight: 600; }
.actions { display: grid; gap: 12px; margin-top: 32px; }
.form-error { color: #8f2d2d; font-size: 14px; margin-top: 10px; min-height: 1.2em; }
.accordion { margin-top: 36px; border-top: 1px solid var(--line-dark); }
.accordion details { border-bottom: 1px solid var(--line-dark); }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 0; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; display: flex; justify-content: space-between; }
html[lang="ar"] .accordion summary { font-size: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 20px; line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion .panel { padding-bottom: 22px; color: var(--muted-on-light); }
.accordion .panel li { padding-inline-start: 18px; position: relative; margin-bottom: 6px; }
.accordion .panel li::before { content: ""; position: absolute; inset-inline-start: 0; top: .75em; width: 8px; height: 1px; background: var(--black); }
.table-wrap { overflow-x: auto; }
table.sizes { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.sizes th, .sizes td { text-align: center; padding: 10px 8px; border-bottom: 1px solid var(--line-dark); }
.sizes th { font-weight: 600; color: var(--black); }

/* ---------- Cart ---------- */
.cart { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .cart { grid-template-columns: 1fr; } }
.cart-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; padding-block: 24px; border-bottom: 1px solid var(--line-dark); align-items: start; }
.cart-row:first-child { border-top: 1px solid var(--line-dark); }
.cart-row__img { aspect-ratio: 4 / 5; background: var(--sand); }
.cart-row__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row__name { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.cart-row__meta { font-size: 14px; color: var(--muted-on-light); margin-top: 2px; }
.cart-row__controls { display: flex; align-items: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.cart-row__total { font-weight: 600; text-align: end; }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; color: var(--muted-on-light); }
.linklike:hover { color: var(--black); }
.summary { background: var(--sand); padding: clamp(24px, 3vw, 36px); position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 860px) { .summary { position: static; } }
.summary__row { display: flex; justify-content: space-between; padding-block: 8px; }
.summary__total { border-top: 1px solid var(--line-dark); margin-top: 12px; padding-top: 18px; font-size: 20px; font-weight: 700; }
.summary p.small { font-size: 13px; color: var(--muted-on-light); margin-top: 16px; }
.status { margin-top: 16px; padding: 14px 16px; background: var(--cream); border-inline-start: 3px solid var(--gold); font-size: 14px; }
.status a { text-decoration: underline; font-weight: 600; }
.empty { text-align: center; padding-block: 48px; }
.empty p { margin-bottom: 28px; font-size: 18px; color: var(--muted-on-light); }

/* ---------- Content pages / forms ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 20px; margin: 40px 0 10px; font-weight: 700; letter-spacing: .02em; }
.prose p { color: var(--muted-on-light); margin-bottom: 12px; }
.draft-banner, .tbc-tag { display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; background: var(--black); color: var(--cream); padding: 6px 12px; }
html[lang="ar"] .draft-banner, html[lang="ar"] .tbc-tag { font-size: 14px; }
.banner { margin-bottom: 32px; padding: 16px 20px; border-inline-start: 3px solid var(--gold); background: var(--sand); font-size: 15px; }
.policy { padding-block: 22px; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
@media (max-width: 640px) { .policy { grid-template-columns: 1fr; gap: 8px; } }
.policy h3 { font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
html[lang="ar"] .policy h3 { font-size: 17px; }
.policy p { color: var(--muted-on-light); margin-bottom: 8px; }
.values { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.values li { border: 1px solid var(--line-dark); padding: 10px 20px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .values li { font-size: 16px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.input, .textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--black); padding: 14px 0; border-radius: 0; color: var(--black); }
.textarea { min-height: 140px; resize: vertical; border: 1px solid var(--black); padding: 14px; }
.input:focus, .textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
label.lbl { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin: 24px 0 4px; }
html[lang="ar"] label.lbl { font-size: 15px; }
.big-number { font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin: 12px 0 28px; direction: ltr; unicode-bidi: isolate; display: block; text-align: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--cream); border-top: 1px solid var(--line-light); padding-block: clamp(48px, 7vw, 88px) 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__statement { margin-top: 18px; color: var(--muted-on-dark); max-width: 34ch; }
.footer__title { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
html[lang="ar"] .footer__title { font-size: 15px; }
.footer__list li { margin-bottom: 10px; }
.footer__list a { color: var(--muted-on-dark); transition: color .25s; display: inline-flex; gap: 8px; align-items: center; }
.footer__list a:hover { color: var(--cream); }
.footer__phone { direction: ltr; unicode-bidi: isolate; }
.footer__bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 13px; color: var(--muted-on-dark); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; inset-inline: 16px; bottom: 20px; z-index: 300; margin-inline: auto; max-width: 440px;
  background: var(--cream); color: var(--black); padding: 14px 18px; display: flex; justify-content: space-between; gap: 16px;
  border-inline-start: 3px solid var(--gold); box-shadow: 0 8px 30px rgba(0,0,0,.35);
  transform: translateY(24px); opacity: 0; pointer-events: none; transition: all .35s var(--ease);
}
.toast.show { transform: none; opacity: 1; pointer-events: auto; }
.toast a { font-weight: 600; text-decoration: underline; white-space: nowrap; }
