/* Nazar Koshliak — site styles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Geist:wght@300;400;500;600;700&display=swap');

:root {
  --green-deep: #0d2818;
  --green-mid: #14392a;
  --green-soft: #1d4a37;
  --brass: #b8935a;
  --brass-light: #d4b27a;
  --brass-dark: #8a6d3f;
  --bone: #faf7f0;
  --bone-warm: #f3ede0;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --line: rgba(184, 147, 90, 0.25);
  --line-bone: rgba(13, 40, 24, 0.12);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Geist', -apple-system, sans-serif;

  --pad-x: clamp(24px, 6vw, 96px);
  --pad-y: clamp(80px, 10vw, 160px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: var(--sans);
  background: var(--bone);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-dark);
}
.eyebrow-light { color: var(--brass-light); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.display {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; color: var(--brass); font-weight: 400; }
.h-xl { font-size: clamp(44px, 6vw, 96px); font-weight: 300; }
.h-xl em { font-style: italic; color: var(--brass); }
.h-lg { font-size: clamp(36px, 4.4vw, 72px); font-weight: 300; }
.h-lg em { font-style: italic; color: var(--brass); }
.h-md { font-size: clamp(28px, 3vw, 44px); font-weight: 400; }
.h-sm { font-size: clamp(22px, 2vw, 30px); font-weight: 400; }
.lead {
  font-family: var(--sans);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--green-deep);
  font-weight: 400;
}
.body { font-size: 16px; line-height: 1.65; color: var(--green-deep); font-weight: 400; }
.dark .body, .dark .lead { color: rgba(250, 247, 240, 0.8); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--bone); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--pad-x);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease;
  mix-blend-mode: normal;
}
.nav.solid {
  background: rgba(13, 40, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-top: 16px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(184, 147, 90, 0.15);
}
.nav.light-bg { background: rgba(250, 247, 240, 0.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line-bone); }
.nav.light-bg .nav-logo, .nav.light-bg .nav-links a { color: var(--green-deep); }
.nav.light-bg .nav-cta { background: var(--green-deep); color: var(--bone); border-color: var(--green-deep); }

.nav-logo {
  display: inline-flex; flex-direction: column; align-items: center;
  text-decoration: none; gap: 6px;
  text-align: center;
}
.nav-logo .nk-name {
  font-family: var(--sans, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  color: var(--bone);
  text-transform: uppercase;
  line-height: 1;
}
.nav-logo .nk-cities {
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 8.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--brass-light); font-weight: 400;
  padding-left: 0.32em;
  white-space: nowrap;
  opacity: 0.85;
  text-align: center;
}
.nav.light-bg .nav-logo .nk-name { color: var(--green-deep); }
.nav.light-bg .nav-logo .nk-cities { color: var(--brass); }
.nav.light-bg .nav-logo .nk-cities::before, .nav.light-bg .nav-logo .nk-cities::after { background: var(--brass); }
.nav-logo .nk-mark, .nav-logo .mono, .nav-logo .nk-name-top, .nav-logo .nk-name-bottom { display: none; }
.nav-links {
  display: flex; gap: 36px;
  font-family: var(--sans); font-size: 13px; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.nav-links a {
  color: var(--bone);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--brass);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--brass-light); }

.nav-cta {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--brass); color: var(--brass-light);
  padding: 12px 22px;
  transition: all 0.3s ease;
  cursor: pointer; background: transparent;
}
.nav-cta:hover { background: var(--brass); color: var(--green-deep); }

.nav-toggle { display: none; background: none; border: none; color: var(--bone); cursor: pointer; padding: 8px; z-index: 102; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }

  /* Full-screen solid burger menu */
  .nav-mobile-open { overflow: hidden; }
  /* Neutralize properties on .nav that create a CSS containing block,
     so the fixed-position .nav-links overlay escapes to the viewport. */
  .nav-mobile-open .nav,
  .nav-mobile-open .nav.solid,
  .nav-mobile-open .nav.light-bg {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    border-bottom: none !important;
    transform: none !important;
    filter: none !important;
  }
  .nav-mobile-open .nav-links {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    width: 100vw; height: 100vh;
    background-color: #0d2818 !important;
    padding: 80px 32px 40px;
    z-index: 101;
    animation: fadeIn 0.25s ease;
    overflow-y: auto;
  }
  /* Big tappable nav links, vertical stack */
  .nav-mobile-open .nav-links a {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.02em;
    padding: 14px 0;
    color: var(--bone);
    border-bottom: 1px solid rgba(184,147,90,0.12);
  }
  .nav-mobile-open .nav-links a:last-of-type { border-bottom: none; }
  .nav-mobile-open .nav-links a.active { color: var(--brass); }
  /* Kill the desktop ::after underline on mobile — it spans full link width
     in the open menu and looks like a strike-through over the text. The
     border-bottom on each link already creates the divider. */
  .nav-mobile-open .nav-links a::after { display: none !important; }
  .nav-mobile-open .nav-cta { display: inline-block; margin-top: 24px; align-self: flex-start; }

  /* Burger toggle must sit above the menu so user can close it */
  .nav-toggle { position: relative; z-index: 102; }
  .nav-mobile-open .nav-toggle { color: var(--brass); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ============= LANGUAGE SWITCHER ============= */
.lang-switch {
  position: relative;
  font-family: var(--sans);
}
.lang-current {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid rgba(184, 147, 90, 0.3);
  color: var(--bone);
  padding: 9px 14px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.lang-current svg { transition: transform 0.25s ease; }
.lang-current:hover { border-color: var(--brass); color: var(--brass-light); }
.lang-switch.open .lang-current { border-color: var(--brass); color: var(--brass); }
.lang-switch.open .lang-current svg { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 160px;
  background: rgba(13, 40, 24, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(184, 147, 90, 0.2);
  list-style: none; margin: 0; padding: 6px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 110;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li { margin: 0; padding: 0; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  font-size: 12px; letter-spacing: 0.08em;
  color: rgba(245, 237, 221, 0.7);
  transition: color 0.2s, background 0.2s;
}
.lang-menu a:hover { color: var(--brass-light); background: rgba(184, 147, 90, 0.06); }
.lang-menu a.active { color: var(--brass); }
.lang-menu .lang-code {
  font-size: 10px; letter-spacing: 0.16em;
  color: rgba(184, 147, 90, 0.5); font-weight: 500;
}

/* Mobile: language switcher lives inside burger menu */
@media (max-width: 900px) {
  .lang-switch { display: none; }
  .nav-mobile-open .nav-links .lang-mobile {
    display: flex; flex-direction: column; gap: 0;
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid rgba(184, 147, 90, 0.18);
  }
  .lang-mobile-label {
    font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--brass); margin-bottom: 12px;
  }
  .lang-mobile-list {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    list-style: none; padding: 0; margin: 0;
  }
  .lang-mobile-list a {
    display: block; padding: 10px 12px;
    font-size: 13px; letter-spacing: 0.08em;
    color: rgba(245, 237, 221, 0.7);
    border: 1px solid rgba(184, 147, 90, 0.15);
    text-align: center;
  }
  .lang-mobile-list a.active { color: var(--brass); border-color: var(--brass); }
}
/* Hide mobile lang block on desktop */
.lang-mobile { display: none; }

/* ============= GLOBAL MOBILE OVERRIDES ============= */
@media (max-width: 768px) {
  /* Force any inline 2-column hero/section grid to stack vertically */
  .hero-grid-mobile {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    gap: 24px !important;
  }
  /* Generic responsive type clamps */
  h1, h2, .h-xl, .h-lg, .h-md { line-height: 1.08; }
  .lead { font-size: 16px !important; }
  /* Smooth scrollable horizontal sections become vertical */
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 2fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Better touch targets */
  a, button, .nav-cta { min-height: 44px; }
}

/* Burj Khalifa scroll progress indicator */
#burj-progress {
  position: fixed; right: 28px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 200px;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  pointer-events: none;
}
#burj-progress.show { visibility: visible; opacity: 0.2; }
#burj-progress.show.scrolling { opacity: 1; }
#burj-progress svg { width: 100%; height: 100%; display: block; overflow: visible; }
.burj-outline { fill: rgba(184,147,90,0.10); stroke: rgba(184,147,90,0.5); stroke-width: 0.4; stroke-linejoin: round; }
.burj-antenna { stroke: rgba(184,147,90,0.5); stroke-width: 0.8; }
.burj-fill { fill: var(--brass); transition: y 0.15s ease-out; }
.burj-tip { fill: var(--brass-light); animation: burjBlink 1.8s ease-in-out infinite; }
@keyframes burjBlink { 50% { opacity: 0.15; } }
.burj-label {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; font-size: 11px;
  color: var(--brass-light); letter-spacing: 0.08em; white-space: nowrap;
}
@media (max-width: 900px) {
  /* On mobile: smaller, anchored bottom-right, more subtle */
  #burj-progress {
    right: 14px; top: auto; bottom: 14px;
    transform: none;
    width: 22px; height: 110px;
  }
  .burj-label { font-size: 9px; top: -20px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 18px 32px;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.35s ease;
  background: transparent;
}
.btn .arrow { transition: transform 0.35s ease; }
.btn:hover .arrow { transform: translateX(6px); }
.btn-primary { background: var(--brass); color: var(--green-deep); border-color: var(--brass); }
.btn-primary:hover { background: var(--brass-light); border-color: var(--brass-light); }
.btn-outline-light { color: var(--bone); border-color: var(--bone); }
.btn-outline-light:hover { background: var(--bone); color: var(--green-deep); }
.btn-outline-dark { color: var(--green-deep); border-color: var(--green-deep); }
.btn-outline-dark:hover { background: var(--green-deep); color: var(--bone); }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: var(--pad-y) var(--pad-x); }
.section-dark { background: var(--green-deep); color: var(--bone); }
.section-dark.section-mid { background: var(--green-mid); }
.section-bone { background: var(--bone-warm); color: var(--ink); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: end;
  padding-bottom: clamp(40px, 6vw, 80px);
}
.section-head .num { font-family: var(--serif); font-size: 18px; color: var(--brass); font-style: italic; }
.section-head .label { display: block; margin-top: 8px; }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- footer ---------- */
.footer {
  background: var(--green-deep);
  color: var(--bone);
  padding: 100px var(--pad-x) 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
}
.footer h4 {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 24px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; font-size: 15px; opacity: 0.85; }
.footer li a:hover { color: var(--brass-light); }
.footer-brand .display-mark {
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 28px; font-weight: 600; font-style: normal;
  letter-spacing: 0.32em; padding-left: 0.32em;
  text-transform: uppercase; color: var(--bone);
  margin-bottom: 14px;
}
.footer-brand p { font-size: 15px; opacity: 0.7; max-width: 360px; line-height: 1.6; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; font-size: 12px; opacity: 0.5;
  letter-spacing: 0.04em;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-track {
  display: inline-flex; gap: 80px; align-items: center;
  animation: marquee 40s linear infinite;
  padding-left: 80px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee span {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px); font-style: italic;
  color: var(--brass-light); font-weight: 400;
  letter-spacing: 0.01em;
}
.marquee .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brass);
  display: inline-block; flex-shrink: 0;
}

