/* ==========================================================================
   Binghatti — concept redesign
   Palette is taken from the interiors themselves: onyx, travertine,
   bronze trim and the rosso leather that shows up in nearly every lobby.
   ========================================================================== */

:root {
  --onyx: #0e0d0c;
  --onyx-2: #161412;
  --onyx-3: #201d1a;
  --stone: #e9e1d3;
  --stone-dim: #b9b0a2;
  --smoke: #8a8378;
  --bronze: #b08d5e;
  --bronze-soft: rgba(176, 141, 94, .35);
  --rosso: #9b2226;
  --ivory: #f1ece3;
  --ink: #1a1816;
  --line: rgba(233, 225, 211, .14);
  --line-strong: rgba(233, 225, 211, .3);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--onyx);
  color: var(--stone);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--rosso); color: var(--stone); }

:focus-visible { outline: 1px solid var(--bronze); outline-offset: 4px; }

.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;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */

.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -.02em;
  line-height: .92;
  margin: 0;
}
.display em { font-style: italic; color: var(--stone); }
.display .rosso { color: var(--rosso); }

.h-xl { font-size: clamp(3.2rem, 11vw, 11.5rem); }
.h-lg { font-size: clamp(2.6rem, 7vw, 7rem); }
.h-md { font-size: clamp(2.1rem, 4.6vw, 4.4rem); line-height: 1; }
.h-sm { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.08; }

.label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--smoke);
  font-weight: 400;
  margin: 0;
}
.label b { color: var(--stone); font-weight: 400; }
.label .dot { color: var(--bronze); padding: 0 .5em; }

.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.55;
  color: var(--stone-dim);
  max-width: 38ch;
  margin: 0;
}
.prose { color: var(--stone-dim); max-width: 62ch; }
.prose p { margin: 0 0 1em; }

.mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.mask > span { display: block; }

/* ---------- Buttons ---------- */

.btn {
  --h: 48px;
  display: inline-flex; align-items: center; gap: .8em;
  height: var(--h); padding: 0 1.5em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px; letter-spacing: .02em;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--stone); color: var(--onyx); border-color: var(--stone); }
.btn--solid { background: var(--stone); color: var(--onyx); border-color: var(--stone); }
.btn--solid:hover { background: var(--rosso); color: var(--stone); border-color: var(--rosso); }
.btn--rosso { background: var(--rosso); border-color: var(--rosso); color: var(--stone); }
.btn--rosso:hover { background: var(--stone); color: var(--onyx); border-color: var(--stone); }
.btn--sm { --h: 38px; font-size: 13px; padding: 0 1.15em; }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.link-line {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: 14px;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-line:hover { background-size: 0 1px; background-position: right bottom; }

/* ---------- Header ---------- */

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: transform .6s var(--ease), background .4s ease;
}
.header::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(14,13,12,.7), rgba(14,13,12,0));
  pointer-events: none; transition: opacity .4s;
}
.header.is-solid::before { background: rgba(14,13,12,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header > * { position: relative; }

.wordmark {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .42em;
  margin-right: -.42em;
  text-transform: uppercase;
}
.nav { display: flex; gap: 30px; }
.nav a { font-size: 13.5px; color: var(--stone-dim); transition: color .3s; position: relative; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--stone); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bronze); }
.header__end { display: flex; align-items: center; gap: 14px; }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--stone); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--onyx);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-in-out);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-family: var(--f-display); font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.15;
  border-bottom: 1px solid var(--line); padding: 6px 0;
  display: flex; justify-content: space-between; align-items: baseline;
}
.menu nav a small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: var(--smoke); }
.menu__foot { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 960px) {
  .nav, .header__end .btn--hide-m { display: none; }
  .burger { display: block; }
}

/* ---------- Loader ---------- */

.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--onyx);
  display: grid; place-items: center;
  padding: var(--gutter);
}
.loader__inner { width: min(440px, 100%); }
.loader__lines p { font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25; margin: 0; opacity: 0; }
.loader__lines p:nth-child(2) { font-style: italic; color: var(--stone-dim); }
.loader__bar { margin-top: 36px; display: flex; align-items: center; gap: 14px; }
.loader__bar i { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader__bar b { position: absolute; inset: 0; background: var(--bronze); transform-origin: left; transform: scaleX(0); }
.loader__note { margin-top: 18px; }
.no-loader .loader { display: none; }

/* ---------- Reveal helpers ---------- */

[data-reveal] { opacity: 0; transform: translateY(28px); }
.is-ready [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reduced [data-reveal] { opacity: 1; transform: none; }

.img-reveal { overflow: hidden; position: relative; }
.img-reveal img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.img-reveal.is-in img { transform: scale(1); }

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 12vw, 180px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 100px) 0; }
.section--ivory { background: var(--ivory); color: var(--ink); }
.section--ivory .label { color: #7a7266; }
.section--ivory .label b { color: var(--ink); }
.section--ivory .lede, .section--ivory .prose { color: #4a453e; }
.section--ivory .btn { border-color: rgba(26,24,22,.3); }
.section--ivory .btn:hover { background: var(--ink); color: var(--ivory); }

.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 40px; margin-bottom: clamp(36px, 5vw, 72px); }
.sec-head .label { margin-bottom: 18px; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Page hero (inner pages) ---------- */

.phero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.phero__media { position: absolute; inset: 0; }
.phero__media img, .phero__media video { width: 100%; height: 100%; object-fit: cover; }
.phero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,13,12,.92) 0%, rgba(14,13,12,.25) 45%, rgba(14,13,12,.35) 100%); }
.phero__body { position: relative; width: 100%; padding-bottom: clamp(32px, 6vw, 72px); }
.phero__body .label { margin-bottom: 20px; }
.phero--short { min-height: 72svh; }

