/* ============ Design tokens ============ */
:root {
  --ink: #0b0f16;
  --ink-soft: #10151e;
  --panel: #121722;
  --panel-raised: #1a2130;
  --line: rgba(255, 255, 255, 0.1);
  --red: #e01c2e;
  --red-bright: #ff4258;
  --blue: #2457d6;
  --blue-bright: #5b8cff;
  --cream: #f4f6fb;
  --text: #dde2ec;
  --text-dim: #9aa4b5;
  --text-faint: #5d6675;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --radius: 2px;
  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 17px; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red-bright);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.01em; }

h2.section-title {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.16;
  margin: 10px 0 12px;
  color: var(--cream);
}

.section-lede {
  max-width: 580px;
  color: var(--text-dim);
  font-size: 17.5px;
}

.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-lede { margin-left: auto; margin-right: auto; }

section { padding: 100px 0; position: relative; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 14px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-outline {
  border-color: rgba(244, 246, 251, 0.35);
  color: var(--cream);
  background: rgba(11, 15, 22, 0.35);
}
.btn-outline:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
.btn-block { width: 100%; justify-content: center; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 15, 22, 0.93);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  border-color: var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid var(--red);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 19px; letter-spacing: 0.03em; color: var(--cream); }
.brand-tag { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 36px; margin-top: -9px; }
.nav-links a {
  font-size: 13.5px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--blue-bright); }
.nav-cta { display: flex; align-items: center; margin-left: 28px; margin-top: -9px; flex: none; }
.nav-toggle { display: none; }

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(9, 12, 18, 0.95) 0%, rgba(9, 12, 18, 0.82) 42%, rgba(9, 12, 18, 0.45) 100%),
    url("dxb-hero.jpg") center / cover no-repeat,
    var(--ink);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--ink));
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.hero-kicker .license-pill {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: rgba(11, 15, 22, 0.5);
  padding: 5px 12px;
  border-radius: 20px;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.1;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero h1 em { color: var(--red-bright); font-style: normal; }
.hero h1 strong { color: var(--blue-bright); font-weight: 600; }
.hero-sub {
  margin-top: 22px;
  font-size: 18.5px;
  color: var(--text);
  max-width: 520px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.hero-actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 520px;
  flex-wrap: wrap;
}
.stat-num { font-family: var(--serif); font-size: 34px; color: var(--red-bright); }
.stat-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-top: 4px; }

/* ---- Photo slot: image placeholder, swap in a real photo later ---- */
.photo-slot {
  position: relative;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.photo-slot::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, #222b3c, #10151e 75%);
}
.photo-slot .slot-icon { width: 26%; color: rgba(244, 246, 251, 0.28); position: relative; z-index: 1; }
.photo-slot .ph-label {
  position: absolute;
  bottom: 18px; left: 18px;
  right: 18px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 246, 251, 0.6);
  z-index: 1;
  background: rgba(11, 15, 22, 0.65);
  padding: 6px 10px;
  border-left: 2px solid var(--red);
}

.hero-visual { position: relative; }
.hero-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-badge {
  position: absolute;
  top: -18px; right: -18px;
  background: var(--panel-raised);
  border: 1px solid var(--red);
  border-radius: 50%;
  width: 92px; height: 92px;
  display: flex;
  align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 12px;
  color: var(--cream);
  line-height: 1.3;
  box-shadow: var(--shadow);
  z-index: 3;
}

