/* ============================================================
   Cum Laude Hospitality — site styles
   Palace / champagne system · Cormorant Garamond + Jost (EN)
   Amiri + Tajawal (AR) · fully responsive · RTL-aware
   ============================================================ */

:root {
  --cream:      #F6F0E4;
  --cream-deep: #EFE7D6;
  --paper:      #FBF7EF;
  --ink:        #272320;
  --ink-soft:   #5C544B;
  --ink-faint:  #8A8175;
  --gold:       #A8884E;
  --gold-light: #C7A668;
  --espresso:   #221E1A;
  --line:       rgba(39, 35, 32, 0.14);
  --line-soft:  rgba(39, 35, 32, 0.08);

  --serif-latin: 'Cormorant Garamond', Georgia, serif;
  --serif: var(--serif-latin);
  --sans:  'Jost', system-ui, sans-serif;

  --pad-x: clamp(22px, 6vw, 96px);
  --maxw:  1360px;
}

/* Arabic font swaps */
html[lang="ar"] {
  --serif: 'Amiri', 'Cormorant Garamond', serif;
  --sans:  'Tajawal', 'Jost', sans-serif;
}

/* Tweaks: disable scroll-reveal motion */
body.motion-off .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- shared utility bits --------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
html[lang="ar"] .eyebrow { letter-spacing: 0.04em; }
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.section-num {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.slot {
  position: relative;
  background: #E6DCC8;
  background-image: repeating-linear-gradient(135deg, transparent 0 13px, rgba(39,35,32,0.05) 13px 14px);
  overflow: hidden;
}
.slot span {
  position: absolute;
  inset-inline-start: 14px;
  bottom: 12px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(39,35,32,0.4);
}
.slot.dark { background: #2A2520; background-image: repeating-linear-gradient(135deg, transparent 0 13px, rgba(246,240,228,0.05) 13px 14px); }
.slot.dark span { color: rgba(246,240,228,0.45); }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  transition: background .5s ease, padding .5s ease, box-shadow .5s ease;
}
.site-header.scrolled {
  background: rgba(246, 240, 228, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 16px;
  padding-bottom: 16px;
  box-shadow: 0 1px 0 var(--line-soft);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.brand-mono {
  height: 34px;
  width: auto;
  display: block;
  transition: height .5s ease;
}
.site-header.scrolled .brand-mono { height: 28px; }
html[lang="ar"] .wordmark { font-size: 16px; }
html[lang="ar"] .wordmark { letter-spacing: normal; font-family: var(--sans); }

.wm-lockup {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
.wm-main { font-size: 16px; letter-spacing: 0.34em; }
.wm-sub {
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
html[lang="ar"] .nav-links a { letter-spacing: 0; font-size: 15px; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .35s ease;
}
.nav-links a:hover::after { width: 100%; }

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
}
.lang-toggle .l {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  transition: color .3s ease;
}
.lang-toggle .l.active { color: var(--ink); }
.lang-toggle .sep { color: var(--line); }
.header-phone {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-btn span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform .35s ease, opacity .35s ease;
}

/* mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 26px var(--pad-x) 48px;
  transform: translateY(-100%);
  transition: transform .55s cubic-bezier(.7,0,.2,1);
  visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-close {
  background: none; border: none; cursor: pointer;
  font-size: 30px; line-height: 1; color: var(--ink); padding: 0 4px;
}
.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  margin-bottom: auto;
}
.mobile-links a {
  font-family: var(--serif);
  font-size: clamp(40px, 13vw, 64px);
  line-height: 1.12;
  color: var(--ink);
}
.mobile-links a .idx {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  vertical-align: super;
  margin-inline-end: 12px;
}
.mobile-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 124px var(--pad-x) 40px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-locale {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
html[lang="ar"] .hero-locale { letter-spacing: 0; }
.hero-core { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 4vh 0; }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(58px, 12.5vw, 176px);
  line-height: 0.9;
  letter-spacing: -0.012em;
  color: var(--ink);
}
html[lang="ar"] .hero-title { line-height: 1.1; letter-spacing: 0; }
.hero-title em { font-style: italic; }
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: clamp(28px, 5vh, 56px);
  flex-wrap: wrap;
}
.hero-lead {
  font-family: var(--sans);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 520px;
}
.stats { display: flex; gap: clamp(40px, 5vw, 72px); flex-shrink: 0; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.stat b {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 56px);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.stat span {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: 120px;
}
html[lang="ar"] .stat span { letter-spacing: 0; font-size: 14px; }
.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  height: var(--hero-strip-h, clamp(150px, 22vh, 264px));
  margin-top: clamp(26px, 4vh, 44px);
}
.slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  filter: saturate(0.96);
}

/* ============================================================
   INTRO / POSITIONING
   ============================================================ */
.intro {
  padding: clamp(80px, 13vh, 150px) var(--pad-x);
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
}
.intro-statement {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.28;
  color: var(--ink);
  font-weight: 400;
}
html[lang="ar"] .intro-statement { line-height: 1.6; }
.intro-statement em { font-style: italic; color: var(--gold); }
.intro-aside {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  padding-top: 8px;
}
.intro-aside p + p { margin-top: 18px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: clamp(80px, 13vh, 150px) var(--pad-x);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(44px, 7vh, 80px);
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
html[lang="ar"] .section-title { line-height: 1.25; letter-spacing: 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.service {
  background: var(--cream);
  padding: clamp(34px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 300px;
  transition: background .5s ease;
}
.service:hover { background: var(--paper); }
.service .s-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service .s-num {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.service .s-mark { width: 32px; height: 1px; background: var(--gold); opacity: .5; }
.service h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  color: var(--ink);
  margin-top: auto;
}
.service p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 380px;
}

/* ============================================================
   REFERENCES
   ============================================================ */
.references {
  padding: clamp(80px, 13vh, 150px) var(--pad-x);
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
}
.ref-group + .ref-group { margin-top: clamp(48px, 7vh, 80px); }
.ref-group-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
html[lang="ar"] .ref-group-label { letter-spacing: 0; font-size: 15px; }
.ref-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.6fr);
  align-items: baseline;
  gap: 24px;
  padding: clamp(22px, 3vh, 34px) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-inline .4s ease;
}
.ref-row:hover { padding-inline-start: 12px; }
.ref-name {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.0;
  color: var(--ink);
  transition: color .4s ease;
}
.ref-row:hover .ref-name { color: var(--gold); }
.ref-loc {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
html[lang="ar"] .ref-loc { letter-spacing: 0; }
.ref-desc {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: end;
}

/* ============================================================
   PROJECTS (current)
   ============================================================ */
.projects {
  padding: clamp(80px, 13vh, 150px) var(--pad-x);
  background: var(--espresso);
  color: var(--cream);
}
.projects .eyebrow { color: var(--gold-light); }
.projects .eyebrow::before { background: var(--gold-light); }
.projects .section-title { color: var(--cream); }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.project {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(246,240,228,0.14);
  background: rgba(246,240,228,0.02);
}
.project .p-img { height: clamp(160px, 22vh, 220px); }
.project .p-body {
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.project .p-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
html[lang="ar"] .project .p-status { letter-spacing: 0; font-size: 13px; }
.project .p-status::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(199,166,104,0.18);
}
.project h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.04;
  color: var(--cream);
}
.project .p-loc {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,240,228,0.55);
}
html[lang="ar"] .project .p-loc { letter-spacing: 0; }
.project .p-meta {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(246,240,228,0.14);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 18px 24px;
}
.project .p-meta > div { display: contents; }
.project .p-meta .k {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246,240,228,0.45);
  white-space: nowrap;
  padding-top: 3px;
}
html[lang="ar"] .project .p-meta .k { letter-spacing: 0; }
.project .p-meta .v {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--cream);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: clamp(84px, 15vh, 170px) var(--pad-x);
  background: var(--cream);
}
.contact-head {
  font-family: var(--serif);
  font-size: clamp(44px, 8vw, 116px);
  line-height: 0.94;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: clamp(26px, 4vh, 42px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  padding: 18px 38px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background .45s ease, gap .35s ease;
  margin-bottom: clamp(46px, 7vh, 78px);
}
.btn-primary:hover { background: var(--gold); gap: 20px; }
.btn-arrow { display: inline-block; transition: transform .35s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
html[lang="ar"] .btn-primary { letter-spacing: 0; font-size: 15px; }
html[lang="ar"] .btn-arrow { transform: scaleX(-1); }
html[lang="ar"] .btn-primary:hover .btn-arrow { transform: scaleX(-1) translateX(3px); }
html[lang="ar"] .contact-head { line-height: 1.15; letter-spacing: 0; }
.contact-head em { font-style: italic; color: var(--gold); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: clamp(34px, 5vh, 52px);
}
.contact-block .c-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
html[lang="ar"] .contact-block .c-label { letter-spacing: 0; font-size: 15px; }
.contact-block .c-val {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  color: var(--ink);
}
.contact-block a.c-val { transition: color .35s ease; }
.contact-block a.c-val:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--espresso);
  color: var(--cream);
  padding: clamp(48px, 7vh, 76px) var(--pad-x) 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(246,240,228,0.14);
}
.footer-mark {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  color: var(--cream);
}
.footer-mark em { font-style: italic; color: var(--gold-light); }
.footer-logo {
  height: clamp(86px, 11vw, 118px);
  width: auto;
  display: block;
}
.footer-tagline {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246,240,228,0.6);
}
html[lang="ar"] .footer-tagline { letter-spacing: 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(246,240,228,0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links { gap: 26px; }
  .nav-links a { font-size: 11.5px; }
  .header-phone { display: none; }
}

@media (max-width: 860px) {
  .nav-links, .header-right .lang-toggle, .header-right .header-phone { display: none; }
  .menu-btn { display: flex; }
  .intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .proj-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .ref-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ref-desc { text-align: start; }
  .ref-loc { letter-spacing: 0.12em; }
}

@media (max-width: 560px) {
  .hero { padding-top: 104px; }
  .hero-strip { grid-template-columns: 1fr 1fr; height: auto; }
  .hero-strip .slot:last-child { display: none; }
  .hero-strip .slot { height: 120px; }
  .stats { gap: 32px; }
  .hero-bottom { gap: 26px; }
}
