/* ==========================================================================
   ELEVENTH AVENUE — Design System
   Boutique Real Estate Advisory, Abu Dhabi
   --------------------------------------------------------------------------
   Palette (Brand Guidelines 2026 Vol. 01 — usage ratio 40 / 40 / 10 / 10):
     Dark Blue Grey  #28374A   (40%)
     Spring Wood     #FBF6ED   (40%)
     Brownish Red    #983A20   (10%)
     Rodeo Dust      #CAAD99   (10%)
   Type: Creato Display (headlines) / Inter (body)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   --------------------------------------------------------------------------
   Inter is self-hosted (SIL Open Font License).
   Creato Display is the licensed brand headline face — drop the .woff2 files
   into /assets/fonts/ with the names below and headlines upgrade automatically.
   Until then, Inter renders headlines (visually very close at display sizes).
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/Inter-Variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/Inter-Variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Creato Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/CreatoDisplay-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Creato Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/CreatoDisplay-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Creato Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/CreatoDisplay-Bold.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand */
  --navy: #28374a;
  --navy-deep: #1f2b3b;
  --navy-soft: #33445c;
  --rust: #983a20;
  --rust-deep: #7c2f19;
  --sand: #caad99;
  --sand-soft: #dcc8b8;
  --ivory: #fbf6ed;
  --ivory-2: #f4ecdd;
  --ivory-3: #eee3d0;

  /* Semantic — light surfaces (alphas keep WCAG AA on ivory & ivory-2) */
  --ink: #23303f;
  --ink-2: rgba(35, 48, 63, 0.8);
  --ink-3: rgba(35, 48, 63, 0.68);
  --line: rgba(40, 55, 74, 0.16);
  --line-soft: rgba(40, 55, 74, 0.09);

  /* Semantic — dark surfaces (alphas keep WCAG AA on navy & navy-deep) */
  --paper: rgba(251, 246, 237, 0.92);
  --paper-2: rgba(251, 246, 237, 0.75);
  --paper-3: rgba(251, 246, 237, 0.58);
  --line-dark: rgba(251, 246, 237, 0.16);
  --line-dark-soft: rgba(251, 246, 237, 0.09);

  /* Type */
  --font-display: "Creato Display", "Inter", ui-sans-serif, system-ui,
    "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  /* Arabic-ready stack (activated when lang="ar"):
     "IBM Plex Sans Arabic", "Noto Kufi Arabic" — load when AR launches. */

  --fs-hero: clamp(2.9rem, 8vw, 6.4rem);
  --fs-h2: clamp(2.1rem, 4.6vw, 3.6rem);
  --fs-h3: clamp(1.4rem, 2.4vw, 1.9rem);
  --fs-h4: clamp(1.1rem, 1.6vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.72rem;

  /* Rhythm */
  --section: clamp(5.5rem, 11vw, 10.5rem);
  --section-sm: clamp(3.5rem, 7vw, 6.5rem);
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --container: 82.5rem;

  /* Motifs */
  --notch: 16px; /* diagonal-cut corner, echoing the brand mark */
  --clip-notch: polygon(
    0 0,
    calc(100% - var(--notch)) 0,
    100% var(--notch),
    100% 100%,
    0 100%
  );

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-mask: cubic-bezier(0.65, 0.02, 0.23, 1);
  --dur: 0.9s;

  /* Texture (brand X-grid, Rodeo Dust lines) */
  --texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23CAAD99' stroke-width='1'%3E%3Cpath d='M.5.5h119v119H.5z'/%3E%3Cpath d='M0 0l120 120M120 0L0 120'/%3E%3C/g%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   3. Reset / base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--rust);
  color: var(--ivory);
}

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

.dark :focus-visible,
.on-dark :focus-visible,
.site-header :focus-visible,
.mobile-menu :focus-visible,
.mobile-bar :focus-visible,
.page-hero :focus-visible {
  outline-color: var(--sand);
}

/* Checked state of consent boxes must stay visible on navy surfaces */
.dark .consent input[type="checkbox"],
.on-dark .consent input[type="checkbox"] {
  accent-color: var(--sand);
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.8rem 1.2rem;
  background: var(--navy);
  color: var(--ivory);
  font-size: var(--fs-small);
  transition: top 0.3s var(--ease-out);
}

.skip-link:focus-visible {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: inherit;
}

.t-hero {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.028em;
}

