/* Dubai Real Estate Index site. Look follows spekadvisory.com: dark navy hero and contact bands,
   light grey content bands with white cards, centred uppercase headings, square royal-blue buttons. */
:root {
  color-scheme: light;
  --navy-deep: #010b1e;
  --navy: #022567;
  --blue: #0242b5;
  --text: #3f4655;
  --muted: #9ba2af;
  --light: #f8f8f8;
  --white: #ffffff;
  --rule: #e3e6ec;
  --up-dk: #4fd18b; --down-dk: #ff8a8a;
  --s1: #0242b5; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --font-display: "DINPro", "Barlow", "D-DIN", Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--light); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.7; font-weight: 400; }
a { color: var(--blue); }
a:focus-visible, .btn:focus-visible, svg:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.dark a:focus-visible, .dark .btn:focus-visible { outline-color: var(--white); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; text-wrap: balance; }
h2.sec { text-transform: uppercase; color: var(--navy); font-size: 2rem; letter-spacing: 0.02em; text-align: center; line-height: 1.2; }
h3 { color: var(--navy); font-size: 1.2rem; line-height: 1.3; }
p { margin: 0; }
.btn { display: inline-block; background: var(--blue); color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: 10px 26px; text-decoration: none; border: 2px solid var(--blue); transition: background .15s, color .15s; }
.btn:hover { background: var(--white); color: var(--blue); }
.btn.ghost { background: transparent; border-color: var(--white); color: var(--white); }
.btn.ghost:hover { background: var(--white); color: var(--navy-deep); }
.btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* header + hero */
.dark { background: var(--navy-deep); color: #d9dde6; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; flex-wrap: wrap; }
.logo img { height: 62px; width: auto; display: block; }
header nav { display: flex; gap: 28px; flex-wrap: wrap; }
header nav a { color: var(--white); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 3px; border-bottom: 2px solid transparent; }
header nav a:hover { color: var(--muted); }
header nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.hero { padding-block: 48px 64px; display: grid; gap: 22px; justify-items: center; text-align: center; }
.hero.sub { padding-block: 28px 52px; }
.hero h1 { color: var(--white); text-transform: uppercase; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: 0.02em; line-height: 1.2; }
.hero h1.brand { font-size: clamp(3rem, 8vw, 5rem); letter-spacing: 0.08em; line-height: 1; }
.kicker { color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: -10px; }
.kicker b { color: #5b9bff; font-weight: 700; }
.hero h1.brand + .kicker { margin: -8px 0 0; color: #d9dde6; font-size: 15px; }
.hero .lede { max-width: 72ch; color: #d9dde6; font-size: 1rem; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; margin-top: 14px; text-align: left; }
.tile { border: 1px solid rgba(255,255,255,0.14); border-top: 3px solid var(--c); padding: 16px 18px; display: grid; gap: 2px; background: rgba(255,255,255,0.03); }
.tile .lbl { color: var(--muted); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.tile .val { font-family: var(--font-display); color: var(--white); font-size: 2rem; font-weight: 700; line-height: 1.2; }
.tile .chg { font-size: 13px; }
.tile .up { color: var(--up-dk); } .tile .down { color: var(--down-dk); }

/* light bands */
.band { padding: 72px 0; }
.band.white { background: var(--white); }
.band > .wrap { display: grid; gap: 36px; }
.band .intro { max-width: 72ch; margin: 0 auto; text-align: center; }
.idx { background: var(--white); box-shadow: 0 2px 18px rgba(0,0,0,0.06); display: grid; grid-template-columns: 280px 1fr; scroll-margin-top: 16px; }
.idx .txt { padding: 32px 28px; display: grid; gap: 14px; align-content: start; border-right: 1px solid var(--rule); }
.idx .meta, .card .meta { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.chartbox { padding: 22px 22px 10px; position: relative; min-width: 0; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; padding-bottom: 6px; }
.legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.chart { width: 100%; height: 330px; display: block; }
.chart text { font-family: var(--font-body); font-size: 12px; fill: #6b7280; font-variant-numeric: tabular-nums; }
.chart .grid { stroke: #eceef2; }
.chart .base { stroke: #b9bfcb; stroke-dasharray: 4 4; }
.chart .lab { font-size: 12px; font-weight: 600; fill: var(--text); }
.tip { position: absolute; pointer-events: none; background: var(--white); border: 1px solid var(--rule); box-shadow: 0 4px 16px rgba(0,0,0,0.10); padding: 8px 10px; font-size: 13px; min-width: 160px; opacity: 0; transition: opacity .1s; z-index: 2; }
.tip b { display: block; margin-bottom: 4px; color: var(--navy); }
.tip div { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.tip i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
details { margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
summary { cursor: pointer; }
.tbl { overflow-x: auto; max-height: 260px; margin-top: 8px; }
table { border-collapse: collapse; font-variant-numeric: tabular-nums; width: 100%; color: var(--text); }
th, td { text-align: right; padding: 3px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
th { color: var(--navy); }
th:first-child, td:first-child { text-align: left; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); box-shadow: 0 2px 18px rgba(0,0,0,0.06); padding: 30px 26px; display: grid; gap: 10px; align-content: start; text-align: center; }
.band.white .card { background: var(--light); box-shadow: none; }
.card p { font-size: 14px; font-weight: 300; }
.card .more { font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.card.cta { background: var(--blue) !important; color: var(--white); justify-items: center; align-content: center; }
.card.cta h3 { color: var(--white); font-size: 1.5rem; }
.card.cta .btn { background: transparent; border-color: var(--white); }
.card.cta .btn:hover { background: var(--white); color: var(--blue); }
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.method > div { border-top: 3px solid var(--blue); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.method p { font-size: 14px; font-weight: 300; }

/* methodology text */
.prose { max-width: 76ch; margin: 0 auto; display: grid; gap: 14px; }
.prose h2 { color: var(--navy); font-size: 1.5rem; margin-top: 30px; padding-top: 18px; border-top: 3px solid var(--blue); }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose .note { font-size: 13px; color: #6b7280; }
.prose table { margin: 4px 0; font-size: 14px; }
.prose th, .prose td { text-align: left; white-space: normal; padding: 6px 10px; vertical-align: top; }
.toc { max-width: 76ch; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }

/* contact */
.contact { padding: 72px 0; }
.contact .wrap { display: grid; gap: 22px; justify-items: center; text-align: center; }
.contact h2.sec { color: var(--white); }
.contact .lede { max-width: 66ch; }
.contact ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; font-size: 15px; }
.contact ul a { color: var(--white); }
footer { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,0.08); color: var(--muted); font-size: 12px; padding: 26px 0 34px; }
footer .wrap { display: grid; gap: 8px; }

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .idx { grid-template-columns: 1fr; }
  .idx .txt { border-right: 0; border-bottom: 1px solid var(--rule); padding: 24px 22px; }
  .cards, .method { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .tiles, .cards, .method { grid-template-columns: 1fr; }
  .chart { height: 270px; }
  .chartbox { padding: 16px 12px 8px; }
  header nav { gap: 16px; }
  .band, .contact { padding: 52px 0; }
}
