/* =============================================================
   Saheel Alkhail — public styles (dark-luxury, navy & gold, RTL)
   ============================================================= */
:root{
  --navy-950:#070C1B;
  --navy-900:#0A1128;
  --navy-800:#0F1A38;
  --navy-700:#16244A;
  --gold:#C6A15B;
  --gold-bright:#E3C77E;
  --gold-deep:#9C7B3A;
  --ivory:#F3EEE1;
  --muted:#94A0BC;
  --serif:'Amiri',Georgia,serif;
  --latin:'Cormorant Garamond',Georgia,serif;
  --sans:'Tajawal',system-ui,'Segoe UI',Tahoma,sans-serif;
  /* English (LTR) faces */
  --serif-en:'Cormorant Garamond',Georgia,serif;
  --sans-en:'Jost',system-ui,-apple-system,'Segoe UI',Helvetica,Arial,sans-serif;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--navy-900);
  color:var(--ivory);
  font-family:var(--sans);
  font-weight:300;
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
::selection{background:var(--gold);color:var(--navy-950)}

/* ============================================================
   ENGLISH (LTR) TYPOGRAPHY
   Latin display uses Cormorant Garamond; body uses Jost.
   ============================================================ */
[dir="ltr"] body{font-family:var(--sans-en);font-weight:300;letter-spacing:.005em}
[dir="ltr"] .topbar__name,
[dir="ltr"] .hero__title,
[dir="ltr"] .section-head__title,
[dir="ltr"] .footer__name-ar,
[dir="ltr"] .card figcaption,
[dir="ltr"] .lightbox__stage figcaption{font-family:var(--serif-en)}
[dir="ltr"] .hero__title{letter-spacing:.005em;line-height:1.15}
[dir="ltr"] .hero__eyebrow,
[dir="ltr"] .section-head__eyebrow,
[dir="ltr"] .footer__label{letter-spacing:.3em}
[dir="ltr"] .footer__name-en,
[dir="ltr"] .hero__latin{letter-spacing:.22em}

/* ============================================================
   LANGUAGE SWITCH
   ============================================================ */
.topbar__actions{display:flex;align-items:center;gap:clamp(1rem,3vw,2rem)}
.langswitch{display:flex;align-items:center;gap:.55rem;white-space:nowrap}
.langswitch__opt{
  font-family:var(--sans);font-size:.82rem;font-weight:500;letter-spacing:.04em;
  color:var(--muted);transition:color .3s var(--ease);line-height:1;
}
[dir="ltr"] .langswitch__opt{font-family:var(--sans-en)}
.langswitch__opt:hover{color:var(--gold)}
.langswitch__opt.is-active{color:var(--gold-bright)}
.langswitch__sep{width:1px;height:13px;background:rgba(198,161,91,.4)}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  padding:.85rem 2.1rem;
  font-family:var(--sans);
  font-weight:500;
  font-size:.98rem;
  letter-spacing:.02em;
  border-radius:2px;
  transition:transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  cursor:pointer;
}
.btn--gold{
  background:linear-gradient(120deg,var(--gold-bright),var(--gold) 60%,var(--gold-deep));
  color:var(--navy-950);
  box-shadow:0 10px 30px -12px rgba(198,161,91,.6);
}
.btn--gold:hover{transform:translateY(-3px);box-shadow:0 16px 40px -12px rgba(198,161,91,.75)}
.btn--ghost{
  border:1px solid rgba(198,161,91,.5);
  color:var(--gold-bright);
}
.btn--ghost:hover{border-color:var(--gold);background:rgba(198,161,91,.08);transform:translateY(-3px)}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(22,36,74,.85), transparent 60%),
    linear-gradient(180deg,var(--navy-950),var(--navy-900) 55%,var(--navy-800));
  overflow:hidden;
}
.hero__glow{
  position:absolute;inset:0;
  background:radial-gradient(600px 400px at 50% 38%, rgba(198,161,91,.14), transparent 70%);
  pointer-events:none;
}
.hero__watermark{
  position:absolute;top:50%;left:50%;
  transform:translate(-50%,-46%);
  opacity:.04;
  pointer-events:none;
  filter:blur(.3px);
}

/* topbar */
.topbar{
  position:relative;z-index:3;
  display:flex;align-items:center;justify-content:space-between;
  padding:1.5rem clamp(1.2rem,5vw,4rem);
}
.topbar__brand{display:flex;align-items:center;gap:.75rem}
.topbar__logo-img{height:40px;width:auto;object-fit:contain}
.topbar__name{
  font-family:var(--serif);font-weight:700;font-size:1.35rem;
  color:var(--ivory);letter-spacing:.01em;
}
.topbar__links{display:flex;gap:2rem}
.topbar__links a{
  position:relative;font-size:.95rem;color:var(--muted);
  transition:color .3s var(--ease);
}
.topbar__links a::after{
  content:'';position:absolute;bottom:-6px;inset-inline-start:0;height:1px;width:0;
  background:var(--gold);transition:width .35s var(--ease);
}
.topbar__links a:hover{color:var(--gold-bright)}
.topbar__links a:hover::after{width:100%}