/* ============ About ============ */
.about { background: var(--ink); }
.about .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.about-visual { display: flex; flex-direction: column; gap: 14px; }
.about-portraits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-portrait { aspect-ratio: 3 / 4; position: relative; overflow: hidden; border: 1px solid var(--line); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait .frame-corner {
  position: absolute; width: 22px; height: 22px; border: 1.5px solid var(--blue-bright); z-index: 2;
}
.frame-corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.frame-corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.about-body p { color: var(--text-dim); margin-bottom: 16px; font-size: 17px; }
.about-body p:first-of-type { color: var(--text); font-size: 18.5px; }

.credentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.cred-item {
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  padding: 16px 18px;
  background: var(--panel);
}
.cred-item.accent-red { border-top-color: var(--red); }
.cred-item .cred-label { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.cred-item .cred-value { font-family: var(--serif); font-size: 18.5px; color: var(--cream); margin-top: 6px; }

/* ============ Listings ============ */
.listings { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.listing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 900px; margin: 0 auto; }
.listing-card {
  display: block;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.listing-card:hover { transform: translateY(-6px); border-color: var(--red); }
.listing-media {
  aspect-ratio: 4/3;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.listing-media .bldg-icon { width: 30%; }
.listing-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(11, 15, 22, 0.85);
  border: 1px solid var(--red);
  color: var(--cream);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px;
  z-index: 2;
}
.listing-price {
  position: absolute; bottom: 14px; right: 14px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--cream);
  background: rgba(11, 15, 22, 0.85);
  padding: 5px 12px;
  border: 1px solid var(--line);
  z-index: 2;
}
.listing-view {
  position: absolute; bottom: 14px; left: 14px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-bright);
  display: flex; align-items: center; gap: 6px;
  z-index: 2;
}
.listing-view svg { width: 12px; height: 12px; }
.listing-info { padding: 22px; }
.listing-info h3 { font-size: 19.5px; color: var(--cream); margin-bottom: 6px; }
.listing-loc { font-size: 13.5px; color: var(--text-faint); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.listing-specs { display: flex; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-dim); }
.listing-specs span { display: flex; align-items: center; gap: 6px; }
.listing-specs svg { width: 15px; height: 15px; color: var(--blue-bright); }

.listings-footer { text-align: center; margin-top: 48px; }

/* ============ Stats band ============ */
.stats-band {
  background:
    linear-gradient(100deg, rgba(96, 10, 22, 0.82) 0%, rgba(12, 20, 42, 0.82) 100%),
    url("dxb-skyline.jpg") center / cover no-repeat,
    var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 76px 0;
}
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stats-band .stat-num { font-size: 43px; color: #fff; }
.stats-band .stat-label { color: rgba(244, 246, 251, 0.8); }
.stat-ps { font-size: 12px; color: rgba(244, 246, 251, 0.62); margin-top: 8px; font-style: italic; max-width: 260px; margin-left: auto; margin-right: auto; }

/* ============ Testimonials / client stories ============ */
.testimonials { background: var(--ink); }
.testi-person, .byline { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(150deg, var(--blue-bright), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); color: #fff; font-size: 13px; font-weight: 700;
  flex: none;
}
.testi-name { font-size: 15px; color: var(--cream); }
.testi-role { font-size: 12.5px; color: var(--text-faint); }

.case-study {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  padding: 40px 44px;
  margin-bottom: 28px;
}
.case-study h3 { font-size: clamp(21px, 2.6vw, 26px); color: var(--cream); margin: 8px 0 16px; }
.case-study p { color: var(--text-dim); font-size: 16.5px; margin-bottom: 15px; }
.case-study p:last-of-type { margin-bottom: 0; }
.case-study .byline { margin-top: 26px; }
.case-study-soon {
  border: 1px dashed var(--line);
  padding: 28px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ Social / Follow the journey ============ */
.ig-teaser { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ig-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; flex-wrap: wrap; gap: 20px; }
.platform-tabs { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.platform-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim);
}
.platform-pill svg { width: 15px; height: 15px; }
.platform-pill.active { border-color: var(--red); color: var(--cream); background: rgba(224, 28, 46, 0.1); }
.platform-pill.soon { opacity: 0.5; }
.platform-pill.soon .soon-tag { font-size: 10px; color: var(--blue-bright); margin-left: 2px; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ig-cell {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.ig-cell svg { width: 24%; }
.ig-cell::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11, 15, 22, 0.55), transparent 60%);
  opacity: 0; transition: opacity 0.25s ease;
}
.ig-cell:hover::after { opacity: 1; }

/* ============ Contact ============ */
.contact {
  background:
    linear-gradient(180deg, rgba(11, 15, 22, 0.93), rgba(11, 15, 22, 0.9)),
    url("dxb-marina.jpg") center / cover no-repeat,
    var(--ink);
}
.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { margin-bottom: 18px; }
.contact-list { margin-top: 34px; display: flex; flex-direction: column; gap: 22px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-bright);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-row .label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.contact-row .value { font-size: 16.5px; color: var(--cream); margin-top: 3px; }

.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.field input, .field select, .field textarea {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-bright); }
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 13px; color: var(--text-faint); margin-top: 14px; text-align: center; }

/* ============ Footer ============ */
footer { background: var(--panel); border-top: 1px solid var(--line); padding: 60px 0 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 50px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-faint); font-size: 14.5px; max-width: 300px; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; font-family: var(--sans); font-weight: 600; }
.footer-col a, .footer-col span { display: block; color: var(--text-dim); font-size: 14.5px; margin-bottom: 12px; }
.footer-col a:hover { color: var(--blue-bright); }
.socials { display: flex; gap: 12px; margin-top: 6px; }
.social-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s ease;
}
.social-btn:hover { border-color: var(--red); color: var(--red-bright); }
.social-btn svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--line);
  color: var(--text-faint); font-size: 13px; flex-wrap: wrap; gap: 10px;
}

/* ============ WhatsApp floating button ============ */
.float-wa {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  color: #fff;
  transition: transform 0.2s ease;
}
.float-wa:hover { transform: scale(1.06); }
.float-wa svg { width: 26px; height: 26px; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ Listing detail page ============ */
.listing-detail-header { padding-top: 160px; padding-bottom: 40px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 28px; }
.back-link:hover { color: var(--blue-bright); }
.back-link svg { width: 14px; height: 14px; }
.listing-detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.listing-detail-price { font-family: var(--serif); font-size: 33px; color: var(--red-bright); }
.listing-hero-media { aspect-ratio: 16/8; margin: 40px 0; }
.listing-hero-media .slot-icon { width: 14%; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0; }
.gallery-item { aspect-ratio: 4/3; }
.gallery-item .slot-icon { width: 26%; }
.video-slot { aspect-ratio: 16/9; margin: 40px 0; }
.video-slot .play-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(224, 28, 46, 0.85); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.video-slot .play-icon svg { width: 24px; height: 24px; color: #fff; margin-left: 3px; }
.listing-detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; margin-top: 30px; }
.listing-desc p { color: var(--text-dim); margin-bottom: 16px; font-size: 17px; }
.spec-table { border: 1px solid var(--line); }
.spec-row { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }
.spec-row .v { color: var(--cream); font-family: var(--serif); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { padding: 10px 18px; font-size: 12px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-tag { display: none; }
  .nav .container { flex-wrap: nowrap; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 420px; margin: 0 auto; }
  .about .container { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .contact .container { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-detail-grid { grid-template-columns: 1fr; }
  .credentials { grid-template-columns: 1fr 1fr; }
  .case-study { padding: 30px 26px; }
}
@media (max-width: 600px) {
  html { font-size: 16px; }
  .container { padding: 0 20px; }
  section { padding: 76px 0; }
  .brand-tag { display: none; }
  .nav-cta .btn { padding: 8px 14px; font-size: 11px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .credentials { grid-template-columns: 1fr; }
}
