/* =====================================================================
   Dubai Property Guide — Design System
   Dark luxury editorial. Fraunces (serif display) + Inter (sans).
   ===================================================================== */

:root {
  /* Surfaces */
  --bg-canvas:   #0E0E0E;
  --bg-surface:  #161616;
  --bg-elevated: #1A1814;
  --bg-footer:   #08080A;
  /* Text */
  --text-primary: #E8E4DC;
  --text-muted:   #9A958C;
  /* Accent */
  --gold:        #C9A96E;
  --gold-hover:  #D4B884;
  --gold-subtle: #6B5A3E;
  --hairline:    rgba(201, 169, 110, 0.18);
  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Layout */
  --max-width: 1200px;
  --read-width: 720px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-hover); }
hr { border: none; border-top: 1px solid var(--hairline); margin: 3rem 0; }

/* ---------- Typography ---------- */
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--gold);
  line-height: 1.12;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 2.2em 0 .6em;
  letter-spacing: -0.005em;
}
h4 { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; color: var(--text-primary); margin: 1.8em 0 .5em; }
p { margin: 0 0 1.3em; }
strong { font-weight: 600; color: var(--text-primary); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  display: block;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5.5rem 0; border-top: 1px solid var(--hairline); }
.section--surface { background: var(--bg-surface); }
.section--elevated { background: var(--bg-elevated); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all .22s ease;
  border: 1px solid transparent;
  line-height: 1;
}
.btn--gold { background: var(--gold); color: #0E0E0E; }
.btn--gold:hover { background: var(--gold-hover); color: #0E0E0E; }
.btn--outline { background: transparent; color: var(--gold); border-color: var(--gold-subtle); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-hover); }
.btn--block { display: block; width: 100%; text-align: center; border: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,14,14,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a.navlink {
  font-family: var(--sans); font-weight: 500; font-size: 0.92rem;
  color: var(--text-primary); letter-spacing: 0.01em;
}
.nav a.navlink:hover { color: var(--gold); }
.nav .btn { padding: 0.7rem 1.2rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  background-color: var(--bg-elevated);
  background-image:
    /* Gold haze top right */
    radial-gradient(ellipse 50% 40% at 78% 10%, rgba(201,169,110,0.14), transparent 70%),
    /* Dark fade overlay protecting text on left */
    linear-gradient(90deg,
      var(--bg-canvas) 0%,
      rgba(14,14,14,0.96) 18%,
      rgba(14,14,14,0.82) 32%,
      rgba(14,14,14,0.55) 52%,
      rgba(14,14,14,0.25) 72%,
      rgba(14,14,14,0.05) 92%,
      transparent 100%),
    /* The photo */
    url("images/hero-dubai.jpg");
  background-repeat: no-repeat;
  background-position: center, center, right center;
  background-size: cover, cover, cover;
  padding: 8rem 0 7rem;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 40% 70% at 0% 50%, rgba(14,14,14,0.5), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 {
  color: var(--text-primary);
  max-width: 16ch;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 24px rgba(14,14,14,0.7);
}
.hero .eyebrow {
  text-shadow: 0 1px 12px rgba(14,14,14,0.8);
}
.hero .lede {
  color: #C8C3BA;
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2.4rem;
  text-shadow: 0 1px 12px rgba(14,14,14,0.8);
}
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero {
    /* On mobile: stronger darkening since the photo is behind, not beside */
    background-image:
      linear-gradient(180deg,
        rgba(14,14,14,0.78) 0%,
        rgba(14,14,14,0.85) 50%,
        rgba(14,14,14,0.92) 100%),
      url("images/hero-dubai.jpg");
    background-position: center, center;
    background-size: cover, cover;
    min-height: auto;
    padding: 4.5rem 0 3.5rem;
  }
  .hero h1 { text-shadow: 0 2px 30px rgba(14,14,14,0.95); }
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--bg-surface); }
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.stat { text-align: center; padding: 1rem 0.6rem; border-left: 1px solid var(--hairline); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 92px; }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.3rem); color: var(--gold); letter-spacing: -0.02em; line-height: 1.05; white-space: nowrap; display: block; }
.stat .lbl { display: block; margin-top: .8rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.6rem; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 1.8rem;
  transition: border-color .25s ease, transform .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card .cat { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: .9rem; }
.card h3 { font-family: var(--serif); font-weight: 500; color: var(--text-primary); font-size: 1.3rem; line-height: 1.25; margin: 0 0 .7rem; letter-spacing: -0.01em; }
.card p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 1.2rem; flex: 1; }
.card .more { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.card a.cardlink { color: inherit; display: flex; flex-direction: column; height: 100%; }

/* Nationality cards */
.nat-card { text-align: center; align-items: center; }
.flag-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(201,169,110,0.1);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 1.2rem;
}
.nat-card h3 { font-size: 1.15rem; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 1.3rem; }
.form-field label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .5rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  transition: border-color .2s ease;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--gold); }
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C9A96E' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Phone field: custom country combobox + number input */
.phone-group {
  position: relative;
  display: grid;
  grid-template-columns: minmax(118px, 38%) 1fr;
  gap: .5rem;
  align-items: stretch;
}
.phone-country-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .45rem;
  background: var(--bg-canvas);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.85rem .85rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease;
}
.phone-country-trigger:hover { border-color: var(--gold-subtle); }
.phone-country-trigger:focus { outline: none; border-color: var(--gold); }
.phone-country-trigger[aria-expanded="true"] { border-color: var(--gold); }
.phone-country-flag { font-size: 1.05rem; line-height: 1; }
.phone-country-dial { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.phone-country-caret {
  width: 12px; height: 8px; margin-left: auto; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C9A96E' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat center/contain;
}
.phone-number { width: 100%; }
.phone-country-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  width: min(420px, 100%);
  max-width: 100vw;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  padding: .65rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.phone-country-panel[hidden] { display: none; }
.phone-country-search {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.6rem .75rem;
}
.phone-country-search:focus { outline: none; border-color: var(--gold); }
.phone-country-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-subtle) transparent;
}
.phone-country-list::-webkit-scrollbar { width: 8px; }
.phone-country-list::-webkit-scrollbar-thumb { background: var(--gold-subtle); border-radius: 4px; }
.phone-country-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: .65rem;
  padding: .55rem .7rem;
  border-radius: 2px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.92rem;
}
.phone-country-item:hover,
.phone-country-item:focus {
  background: rgba(201,169,110,0.12);
  outline: none;
}
.phone-country-item-flag { font-size: 1.1rem; line-height: 1; }
.phone-country-item-name { color: var(--text-primary); }
.phone-country-item-dial { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.phone-country-empty {
  list-style: none;
  padding: 1rem .7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: .5rem; }
.thank-you { display: none; padding: 2.5rem; text-align: center; background: var(--bg-surface); border: 1px solid var(--gold-subtle); border-radius: 2px; }
.thank-you.show { display: block; }
.thank-you h3 { font-family: var(--serif); color: var(--gold); font-size: 1.6rem; font-weight: 500; }
.thank-you p { color: var(--text-muted); margin-bottom: 0; }

/* Inline newsletter */
.newsletter-form { display: flex; gap: .8rem; max-width: 480px; }
.newsletter-form input { flex: 1; }
.newsletter-form .btn { white-space: nowrap; }
.newsletter-form--centered { margin-left: auto; margin-right: auto; }
.section-head--centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--centered h2 { margin-left: auto; margin-right: auto; }
.section-head--centered p { margin-left: auto; margin-right: auto; }
.newsletter-section .thank-you { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Consultation panel */
.consult-panel { background: var(--bg-surface); border: 1px solid var(--hairline); border-radius: 2px; padding: 2.5rem; max-width: 640px; position: relative; z-index: 2; }
.consult-panel--centered { margin-left: auto; margin-right: auto; }

/* Video background section (used behind contact / consultation forms) */
.section--video-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* default neighbor color: same as section--elevated (homepage advisor block) */
  --section-neighbor-color: #1A1814;
}
.section--video-bg > .wrap { position: relative; z-index: 2; }
.section-bg-video {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  /* video occupies bottom 60% of the section */
  height: 60%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  pointer-events: none;
}
.section-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Long soft fade from the section's neighboring color into the video area.
     Upper portion is fully solid, then a long smooth taper so there is no visible edge
     where the video begins. Lower portion keeps the video almost fully visible. */
  background: linear-gradient(
    to bottom,
    var(--section-neighbor-color) 0%,
    var(--section-neighbor-color) 30%,
    color-mix(in srgb, var(--section-neighbor-color) 92%, transparent) 45%,
    color-mix(in srgb, var(--section-neighbor-color) 70%, transparent) 60%,
    color-mix(in srgb, var(--section-neighbor-color) 35%, transparent) 75%,
    color-mix(in srgb, var(--section-neighbor-color) 15%, transparent) 88%,
    transparent 100%
  );
}
/* Override neighbor color per host section */
.section--video-bg:not(.section--elevated) { --section-neighbor-color: #0E0E0E; }
.section--video-bg .trust-band .lbl { color: rgba(255,255,255,0.78); }
.section--video-bg .trust-band .num { text-shadow: 0 2px 12px rgba(0,0,0,0.45); }

/* Inline field validation */
.field-error {
  color: #E89B7A;
  font-size: 0.85rem;
  margin: .35rem 0 0;
  line-height: 1.35;
}
.form-field.has-error input,
.form-field.has-error .phone-country-trigger,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: #E89B7A;
}

