/* Jouri Stay Hotel — brand palette from the official colour guide */
:root {
  --navy: #0F1E36;
  --gold: #C5A059;
  --teal: #2C4E68;
  --ivory: #F4EFE6;
  --midnight: #0A1220;
  --white: #fff;
  --gold-soft: rgba(197, 160, 89, .35);
  --serif-ar: "Amiri", "Times New Roman", serif;
  --serif-en: "Cormorant Garamond", Georgia, serif;
  --sans: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--midnight);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2 { margin: 0; font-family: var(--serif-ar); font-weight: 700; line-height: 1.35; color: var(--navy); text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2 { font-family: var(--serif-en); font-weight: 600; letter-spacing: .01em; line-height: 1.15; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--midnight); padding: 8px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* Logo marks (vector, tinted via mask) */
.mark, .wordmark, .hero-mark {
  display: inline-block;
  background: var(--gold);
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.mark, .hero-mark { --m: url(../assets/logo-mark.svg); aspect-ratio: 630 / 762; }
.wordmark { --m: url(../assets/logo-name.svg); aspect-ratio: 698 / 235; background: var(--ivory); }
.mark { height: 44px; }
.wordmark { height: 36px; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background .4s, padding .4s, box-shadow .4s;
}
.nav.solid { background: rgba(15, 30, 54, .96); padding-block: 8px; box-shadow: 0 1px 0 var(--gold-soft); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 12px; }
.links { display: flex; gap: clamp(18px, 3vw, 40px); }
.links a { position: relative; color: var(--ivory); font-weight: 500; font-size: 1rem; padding: 6px 0; }
.links a::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.links a:hover::after, .links a:focus-visible::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.lang { color: var(--gold); border: 1px solid var(--gold-soft); border-radius: 999px; min-width: 52px; height: 36px; padding: 0 14px; font-size: .9rem; font-weight: 500; letter-spacing: .04em; transition: background .3s, color .3s; }
.lang:hover { background: var(--gold); color: var(--midnight); }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; inset-inline: 9px; height: 1.5px; background: var(--ivory); transition: transform .3s, top .3s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: var(--ivory); overflow: hidden; background: var(--midnight); isolation: isolate; }
.hero-bg, .slide { position: absolute; inset: 0; }
.hero-bg { z-index: -1; }
.slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.8s ease, transform 8s linear; }
.slide.on { opacity: 1; transform: scale(1); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 32, .78) 0%, rgba(10, 18, 32, .5) 45%, rgba(15, 30, 54, .88) 100%); }
.hero-in { padding: 110px 20px 90px; display: grid; justify-items: center; gap: 14px; animation: rise 1.2s var(--ease) both; }
.hero-mark { height: clamp(84px, 13vw, 132px); }
.hero-name { display: grid; gap: 2px; margin-top: 4px; }
.hero-name [lang="ar"] { font-family: var(--sans); font-weight: 400; font-size: clamp(1.25rem, 2.6vw, 1.7rem); letter-spacing: .02em; }
.hero-name [lang="en"] { font-family: var(--serif-en); font-size: clamp(.95rem, 1.9vw, 1.2rem); letter-spacing: .32em; color: var(--gold); margin-inline-end: -.32em; }
.hero-title { color: var(--white); font-size: clamp(3rem, 10vw, 6.4rem); line-height: 1.25; margin-top: 26px; font-weight: 400; }
html[lang="en"] .hero-title { font-size: clamp(2.5rem, 7.5vw, 5rem); font-weight: 500; }
.hero-title::after { content: ""; display: block; width: min(220px, 50%); height: 1px; margin: 12px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero-sub { font-family: var(--serif-en); letter-spacing: .34em; font-size: clamp(.8rem, 1.5vw, 1rem); color: rgba(244, 239, 230, .85); }
html[lang="en"] .hero-sub { font-family: var(--serif-ar); letter-spacing: 0; font-size: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
.scroll { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 44px; margin-left: -13px; border: 1px solid rgba(244, 239, 230, .5); border-radius: 14px; }
.scroll span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 2s infinite; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; border-radius: 2px; font-weight: 500; font-size: 1rem; border: 1px solid transparent; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn.gold { background: var(--gold); color: var(--midnight); }
.btn.gold:hover { background: #d3b170; }
.btn.ghost { border-color: rgba(244, 239, 230, .6); color: var(--ivory); }
.btn.ghost:hover { background: var(--ivory); color: var(--navy); }
.btn.line { border-color: var(--navy); color: var(--navy); }
.btn.line:hover { background: var(--navy); color: var(--ivory); }

/* Shared section pieces */
section { position: relative; }
.eyebrow { color: var(--gold); font-weight: 500; font-size: .95rem; letter-spacing: .08em; margin-bottom: 10px; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; }
.rule { display: block; width: 64px; height: 2px; background: var(--gold); margin: 22px 0; }
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head .rule { margin-inline: auto; }
.lead { font-size: 1.2rem; color: var(--teal); }

/* About */
.about { padding: clamp(72px, 10vw, 130px) 0 clamp(56px, 8vw, 96px); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.welcome { margin-top: 26px; font-family: var(--serif-ar); font-size: 1.5rem; color: var(--navy); }
html[lang="en"] .welcome { font-family: var(--serif-en); font-style: italic; font-size: 1.6rem; }
.about-media { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: end; }
.poster { display: block; overflow: hidden; border-radius: 2px; box-shadow: 0 24px 50px -24px rgba(10, 18, 32, .55); }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.poster:hover img { transform: scale(1.04); }
.poster.p2 { aspect-ratio: 9 / 15; transform: translateY(28px); outline: 1px solid var(--gold-soft); outline-offset: 8px; }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 9vw, 110px); border-block: 1px solid var(--gold-soft); }
.feat { display: grid; justify-items: center; gap: 10px; padding: 30px 12px; text-align: center; font-weight: 500; color: var(--navy); font-size: 1.05rem; }
.feat + .feat { border-inline-start: 1px solid var(--gold-soft); }
.ico { width: 38px; height: 38px; color: var(--gold); }

/* Gallery */
.gallery { padding: clamp(64px, 9vw, 110px) 0; background: var(--white); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.chip { min-height: 42px; padding: 0 22px; border: 1px solid rgba(15, 30, 54, .2); border-radius: 999px; color: var(--navy); font-size: .98rem; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--gold); }
.chip.on { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; grid-auto-flow: dense; }
.grid .g-item { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--ivory); border-radius: 2px; }
.grid .g-item.wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.grid .g-item[hidden] { display: none; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.g-cap { position: absolute; inset: auto 0 0 0; padding: 36px 16px 12px; text-align: start; color: var(--ivory); font-size: .98rem; background: linear-gradient(transparent, rgba(10, 18, 32, .82)); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
.grid .g-item:hover img, .grid .g-item:focus-visible img { transform: scale(1.06); }
.grid .g-item:hover .g-cap, .grid .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
@media (hover: none) { .g-cap { opacity: 1; transform: none; } }

/* Location */
.location { padding: clamp(64px, 9vw, 110px) 0; background: var(--ivory); }
.loc-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.loc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.map { aspect-ratio: 16 / 11; border: 1px solid var(--gold-soft); padding: 8px; background: var(--white); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.foot { background: linear-gradient(160deg, var(--midnight), var(--teal)); color: var(--ivory); padding: 64px 0 32px; text-align: center; }
.foot-in { display: grid; justify-items: center; gap: 12px; }
.mark.big { height: 76px; }
.wordmark.big { height: 62px; }
.foot-tag { font-family: var(--serif-ar); font-size: 1.5rem; color: var(--gold); }
html[lang="en"] .foot-tag { font-family: var(--serif-en); font-style: italic; }
.foot-links { display: flex; gap: 28px; margin-top: 10px; }
.foot-links a { border-bottom: 1px solid var(--gold-soft); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.foot-links a:hover { color: var(--gold); border-color: var(--gold); }
.copy { margin-top: 28px; padding-top: 22px; width: 100%; border-top: 1px solid rgba(244, 239, 230, .14); font-size: .88rem; color: rgba(244, 239, 230, .7); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 16px; background: rgba(10, 18, 32, .96); direction: ltr; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lb img { max-height: calc(100svh - 110px); max-width: 100%; width: auto; object-fit: contain; box-shadow: 0 0 0 1px var(--gold-soft); }
.lb figcaption { color: var(--ivory); font-size: 1rem; }
.lb-nav, .lb-x { color: var(--ivory); width: 48px; height: 48px; font-size: 2.2rem; line-height: 1; border-radius: 50%; transition: background .3s, color .3s; }
.lb-nav:hover, .lb-x:hover { background: var(--gold); color: var(--midnight); }
.lb-x { position: absolute; top: 12px; right: 14px; z-index: 2; }

/* Motion */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid, .loc-grid { grid-template-columns: 1fr; }
  .about-text { text-align: center; }
  .about-text .rule { margin-inline: auto; }
  .loc-text { text-align: center; }
  .loc-text .rule { margin-inline: auto; }
  .loc-cta { justify-content: center; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .feat:nth-child(3) { border-inline-start: 0; }
  .feat:nth-child(n+3) { border-top: 1px solid var(--gold-soft); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wordmark { height: 30px; }
  .mark { height: 38px; }
  .burger { display: block; }
  .links { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: center; justify-content: center; gap: 30px; background: var(--navy); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .links a { font-size: 1.5rem; }
  .links.open { opacity: 1; visibility: visible; }
  .about-media { max-width: 460px; margin-inline: auto; }
  .lb { grid-template-columns: 1fr; padding: 10px; }
  .lb-nav { position: absolute; bottom: 14px; }
  .lb-nav.prev { left: 22%; } .lb-nav.next { right: 22%; }
  .lb img { max-height: calc(100svh - 170px); }
  .lb figure { margin-bottom: 60px; }
}
@media (max-width: 460px) {
  .grid { gap: 8px; }
  .g-cap { font-size: .8rem; padding: 24px 10px 8px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta { width: 100%; max-width: 320px; }
}

/* Rooms */
h3 { margin: 0; font-family: var(--serif-ar); font-weight: 700; font-size: 1.5rem; line-height: 1.4; color: var(--navy); }
html[lang="en"] h3 { font-family: var(--serif-en); font-weight: 600; font-size: 1.6rem; line-height: 1.2; }
.body { margin-top: 14px; color: #2a3445; max-width: 34em; }
.rooms { padding: clamp(64px, 9vw, 110px) 0; background: var(--white); }
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 36px); }
.room { background: var(--ivory); border-bottom: 2px solid var(--gold); overflow: hidden; }
.room-img { aspect-ratio: 3 / 2; overflow: hidden; }
.room-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.room:hover .room-img img { transform: scale(1.05); }
.room-body { padding: 24px 26px 26px; }
.room-body p { color: var(--teal); margin-top: 4px; }

/* Amenities */
.amen { padding: clamp(64px, 9vw, 110px) 0; background: var(--ivory); }
.amen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); }
.amen-col h3 { padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--gold-soft); }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.ticks li { position: relative; padding-inline-start: 22px; line-height: 1.6; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .55em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(44px, 6vw, 72px) 0 0; background: var(--navy); color: var(--ivory); }
.facts div { padding: 26px 16px; text-align: center; }
.facts div + div { border-inline-start: 1px solid rgba(197, 160, 89, .3); }
.facts dt { color: var(--gold); font-size: .92rem; letter-spacing: .04em; }
.facts dd { margin: 4px 0 0; font-size: 1.15rem; font-weight: 500; }

/* Contact */
address { font-style: normal; display: grid; gap: 2px; font-size: 1.12rem; color: var(--teal); }
.tel { display: inline-block; margin-top: 16px; font-family: var(--sans); font-variant-numeric: lining-nums tabular-nums; font-size: 1.7rem; font-weight: 500; letter-spacing: .03em; color: var(--navy); border-bottom: 1px solid var(--gold); line-height: 1.3; }
.tel:hover { color: var(--gold); }
.foot-tel { font-family: var(--sans); font-variant-numeric: lining-nums tabular-nums; font-size: 1.25rem; font-weight: 500; letter-spacing: .04em; margin-top: 6px; }
.foot-tel:hover { color: var(--gold); }
.foot-addr { font-size: .95rem; color: rgba(244, 239, 230, .8); }
.copy { line-height: 2; }

@media (max-width: 900px) {
  .amen-grid { grid-template-columns: 1fr; }
  address { justify-items: center; }
}
@media (max-width: 720px) {
  .room-grid { grid-template-columns: 1fr; }
  .links { gap: 24px; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-inline-start: 0; border-top: 1px solid rgba(197, 160, 89, .3); }
}
@media (max-width: 460px) { .ticks { grid-template-columns: 1fr; } }

/* WhatsApp */
.wa-ico { width: 22px; height: 22px; flex: none; }
.btn.wa { gap: 10px; background: #1FA855; color: #fff; }
.btn.wa:hover { background: #178a45; }
.wa-float { position: fixed; z-index: 40; bottom: 20px; inset-inline-start: 20px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #1FA855; color: #fff; box-shadow: 0 10px 26px -8px rgba(10, 18, 32, .6); transition: transform .3s var(--ease), background .3s; }
.wa-float:hover { transform: scale(1.08); background: #178a45; }
.wa-float .wa-ico { width: 30px; height: 30px; }

.wa-land { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 32px 20px; color: var(--ivory); text-align: center; isolation: isolate; background: var(--midnight); }
.wa-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 18, 32, .86), rgba(15, 30, 54, .93)), url(../assets/img/lobby-03.webp) center / cover; }
.wa-card { display: grid; justify-items: center; gap: 12px; width: min(460px, 100%); animation: rise 1s var(--ease) both; }
.wa-card .hero-mark { height: 96px; display: block; }
.wa-card h1 { color: var(--white); font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 400; margin-top: 22px; }
.wa-en { font-family: var(--serif-en); letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; color: rgba(244, 239, 230, .8); }
.btn.wa.big { width: 100%; min-height: 62px; font-size: 1.2rem; margin-top: 22px; border-radius: 4px; }
.btn.wa.big .wa-ico { width: 28px; height: 28px; }
.wa-num { font-size: 1.25rem; font-weight: 500; letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; margin-top: 6px; }
.wa-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--gold-soft); width: 100%; font-size: .98rem; }
.wa-links a { color: var(--gold); border-bottom: 1px solid transparent; }
.wa-links a:hover { border-color: var(--gold); }