.t-h2 {
  font-size: var(--fs-h2);
}

.t-h3 {
  font-size: var(--fs-h3);
  line-height: 1.18;
}

.t-h4 {
  font-size: var(--fs-h4);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rust);
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow--bare::before {
  display: none;
}

.on-dark .eyebrow,
.dark .eyebrow {
  color: var(--sand);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 38em;
}

.on-dark .lede,
.dark .lede {
  color: var(--paper-2);
}

.muted {
  color: var(--ink-2);
}

.small {
  font-size: var(--fs-small);
  line-height: 1.65;
}

.accent {
  color: var(--rust);
}

.on-dark .accent,
.dark .accent {
  color: var(--sand);
}

/* --------------------------------------------------------------------------
   5. Layout primitives
   -------------------------------------------------------------------------- */

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

.section {
  padding-block: var(--section);
  position: relative;
}

.section--sm {
  padding-block: var(--section-sm);
}

.section--flush-top {
  padding-top: 0;
}

.dark {
  background: var(--navy);
  color: var(--ivory);
}

.dark--deep {
  background: var(--navy-deep);
}

.tint {
  background: var(--ivory-2);
}

.section-head {
  max-width: 46em;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head .eyebrow {
  margin-bottom: 1.4rem;
}

.section-head p {
  margin-top: 1.4rem;
}

.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.section-head--split > div:first-child {
  max-width: 34em;
}

.hairline {
  border: 0;
  border-top: 1px solid var(--line);
}

.dark .hairline {
  border-color: var(--line-dark);
}

/* --------------------------------------------------------------------------
   6. Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.05rem 2.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  will-change: transform;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--rust);
  color: var(--ivory);
  clip-path: var(--clip-notch);
}

.btn--primary:hover {
  background: var(--rust-deep);
}

.btn--ghost {
  border-color: rgba(40, 55, 74, 0.4);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}

.on-dark .btn--ghost,
.dark .btn--ghost {
  border-color: rgba(251, 246, 237, 0.45);
  color: var(--ivory);
}

.on-dark .btn--ghost:hover,
.dark .btn--ghost:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--navy);
}

.btn--sand {
  background: var(--sand);
  color: var(--navy-deep);
  clip-path: var(--clip-notch);
}

.btn--sand:hover {
  background: var(--sand-soft);
}

.btn--block {
  width: 100%;
}

.btn .btn-arrow {
  width: 1em;
  height: 1em;
  transition: transform 0.35s var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Text link with growing underline */
.tlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  padding-bottom: 0.35rem;
}

.tlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.32);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.tlink:hover::after {
  transform: scaleX(1);
}

.on-dark .tlink,
.dark .tlink {
  color: var(--sand);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out), backdrop-filter 0.45s var(--ease-out);
  border-bottom: 1px solid transparent;
  color: var(--ivory);
}

.site-header .container {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 5.5rem;
  transition: height 0.45s var(--ease-out);
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(31, 43, 59, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom-color: var(--line-dark-soft);
}

.site-header.is-scrolled .container {
  height: 4.5rem;
}

/* Brand lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ivory);
}

.brand-mark {
  width: 2.1rem;
  height: auto;
  fill: currentColor;
  flex: none;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.04;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand--footer .brand-mark {
  width: 2.6rem;
}

.brand--footer .brand-word {
  font-size: 1rem;
}

/* Primary nav (desktop) */
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.2vw, 2.4rem);
}

.primary-nav a {
  position: relative;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 246, 237, 0.78);
  padding: 0.5rem 0;
  transition: color 0.3s var(--ease-out);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--ivory);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.lang-switch [aria-current="true"] {
  color: var(--ivory);
}

.lang-switch .lang-ar {
  color: rgba(251, 246, 237, 0.55);
  line-height: 1;
  transition: color 0.3s var(--ease-out);
}

.lang-switch .lang-ar:hover,
.lang-switch .lang-ar:focus-visible {
  color: var(--ivory);
}

.lang-switch .divider {
  width: 1px;
  height: 0.85rem;
  background: var(--line-dark);
}

.header-cta {
  padding: 0.85rem 1.6rem;
}

/* Burger */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 130;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 1.6rem;
  height: 2px;
  background: var(--ivory);
  transform: translateX(-50%);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.nav-toggle span:nth-child(1) {
  translate: 0 -5px;
}