/* Trust band */
.trust-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 2.5rem 0 3rem; }
.trust { text-align: center; }
.trust .num { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--gold); letter-spacing: -0.02em; }
.trust .lbl { display: block; margin-top: .4rem; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-footer); border-top: 1px solid var(--hairline); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-col h4 { font-family: var(--sans); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.2rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .7rem; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-blurb { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; max-width: 320px; }
.footer-blurb img { height: 28px; margin-bottom: 1.2rem; }
.footer-bottom { border-top: 1px solid var(--hairline); padding-top: 1.8rem; font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- Article ---------- */
.article-wrap { max-width: var(--read-width); margin: 0 auto; padding: 4rem 2rem 5rem; position: relative; }
.meta-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.6rem; }
.meta-bar .cat { color: var(--gold); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.meta-bar .dot { color: var(--gold-subtle); }
.article-title { font-family: var(--serif); font-weight: 400; color: var(--gold); font-size: clamp(2.1rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 1rem; max-width: var(--read-width); }
.article-subtitle { font-family: var(--sans); color: var(--text-muted); font-size: 1.25rem; line-height: 1.5; max-width: var(--read-width); margin: 0 0 2.5rem; font-weight: 400; }
.article-divider { border-top: 1px solid var(--hairline); margin-bottom: 2.5rem; }

.article-body { font-size: 1.12rem; line-height: 1.75; color: var(--text-primary); }
.article-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.2em 0 .6em; }
.article-body h3 { margin: 1.8em 0 .5em; font-size: 1.22rem; }
.article-body p { margin: 0 0 1.4em; }
.article-body > p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 500; color: var(--gold);
  font-size: 3.5rem; line-height: .82; float: left;
  padding: 0.12em 0.12em 0 0; margin-right: .04em;
}
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.4rem; }
.article-body li { margin-bottom: .6em; }
.article-body a { text-decoration: underline; text-decoration-color: var(--gold-subtle); text-underline-offset: 2px; }
.article-body em { color: var(--text-muted); }
.dateline { color: var(--text-muted); }