/* ---------- Cards ---------- */

.pcard { position: relative; display: block; }
.pcard__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--onyx-2); }
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.pcard__media .in { opacity: 0; }
.pcard:hover .pcard__media .out { transform: scale(1.06); opacity: 0; }
.pcard:hover .pcard__media .in { opacity: 1; transform: scale(1.02); }
.pcard__peek {
  position: absolute; left: 12px; top: 12px;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(14,13,12,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 6px 9px; border-radius: 99px; color: var(--stone);
  transition: background .4s;
}
.pcard:hover .pcard__peek { background: var(--rosso); }
.pcard__body { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 16px; }
.pcard__name { font-family: var(--f-display); font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1; margin: 0 0 8px; }
.pcard__meta { font-size: 13px; color: var(--smoke); margin: 0; }
.pcard__price { text-align: right; font-size: 13px; color: var(--stone-dim); white-space: nowrap; margin: 0; }
.pcard__price b { display: block; color: var(--stone); font-weight: 500; font-size: 15px; }
@media (hover: none) { .pcard__media .in { display: none; } }

/* ---------- Forms ---------- */

.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); }
.field input, .field select, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 10px 0 12px; font-size: 16px; border-radius: 0; outline: none;
  transition: border-color .3s;
}
.field select { -webkit-appearance: none; appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='%23b08d5e'/%3E%3C/svg%3E") right center no-repeat; padding-right: 20px; }
.field select option { background: var(--onyx-2); color: var(--stone); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bronze); }
.field input::placeholder, .field textarea::placeholder { color: #5f5951; }
.field .err { font-size: 12px; color: #e0726f; min-height: 0; }
.field.has-error input, .field.has-error select { border-color: #e0726f; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--stone-dim); }
.check input { margin-top: 3px; accent-color: var(--rosso); }
.form__done { display: none; padding: 28px 0; }
.form.is-done > *:not(.form__done) { display: none; }
.form.is-done .form__done { display: block; }

.section--ivory .field input, .section--ivory .field select, .section--ivory .field textarea { border-color: rgba(26,24,22,.28); }
.section--ivory .field input::placeholder { color: #9a9286; }
.section--ivory .field label { color: #7a7266; }

/* ---------- Enquiry band ---------- */

.enquire { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
@media (max-width: 900px) { .enquire { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 120px) 0 28px; position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__grid h4 { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); font-weight: 400; margin: 0 0 18px; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--stone-dim); }
.footer__grid a:hover { color: var(--stone); }
.footer__big { font-family: var(--f-display); font-size: clamp(4rem, 17vw, 17rem); line-height: .8; letter-spacing: -.03em; margin: clamp(56px, 8vw, 110px) 0 28px; color: var(--onyx-3); white-space: nowrap; user-select: none; }
.footer__big em { color: #2b2723; }
.footer__base { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: 12px; color: var(--smoke); border-top: 1px solid var(--line); padding-top: 22px; }
.footer__base a { color: var(--stone-dim); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10,9,8,.96); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__top, .lightbox__bot { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); gap: 16px; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; touch-action: pan-y; }
.lightbox__stage img { max-height: 100%; max-width: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__nav { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: background .3s, color .3s; flex: none; }
.icon-btn:hover { background: var(--stone); color: var(--onyx); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- Tabs / chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 36px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-strong);
  font-size: 13px; color: var(--stone-dim); transition: all .3s; display: inline-flex; align-items: center; gap: 8px;
}
.chip:hover { color: var(--stone); border-color: var(--stone-dim); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--stone); color: var(--onyx); border-color: var(--stone); }
.chip sup { font-family: var(--f-mono); font-size: 9px; opacity: .6; }
.section--ivory .chip { border-color: rgba(26,24,22,.25); color: #4a453e; }
.section--ivory .chip[aria-pressed="true"], .section--ivory .chip[aria-selected="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.hscroll { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }

/* ---------- Toast ---------- */

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 95; background: var(--stone); color: var(--onyx); padding: 12px 20px; border-radius: 99px; font-size: 14px; transition: transform .5s var(--ease); max-width: calc(100% - 32px); }
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- Concept ribbon ---------- */

.concept-tag { position: fixed; right: 14px; bottom: 14px; z-index: 50; font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); background: rgba(14,13,12,.7); border: 1px solid var(--line); padding: 6px 10px; border-radius: 99px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
@media (max-width: 600px) { .concept-tag { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
