/* ============================================================
   RIMAL DESERT — production stylesheet
   Palette + type locked to the approved Claude Design mockup
   ============================================================ */

:root {
  --brown:        #3B2314;
  --brown-deep:   #2A180D;
  --gold:         #C8842E;
  --orange:       #D46A2E;
  --warm-gold:    #D4943A;
  --sand:         #F5EDE0;
  --sand-mid:     #E8D5B8;
  --soft:         #7A6552;
  --white:        #FFFDF9;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(43, 24, 13, .35);
  --shadow-sm: 0 8px 22px -14px rgba(43, 24, 13, .4);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "DM Sans", system-ui, -apple-system, sans-serif;
  --arabic:"Amiri", "Cormorant Garamond", serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--brown);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; }

.arabic { font-family: var(--arabic); direction: rtl; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.eyebrow {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .9rem;
}
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -.01em; }
.lead { font-size: 1.12rem; color: var(--soft); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.7rem; border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--gold); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--brown); color: var(--sand); }
.btn-dark:hover { background: var(--brown-deep); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--brown); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245, 237, 224, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(59, 35, 20, .08);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; margin-inline-end: auto; }
.brand-mark { font-family: var(--arabic); font-size: 1.9rem; color: var(--gold); line-height: 1; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: .02em; }
.brand-sub { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--brown); position: relative; padding-block: .3rem; }
.nav-links a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: .9rem; }

/* language dropdown */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; border: 1px solid rgba(59,35,20,.18);
  border-radius: 999px; padding: .45rem .85rem; font-size: .85rem; font-weight: 500; color: var(--brown);
}
.lang-btn:hover { border-color: var(--gold); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + .5rem);
  background: var(--white); border: 1px solid rgba(59,35,20,.1);
  border-radius: 12px; box-shadow: var(--shadow); padding: .4rem;
  min-width: 168px; display: none;
}
.lang-menu.open { display: block; }
.lang-menu a { display: flex; gap: .6rem; align-items: center; padding: .55rem .7rem; border-radius: 8px; font-size: .9rem; }
.lang-menu a:hover { background: var(--sand); }
.lang-menu a[aria-current="true"] { color: var(--gold); font-weight: 600; }

.nav-toggle {
  display: none; background: transparent; border: 0; padding: .4rem;
  width: 44px; height: 44px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--brown); margin: 5px auto; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 92vh; display: grid; align-items: center;
  background: var(--brown) url("../img/hero.jpg") center / cover no-repeat;
  color: var(--white); text-align: center; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,24,13,.35) 0%, rgba(42,24,13,.55) 55%, rgba(42,24,13,.78) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(5rem, 12vh, 8rem); }
.hero-mark { font-family: var(--arabic); font-size: clamp(4.5rem, 14vw, 9rem); line-height: .9; color: #fff; margin: 0; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.hero-kicker { font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .15em; line-height: 1.7; text-transform: uppercase; color: var(--warm-gold); margin: 1.1rem auto 1.6rem; max-width: 42ch; }
.hero-tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 500; margin: 0 auto; max-width: 22ch; }
.hero-copy { max-width: 56ch; margin: 1.6rem auto 2.2rem; color: rgba(255,253,249,.92); font-size: 1.06rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue::before { content: ""; display: block; width: 1px; height: 34px; background: rgba(255,255,255,.5); margin: 0 auto .5rem; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%,100%{ opacity:.3; transform: scaleY(.6) } 50%{ opacity:1; transform: scaleY(1) } }

/* ============================================================
   EXPERIENCE — 3x2 grid
   ============================================================ */
.exp-head { text-align: center; margin-bottom: 3rem; }
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.exp-card {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--sand-mid) center / cover no-repeat;
  box-shadow: var(--shadow-sm);
}
.exp-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(42,24,13,.82) 100%); }
.exp-card span { position: absolute; z-index: 2; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; color: #fff; font-size: 1.02rem; font-weight: 500; line-height: 1.35; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.exp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.exp-card:hover img { transform: scale(1.06); }

/* ============================================================
   PROGRAMS
   ============================================================ */
.programs { background: var(--sand-mid); }
.prog-head { text-align: center; margin-bottom: 3rem; }
.prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.prog-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.prog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prog-img { position: relative; aspect-ratio: 16 / 10; background: var(--sand-mid) center / cover no-repeat; }
.prog-img img { width: 100%; height: 100%; object-fit: cover; }
.prog-badge { position: absolute; top: .9rem; inset-inline-start: .9rem; background: var(--gold); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; }
.prog-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.prog-dur { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.prog-name { font-size: 1.45rem; }
.prog-desc { color: var(--soft); font-size: .96rem; margin: 0; }

.prog-cta {
  grid-column: 1 / -1; background: var(--brown); color: var(--sand);
  border-radius: var(--radius); padding: 2.2rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
}
.prog-cta p { margin: 0; font-family: var(--serif); font-size: 1.5rem; max-width: 30ch; }
.prog-note { text-align: center; color: var(--soft); font-size: .95rem; margin: 1.8rem 0 .4rem; }
.prog-explore { display: block; text-align: center; color: var(--gold); font-weight: 600; }
.prog-explore:hover { color: var(--orange); }

/* ============================================================
   INCLUDED — dark
   ============================================================ */
.included { background: var(--brown); color: var(--sand); }
.included .eyebrow { color: var(--warm-gold); }
.inc-head { text-align: center; margin-bottom: 3rem; }
.inc-head .section-title { color: var(--white); }
.inc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem 1.8rem; }
.inc-item { display: flex; gap: 1rem; align-items: flex-start; }
.inc-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(212,148,58,.16); color: var(--warm-gold); display: grid; place-items: center; }
.inc-ico svg { width: 24px; height: 24px; }
.inc-item h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: .15rem; }
.inc-item p { margin: 0; color: rgba(245,237,224,.72); font-size: .92rem; }
.inc-quote { text-align: center; margin-top: 3rem; color: rgba(245,237,224,.8); font-style: italic; font-family: var(--serif); font-size: 1.3rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--sand-mid); }
.about-badge {
  position: absolute; inset-inline-end: -14px; bottom: 24px; background: var(--gold); color: #fff;
  border-radius: 12px; padding: .9rem 1.1rem; box-shadow: var(--shadow-sm); text-align: center; line-height: 1.1;
}
.about-badge b { font-family: var(--serif); font-size: 1.5rem; display: block; }
.about-badge span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.about-body p { color: var(--soft); margin: 0 0 1.1rem; }
.about-body p:first-of-type { color: var(--brown); }
.about-pull { font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: var(--gold); margin: 1.4rem 0 1.8rem !important; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { background: var(--sand-mid); }
.rev-head { text-align: center; margin-bottom: 3rem; }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.3rem; }
.rev-card { background: var(--white); border-radius: var(--radius); padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .9rem; }
.stars { color: var(--gold); letter-spacing: .15em; font-size: .95rem; }
.rev-text { margin: 0; font-family: var(--serif); font-size: 1.18rem; line-height: 1.4; color: var(--brown); }
.rev-meta { margin-top: auto; display: flex; flex-direction: column; gap: .1rem; }
.rev-name { font-weight: 600; font-size: .95rem; }
.rev-src { font-size: .8rem; color: var(--soft); }
.rev-trust { display: flex; gap: 1.6rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 2.6rem; }
.rev-trust a, .rev-trust span { font-weight: 600; font-size: .95rem; color: var(--brown); display: inline-flex; align-items: center; gap: .45rem; }
.rev-trust a:hover { color: var(--gold); }
.rev-leave { text-align: center; margin-top: 1.6rem; }
.rev-leave a { color: var(--gold); font-weight: 600; }
.rev-leave a:hover { color: var(--orange); }