.nav-toggle span:nth-child(2) {
  translate: 0 5px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  translate: 0 0;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  translate: 0 0;
  transform: translateX(-50%) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-content: center;
  padding: calc(var(--gutter) + 3rem) var(--gutter) var(--gutter);
  background: var(--navy-deep);
  color: var(--ivory);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), visibility 0s 0.5s;
}

.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--texture);
  background-size: 160px;
  opacity: 0.05;
  pointer-events: none;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s var(--ease-out);
}

.mobile-menu nav {
  display: grid;
  gap: 0.4rem;
}

.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding: 0.35rem 0;
  display: inline-flex;
  align-items: baseline;
  gap: 1rem;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
    color 0.3s;
}

.mobile-menu.is-open nav a {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.06s * var(--i, 0) + 0.12s);
}

.mobile-menu nav a:hover {
  color: var(--sand);
}

.mobile-menu nav a .idx {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--sand);
}

.mobile-menu-foot {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out) 0.55s,
    transform 0.6s var(--ease-out) 0.55s;
}

.mobile-menu.is-open .mobile-menu-foot {
  opacity: 1;
  transform: none;
}

body.menu-locked {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  /* Layered brand gradient: champagne bloom top-right, quiet depth bottom-left,
     rich navy diagonal base. Reads premium with no photograph. */
  background:
    radial-gradient(
      120% 95% at 82% 4%,
      rgba(202, 173, 153, 0.13) 0%,
      rgba(202, 173, 153, 0) 44%
    ),
    radial-gradient(
      100% 125% at 4% 106%,
      rgba(8, 12, 19, 0.72) 0%,
      rgba(8, 12, 19, 0) 55%
    ),
    linear-gradient(158deg, #10171f 0%, #18232f 52%, #223243 100%);
  color: var(--ivory);
}

/* Optional cinematic photo/video slot — add images/hero.jpg to activate */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: hero-zoom 26s var(--ease-out) both;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

/* Legibility overlay above media */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Left panel keeps headline text legible; bottom anchor grounds the
     buttons and the footer strip. Blue-black tones stay true to the
     night skyline without muddying it. */
  background: linear-gradient(
      to right,
      rgba(18, 26, 38, 0.9) 0%,
      rgba(18, 26, 38, 0.5) 42%,
      rgba(18, 26, 38, 0.2) 75%,
      rgba(18, 26, 38, 0.4) 100%
    ),
    linear-gradient(
      to top,
      rgba(16, 22, 32, 0.85) 0%,
      rgba(16, 22, 32, 0.15) 40%,
      rgba(16, 22, 32, 0) 62%
    );
}

/* Sand dusk glow */
.hero-glow {
  position: absolute;
  z-index: 2;
  top: -18%;
  right: -12%;
  width: 68vw;
  height: 68vw;
  max-width: 1000px;
  max-height: 1000px;
  background: radial-gradient(
    circle,
    rgba(202, 173, 153, 0.26) 0%,
    rgba(202, 173, 153, 0.08) 42%,
    transparent 68%
  );
  pointer-events: none;
}

/* Brand texture drift */
.hero-texture {
  position: absolute;
  inset: -120px;
  z-index: 2;
  background-image: var(--texture);
  background-size: 220px;
  opacity: 0.05;
  animation: texture-drift 70s linear infinite;
  pointer-events: none;
}

@keyframes texture-drift {
  to {
    transform: translate3d(220px, 220px, 0);
  }
}

/* Giant watermark mark */
.hero-mark {
  position: absolute;
  z-index: 2;
  right: clamp(-9rem, -6vw, -3rem);
  bottom: -6rem;
  width: clamp(26rem, 48vw, 52rem);
  fill: var(--sand);
  opacity: 0.08;
  pointer-events: none;
  animation: mark-rise 2.4s var(--ease-out) both 0.4s;
}

@keyframes mark-rise {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 0.08;
  }
}

.hero-inner {
  position: relative;
  z-index: 5;
  padding-top: 9rem;
  padding-bottom: clamp(6rem, 12vh, 8.5rem);
  max-width: 62rem;
}

.hero-inner .eyebrow {
  margin-bottom: 1.8rem;
}

.hero-title {
  margin-bottom: 1.9rem;
}

@media (max-width: 700px) {
  .hero-br {
    display: none;
  }
}

.hero-lede {
  max-width: 34em;
  margin-bottom: 2.8rem;
}