/* hero content */
.hero__inner{
  position:relative;z-index:2;
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:2rem clamp(1.2rem,5vw,4rem) 4rem;
}
.hero__frame{
  position:relative;max-width:760px;padding:clamp(2rem,5vw,3.5rem);
  animation:rise 1s var(--ease) both;
}
.hero__frame::before,.hero__frame::after{
  content:'';position:absolute;width:26px;height:26px;
  border:1px solid rgba(198,161,91,.55);
}
.hero__frame::before{top:0;right:0;border-left:0;border-bottom:0}
.hero__frame::after{bottom:0;left:0;border-right:0;border-top:0}
.hero__eyebrow{
  display:inline-block;font-size:.8rem;letter-spacing:.42em;
  color:var(--gold);text-transform:uppercase;margin-bottom:1.4rem;padding-inline-start:.42em;
}
.hero__title{
  font-family:var(--serif);font-weight:700;
  font-size:clamp(2.3rem,6vw,4.3rem);line-height:1.25;color:var(--ivory);
}
.hero__rule{display:flex;justify-content:center;margin:1.6rem 0}
.hero__rule span{
  position:relative;display:block;width:120px;height:1px;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
}
.hero__rule span::before{
  content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(45deg);
  width:6px;height:6px;background:var(--gold);
}
.hero__subtitle{
  max-width:560px;margin:0 auto;color:var(--muted);
  font-size:clamp(1rem,1.6vw,1.18rem);font-weight:300;
}
.hero__cta{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin-top:2.4rem}
.hero__latin{
  margin-top:3rem;font-family:var(--latin);font-size:1.5rem;
  letter-spacing:.35em;color:rgba(198,161,91,.55);text-transform:uppercase;
}
.hero__scroll{
  position:relative;z-index:2;display:flex;justify-content:center;padding-bottom:2rem;
}
.hero__scroll span{
  width:26px;height:44px;border:1px solid rgba(198,161,91,.5);border-radius:14px;position:relative;
}
.hero__scroll span::before{
  content:'';position:absolute;top:8px;left:50%;transform:translateX(-50%);
  width:3px;height:8px;border-radius:2px;background:var(--gold);
  animation:scrollDot 1.8s infinite;
}

@keyframes rise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes scrollDot{0%{opacity:0;transform:translate(-50%,0)}40%{opacity:1}80%{opacity:0;transform:translate(-50%,14px)}100%{opacity:0}}

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head{text-align:center;max-width:640px;margin:0 auto clamp(2.5rem,5vw,4rem)}
.section-head__eyebrow{
  font-size:.78rem;letter-spacing:.4em;color:var(--gold);text-transform:uppercase;
}
.section-head__title{
  font-family:var(--serif);font-weight:700;color:var(--ivory);
  font-size:clamp(1.8rem,4vw,2.8rem);margin:.6rem 0 .8rem;
}
.section-head__lead{color:var(--muted);font-weight:300}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery{padding:clamp(4rem,9vw,7rem) clamp(1.2rem,5vw,4rem);background:var(--navy-900)}
.grid{
  max-width:1240px;margin:0 auto;
  display:grid;gap:1.4rem;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));
}
.card{
  position:relative;overflow:hidden;border-radius:4px;
  background:var(--navy-800);aspect-ratio:3/4;cursor:pointer;
  outline:none;
}
.card img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .8s var(--ease),filter .6s var(--ease);
  filter:saturate(.92) brightness(.94);
}
.card:hover img,.card:focus-visible img{transform:scale(1.06);filter:saturate(1) brightness(1)}
.card__frame{
  position:absolute;inset:14px;border:1px solid rgba(243,238,225,.0);
  transition:border-color .5s var(--ease);pointer-events:none;
}
.card:hover .card__frame,.card:focus-visible .card__frame{border-color:rgba(198,161,91,.65)}
.card figcaption{
  position:absolute;inset-inline:0;bottom:0;
  padding:2.4rem 1.2rem 1rem;
  background:linear-gradient(0deg,rgba(7,12,27,.92),transparent);
  font-family:var(--serif);font-size:1.05rem;color:var(--ivory);
  transform:translateY(8px);opacity:0;transition:.45s var(--ease);
}
.card:hover figcaption,.card:focus-visible figcaption{transform:none;opacity:1}
.card:focus-visible{box-shadow:0 0 0 2px var(--gold)}