/* ============================================================
   GALLERY — dark masonry
   ============================================================ */
.gallery { background: var(--brown-deep); }
.gallery .eyebrow { color: var(--warm-gold); }
.gal-head { text-align: center; margin-bottom: 3rem; }
.gal-head .section-title { color: var(--white); }
.gal-grid { columns: 4 220px; column-gap: 1rem; }
.gal-grid figure { margin: 0 0 1rem; break-inside: avoid; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.06); }
.gal-grid img { width: 100%; height: auto; display: block; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.gal-grid figure:hover img { transform: scale(1.05); }

/* ============================================================
   BOOK
   ============================================================ */
.book-head { text-align: center; margin-bottom: 3rem; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; counter-reset: step; }
.book-step { background: var(--white); border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); position: relative; }
.book-step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; display: block; margin-bottom: .8rem;
}
.book-step h3 { font-family: var(--sans); font-size: 1.12rem; font-weight: 600; margin-bottom: .5rem; }
.book-step p { margin: 0; color: var(--soft); font-size: .95rem; }
.book-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.6rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--brown); color: rgba(245,237,224,.78); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .brand-mark { font-size: 2.4rem; }
.footer-brand .brand-name { color: var(--white); font-size: 1.3rem; }
.footer-brand .brand-sub { color: var(--warm-gold); }
.footer-tag { max-width: 42ch; margin: 1rem 0 0; font-size: .95rem; }
.footer-formerly { font-size: .8rem; color: rgba(245,237,224,.5); margin-top: .4rem; }
.footer-contact { display: flex; flex-direction: column; gap: .5rem; font-size: .95rem; }
.footer-contact a:hover { color: var(--warm-gold); }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(245,237,224,.2); display: grid; place-items: center; transition: .25s var(--ease); }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(245,237,224,.12); padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .85rem; }
.footer-langs { display: flex; gap: .9rem; flex-wrap: wrap; }
.footer-langs a:hover { color: var(--warm-gold); }
.footer-review-links { display: flex; gap: 1.2rem; }
.footer-review-links a:hover { color: var(--warm-gold); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 440px; margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; order: 3; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--sand); padding: 1rem var(--gutter) 1.6rem;
    border-bottom: 1px solid rgba(59,35,20,.1); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .35s var(--ease); max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(59,35,20,.07); width: 100%; }
  .nav-links a::after { display: none; }
  .nav .btn { display: none; }
}

@media (max-width: 560px) {
  .exp-grid { grid-template-columns: 1fr; }
  .gal-grid { columns: 2 140px; }
  .hero { min-height: 88vh; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- a11y ---------- */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: -999px; top: 0; z-index: 100;
  background: var(--gold); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { inset-inline-start: 0; }