/* Staggered entrance */
.hero-up {
  opacity: 0;
  transform: translateY(34px);
  animation: hero-up 1.1s var(--ease-out) forwards;
  animation-delay: calc(0.14s * var(--i, 0) + 0.15s);
}

@keyframes hero-up {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero footer strip */
.hero-foot {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--line-dark-soft);
}

.hero-foot .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
}

.hero-foot-note {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-3);
}

/* Scroll cue */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--paper-3);
}

.scroll-cue .line {
  position: relative;
  width: 1px;
  height: 2.6rem;
  background: var(--line-dark);
  overflow: hidden;
}

.scroll-cue .line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--sand);
  animation: cue-drop 2.2s var(--ease-mask) infinite;
}

@keyframes cue-drop {
  0% {
    top: -100%;
  }
  55% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

/* --------------------------------------------------------------------------
   9. Reveal-on-scroll & media masking
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

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

/* Image mask reveal: frame wipes open, image settles from a slow zoom */
.mask {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.15s var(--ease-mask);
  transition-delay: var(--d, 0s);
}

.mask.is-in {
  clip-path: inset(0 0 0% 0);
}

.mask img {
  transform: scale(1.1);
  transition: transform 1.6s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.mask.is-in img {
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   10. Media slots (branded placeholders until licensed imagery is added)
   --------------------------------------------------------------------------
   Usage:
     <figure class="media media--sand ratio-45" data-label="Saadiyat Island">
       <img src="images/saadiyat.jpg" alt="…" loading="lazy"
            onerror="this.closest('.media').classList.add('media--empty'); this.remove()">
     </figure>
   If the image file is missing, the branded placeholder shows instead.
   -------------------------------------------------------------------------- */

.media {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--ivory);
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--texture);
  background-size: 130px;
  opacity: 0.07;
}

/* Watermark mark, per brand guidelines */
.media::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: auto;
  width: min(34%, 7.5rem);
  aspect-ratio: 90 / 86;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 86'%3E%3Cg fill='%23FBF6ED'%3E%3Cpath d='M0 0h40L0 40Z'/%3E%3Crect y='46' width='40' height='40'/%3E%3Cpath d='M50 0h40L50 40Z'/%3E%3Crect x='50' y='46' width='40' height='40'/%3E%3C/g%3E%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0.1;
}

.media--sand {
  background: var(--sand);
}

.media--rust {
  background: var(--rust);
}

.media--deep {
  background: var(--navy-deep);
}

.media--ivory {
  background: var(--ivory-3);
}

/* Ivory slots need the navy watermark to stay visible */
.media--ivory::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 86'%3E%3Cg fill='%2328374A'%3E%3Cpath d='M0 0h40L0 40Z'/%3E%3Crect y='46' width='40' height='40'/%3E%3Cpath d='M50 0h40L50 40Z'/%3E%3Crect x='50' y='46' width='40' height='40'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.14;
}

.media[data-label] .media-label,
.media-label {
  position: absolute;
  z-index: 3;
  left: 1.1rem;
  bottom: 0.95rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251, 246, 237, 0.62);
  pointer-events: none;
}

.media--sand .media-label,
.media--ivory .media-label {
  color: rgba(40, 55, 74, 0.78);
}

/* Once a real image loads, hide the slot label */
.media.has-img .media-label {
  display: none;
}

/* Aspect helpers */
.ratio-45 {
  aspect-ratio: 4 / 5;
}

.ratio-34 {
  aspect-ratio: 3 / 4;
}

.ratio-43 {
  aspect-ratio: 4 / 3;
}

.ratio-169 {
  aspect-ratio: 16 / 9;
}

.ratio-32 {
  aspect-ratio: 3 / 2;
}

.ratio-11 {
  aspect-ratio: 1 / 1;
}

.media--notch {
  clip-path: var(--clip-notch);
}

/* --------------------------------------------------------------------------
   11. Intro / editorial split
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.split--rev {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.intro-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
}

.intro-collage .media:nth-child(1) {
  grid-row: span 2;
}

.intro-collage .media:nth-child(2) {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.intro-collage .collage-mark {
  position: absolute;
  left: -2.2rem;
  bottom: -2.4rem;
  width: clamp(5rem, 9vw, 7.5rem);
  fill: var(--rust);
  opacity: 0.92;
}

.intro-copy .eyebrow {
  margin-bottom: 1.5rem;
}

.intro-copy .t-h2 {
  margin-bottom: 1.8rem;
  max-width: 12em;
}

.intro-copy p + p {
  margin-top: 1.1rem;
}

.intro-points {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.intro-points li {
  padding: 1.3rem 1.4rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.intro-points li span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rust);
  margin-bottom: 0.2rem;
}

/* --------------------------------------------------------------------------
   12. Property search panel
   -------------------------------------------------------------------------- */

