/* ============================================================
   LATE LOUNGE — Jumeirah, Dubai
   Design system rooted in the real venue:
   white architecture · sage-green rope furniture ·
   Calacatta marble · olive trees · warm sand signage glow
   ============================================================ */

:root {
  /* —— Palette —— */
  --ink:        #20201c;   /* espresso near-black text */
  --ink-soft:   #4d4a42;   /* secondary text */
  --muted:      #8a857a;   /* captions / meta */
  --line:       #e4ded2;   /* hairlines */
  --paper:      #f7f4ed;   /* main warm-white surface */
  --paper-2:    #efeadf;   /* alt soft surface */
  --card:       #fffefb;   /* raised card */

  /* sage + sand brand accents (sampled from chairs / umbrella / signage) */
  --sage:       #9aa67f;   /* rope chairs, green umbrella */
  --sage-deep:  #6f7a57;
  --sand:       #c2ac8c;   /* signage glow, menu button */
  --sand-deep:  #a8906c;

  --accent:     var(--sage);
  --accent-2:   var(--sand);

  /* —— Type —— */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", system-ui, -apple-system, sans-serif;
  --script:"Mr Dafoe", cursive;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 18px 50px -28px rgba(40, 36, 28, .45);
  --shadow-soft: 0 12px 40px -30px rgba(40, 36, 28, .5);
  --ease: cubic-bezier(.22,.61,.36,1);
  --container: 1240px;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--sage); color: #fff; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 32px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: .42em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--sand-deep);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .7;
}
.eyebrow.center::after {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .7;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.005em; }
.display { font-size: clamp(44px, 8vw, 116px); }
.h2 { font-size: clamp(34px, 5vw, 62px); }
.script-mark { font-family: var(--script); font-weight: 400; letter-spacing: 0; }

.lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--ink-soft); font-weight: 300; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 400;
  padding: 15px 30px;
  border-radius: 999px;
  transition: all .4s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--sage-deep); transform: translateY(-2px); }