/* ---------- utilities ---------- */
.divider { height: 1px; background: var(--line); width: 100%; }
.divider-dark { background: var(--line-bone); }
.tag-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-light); font-weight: 500;
  border-radius: 999px;
}
.tag-pill .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #6ec18a;
  box-shadow: 0 0 0 0 rgba(110, 193, 138, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  to { box-shadow: 0 0 0 12px rgba(110, 193, 138, 0); }
}

/* ---------- Dubai animated skyline ---------- */
.skyline {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--green-deep) 0%, var(--green-mid) 100%);
}
.skyline svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.skyline .layer-back { animation: drift 60s linear infinite; opacity: 0.35; }
.skyline .layer-mid { animation: drift 40s linear infinite; opacity: 0.6; }
.skyline .layer-front { animation: drift 25s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }

/* sun */
.sun {
  position: absolute; right: 12%; top: 18%;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, var(--brass-light), var(--brass) 60%, transparent 70%);
  filter: blur(2px);
  animation: sunpulse 6s ease-in-out infinite;
}
@keyframes sunpulse { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

/* ---------- scrolling marquee button ---------- */
.scroll-btn {
  display: inline-block;
  padding: 22px 0;
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
}
.scroll-btn-track {
  display: inline-flex; gap: 48px; align-items: center;
  animation: marquee 18s linear infinite;
  font-family: var(--serif); font-size: clamp(28px, 4vw, 56px);
  font-style: italic; color: var(--brass);
  padding-left: 48px;
}
.scroll-btn:hover .scroll-btn-track { animation-duration: 8s; color: var(--brass-light); }
.scroll-btn-track .arrow-circle {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--brass);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-style: normal; font-size: 18px;
}

/* ---------- ticker / loading band ---------- */
.ticker {
  background: var(--green-deep); color: var(--brass-light);
  padding: 14px 0; overflow: hidden; white-space: nowrap;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ticker-track { display: inline-flex; gap: 48px; animation: marquee 30s linear infinite; padding-left: 48px; }
.ticker-track .pip { color: var(--brass); }
.ticker-track .live {
  display: inline-flex; align-items: center; gap: 8px; color: #6ec18a;
}
.ticker-track .live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6ec18a;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

/* ---------- floating stats card ---------- */
.float-card {
  background: rgba(13, 40, 24, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  padding: 24px 28px;
  display: flex; align-items: center; gap: 20px;
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  transition: gap 0.3s ease;
}
.link-arrow:hover { gap: 18px; }

/* photo frame */
.photo-frame { position: relative; overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.photo-frame:hover img { transform: scale(1.04); }

/* number counter */
.stat .num { font-family: var(--serif); font-size: clamp(56px, 7vw, 104px); font-weight: 300; line-height: 1; color: var(--bone); }
.stat .num em { font-style: italic; color: var(--brass); font-size: 0.6em; vertical-align: super; }
.stat .label { font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-light); margin-top: 12px; }