.search-panel {
  background: var(--navy);
  color: var(--ivory);
  clip-path: var(--clip-notch);
  padding: clamp(1.8rem, 4vw, 3rem);
  position: relative;
}

.search-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--texture);
  background-size: 150px;
  opacity: 0.045;
  pointer-events: none;
}

.search-tabs {
  display: inline-flex;
  border: 1px solid var(--line-dark);
  margin-bottom: 1.8rem;
}

.search-tabs button {
  padding: 0.7rem 1.9rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-2);
  transition: background-color 0.3s, color 0.3s;
}

.search-tabs button[aria-pressed="true"] {
  background: var(--rust);
  color: var(--ivory);
}

.search-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 1.4rem 2rem;
  align-items: end;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field > label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-3);
}

.field select,
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  padding: 0.65rem 0;
  color: var(--ivory);
  font-size: 0.95rem;
  border-radius: 0;
  transition: border-color 0.3s;
}

.field select:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--sand);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23CAAD99' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  padding-right: 1.4rem;
  cursor: pointer;
}

.field select option {
  color: var(--ink);
  background: var(--ivory);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--paper-3);
}

.search-note {
  margin-top: 1.6rem;
  font-size: var(--fs-small);
  color: var(--paper-2);
}

/* Price range double field */
.field--range .range-pair {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.field--range .range-pair span {
  color: var(--paper-3);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   13. Cards — collections, communities, properties
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: block;
}

.card .media {
  margin-bottom: 1.25rem;
}

.card .media img {
  transition: transform 1.2s var(--ease-out);
}

.card:hover .media img {
  transform: scale(1.05);
}

.card-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.45rem;
  display: block;
}

.dark .card-kicker {
  color: var(--sand);
}

.card-title {
  margin-bottom: 0.5rem;
}

.card-sub {
  color: var(--ink-2);
  font-size: var(--fs-small);
  max-width: 30em;
}

.dark .card-sub {
  color: var(--paper-2);
}

.card .tlink {
  margin-top: 1.1rem;
}

/* Collections grid */
.collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Communities — pull the neighbourhoods up closer to the heading */
#abu-dhabi {
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

#abu-dhabi .section-head {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.communities-feature {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(24rem, 60vh, 34rem);
  color: var(--ivory);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
}

.communities-feature .media {
  position: absolute;
  inset: 0;
}

.communities-feature .feature-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    10deg,
    rgba(31, 43, 59, 0.88) 0%,
    rgba(31, 43, 59, 0.38) 55%,
    rgba(31, 43, 59, 0.12) 100%
  );
}

.communities-feature .feature-body {
  position: relative;
  z-index: 4;
  padding: clamp(1.6rem, 4vw, 3rem);
  max-width: 40em;
}

.communities-feature .feature-body .t-h3 {
  margin-block: 0.5rem 0.8rem;
}

.communities-feature .feature-body p {
  color: var(--paper-2);
  margin-bottom: 1.2rem;
}

.communities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Property cards (template — activates when listings go live) */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.prop-tag {
  position: absolute;
  z-index: 4;
  top: 1rem;
  left: 1rem;
  padding: 0.42rem 0.85rem;
  background: rgba(31, 43, 59, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ivory);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.prop-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.prop-specs li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.prop-specs svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: var(--rust);
}

.prop-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rust);
  margin-top: 0.7rem;
}

/* Curated enquiry panel (shown while no verified listings exist) */
.curated {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: var(--navy);
  color: var(--ivory);
  clip-path: var(--clip-notch);
  overflow: hidden;
}

.curated-body {
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}

.curated-body .t-h3 {
  margin-block: 1.2rem 1rem;
  max-width: 14em;
}

.curated-body p {
  color: var(--paper-2);
  max-width: 34em;
  margin-bottom: 2rem;
}

.curated-visual {
  position: relative;
  min-height: 16rem;
}