.btn--ghost { border: 1px solid currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--sand { background: var(--sand); color: var(--ink); }
.btn--sand:hover { background: var(--sand-deep); color: #fff; transform: translateY(-2px); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
}
.nav--scrolled {
  background: rgba(247,244,237,.86);
  backdrop-filter: blur(14px) saturate(1.2);
  padding-block: 14px;
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; line-height: 1; color: var(--ink); }
.brand .script-mark { font-size: 38px; margin-bottom: -4px; }
.brand .lounge { font-size: 12px; letter-spacing: .46em; text-transform: uppercase; font-weight: 400; }
.nav--hero-light .brand,
.nav--hero-light .nav__links a { color: #fff; }
.nav--hero-light .nav__toggle span { background: #fff; }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
  position: relative; padding: 4px 0; transition: opacity .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width .4s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 8px; }
.nav--hero-light .nav__cta.btn--ghost { color: #fff; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 30px; padding: 6px 0; z-index: 70; }
.nav__toggle span { display: block; height: 1.5px; width: 100%; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 65;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 40px;
  transform: translateY(-100%);
  transition: transform .55s var(--ease);
  visibility: hidden;
}
.drawer.open { transform: translateY(0); visibility: visible; }
.drawer a {
  font-family: var(--serif); font-size: 38px; font-weight: 500;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.drawer .drawer__meta { margin-top: 30px; font-size: 13px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,18,14,.34) 0%, rgba(20,18,14,0) 30%, rgba(20,18,14,.06) 55%, rgba(20,18,14,.72) 100%);
}
.hero__inner { width: 100%; max-width: var(--container); margin-inline: auto; padding: 0 clamp(20px,4vw,48px) clamp(48px, 7vh, 96px); }
.hero__loc { display: flex; align-items: center; gap: 12px; font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 26px; opacity: .92; }
.hero__loc .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(154,166,127,.3); }
.hero h1 { color: #fff; max-width: 14ch; text-shadow: 0 2px 40px rgba(0,0,0,.25); }
.hero h1 em { font-style: normal; font-family: var(--script); font-weight: 400; }
.hero__sub { margin-top: 26px; max-width: 46ch; font-size: clamp(16px,1.6vw,19px); font-weight: 300; color: rgba(255,255,255,.9); }
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__scroll { position: absolute; right: clamp(20px,4vw,48px); bottom: clamp(48px,7vh,96px); display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; writing-mode: vertical-rl; opacity: .8; }
.hero__scroll .line { width: 1px; height: 54px; background: linear-gradient(#fff, transparent); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0%{transform:scaleY(0);transform-origin:top} 45%{transform:scaleY(1);transform-origin:top} 55%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* rating chip floating top-right of hero */
.hero__rating {
  position: absolute; top: clamp(96px, 14vh, 140px); right: clamp(20px,4vw,48px);
  background: rgba(247,244,237,.16); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: 10px 18px;
  display: flex; align-items: center; gap: 12px;
}
.hero__rating .stars { color: var(--sand); letter-spacing: 2px; font-size: 13px; }
.hero__rating b { font-weight: 500; }
.hero__rating small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }

/* =========================================================
   MARQUEE strip
   ========================================================= */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 16px 0; border-block: 1px solid rgba(255,255,255,.08); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: 22px; font-style: italic; opacity: .85; display: inline-flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: "✦"; font-size: 12px; color: var(--sand); font-style: normal; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* =========================================================
   SECTION shell
   ========================================================= */
.section { padding-block: clamp(80px, 12vh, 150px); }
.section--paper2 { background: var(--paper-2); }
.section__head { max-width: 720px; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head h2 { margin-top: 22px; }
.section__head .lede { margin-top: 22px; }

/* ---- Intro / story ---- */
.intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.intro__media { position: relative; }
.intro__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); }
.intro__media .tag {
  position: absolute; left: -26px; bottom: 40px;
  background: var(--card); padding: 22px 26px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); max-width: 230px;
}
.intro__media .tag .script-mark { font-size: 34px; color: var(--sage-deep); }
.intro__media .tag p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.intro__body p + p { margin-top: 20px; }
.intro__stats { display: flex; gap: 40px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.intro__stats .stat .n { font-family: var(--serif); font-size: 42px; line-height: 1; color: var(--ink); }
.intro__stats .stat .l { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* =========================================================
   MENU
   ========================================================= */
.menu__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.tabs { display: inline-flex; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px; }
.tab {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400;
  padding: 11px 22px; border-radius: 999px; color: var(--ink-soft); transition: all .35s var(--ease);
}
.tab.active { background: var(--ink); color: var(--paper); }

.menu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.dish { position: relative; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.dish.hide { display: none; }
.dish__img { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 1/1; }
.dish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.dish:hover .dish__img img { transform: scale(1.07); }
.dish__cat { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; background: rgba(247,244,237,.92); padding: 6px 12px; border-radius: 999px; color: var(--ink); }
.dish__row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 18px; }
.dish__row h3 { font-size: 24px; }
.dish__price { font-family: var(--serif); font-size: 22px; color: var(--sand-deep); white-space: nowrap; }
.dish p { font-size: 14.5px; color: var(--muted); margin-top: 6px; max-width: 38ch; }
.dish .dotline { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }

.menu__note { margin-top: 46px; text-align: center; font-size: 13px; color: var(--muted); letter-spacing: .04em; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; margin-top: 56px; }
.gcell { position: relative; overflow: hidden; border-radius: var(--radius-lg); cursor: pointer; }
.gcell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gcell:hover img { transform: scale(1.08); }
.gcell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(20,18,14,.5)); opacity: 0; transition: opacity .4s; }
.gcell:hover::after { opacity: 1; }
.gcell .cap { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: all .4s var(--ease); }
.gcell:hover .cap { opacity: 1; transform: translateY(0); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20,18,14,.92); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .4s; backdrop-filter: blur(4px); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 86vw; max-height: 82vh; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__close, .lightbox__nav { position: absolute; color: #fff; font-size: 26px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.lightbox__close { top: 26px; right: 30px; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255,255,255,.12); }
.lightbox__nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__cap { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews { background: var(--ink); color: var(--paper); }
.reviews .eyebrow { color: var(--sand); }
.reviews .section__head h2 { color: var(--paper); }
.reviews__score { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 46px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.12); }
.reviews__score .big { font-family: var(--serif); font-size: 88px; line-height: .9; }
.reviews__score .stars { color: var(--sand); font-size: 22px; letter-spacing: 3px; }
.reviews__score .meta { font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.7); margin-top: 4px; }
.reviews__score .gmark { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.reviews__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 46px; }
.rev { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 32px; transition: transform .4s var(--ease), background .4s; }
.rev:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); }
.rev .stars { color: var(--sand); letter-spacing: 2px; font-size: 13px; }
.rev p { font-family: var(--serif); font-size: 20px; font-style: italic; line-height: 1.45; margin: 18px 0 24px; color: rgba(255,255,255,.92); }
.rev .who { display: flex; align-items: center; gap: 12px; }
.rev .who .av { width: 38px; height: 38px; border-radius: 50%; background: var(--sage-deep); display: grid; place-items: center; font-size: 14px; color: #fff; font-weight: 400; }
.rev .who .nm { font-size: 13.5px; letter-spacing: .04em; }
.rev .who .nm small { display: block; color: rgba(255,255,255,.5); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* =========================================================
   VISIT
   ========================================================= */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: stretch; }
.visit__info .row { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.visit__info .row:first-of-type { border-top: 1px solid var(--line); }
.visit__info .row .k { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-top: 5px; }
.visit__info .row .v { font-size: 17px; color: var(--ink); font-weight: 300; }
.visit__info .row .v a:hover { color: var(--sage-deep); }
.visit__info .row .v .open { display: inline-flex; align-items: center; gap: 8px; color: var(--sage-deep); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }
.visit__info .row .v .open .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 0 rgba(154,166,127,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70%{box-shadow:0 0 0 8px rgba(154,166,127,0)} 100%{box-shadow:0 0 0 0 rgba(154,166,127,0)} }

/* reservation card */
.resv { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-soft); }
.resv h3 { font-size: 30px; }
.resv p.sub { color: var(--muted); font-size: 14px; margin-top: 8px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select {
  width: 100%; font-family: var(--sans); font-size: 15px; font-weight: 300; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(154,166,127,.18); }
.field.err input, .field.err select { border-color: #c0654e; }
.field .msg { font-size: 11.5px; color: #c0654e; margin-top: 6px; display: none; letter-spacing: .04em; }
.field.err .msg { display: block; }
.resv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.resv .btn { width: 100%; justify-content: center; margin-top: 8px; }
.resv__ok { text-align: center; padding: 30px 10px; display: none; }
.resv__ok.show { display: block; }
.resv__ok .script-mark { font-size: 52px; color: var(--sage-deep); }
.resv__ok p { color: var(--ink-soft); margin-top: 8px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-top: clamp(60px,9vh,100px); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer__brand .script-mark { font-size: 64px; color: var(--ink); line-height: .8; }
.footer__brand .lounge { font-size: 13px; letter-spacing: .5em; text-transform: uppercase; margin-top: 6px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 22px; max-width: 32ch; }
.footer__col h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; color: var(--muted); margin-bottom: 20px; }
.footer__col a, .footer__col p { display: block; font-size: 15px; color: var(--ink-soft); padding: 5px 0; font-weight: 300; }
.footer__col a:hover { color: var(--sage-deep); }
.socials { display: flex; gap: 12px; margin-top: 4px; }
.socials a { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: all .35s var(--ease); }
.socials a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 0; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .06em; color: var(--muted); }

/* =========================================================
   reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .intro { grid-template-columns: 1fr; }
  .intro__media { order: -1; }
  .intro__media .tag { left: 16px; }
  .menu__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 22px; }
  .menu__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .g-wide { grid-column: span 2; }
  .resv__grid { grid-template-columns: 1fr; }
  .hero__rating { display: none; }
  .intro__stats { flex-wrap: wrap; gap: 26px; }
  .reviews__score .gmark { margin-left: 0; width: 100%; }
}

/* nav toggle X */
.nav__toggle.x span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.x span:nth-child(2) { opacity: 0; }
.nav__toggle.x span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
