:root {
  --ink: #0B1E3F;
  --ink-deep: #071530;
  --marine: #1B3866;
  --gold: #A89B85;
  --gold-soft: #C7BCA8;
  --paper: #E8E4DC;
  --paper-text: #F3F0EA;
  --muted: rgba(232, 228, 220, 0.68);
  --line: rgba(232, 228, 220, 0.16);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --arabic: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --gutter: clamp(1.25rem, 5.5vw, 5rem);
  --max: 1280px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-deep);
  color: var(--paper-text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body[dir="rtl"] { font-family: var(--arabic); line-height: 1.85; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.lang-en, .lang-ar { display: none; }
body[dir="ltr"] .lang-en { display: revert; }
body[dir="rtl"] .lang-ar { display: revert; }
.ltr-num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

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

.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
body[dir="rtl"] .serif { font-family: var(--arabic); font-weight: 500; letter-spacing: 0; }

.eyebrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
body[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 0.9rem; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding-block: 1.5rem;
}
.nav.scrolled {
  background: rgba(7, 21, 48, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.85rem;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; justify-content: center; gap: 0.38rem; }
.brand-name { font-size: 1rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; line-height: 1; }
.brand-sub { font-size: 0.62rem; font-weight: 500; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; }
body[dir="rtl"] .brand-text { gap: 0.1rem; }
body[dir="rtl"] .brand-name { font-family: var(--arabic); letter-spacing: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
body[dir="rtl"] .brand-sub { font-size: 0.8rem; font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.nav-links { display: flex; gap: 2.5rem; font-size: 0.82rem; }
body[dir="rtl"] .nav-links { font-size: 0.98rem; }
.nav-links a { position: relative; padding-block: 0.35rem; opacity: 0.86; transition: opacity 0.25s; }
.nav-links a::after {
  content: ''; position: absolute; inset-inline: 0; inset-block-end: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform 0.35s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.lang-toggle {
  background: none; border: 0; color: inherit; cursor: pointer; padding: 0.4rem 0.2rem;
  font-family: var(--arabic); font-size: 0.95rem; opacity: 0.86; transition: opacity 0.25s, color 0.25s;
}
body[dir="rtl"] .lang-toggle { font-family: var(--sans); font-size: 0.82rem; }
.lang-toggle:hover { opacity: 1; color: var(--gold-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem; cursor: pointer;
  font: inherit; font-size: 0.82rem; font-weight: 500; white-space: nowrap;
  padding: 0.85rem 1.4rem; border: 1px solid transparent;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
body[dir="rtl"] .btn { font-size: 0.98rem; }
.btn svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
body[dir="rtl"] .btn svg { transform: scaleX(-1); }
.btn:hover svg { transform: translateX(4px); }
body[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(4px); }
.btn-gold { background: var(--gold); color: var(--ink-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-line { border-color: rgba(232, 228, 220, 0.45); color: var(--paper-text); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-sm { padding: 0.6rem 1.1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 108%; object-fit: cover; object-position: 78% 50%; will-change: transform; }
.js .hero-media img { animation: heroZoom 14s var(--ease) both; }
body[dir="rtl"] .hero-media { transform: scaleX(-1); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 21, 48, 0.72) 0%, rgba(7, 21, 48, 0.15) 30%, rgba(7, 21, 48, 0.35) 62%, var(--ink-deep) 100%),
    linear-gradient(90deg, rgba(7, 21, 48, 0.78) 0%, rgba(7, 21, 48, 0.25) 55%, rgba(7, 21, 48, 0) 80%);
}
body[dir="rtl"] .hero::before {
  background:
    linear-gradient(180deg, rgba(7, 21, 48, 0.72) 0%, rgba(7, 21, 48, 0.15) 30%, rgba(7, 21, 48, 0.35) 62%, var(--ink-deep) 100%),
    linear-gradient(270deg, rgba(7, 21, 48, 0.78) 0%, rgba(7, 21, 48, 0.25) 55%, rgba(7, 21, 48, 0) 80%);
}
.hero-body { padding-block: 9.5rem 3.5rem; }
.hero .eyebrow { display: flex; align-items: center; gap: 1rem; margin-block-end: 1.6rem; }
.hero .eyebrow::before { content: ''; width: 56px; height: 1px; background: var(--gold); flex: none; }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 6.4rem); line-height: 1.02; max-width: 12ch; text-wrap: balance; }
body[dir="rtl"] .hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.3; max-width: 14ch; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-block-start: 2.2rem; }
.hero-lede { max-width: 30rem; font-size: 1.08rem; color: rgba(243, 240, 234, 0.84); }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-strip { border-block-start: 1px solid var(--line); }
.hero-strip ol { list-style: none; margin: 0; padding: 1.4rem 0 2.2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hero-strip li { font-size: 0.82rem; display: flex; gap: 0.8rem; align-items: baseline; }
body[dir="rtl"] .hero-strip li { font-size: 0.95rem; }
.num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 0.95em; direction: ltr; }

@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.js .hero-anim > * { animation: rise 1s var(--ease) both; }
.js .hero-anim > *:nth-child(1) { animation-delay: 0.15s; }
.js .hero-anim > *:nth-child(2) { animation-delay: 0.3s; }
.js .hero-anim > *:nth-child(3) { animation-delay: 0.5s; }
.js .hero-strip { animation: rise 1s var(--ease) 0.75s both; }

/* ---------- Business ---------- */
.business { background: var(--ink-deep); padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem 4rem; align-items: end; margin-block-end: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head h2 { font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.08; max-width: 14ch; }
body[dir="rtl"] .section-head h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.4; }
.section-head p:not(.eyebrow) { color: var(--muted); max-width: 26rem; justify-self: end; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card { position: relative; aspect-ratio: 305 / 560; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; background: var(--ink); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 21, 48, 0.55) 0%, rgba(7, 21, 48, 0) 28%, rgba(7, 21, 48, 0.35) 52%, rgba(7, 21, 48, 0.94) 100%);
  transition: opacity 0.5s var(--ease);
}
.card:hover img { transform: scale(1.07); }
.card .num { position: absolute; inset-block-start: 1.3rem; inset-inline-start: 1.5rem; font-size: 1.25rem; }
.card-body { padding: 1.5rem; }
.card h3 { font-size: clamp(1.5rem, 2.1vw, 1.9rem); line-height: 1.12; margin-block-end: 0.8rem; }
body[dir="rtl"] .card h3 { font-size: 1.4rem; line-height: 1.4; font-weight: 700; }
.card p { font-size: 0.86rem; color: rgba(243, 240, 234, 0.78); }
body[dir="rtl"] .card p { font-size: 0.95rem; }
.card-rule { display: block; width: 36px; height: 1px; background: var(--gold); margin-block-start: 1.2rem; transition: width 0.5s var(--ease); }
.card:hover .card-rule { width: 72px; }

/* ---------- About ---------- */
.about { background: var(--paper); color: var(--ink); padding-block: clamp(4.5rem, 9vw, 8rem); }
.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.about-photo { overflow: hidden; aspect-ratio: 540 / 700; }
.about-photo img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.about .eyebrow { color: #7D705B; }
.about h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.16; margin-block: 1.5rem 1.4rem; text-wrap: balance; }
body[dir="rtl"] .about h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.5; }
.about-alt { font-family: var(--arabic); font-size: 1.15rem; color: rgba(11, 30, 63, 0.72); }
body[dir="rtl"] .about-alt { font-family: var(--sans); font-size: 0.95rem; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-block-start: 2.4rem; padding-block-start: 2rem; border-block-start: 1px solid rgba(11, 30, 63, 0.16); }
.pillars h3 { font-size: 1.45rem; margin-block-end: 0.4rem; }
body[dir="rtl"] .pillars h3 { font-size: 1.2rem; font-weight: 700; }
.pillars p { font-size: 0.86rem; color: rgba(11, 30, 63, 0.7); }
body[dir="rtl"] .pillars p { font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--ink); overflow: hidden; }
.contact::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('/img/facade.jpg') center / cover no-repeat; opacity: 0.28; }
.contact::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 30, 63, 0.82), rgba(11, 30, 63, 0.9)); }
.contact-grid { display: grid; grid-template-columns: 1fr minmax(0, 30rem); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contact :is(h1, h2) { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; margin-block: 1.4rem 1.6rem; max-width: 9ch; }
body[dir="rtl"] .contact :is(h1, h2) { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.35; max-width: 12ch; }
.contact-intro { color: var(--muted); max-width: 22rem; margin-block-end: 2rem; }
.contact-card { background: rgba(7, 21, 48, 0.72); border: 1px solid var(--line); padding: 0.5rem 2rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.contact-item { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-block: 1.6rem; }
.contact-item + .contact-item { border-block-start: 1px solid var(--line); }
.contact-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); padding-block-start: 0.25rem; }
body[dir="rtl"] .contact-label { letter-spacing: 0; font-size: 0.9rem; }
.contact-value { font-size: 0.95rem; }
body[dir="rtl"] .contact-value { font-size: 1.02rem; }
.contact-value a { border-block-end: 1px solid transparent; transition: border-color 0.25s, color 0.25s; }
.contact-value a:hover { color: var(--gold-soft); border-color: var(--gold); }