.gallery__empty{
  text-align:center;color:var(--muted);padding:4rem 1rem;
  display:flex;flex-direction:column;align-items:center;gap:1.2rem;
}
.gallery__empty .crest{opacity:.5}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{
  background:linear-gradient(180deg,var(--navy-800),var(--navy-950));
  border-top:1px solid rgba(198,161,91,.16);
}
.footer__inner{
  max-width:1100px;margin:0 auto;
  display:grid;grid-template-columns:1fr 1.4fr;gap:clamp(2rem,5vw,4rem);
  align-items:center;padding:clamp(3rem,7vw,5rem) clamp(1.2rem,5vw,4rem);
}
.footer__brand{display:flex;flex-direction:column;gap:.5rem}
.footer__logo-img{height:70px;width:auto;object-fit:contain;margin-bottom:.4rem}
.footer__name-ar{font-family:var(--serif);font-weight:700;font-size:1.6rem;color:var(--ivory)}
.footer__name-en{font-family:var(--latin);letter-spacing:.28em;color:var(--gold);text-transform:uppercase;font-size:1rem}
.footer__info{display:flex;flex-direction:column;gap:1.1rem}
.footer__row{display:grid;grid-template-columns:88px 1fr;gap:1rem;align-items:baseline}
.footer__label{
  font-size:.78rem;letter-spacing:.24em;color:var(--gold);text-transform:uppercase;
  border-inline-end:1px solid rgba(198,161,91,.3);padding-inline-end:1rem;
}
.footer__value{color:var(--ivory);font-weight:300;transition:color .3s var(--ease)}
a.footer__value:hover{color:var(--gold-bright)}
.footer__bar{
  border-top:1px solid rgba(255,255,255,.06);
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem;
  max-width:1100px;margin:0 auto;padding:1.3rem clamp(1.2rem,5vw,4rem);
  font-size:.85rem;color:var(--muted);
}
.footer__credit{color:var(--muted);transition:color .3s var(--ease)}
.footer__credit span{color:var(--gold)}
.footer__credit:hover{color:var(--gold-bright)}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox{
  position:fixed;inset:0;z-index:60;display:none;
  align-items:center;justify-content:center;
  background:rgba(7,12,27,.94);backdrop-filter:blur(6px);
  padding:2rem;
}
.lightbox.open{display:flex;animation:fade .3s var(--ease)}
.lightbox__stage{max-width:min(92vw,1000px);max-height:88vh;text-align:center}
.lightbox__stage img{
  max-width:100%;max-height:82vh;object-fit:contain;border:1px solid rgba(198,161,91,.3);
  box-shadow:0 30px 80px -20px rgba(0,0,0,.8);
}
.lightbox__stage figcaption{margin-top:1rem;font-family:var(--serif);color:var(--ivory);font-size:1.15rem}
.lightbox__close{
  position:absolute;top:1.4rem;inset-inline-end:1.6rem;
  background:none;border:none;color:var(--ivory);font-size:2.4rem;cursor:pointer;line-height:1;
  transition:color .3s var(--ease);z-index:2;
}
.lightbox__close:hover{color:var(--gold)}
.lightbox__nav{
  position:absolute;top:50%;transform:translateY(-50%);
  background:none;border:1px solid rgba(198,161,91,.4);color:var(--gold-bright);
  width:52px;height:52px;border-radius:50%;font-size:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background .3s var(--ease),transform .3s var(--ease);
}
.lightbox__nav::before{font-size:1.8rem;line-height:1}
/* forward = "next", backward = "prev"; glyphs mirror by direction */
.lightbox__prev::before{content:'\2039'} /* ‹ backward (LTR) */
.lightbox__next::before{content:'\203A'} /* › forward  (LTR) */
[dir="rtl"] .lightbox__prev::before{content:'\203A'} /* › backward (RTL) */
[dir="rtl"] .lightbox__next::before{content:'\2039'} /* ‹ forward  (RTL) */
.lightbox__nav:hover{background:rgba(198,161,91,.14)}
.lightbox__prev{inset-inline-start:2rem}
.lightbox__next{inset-inline-end:2rem}
@keyframes fade{from{opacity:0}to{opacity:1}}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:820px){
  .footer__inner{grid-template-columns:1fr;text-align:center}
  .footer__brand{align-items:center}
  .footer__row{grid-template-columns:1fr;gap:.2rem;justify-items:center}
  .footer__label{border:0;padding:0}
  .lightbox__nav{width:44px;height:44px}
  .lightbox__prev{inset-inline-start:.6rem}
  .lightbox__next{inset-inline-end:.6rem}
}

/* Tablets & large phones */
@media (max-width:640px){
  .topbar{padding:1.15rem clamp(1rem,5vw,2rem)}
  .topbar__actions{gap:1rem}
  .topbar__links{gap:1.25rem;font-size:.9rem}
  .grid{gap:1rem;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))}
}

/* Phones — nav text links collapse to keep the bar clean; language switch stays */
@media (max-width:520px){
  .topbar__links{display:none}
  .topbar__name{font-size:1.15rem}
  .topbar__logo-img{height:34px}
  .hero__cta{flex-direction:column;align-items:stretch;width:100%;max-width:320px;margin-inline:auto}
  .hero__cta .btn{width:100%;text-align:center}
  .grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,160px),1fr));gap:.8rem}
  .footer__bar{justify-content:center;text-align:center;flex-direction:column}
}

/* Small phones */
@media (max-width:380px){
  .topbar__name{font-size:1.02rem}
  .langswitch__opt{font-size:.78rem}
  .hero__eyebrow{letter-spacing:.3em}
  .card{aspect-ratio:4/5}
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