.curated-visual .media {
  position: absolute;
  inset: 0;
}

/* --------------------------------------------------------------------------
   14. Services
   -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.service {
  position: relative;
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.45s var(--ease-out);
  overflow: hidden;
}

.service:hover {
  background: rgba(251, 246, 237, 0.04);
}

.service-idx {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--sand);
  display: block;
  margin-bottom: 2.6rem;
}

.service-icon {
  width: 2.4rem;
  height: 2.4rem;
  stroke: var(--sand);
  stroke-width: 1.1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1.3rem;
  transition: transform 0.5s var(--ease-out);
}

.service:hover .service-icon {
  transform: translateY(-4px);
}

.service .t-h4 {
  margin-bottom: 0.7rem;
}

.service p {
  font-size: var(--fs-small);
  color: var(--paper-2);
}

/* --------------------------------------------------------------------------
   15. Why choose us
   -------------------------------------------------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 4vw, 3rem);
}

.why-item .why-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--sand);
  display: block;
  margin-bottom: 1.2rem;
}

.why-item .t-h4 {
  margin-bottom: 0.6rem;
}

.why-item p {
  font-size: var(--fs-small);
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   16. Forms (investor enquiry / contact)
   -------------------------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2rem;
}

.form-grid .field--full {
  grid-column: 1 / -1;
}

.enquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.enquiry-aside {
  position: sticky;
  top: 7rem;
}

.enquiry-aside .t-h2 {
  margin-block: 1.4rem 1.4rem;
  max-width: 11em;
}

.enquiry-aside > p {
  color: var(--paper-2);
  max-width: 30em;
}

.enquiry-assurance {
  margin-top: 2.6rem;
  display: grid;
  gap: 1.1rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 1.8rem;
}

.enquiry-assurance li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-size: var(--fs-small);
  color: var(--paper-2);
}

.enquiry-assurance li::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--rust);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  translate: 0 -1px;
}

/* Consent + privacy */
.consent {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--paper-2);
}

.consent input[type="checkbox"] {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--rust);
}

.on-light .consent {
  color: var(--ink-2);
}

.form-note {
  font-size: 0.78rem;
  color: var(--paper-3);
  line-height: 1.6;
}

.on-light .form-note {
  color: var(--ink-3);
}

/* Honeypot — hidden from humans, catches bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form status message */
.form-status {
  display: none;
  padding: 1.1rem 1.3rem;
  font-size: var(--fs-small);
  line-height: 1.6;
  border: 1px solid var(--line-dark);
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  border-color: rgba(202, 173, 153, 0.5);
  color: var(--sand-soft);
}

.form-status--error {
  border-color: rgba(152, 58, 32, 0.65);
  color: #e2a894;
}

.on-light .form-status--ok {
  color: var(--rust);
  border-color: rgba(152, 58, 32, 0.4);
}

/* Light-surface form variant */
.form--light .field > label {
  color: var(--ink-3);
}

.form--light .field select,
.form--light .field input,
.form--light .field textarea {
  border-bottom-color: var(--line);
  color: var(--ink);
}

.form--light .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23983A20' stroke-width='1.4'/%3E%3C/svg%3E");
}

.form--light .field select:focus,
.form--light .field input:focus,
.form--light .field textarea:focus {
  border-bottom-color: var(--rust);
}