/* ---------- Privacy ---------- */
.privacy { background: var(--ink-deep); padding-block: clamp(3.5rem, 7vw, 6rem); border-block-start: 1px solid var(--line); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr); gap: 2rem 4rem; }
.privacy :is(h1, h2) { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-block-start: 1rem; }
.privacy p { color: var(--muted); font-size: 0.92rem; max-width: 46rem; }
body[dir="rtl"] .privacy p { font-size: 1rem; }
.privacy p + p { margin-block-start: 1rem; }
.privacy p a { color: var(--gold-soft); border-block-end: 1px solid rgba(168, 155, 133, 0.5); }

/* ---------- Footer ---------- */
footer { background: #050F23; padding-block: 2rem; font-size: 0.78rem; color: var(--muted); }
body[dir="rtl"] footer { font-size: 0.9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; color: var(--paper-text); font-weight: 500; }
.footer-brand svg { width: 26px; height: 26px; }
footer a:hover { color: var(--gold-soft); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { aspect-ratio: 4 / 5; }
  .nav-links { gap: 1.6rem; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .section-head p:not(.eyebrow) { justify-self: start; }
  .about-grid, .contact-grid, .privacy-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 4 / 3; }
  .hero-strip ol { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .brand svg { width: 32px; height: 32px; }
  .brand-name { font-size: 0.9rem; }
  .brand-sub { font-size: 0.54rem; letter-spacing: 0.1em; }
  body[dir="rtl"] .brand-sub { font-size: 0.7rem; }
  .nav .btn { display: none; }
  .hero-body { padding-block: 8rem 2.5rem; }
  .hero-media img { object-position: 82% 50%; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 5 / 4; }
  .pillars { grid-template-columns: 1fr; gap: 1.2rem; }
  .contact-card { padding-inline: 1.25rem; }
  .contact-item { grid-template-columns: 1fr; gap: 0.3rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Brand picks ---------- */
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); }
.serif em { font-style: italic; color: var(--gold); }
.about .serif em { color: #7D705B; }
body[dir="rtl"] .serif em { font-style: normal; }
body[dir="rtl"] :is(h1, h2).serif { font-weight: 300; }

/* ---------- Brand system: small fixes ---------- */
:root { --paper: #FFFFFF; }
.about .eyebrow, .about .serif em { color: #7C7362; }
.eyebrow, .contact-label { text-transform: none; letter-spacing: 0; font-size: 0.84rem; }

/* ---------- Inner pages (Contact, Privacy) ---------- */
.page { min-height: 100svh; display: flex; flex-direction: column; }
.page .nav { background: rgba(7, 21, 48, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.page main { flex: 1 0 auto; display: flex; flex-direction: column; }
.page main > section { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; padding-block-start: clamp(9rem, 15vw, 12rem); border-block-start: 0; }

.privacy .eyebrow { color: var(--gold); font-size: 0.84rem; }
body[dir="rtl"] .privacy .eyebrow { font-size: 0.9rem; }

.nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Phone menu ---------- */
.menu-toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 0.5rem; margin-inline-end: -0.5rem; }
.menu-toggle svg { display: block; width: 22px; height: 22px; }

/* ---------- Footer details ---------- */
footer { padding-block: 2.5rem 2rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 0.5rem 1.75rem; flex-wrap: wrap; color: var(--paper-text); }
.footer-contact { font-style: normal; display: flex; gap: 0.4rem 2rem; flex-wrap: wrap; line-height: 1.7; padding-block: 1.25rem; margin-block: 1.5rem 1.25rem; border-block: 1px solid var(--line); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav.open { background: rgba(7, 21, 48, 0.97); }
  .nav-links { position: absolute; inset-inline: 0; inset-block-start: 100%; flex-direction: column; gap: 0; padding: 0.25rem var(--gutter) 1rem; background: rgba(7, 21, 48, 0.97); box-shadow: 0 1px 0 var(--line); font-size: 1rem; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding-block: 0.95rem; border-block-start: 1px solid var(--line); }
  .nav-links a::after { display: none; }
}
