/* MAK BROKER — Design System */
:root {
  --navy: #071428;
  --navy-mid: #0c1f3d;
  --navy-soft: #132a4a;
  --gold: #c9a227;
  --gold-soft: #e0c56a;
  --silver: #b8c0cc;
  --white: #f7f5f0;
  --white-pure: #ffffff;
  --ink: #e8eef7;
  --muted: #9aa8bc;
  --line: rgba(201, 162, 39, 0.35);
  --glass: rgba(7, 20, 40, 0.72);
  --radius: 2px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1180px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(7, 20, 40, 0.9);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(201, 162, 39, 0.2);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  padding: 4px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--white-pure);
  line-height: 1.1;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--silver);
  font-weight: 400;
  margin-top: 0.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--gold-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  overflow: hidden;
  height: 34px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--silver);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
}

.lang-switch button.is-active {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 1rem;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.nav-cta:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a8861a);
  color: var(--navy);
  font-weight: 600;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white-pure);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--gold-soft);
  transition: 0.25s;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }

body.nav-open .menu-toggle span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: kenburns 22s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-2%, -1%, 0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 20, 40, 0.55) 0%, rgba(7, 20, 40, 0.72) 45%, rgba(7, 20, 40, 0.92) 100%),
    radial-gradient(ellipse at 50% 20%, rgba(201, 162, 39, 0.12), transparent 55%);
}

.hero-content {
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  max-width: 920px;
}

.hero-brand {
  margin: 0 auto 1.75rem;
  text-align: center;
  opacity: 0;
  animation: riseLogo 1.15s var(--ease) 0.08s forwards;
  overflow: visible;
}

.hero-crest-wrap {
  display: inline-block;
  padding: 0.5rem 1rem 1.25rem;
  margin: 0 auto 0.35rem;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.55));
  line-height: 0;
}

.hero-crest {
  width: min(280px, 58vw);
  height: auto;
  background: transparent;
  object-fit: contain;
  display: block;
}

.hero-wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--white-pure);
  text-indent: 0.22em;
}

.hero-tag {
  margin-top: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero-logo-wrap {
  margin: 0 auto 1.85rem;
  opacity: 0;
  animation: riseLogo 1.15s var(--ease) 0.1s forwards;
}

.hero-logo {
  width: min(380px, 72vw);
  height: auto;
  margin: 0 auto;
  background: transparent;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.65));
}

@keyframes riseLogo {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 4.1rem);
  line-height: 1.15;
  color: var(--white-pure);
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.35s forwards;
}

.hero h1 .gold {
  color: var(--gold-soft);
}

.hero-lead {
  color: var(--silver);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 40rem;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.55s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  opacity: 0;
  animation: rise 1s var(--ease) 0.7s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--gold), transparent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; height: 36px; }
  50% { opacity: 1; height: 48px; }
}

/* Sections */
.section {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  position: relative;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.85rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--white-pure);
  margin-bottom: 0.85rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(19, 42, 74, 0.35), rgba(7, 20, 40, 0)),
    var(--navy);
}

.section-soft {
  background:
    radial-gradient(ellipse at top, rgba(201, 162, 39, 0.06), transparent 50%),
    var(--navy-mid);
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.pillar:hover {
  border-top-color: var(--gold);
  transform: translateY(-4px);
}

.pillar-num {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 550;
  color: var(--white-pure);
  margin-bottom: 0.7rem;
}

.pillar p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.why-item span {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.why-item h3 {
  font-size: 1.15rem;
  color: var(--white-pure);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.why-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-tile {
  background: var(--navy);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 180px;
  transition: background 0.3s;
}

.service-tile:hover {
  background: var(--navy-soft);
}

.service-tile .idx {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.service-tile h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--white-pure);
  font-weight: 500;
}

.service-tile p {
  color: var(--muted);
  flex: 1;
  font-size: 0.95rem;
}

.service-tile .more {
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Journey 4 stages */
.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.journey::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

.journey-step {
  text-align: center;
  padding: 0 0.5rem;
}

.journey-step .dot {
  width: 12px;
  height: 12px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(201, 162, 39, 0.15);
  position: relative;
  z-index: 1;
}

.journey-step h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white-pure);
  margin-bottom: 0.55rem;
}

.journey-step p {
  color: var(--muted);
  font-size: 0.92rem;
}

.journey-link {
  display: inline-flex;
  margin-top: 2.5rem;
  color: var(--gold-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
}

/* Contact band */
.contact-band {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-meta h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white-pure);
  margin: 1.5rem 0 0.4rem;
}

.contact-meta p,
.contact-meta a {
  color: var(--silver);
}

.contact-meta a:hover {
  color: var(--gold-soft);
}

.form {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white-pure);
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  border-radius: var(--radius);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.form-success,
.form-error {
  display: none;
  padding: 0.75rem 0;
}

.form-success.is-visible {
  display: block;
  color: var(--gold-soft);
}

.form-error.is-visible {
  display: block;
  color: #e8a0a0;
}

.legal-body {
  max-width: 760px;
}

.legal-body p {
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

/* Page hero (inner) */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3.5rem;
  background:
    linear-gradient(180deg, rgba(7, 20, 40, 0.4), var(--navy)),
    url("../assets/hero-dubai.jpg") center/cover;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 500;
  color: var(--white-pure);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--silver);
  max-width: 38rem;
  font-size: 1.08rem;
}

/* Content prose */
.prose {
  max-width: 720px;
}

.prose p {
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
}

.prose strong {
  color: var(--white-pure);
  font-weight: 500;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.value {
  padding: 1.4rem;
  border-left: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.03);
}

[dir="rtl"] .value {
  border-left: 0;
  border-right: 2px solid var(--gold);
}

.value h3 {
  color: var(--white-pure);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.value p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Steps 8 */
.steps-list {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  counter-increment: step;
}

.step-row::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.4rem;
}

.step-row h3 {
  color: var(--white-pure);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.step-row p {
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  padding: 3rem 0 2rem;
  background: #050f1d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  width: 96px;
  height: auto;
  margin-bottom: 1rem;
  background: transparent;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 22rem;
}

.footer-col h4 {
  color: var(--gold-soft);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--silver);
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* RTL tweaks */
[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", var(--font-body);
}

[dir="rtl"] .hero h1,
[dir="rtl"] .section-head h2,
[dir="rtl"] .page-hero h1,
[dir="rtl"] .pillar h3,
[dir="rtl"] .service-tile h3 {
  font-family: "IBM Plex Sans Arabic", var(--font-display);
}

/* Responsive */
@media (max-width: 960px) {
  .pillars,
  .journey {
    grid-template-columns: 1fr;
  }

  .journey::before {
    display: none;
  }

  .why-grid,
  .services-grid,
  .contact-band,
  .footer-grid,
  .values {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(7, 20, 40, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-actions .nav-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand-name {
    display: none;
  }
}