/* Pull quotes */
.article-body blockquote, .pullquote {
  border-left: 2px solid var(--gold);
  padding: .3em 0 .3em 1.5rem;
  margin: 2em 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Tables */
.article-body table, .styled-table {
  width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 0.98rem;
  background: var(--bg-surface); border: 1px solid var(--hairline);
}
.article-body thead tr, .styled-table thead tr { background: rgba(201,169,110,0.12); }
.article-body th, .styled-table th {
  font-family: var(--sans); font-weight: 600; color: var(--gold);
  text-align: left; padding: 0.85rem 1rem; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 1px solid var(--hairline);
}
.article-body td, .styled-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--hairline); color: var(--text-primary); }
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body tbody tr:hover, .styled-table tbody tr:hover { background: rgba(201,169,110,0.04); }

/* Sources line */
.article-body hr + p, .sources { font-size: 0.86rem; color: var(--text-muted); }

/* Related reading */
.related { background: var(--bg-surface); border-top: 1px solid var(--hairline); padding: 4rem 0; }

/* Sticky CTA (desktop margin / mobile bottom bar) */
.sticky-cta {
  position: fixed; z-index: 90;
  right: 2rem; bottom: 2rem;
  background: var(--gold); color: #0E0E0E;
  font-family: var(--sans); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.9rem 1.5rem; border-radius: 2px;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.sticky-cta.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-cta:hover { background: var(--gold-hover); color: #0E0E0E; }

/* Page header (sub pages) */
.page-hero { background: var(--bg-elevated); padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--hairline); position: relative; }
.page-hero h1 { color: var(--gold); max-width: 18ch; position: relative; z-index: 2; }
.page-hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 640px; margin-bottom: 0; position: relative; z-index: 2; }

