/* ==========================================================================
   Özcan Günaydın — Property & Investment Consultant
   ========================================================================== */
:root {
  --ink: #14171c;
  --ink-2: #2a2e35;
  --sand: #f5f1ea;
  --sand-2: #ece5d9;
  --paper: #fbf9f5;
  --line: #e0d8ca;
  --stone: #6d665d;
  --wine: #8b2434;
  --wine-2: #6f1a28;
  --wa: #1f9e57;
  --wa-2: #178049;
  --white: #fff;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 20px 50px -24px rgba(20, 23, 28, .35);
}
.lang-ar {
  --font-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.lang-ar body, body.lang-ar { line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 860px; }
.skip { position: absolute; inset-inline-start: 16px; top: -100px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { top: 12px; }
.muted { color: var(--stone); }
.small { font-size: .875rem; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--wine); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lang-ar .eyebrow { letter-spacing: 0; font-size: .875rem; }
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin-bottom: 24px;
}
.lang-ar .display { font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.35; letter-spacing: 0; }
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  margin-bottom: 20px;
}
.lang-ar .h2 { font-weight: 600; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.45; }
.h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 500; margin: 0 0 18px; }
.lang-ar .h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.5; }
.h4 { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-bottom: 14px; }
.lang-ar .h4 { letter-spacing: 0; font-size: .95rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 46ch; }
.lead-sm { font-size: 1.05rem; color: var(--stone); max-width: 52ch; }
.prose p { color: var(--ink-2); }
.prose .intro { font-size: 1.15rem; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; text-decoration: none; letter-spacing: .01em;
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--wine); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-2); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--sand); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-lg { width: 28px; height: 28px; }
[dir="rtl"] .ic-dir { transform: scaleX(-1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(251, 249, 245, .9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, color .3s, height .3s;
}
.site-header.is-scrolled { border-color: var(--line); --header-h: 72px; }
.site-header.is-overlay { position: fixed; inset-inline: 0; background: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-overlay.is-scrolled { background: rgba(251, 249, 245, .94); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: block; flex: none; width: clamp(172px, 19vw, 225px); }
.brand .logo { width: 100%; height: auto; }
.logo-light { display: none; }
.is-overlay:not(.is-scrolled) .logo-dark { display: none; }
.is-overlay:not(.is-scrolled) .logo-light { display: block; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a { display: block; padding: 8px 8px; font-size: .86rem; font-weight: 500; text-decoration: none; position: relative; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; border: 1px solid currentColor; border-radius: 99px; padding: 3px; opacity: .9; }
.lang-switch a { min-width: 34px; height: 28px; display: grid; place-items: center; font-size: .75rem; font-weight: 700; text-decoration: none; border-radius: 99px; padding: 0 8px; }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }
.is-overlay:not(.is-scrolled) .lang-switch a[aria-current="true"] { background: #fff; color: var(--ink); }
.lang-switch a[lang="ar-AE"] { font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; font-size: .9rem; }
.header-cta { background: var(--wa); }
.header-cta:hover { background: var(--wa-2); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; inset-inline: 10px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); background: linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.lang-ar .hero-meta dt { letter-spacing: 0; font-size: .85rem; }
.hero-meta dd { margin: 4px 0 0; font-weight: 600; font-size: 1.05rem; }
.hero-meta a { text-decoration: none; }
.hero-portrait { position: relative; margin: 0; }
.hero-portrait::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--wine); border-radius: var(--radius-lg); opacity: .5;
}
[dir="rtl"] .hero-portrait::before { inset: 22px 22px -22px -22px; }
.hero-portrait picture, .hero-portrait img { position: relative; border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }
.hero-portrait figcaption {
  position: absolute; inset-inline-start: 20px; bottom: 20px; inset-inline-end: 20px;
  background: rgba(20, 23, 28, .82); color: #fff; padding: 14px 18px; border-radius: var(--radius);
  backdrop-filter: blur(6px); display: grid; gap: 2px;
}
.hero-portrait figcaption strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.lang-ar .hero-portrait figcaption strong { font-size: 1.1rem; }
.hero-portrait figcaption span { font-size: .8rem; opacity: .8; }
.hero-badge {
  position: absolute; top: 24px; inset-inline-end: -18px;
  background: var(--wine); color: #fff; font-size: .78rem; font-weight: 600; padding: 10px 14px; border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 190px; line-height: 1.35;
}

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 34px 28px; display: flex; align-items: baseline; gap: 16px; border-inline-start: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat-n { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; color: #e9c9cf; }
.lang-ar .stat-n { font-family: "Cormorant Garamond", Georgia, serif; }
.stat-l { font-size: .9rem; color: rgba(255,255,255,.75); max-width: 24ch; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding-top: 40px; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .eyebrow { color: #e9a9b3; }
.section-dark .lead-sm { color: rgba(255,255,255,.72); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 720px; }
.section-head-split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section-head-split .lead-sm { margin: 0; max-width: 42ch; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.signature { margin-top: 32px; display: grid; gap: 2px; padding-top: 20px; border-top: 1px solid var(--line); }
.signature span { font-family: var(--font-display); font-size: 1.6rem; font-style: italic; color: var(--ink); }
.lang-ar .signature span { font-style: normal; font-size: 1.3rem; }
.signature small { color: var(--stone); font-size: .82rem; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--sand); padding: 36px 32px 34px; transition: background .3s var(--ease); }
.service:hover { background: var(--paper); }
.service .ic { color: var(--wine); margin-bottom: 26px; }
.service h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service p { color: var(--stone); font-size: .95rem; margin: 0; }

/* ---------- Area cards ---------- */
.areas-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.areas-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.area-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg);
  color: #fff; text-decoration: none; background: var(--ink-2) linear-gradient(135deg, #2a2e35, #4a3a35);
  isolation: isolate;
}
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); z-index: -2; }
.area-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,23,28,0) 30%, rgba(20,23,28,.88) 100%); z-index: -1; }
.area-card:hover img { transform: scale(1.06); }
.area-card-lg { aspect-ratio: 4 / 5; }
.area-card-sm { aspect-ratio: 3 / 2; }
.area-card-body { position: absolute; inset: auto 0 0 0; padding: 26px; display: grid; gap: 6px; }
.area-num { position: absolute; top: -9999px; }
.area-card-lg .area-num { position: static; font-family: var(--font-display); font-size: 1rem; opacity: .7; }
.area-emirate { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .85; }
.lang-ar .area-emirate { letter-spacing: 0; font-size: .82rem; }
.area-card h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.area-card-sm h3 { font-size: 1.5rem; }
.lang-ar .area-card h3 { font-weight: 600; font-size: 1.45rem; line-height: 1.5; }
.area-excerpt { font-size: .9rem; color: rgba(255,255,255,.82); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.area-card:hover .area-excerpt, .area-card:focus-visible .area-excerpt { max-height: 120px; opacity: 1; }
.area-link { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; margin-top: 8px; }
.area-link .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.area-card:hover .area-link .ic { transform: translateX(4px); }
[dir="rtl"] .area-card:hover .area-link .ic { transform: scaleX(-1) translateX(4px); }

/* ---------- Mortgage ---------- */
.mortgage-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.mortgage-grid .btn { margin-top: 12px; }
.steps { list-style: none; display: grid; gap: 0; }
.steps li { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.steps li:first-child { padding-top: 0; }
.step-n { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.25rem; color: #e9c9cf; }
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: rgba(255,255,255,.7); margin: 0; font-size: .95rem; }
.steps .steps-note { border: 0; font-size: .82rem; color: rgba(255,255,255,.55); padding-top: 18px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why { padding-top: 22px; border-top: 1px solid var(--ink); }
.why-ic { color: var(--wine); margin-bottom: 14px; }
.why h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why p { color: var(--stone); font-size: .95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 24px 0; padding-inline-end: 48px; position: relative;
  font-weight: 600; font-size: 1.08rem; line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; inset-inline-end: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--wine); }
.faq-a { padding: 0 0 24px; padding-inline-end: 48px; color: var(--ink-2); }
.faq-a p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--wine); color: #fff; padding: clamp(56px, 7vw, 96px) 0; }
.cta-band .eyebrow { color: #f3c9cf; }
.cta-band .lead-sm { color: rgba(255,255,255,.8); margin: 0; }
.cta-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.cta-actions { display: grid; gap: 12px; }
.cta-link { display: inline-flex; align-items: center; gap: 8px; justify-content: center; color: #fff; font-weight: 600; font-size: .92rem; margin-top: 6px; }
.cta-link .ic { width: 16px; height: 16px; }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); background: var(--sand); }
.page-hero-sm .display { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 8px; }
.page-hero-img { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; background: var(--ink) linear-gradient(135deg, #1c2026, #3c2f2e); padding-top: calc(var(--header-h) + 80px); isolation: isolate; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,23,28,.55) 0%, rgba(20,23,28,.15) 40%, rgba(20,23,28,.85) 100%); z-index: -1; }
.page-hero-img .eyebrow { color: #f3c9cf; }
.page-hero-img .lead { color: rgba(255,255,255,.88); }
.page-hero-img .breadcrumb { color: rgba(255,255,255,.8); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: var(--stone); margin-bottom: 28px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Area page ---------- */
.area-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.area-main > .h3 { margin-top: 48px; }
.area-main > .h3:first-child { margin-top: 0; }
.check-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ic { color: var(--wine); margin-top: 3px; }
.area-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; font-size: .88rem; background: #fff; }
.ideal { margin-top: 36px; padding: 28px; background: var(--sand); border-inline-start: 3px solid var(--wine); }
.ideal p { margin: 0; font-size: 1.05rem; }
.note { margin-top: 28px; font-size: .82rem; color: var(--stone); }
.area-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.aside-card .h4 { color: var(--ink); font-size: 1.05rem; letter-spacing: 0; text-transform: none; margin: 0; }
.aside-card p { color: var(--stone); font-size: .92rem; margin: 0 0 8px; }
.aside-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .88rem; font-weight: 600; padding: 4px 0; }
.aside-link .ic { width: 16px; height: 16px; }
.aside-agent { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.aside-agent img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.aside-agent strong { display: block; font-size: .95rem; }
.aside-agent small { color: var(--stone); font-size: .76rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-info { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; text-decoration: none; transition: border-color .25s; }
a.contact-card:hover { border-color: var(--ink); }
.contact-card .ic { color: var(--wine); }
.contact-card small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.lang-ar .contact-card small { letter-spacing: 0; font-size: .85rem; }
.contact-card strong { font-weight: 600; word-break: break-word; }
.contact-card .addr-v { font-weight: 500; font-size: .92rem; line-height: 1.5; }
.contact-card-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.contact-card-wa .ic, .contact-card-wa small { color: #fff; }
.contact-card-wa:hover { background: var(--wa-2); }
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: .82rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: 13px 14px; min-height: 50px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,23,28,.08); }
[aria-invalid="true"], .field [aria-invalid="true"] { border-color: #c0392b !important; }
label.check[aria-invalid="true"] { color: #c0392b; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); cursor: pointer; line-height: 1.5; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--wine); flex: none; }
.check a { color: var(--wine); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; margin-top: 6px; }
.alert { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: .95rem; display: flex; gap: 10px; align-items: center; }
.alert-ok { background: #e7f5ec; color: #145a32; }
.alert-err { background: #fbeaea; color: #8a1f1f; }

/* ---------- Legal ---------- */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); font-size: .88rem; }
.legal-nav-h { font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.legal-nav ol { padding-inline-start: 18px; display: grid; gap: 6px; color: var(--stone); }
.legal-nav a { text-decoration: none; }
.legal-nav a:hover { color: var(--wine); }
.legal-docs { list-style: none; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.legal-docs a[aria-current="page"] { color: var(--wine); font-weight: 600; }
.legal { max-width: 760px; }
.legal h2 { font-family: var(--font-body); font-size: 1.2rem; font-weight: 700; margin: 40px 0 14px; }
.legal ul, .legal ol { padding-inline-start: 22px; margin: 0 0 1em; display: grid; gap: 8px; color: var(--ink-2); }
.legal a { color: var(--wine); }
.legal code { font-size: .88em; background: var(--sand); padding: 1px 6px; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 80px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 56px; }
.brand-footer { width: 250px; margin-bottom: 22px; }
.brand-footer .logo-dark { display: none; }
.brand-footer .logo-light { display: block; }
.footer-brand p { max-width: 36ch; }
.broker strong { color: #fff; }
.footer-h { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-weight: 700; }
.lang-ar .footer-h { letter-spacing: 0; font-size: .9rem; }
.footer-links, .footer-contact { list-style: none; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact a, .footer-contact .addr { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { width: 18px; height: 18px; margin-top: 3px; color: #e9a9b3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; padding-bottom: 110px; font-size: .8rem; }
.footer-bottom .muted { color: rgba(255,255,255,.45); }

/* ---------- Sticky contact ---------- */
.sticky-contact { position: fixed; z-index: 90; bottom: 20px; inset-inline-end: 20px; display: flex; flex-direction: column; gap: 10px; }
.sc-btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; min-width: 56px; padding: 0 18px; border-radius: 99px; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); transition: transform .25s var(--ease); }
.sc-btn:hover { transform: translateY(-2px); }
.sc-btn .ic { width: 24px; height: 24px; }
.sc-wa { background: var(--wa); }
.sc-phone { background: var(--ink); }
.sc-btn span { display: none; }
@media (min-width: 900px) {
  .sc-btn { width: 56px; padding: 0; justify-content: center; }
  .sc-wa { width: auto; padding: 0 22px 0 18px; }
  .sc-wa span { display: inline; }
}

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed; z-index: 95; bottom: 16px; inset-inline-start: 16px; max-width: 460px;
  background: var(--ink); color: #fff; padding: 18px 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  font-size: .86rem; display: grid; gap: 14px;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; color: rgba(255,255,255,.85); }
.cookie-bar a { color: #fff; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-bar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.cookie-bar .btn-primary { background: #fff; color: var(--ink); }

/* ---------- 404 ---------- */
.page-404 { min-height: 60vh; display: flex; align-items: center; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .area-card img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 8px 8px; font-size: .86rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1160px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .header-cta span { display: none; }
  .header-cta { width: 40px; padding: 0; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); color: var(--ink);
    padding: 24px var(--gutter) 40px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s, visibility .3s;
  }
  .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font-family: var(--font-display); font-size: 1.8rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .lang-ar .main-nav a { font-size: 1.35rem; }
  .main-nav a::after { display: none; }
  .nav-mobile-extra { display: grid; gap: 10px; margin-top: 28px; }
  .nav-open .site-header.is-overlay { background: var(--paper); color: var(--ink); }
  .nav-open .is-overlay .logo-dark { display: block; }
  .nav-open .is-overlay .logo-light { display: none; }
  body.nav-open { overflow: hidden; }
  .hero-grid, .about-grid, .mortgage-grid, .faq-grid, .cta-inner, .area-layout, .contact-grid, .legal-layout { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 460px; width: calc(100% - 22px); }
  .services-grid, .areas-featured, .areas-more { grid-template-columns: repeat(2, 1fr); }
  .areas-featured .area-card:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .area-aside, .legal-nav { position: static; }
  .legal-nav { display: none; }
  .area-excerpt { max-height: none; opacity: 1; }
}
@media (max-width: 640px) {
  .brand { width: 168px; }
  .lang-switch a { min-width: 28px; padding: 0 6px; }
  .header-cta { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; }
  .stat:first-child { border-top: 0; }
  .services-grid, .areas-featured, .areas-more, .why-grid, .footer-grid, .check-list, .area-facts, .field-row { grid-template-columns: 1fr; }
  .areas-featured .area-card, .areas-featured .area-card:first-child { aspect-ratio: 4 / 4.4; }
  .hero-badge { inset-inline-end: -10px; font-size: .72rem; }
  .btn-row .btn { flex: 1 1 auto; }
  .contact-form .btn { width: 100%; }
  .cookie-bar { inset-inline-end: 16px; bottom: 88px; }
  .sticky-contact { flex-direction: row; bottom: 16px; inset-inline-end: 16px; }
}

/* SEO mortgage guide: readable long-form copy and a visible secondary CTA. */
.mortgage-guide-section { margin-bottom: 46px; }
.mortgage-guide-section .h3 { margin-bottom: 18px; }
.mortgage-checklist { padding-inline-start: 1.4em; margin: 0 0 22px; }
.mortgage-checklist li { margin-bottom: 12px; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.65); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* Native-language editorial guides */
.guide-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.guide-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(25px,3vw,42px); display:flex; flex-direction:column; gap: 15px; }
.guide-card-kicker { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, #8a7058); }
.guide-card .h3 { margin: 0; }
.guide-card p { margin: 0 0 8px; line-height: 1.75; }
.guide-card-link, .text-link { color: inherit; text-decoration: underline; text-underline-offset: 5px; }
.guide-card-link { margin-top: auto; display:inline-flex; align-items:center; gap: 8px; }
.guide-article .intro { font-size: 1.14rem; }
.guide-article .guide-type { margin-bottom: 32px; }
.guide-article .guide-type .h4 { margin-bottom: 12px; }
.guide-article .guide-panel { border-inline-start: 3px solid var(--accent,#86705b); padding: 20px 26px; background: var(--paper-alt,#f5f3ef); margin: 38px 0; }
.guide-checks { padding-inline-start: 1.3em; }
.guide-checks li { margin: 0 0 12px; line-height: 1.7; }
.guide-sources { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; }
.guide-sources li { margin-bottom: 8px; overflow-wrap:anywhere; }
.guide-next { display:flex; flex-wrap:wrap; align-items:baseline; gap: 12px 22px; margin-top: 24px; }
.guide-next p { flex: 1 1 100%; margin: 0; }
@media (max-width: 720px) { .guide-cards { grid-template-columns:1fr; } .guide-panel { padding: 20px !important; } }

/* ==========================================================================
   Visual fixes — 2026-11-11
   ========================================================================== */

/* 1) Sticky WhatsApp: icon-only round button (label kept for screen readers via aria-label) */
.sticky-contact .sc-wa { width: 56px; padding: 0; justify-content: center; }
.sticky-contact .sc-wa span { display: none; }
.sticky-contact .sc-btn .ic { width: 26px; height: 26px; }

/* 2) Header WhatsApp: same pill radius & height as the language switch */
.header-cta { min-height: 36px; height: 36px; border-radius: 99px; padding: 0 16px; }
.header-cta .ic { width: 18px; height: 18px; }

/* 3) Stats band: label on top, text below — consistent size and alignment */
.stats-grid { align-items: stretch; }
.stat { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; padding: 36px 32px; }
.stat:first-child { padding-inline-start: 0; }
.stat-n { font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1.1; white-space: nowrap; }
.stat-l { max-width: 32ch; line-height: 1.55; }
.lang-ar .stat-n { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.4; }

/* 4) Mobile / tablet menu: real full-screen panel */
@media (max-width: 1160px) {
  .header-cta { width: 36px; padding: 0; }
  /* backdrop-filter turns the header into the containing block of fixed children,
     which clipped the menu to the header height — drop it while the menu is open */
  .nav-open .site-header,
  .nav-open .site-header.is-overlay,
  .nav-open .site-header.is-scrolled {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: var(--paper); color: var(--ink); border-color: var(--line);
  }
  .main-nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    margin: 0; z-index: 99;
    overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column;
  }
  .main-nav ul { width: 100%; max-width: var(--container); margin-inline: auto; }
  .nav-mobile-extra { width: 100%; max-width: var(--container); margin-inline: auto; margin-top: 32px; padding-bottom: 24px; }
}
@media (max-width: 640px) {
  .stat, .stat:first-child { padding: 24px 0; gap: 6px; }
  .stat-n { font-size: 1.9rem; white-space: normal; }
}
@media (max-width: 1160px) {
  /* Buttons inside the mobile menu must not inherit the big nav-link style */
  .main-nav .nav-mobile-extra .btn {
    display: inline-flex; font-family: var(--font-body); font-size: 1rem; font-weight: 600;
    padding: 0 22px; min-height: 52px; border-bottom-width: 1px; width: 100%;
  }
  .main-nav .nav-mobile-extra .btn-wa { border-bottom-color: transparent; }
  .main-nav .nav-mobile-extra .btn-ghost { border-color: var(--line); }
}
/* RTL: keep the phone number in the mobile menu left-to-right (+971 …) */
[dir="rtl"] .nav-mobile-extra a[href^="tel:"] { direction: ltr; }

/* International phone input (intl-tel-input) */
.field-phone > label { font-size: .82rem; font-weight: 600; }
.field-phone .iti { width: 100%; display: block; }
.field-phone .iti input[type="tel"] { width: 100%; }
.iti__dropdown-content { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow); z-index: 120; font-size: .92rem; }
.iti__selected-country { border-radius: var(--radius) 0 0 var(--radius); }
.iti__selected-country:hover, .iti__selected-country-primary:hover { background: rgba(20,23,28,.04); }
.iti--fullscreen-popup .iti__dropdown-content { z-index: 1200; }
/* The generic .field input style must not restyle the country search box */
.field .iti__search-input { min-height: 40px; padding: 8px 32px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; box-shadow: none; }
/* Honeypot: visually hidden without off-screen offset (left:-9999px widened RTL pages) */
.hp { position: absolute !important; left: auto; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Google reCAPTCHA v3 — badge hidden; the required notice is shown under the form */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-note { margin: 4px 0 0; font-size: .75rem; line-height: 1.5; color: var(--stone); }
.recaptcha-note a { color: inherit; }