.form--light .field input::placeholder,
.form--light .field textarea::placeholder {
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   17. About
   -------------------------------------------------------------------------- */

.about-details {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.about-details > div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 1rem 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.about-details dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0.25rem;
}

.about-details dd {
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.about-details dd .pending {
  color: var(--ink-3);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   18. Testimonials & partners (hidden until verified content exists)
   -------------------------------------------------------------------------- */

.testimonial {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.testimonial figcaption {
  margin-top: 1.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.partners-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.partners-row > div {
  aspect-ratio: 21 / 9;
  display: grid;
  place-items: center;
  background: var(--ivory);
}

.partners-row img {
  max-height: 2.5rem;
  max-width: 72%;
  width: auto;
  opacity: 0.68;
  transition: opacity 0.35s var(--ease-out);
}

.partners-row > div:hover img {
  opacity: 1;
}

/* A tile whose logo file is missing collapses out of the wall */
.partners-row > div.is-empty {
  display: none;
}

/* --------------------------------------------------------------------------
   19. Contact
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: start;
}

.contact-actions {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-block: 2.4rem;
}

.contact-action {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.35rem 1.5rem;
  background: var(--ivory);
  transition: background-color 0.35s var(--ease-out);
}

.contact-action:hover {
  background: var(--ivory-2);
}

.contact-action .ico {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--ivory);
}

.contact-action:nth-child(2) .ico {
  background: var(--rust);
}

.contact-action .ico svg {
  width: 1.15rem;
  height: 1.15rem;
}

.contact-action .lbl {
  display: grid;
  gap: 0.1rem;
}

.contact-action .lbl b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.contact-action .lbl span {
  font-size: 0.8rem;
  color: var(--ink-2);
}

.contact-detail-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.contact-detail-list > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 10rem) 1fr;
  gap: 0.4rem 1.6rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}

.contact-detail-list dt {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0.3rem;
}

.contact-detail-list dd a:hover {
  color: var(--rust);
}

.contact-socials {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.contact-socials a {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  transition: background-color 0.35s, border-color 0.35s, color 0.35s;
}

.contact-socials a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}

.contact-socials svg {
  width: 1.05rem;
  height: 1.05rem;
}

.contact-map {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: clamp(18rem, 40vw, 26rem);
  border: 0;
  filter: grayscale(0.85) sepia(0.12);
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--texture);
  background-size: 190px;
  opacity: 0.035;
  pointer-events: none;
}

.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr));
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}

.footer-brand p {
  margin-top: 1.4rem;
  font-size: var(--fs-small);
  color: var(--paper-2);
  max-width: 24em;
}

.footer-col h3,
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.3rem;
}

.footer-col ul {
  display: grid;
  gap: 0.65rem;
}

.footer-col a,
.footer-col li {
  font-size: var(--fs-small);
  color: var(--paper-2);
  transition: color 0.3s;
}

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

.footer-legal {
  position: relative;
  border-top: 1px solid var(--line-dark-soft);
  padding-block: 1.9rem;
  display: grid;
  gap: 1.2rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.8rem;
}

.footer-legal-links a {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--paper-3);
  transition: color 0.3s;
}

.footer-legal-links a:hover {
  color: var(--ivory);
}

.footer-disclaimer {
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--paper-3);
  max-width: 62em;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  font-size: 0.74rem;
  color: var(--paper-3);
}

/* --------------------------------------------------------------------------
   21. Floating contact features
   -------------------------------------------------------------------------- */

.fab-stack {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: grid;
  gap: 0.8rem;
  justify-items: end;
}

.fab-whatsapp {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  background: var(--rust);
  color: var(--ivory);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(31, 43, 59, 0.28);
  transition: transform 0.35s var(--ease-out), background-color 0.35s;
}

.fab-whatsapp:hover {
  transform: translateY(-3px);
  background: var(--rust-deep);
}

.fab-whatsapp svg {
  width: 1.5rem;
  height: 1.5rem;
}

.fab-advisor {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.4rem;
  background: var(--navy);
  color: var(--ivory);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(31, 43, 59, 0.24);
  clip-path: var(--clip-notch);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out),
    background-color 0.3s;
}

.fab-advisor:hover {
  background: var(--navy-soft);
}

.fab-stack.is-visible .fab-advisor {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Mobile sticky action bar */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  grid-template-columns: 1fr 1fr 1.2fr;
  background: rgba(31, 43, 59, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-dark-soft);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.05rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
}

.mobile-bar a + a {
  border-left: 1px solid var(--line-dark-soft);
}

.mobile-bar a.bar-enquire {
  background: var(--rust);
}

.mobile-bar svg {
  width: 1rem;
  height: 1rem;
}

/* --------------------------------------------------------------------------
   21b. Toast (transient notice, e.g. language switch)
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: clamp(1.5rem, 4vw, 2.25rem);
  z-index: 210;
  max-width: min(90vw, 27rem);
  padding: 0.95rem 1.5rem;
  background: var(--navy-deep);
  color: var(--ivory);
  border: 1px solid var(--line-dark);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  clip-path: var(--clip-notch);
  box-shadow: 0 14px 40px rgba(13, 19, 28, 0.35);
  opacity: 0;
  transform: translate(-50%, 1rem);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast [lang="ar"] {
  color: var(--sand);
}

/* Keep the toast clear of the mobile action bar */
@media (max-width: 700px) {
  .toast {
    bottom: 4.6rem;
  }
}

/* --------------------------------------------------------------------------
   22. Cursor (desktop, fine pointers only)
   -------------------------------------------------------------------------- */

.cursor-ring {
  position: fixed;
  z-index: 300;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--sand);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  mix-blend-mode: difference;
}

body.cursor-active .cursor-ring {
  opacity: 0.75;
}

@media (pointer: coarse) {
  .cursor-ring {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   23. Page-level (inner pages: property / community / legal)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding-top: clamp(9rem, 18vh, 12rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  background: var(--navy);
  color: var(--ivory);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--texture);
  background-size: 200px;
  opacity: 0.04;
  pointer-events: none;
}

.page-hero .eyebrow {
  margin-bottom: 1.3rem;
  color: var(--sand);
}

.page-hero .t-h2 {
  max-width: 15em;
}

.page-hero .lede {
  margin-top: 1.4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-3);
  margin-bottom: 2rem;
}

.breadcrumb a:hover {
  color: var(--ivory);
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: var(--fs-h4);
  margin: 2.4rem 0 0.8rem;
}

.prose p,
.prose ul {
  margin-bottom: 1rem;
  color: var(--ink-2);
  font-size: var(--fs-small);
}

.prose ul {
  list-style: none;
  padding-left: 1.2rem;
}

.prose ul li {
  position: relative;
  margin-bottom: 0.4rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.2rem;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--sand);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--rust);
  background: var(--ivory-2);
  padding: 1.2rem 1.5rem;
  font-size: var(--fs-small);
  color: var(--ink-2);
  margin-block: 2rem;
}

/* Sticky enquiry panel (property detail, desktop) */
.sticky-panel {
  position: sticky;
  top: 7rem;
  background: var(--navy);
  color: var(--ivory);
  padding: 2rem;
  clip-path: var(--clip-notch);
}

.sticky-panel .t-h4 {
  margin-bottom: 1.4rem;
}

/* --------------------------------------------------------------------------
   24. Utilities
   -------------------------------------------------------------------------- */

.hidden-section[hidden] {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.75rem;
}

.mt-2 {
  margin-top: 1.5rem;
}

.mt-3 {
  margin-top: 2.5rem;
}

.mb-2 {
  margin-bottom: 1.5rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   25. RTL readiness (activated with <html dir="rtl"> when Arabic launches)
   -------------------------------------------------------------------------- */

[dir="rtl"] .eyebrow::before {
  order: 2;
}

[dir="rtl"] .tlink::after {
  transform-origin: right;
}

[dir="rtl"] .primary-nav a::after {
  transform-origin: right;
}

[dir="rtl"] .field select {
  background-position: left 0.2rem center;
  padding-right: 0;
  padding-left: 1.4rem;
}

/* --------------------------------------------------------------------------
   26. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .search-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .communities-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .primary-nav,
  .lang-switch,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .split,
  .split--rev,
  .enquiry-layout,
  .contact-layout,
  .curated {
    grid-template-columns: 1fr;
  }

  .curated-visual {
    order: -1;
    min-height: 13rem;
  }

  .enquiry-aside {
    position: static;
  }

  .collections,
  .property-grid,
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .communities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-collage {
    max-width: 34rem;
  }

  .intro-collage .collage-mark {
    left: auto;
    right: -1rem;
  }
}

@media (max-width: 700px) {
  :root {
    --section: clamp(4.5rem, 16vw, 6.5rem);
  }

  .search-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .collections,
  .property-grid,
  .communities-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .mobile-bar {
    display: grid;
  }

  body {
    padding-bottom: 3.6rem; /* clearance for the mobile action bar */
  }

  .fab-stack {
    bottom: 4.6rem;
  }

  .fab-advisor {
    display: none;
  }

  .hero-foot .container {
    justify-content: center;
  }

  .hero-foot-note {
    display: none;
  }

  .intro-points {
    grid-template-columns: 1fr;
  }

  .intro-points li {
    border-bottom: 1px solid var(--line-soft);
    padding-block: 1rem;
  }

  .about-details > div,
  .contact-detail-list > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* --------------------------------------------------------------------------
   27. Reduced motion & print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .mask,
  .hero-up {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .cursor-ring {
    display: none;
  }
}

@media print {
  .site-header,
  .fab-stack,
  .mobile-bar,
  .cursor-ring,
  .mobile-menu {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