/* Page header with hero background image */
.page-hero--image {
  background-color: var(--bg-elevated);
  background-repeat: no-repeat;
  background-position: center, center, right center;
  background-size: cover, cover, cover;
  padding: 7rem 0 5rem;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.page-hero--image .wrap { width: 100%; }
.page-hero--image .eyebrow { position: relative; z-index: 2; }
.page-hero--guides {
  background-image:
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(201,169,110,0.12), transparent 70%),
    linear-gradient(90deg, var(--bg-elevated) 0%, rgba(26,24,20,0.96) 18%, rgba(26,24,20,0.82) 32%, rgba(26,24,20,0.55) 52%, rgba(26,24,20,0.25) 72%, rgba(26,24,20,0.05) 92%, transparent 100%),
    url("images/hero-guides.jpg");
}
.page-hero--nationality {
  background-image:
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(201,169,110,0.12), transparent 70%),
    linear-gradient(90deg, var(--bg-elevated) 0%, rgba(26,24,20,0.96) 18%, rgba(26,24,20,0.82) 32%, rgba(26,24,20,0.55) 52%, rgba(26,24,20,0.25) 72%, rgba(26,24,20,0.05) 92%, transparent 100%),
    url("images/hero-by-nationality.jpg");
}
.page-hero--consultation {
  background-image:
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(201,169,110,0.12), transparent 70%),
    linear-gradient(90deg, var(--bg-elevated) 0%, rgba(26,24,20,0.96) 18%, rgba(26,24,20,0.82) 32%, rgba(26,24,20,0.55) 52%, rgba(26,24,20,0.25) 72%, rgba(26,24,20,0.05) 92%, transparent 100%),
    url("images/hero-consultation.jpg");
}
@media (max-width: 768px) {
  .page-hero--image {
    padding: 5rem 0 3.5rem;
    min-height: 340px;
  }
  .page-hero--guides {
    background-image:
      linear-gradient(180deg, rgba(26,24,20,0.95) 0%, rgba(26,24,20,0.82) 35%, rgba(26,24,20,0.55) 65%, rgba(26,24,20,0.2) 100%),
      url("images/hero-guides.jpg");
    background-position: center, center;
    background-size: cover, cover;
  }
  .page-hero--nationality {
    background-image:
      linear-gradient(180deg, rgba(26,24,20,0.95) 0%, rgba(26,24,20,0.82) 35%, rgba(26,24,20,0.55) 65%, rgba(26,24,20,0.2) 100%),
      url("images/hero-by-nationality.jpg");
    background-position: center, center;
    background-size: cover, cover;
  }
  .page-hero--consultation {
    background-image:
      linear-gradient(180deg, rgba(26,24,20,0.95) 0%, rgba(26,24,20,0.82) 35%, rgba(26,24,20,0.55) 65%, rgba(26,24,20,0.2) 100%),
      url("images/hero-consultation.jpg");
    background-position: center, center;
    background-size: cover, cover;
  }
}

/* Filter tabs */
.filter-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-row a { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: .6rem 1.1rem; border: 1px solid var(--hairline); border-radius: 2px; color: var(--text-muted); }
.filter-row a:hover, .filter-row a.active { border-color: var(--gold); color: var(--gold); }

/* Legal / prose pages */
.prose { max-width: var(--read-width); margin: 0 auto; padding: 3.5rem 2rem 5rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-primary); line-height: 1.7; }
.prose ul { padding-left: 1.4rem; }

/* ---------- Section split (image + text) ---------- */
.section-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 3rem;
}
.section-split.reverse { grid-template-columns: 1fr 1.05fr; }
.section-split.reverse .section-split-media { order: -1; }
.section-split-text .section-head { margin-bottom: 0; }
.section-split-text .section-head h2 { margin-bottom: 1rem; }
.section-split-text .section-head p { color: var(--text-muted); }
.section-split-media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4 / 3;
  background: var(--bg-surface);
}
.section-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
}
.section-split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,14,14,0) 60%, rgba(14,14,14,.35) 100%);
  pointer-events: none;
}
.section-split:hover .section-split-media img { transform: scale(1.03); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: none; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .wrap { padding: 0 1.4rem; }
  .section { padding: 3.5rem 0; }
  .nav {
    position: fixed; top: var(--header-h); right: 0; left: 0;
    background: var(--bg-surface); border-bottom: 1px solid var(--hairline);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.4rem 1.6rem;
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a.navlink { padding: .9rem 0; border-bottom: 1px solid var(--hairline); }
  .nav .btn { margin-top: 1rem; text-align: center; }
  .nav-toggle { display: block; }
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; }
  .trust-band { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .consult-panel { padding: 1.6rem; }
  .hero { padding: 4rem 0 3.5rem; }
  .section-split, .section-split.reverse {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin-bottom: 2.2rem;
  }
  .section-split.reverse .section-split-media { order: 0; }
  .phone-country-panel { width: min(360px, calc(100vw - 3rem)); }
  .sticky-cta { left: 1.4rem; right: 1.4rem; bottom: 0; border-radius: 0; text-align: center; }
}
