/* CCR Developments — Google Ads landing page
   One stylesheet for both languages. Layout uses logical properties
   (inline-start/end), so the Arabic page mirrors automatically. */

/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  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: "Plex Arabic";
  src: url("fonts/IBMPlexSansArabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("fonts/IBMPlexSansArabic-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("fonts/IBMPlexSansArabic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Tajawal";
  src: url("fonts/Tajawal-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* ---------- Tokens: CCR's official palette is #111111 / #FFFFFF / #1751F1 ---------- */
:root {
  --ink: #111111;
  --ink-2: #2b3038;
  --muted: #5b6470;
  --line: #e2e5ea;
  --paper: #f5f6f8;
  --white: #ffffff;
  --blue: #1751f1;
  --blue-hover: #1243cc;
  --blue-soft: #e8eefe;
  --blue-on-dark: #8aaeff;
  --night: #0d0f13;
  --night-2: #08090c;
  --on-night: #ffffff;
  --on-night-muted: rgba(255, 255, 255, 0.74);
  --on-night-line: rgba(255, 255, 255, 0.14);
  --ok: #1e7a4f;
  --err: #c42b1c;

  --font-latin: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: var(--font-latin);
  --font-head: var(--font-latin);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 16px;
  --header-h: 72px;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
}
html[lang="ar"] {
  --font-body: "Plex Arabic", var(--font-latin);
  --font-head: "Tajawal", "Outfit", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { line-height: 1.8; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.nowrap { white-space: nowrap; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--blue-on-dark); }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Shared type ---------- */
.eyebrow {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.9375rem; font-weight: 500; }
.eyebrow bdi[lang="en"] { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8125rem; font-weight: 600; }
.on-dark .eyebrow { color: var(--blue-on-dark); }

.h2 {
  font-size: clamp(1.75rem, 1.15rem + 2.1vw, 2.75rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.015em;
}
html[lang="ar"] .h2 { font-weight: 800; line-height: 1.35; letter-spacing: 0; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--muted); max-width: 60ch; }
.on-dark .lead { color: var(--on-night-muted); }
.section { padding-block: clamp(64px, 9vw, 112px); scroll-margin-top: var(--header-h); }
.section-head { display: grid; gap: 14px; margin-block-end: clamp(32px, 4vw, 48px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 12px; border: 1.5px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1; text-decoration: none;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: var(--white); border-color: rgba(255, 255, 255, 0.36); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; border-radius: 10px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-hover); }
  .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); }
}
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .ico-arrow { transform: scaleX(-1); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(13, 15, 19, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--on-night-line);
  transition: background-color 200ms ease, border-color 200ms ease;
}
.site-header[data-top="true"] {
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: block; margin-inline-end: auto; padding-block: 8px; }
.brand img { height: 26px; width: auto; }
.header-actions { display: flex; align-items: center; gap: clamp(10px, 2vw, 20px); color: var(--white); }
.lang-switch {
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--on-night-muted);
  padding: 8px 4px; transition: color 160ms ease;
}
.hotline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; padding: 8px 4px; }
.hotline .ico { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .lang-switch:hover { color: var(--white); }
  .hotline:hover { color: var(--blue-on-dark); }
}
@media (max-width: 759px) {
  .header-actions .btn { display: none; }
  .brand img { height: 22px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92svh, 880px);
  display: flex; align-items: flex-end;
  color: var(--white); background: var(--night);
  padding-block: calc(var(--header-h) + 48px) clamp(48px, 7vw, 88px);
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: center 62%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(8, 10, 14, 0.7) 0%, rgba(8, 10, 14, 0) 22%),
    linear-gradient(to top, rgba(8, 10, 14, 0.72) 0%, rgba(8, 10, 14, 0) 46%),
    linear-gradient(to right, rgba(8, 10, 14, 0.84) 0%, rgba(8, 10, 14, 0.6) 38%, rgba(8, 10, 14, 0.12) 72%, rgba(8, 10, 14, 0) 100%);
}
[dir="rtl"] .hero::after {
  background:
    linear-gradient(to bottom, rgba(8, 10, 14, 0.7) 0%, rgba(8, 10, 14, 0) 22%),
    linear-gradient(to top, rgba(8, 10, 14, 0.72) 0%, rgba(8, 10, 14, 0) 46%),
    linear-gradient(to left, rgba(8, 10, 14, 0.84) 0%, rgba(8, 10, 14, 0.6) 38%, rgba(8, 10, 14, 0.12) 72%, rgba(8, 10, 14, 0) 100%);
}
@media (max-width: 759px) {
  .hero::after, [dir="rtl"] .hero::after {
    background: linear-gradient(to top, rgba(8, 10, 14, 0.92) 0%, rgba(8, 10, 14, 0.66) 55%, rgba(8, 10, 14, 0.42) 100%);
  }
  .hero-media img { object-position: 42% center; }
}
.hero-copy { max-width: 680px; display: grid; gap: 20px; }
.hero .eyebrow { color: var(--white); }
.hero .eyebrow::before { background: var(--blue); width: 28px; }
.hero h1 {
  font-size: clamp(2.25rem, 1.3rem + 3.8vw, 4.25rem);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.025em;
}
html[lang="ar"] .hero h1 { font-weight: 800; line-height: 1.28; letter-spacing: 0; }
.hero-sub { font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem); color: rgba(255, 255, 255, 0.88); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 8px; }
@media (max-width: 479px) { .hero-ctas .btn { flex: 1 1 100%; } }

/* First paint only: a short rise for the hero copy. CSS-only, so it never depends on JavaScript. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
.hero-copy > * { animation: rise 560ms var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 120ms; }
.hero-copy > :nth-child(4) { animation-delay: 180ms; }

/* ---------- Stats band ---------- */
.stats { background: var(--night); color: var(--on-night); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 26px 0; display: grid; gap: 4px; }
.stat:nth-child(odd) { padding-inline-end: 20px; }
.stat:nth-child(even) { padding-inline-start: 20px; border-inline-start: 1px solid var(--on-night-line); }
.stat:nth-child(-n + 2) { border-bottom: 1px solid var(--on-night-line); }
.stat-num { font-family: var(--font-latin); font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--on-night-muted); font-size: 0.9375rem; }
@media (min-width: 760px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 34px 24px; border: 0 !important; }
  .stat:first-child { padding-inline-start: 0; }
  .stat + .stat { border-inline-start: 1px solid var(--on-night-line) !important; }
}

/* ---------- Story ---------- */
.story-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .story-grid { grid-template-columns: 5fr 6fr; } }
.story-intro { display: grid; gap: 18px; }
.promise {
  margin-block-start: 6px; padding-inline-start: 18px; border-inline-start: 3px solid var(--blue);
  font-family: var(--font-head); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); font-weight: 600; line-height: 1.35;
}
html[lang="ar"] .promise { font-weight: 800; line-height: 1.6; }
.promise-note { display: block; margin-block-start: 6px; font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: var(--muted); }

/* Three blue discs: a nod to the three discs of the CCR mark */
.timeline { position: relative; display: grid; gap: 30px; }
.timeline::before {
  content: ""; position: absolute; inset-block: 24px; inset-inline-start: 23px;
  width: 2px; background: linear-gradient(var(--blue), var(--blue-soft));
}
.milestone { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: start; }
.disc {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: var(--white);
  font-family: var(--font-latin); font-weight: 600; font-size: 1rem;
  box-shadow: 0 0 0 6px var(--white);
}
.milestone h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; padding-block-start: 10px; }
html[lang="ar"] .milestone h3 { font-weight: 800; }
.milestone p { color: var(--muted); margin-block-start: 6px; }

/* ---------- Projects ---------- */
.projects { background: var(--paper); }
.project-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #dfe3ea; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card:hover .card-media img { transform: scale(1.035); } }
.status {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(13, 15, 19, 0.76); color: var(--white);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.8125rem; font-weight: 500; line-height: 1.2;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-on-dark); }
.status.is-complete::before { background: #5fd49a; }
.card-body { display: grid; gap: 10px; padding: 24px 24px 8px; }
.tagline { font-family: var(--font-latin); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.tagline[lang="ar"] { font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-size: 0.9375rem; }
.card h3 { font-family: var(--font-latin); font-size: 1.625rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.location { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9375rem; }
.location .ico { width: 17px; height: 17px; }
.facts { display: grid; gap: 9px; margin-block-start: 6px; }
.facts li { position: relative; padding-inline-start: 22px; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
html[lang="ar"] .facts li { line-height: 1.75; }
.facts li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
}
html[lang="ar"] .facts li::before { top: 0.78em; }
.card-cta {
  margin: 14px 24px 0; padding-block: 18px 22px; border-top: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--blue); font-weight: 600; text-decoration: none;
  transition: transform 160ms var(--ease-out);
}
.card-cta:active { transform: scale(0.98); }
.card-cta .ico { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card-cta:hover .ico-arrow { transform: translateX(4px); }
  [dir="rtl"] .card-cta:hover .ico-arrow { transform: scaleX(-1) translateX(4px); }
}

.delivered { margin-block-start: clamp(48px, 6vw, 72px); }
.delivered-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-block-end: 18px; }
.delivered-head h3 { font-size: 1.375rem; font-weight: 600; }
html[lang="ar"] .delivered-head h3 { font-weight: 800; }
.delivered-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .delivered-grid { grid-template-columns: repeat(2, 1fr); } }
.past {
  background: var(--night); color: var(--on-night); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 10px; align-content: start;
}
.past .tagline { color: var(--blue-on-dark); }
.past h4 { margin: 0; font-family: var(--font-latin); font-size: 1.375rem; font-weight: 600; }
.past .location { color: var(--on-night-muted); }
.past p { color: var(--on-night-muted); }
.render-note { color: var(--muted); font-size: 0.875rem; margin-block-start: 18px; }

/* ---------- Register ---------- */
.register { background: var(--night); color: var(--on-night); }
.register-grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: start; }
@media (min-width: 960px) { .register-grid { grid-template-columns: 5fr 6fr; } }
.register-info { display: grid; gap: 22px; }
.contact-list { display: grid; gap: 12px; margin-block-start: 6px; }
.contact-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--on-night-line); border-radius: 12px;
  text-decoration: none; transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.contact-item:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .contact-item:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); } }
.contact-item .ico-wrap { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(23, 81, 241, 0.22); color: var(--blue-on-dark); flex: none; }
.contact-item small { display: block; color: var(--on-night-muted); font-size: 0.8125rem; }
.contact-item strong { font-weight: 600; font-size: 1.0625rem; }
.offices { display: grid; gap: 10px; padding-block-start: 8px; border-top: 1px solid var(--on-night-line); }
.offices h3 { font-size: 1.0625rem; font-weight: 600; margin-block-start: 14px; }
.offices-list { display: grid; gap: 10px; }
.offices li { display: flex; gap: 10px; color: var(--on-night-muted); font-size: 0.9375rem; }
.offices li .ico { width: 17px; height: 17px; margin-block-start: 0.3em; color: var(--blue-on-dark); }
.offices-note { color: var(--on-night-muted); font-size: 0.875rem; }

.form-card {
  background: var(--white); color: var(--ink); border-radius: 20px;
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.form-card h3 { font-size: 1.375rem; font-weight: 600; margin-block-end: 6px; }
html[lang="ar"] .form-card h3 { font-weight: 800; }
.form-card .form-intro { color: var(--muted); font-size: 0.9375rem; margin-block-end: 22px; }
.field { display: grid; gap: 7px; margin-block-end: 16px; }
.field label, .field .label { font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); }
.field .opt { color: var(--muted); font-weight: 400; }
.input {
  width: 100%; min-height: 52px; padding: 12px 15px;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #cfd4dc; border-radius: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #7a828e; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23, 81, 241, 0.16); }
.input[aria-invalid="true"] { border-color: var(--err); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(196, 43, 28, 0.14); }
.input[type="tel"], .input[type="email"] { direction: ltr; }
html[lang="ar"] .input[type="tel"], html[lang="ar"] .input[type="email"] { text-align: right; }
select.input {
  padding-inline-end: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235b6470' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
[dir="rtl"] select.input { background-position: left 14px center; }
.hint { color: var(--muted); font-size: 0.8125rem; }
.field-error { color: var(--err); font-size: 0.875rem; font-weight: 500; }
.field-error:empty { display: none; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.submit { width: 100%; min-height: 56px; font-size: 1.0625rem; }
.submit .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: var(--white); animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
form[data-state="sending"] .submit { pointer-events: none; opacity: 0.85; }
form[data-state="sending"] .submit .spinner { display: inline-block; }
.form-alert {
  margin-block-start: 14px; padding: 12px 14px; border-radius: 12px;
  background: #fdecea; color: #8c1d12; font-size: 0.9375rem;
}
.form-alert a { color: inherit; font-weight: 600; }
.form-done { display: grid; gap: 12px; justify-items: start; padding-block: 8px; }
.form-done:not([hidden]) {
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
  @starting-style { opacity: 0; transform: translateY(8px); }
}
.done-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); }
.done-mark .ico { width: 26px; height: 26px; stroke-width: 2.5; }
.form-done h3:focus { outline: none; }
.form-done p { color: var(--muted); }
.form-done .btn { margin-block-start: 6px; }
noscript .form-alert { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-2); color: var(--on-night-muted); font-size: 0.9375rem; padding-block: 48px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block-end: 24px; border-bottom: 1px solid var(--on-night-line); }
.footer-top img { height: 22px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { text-decoration: none; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--white); } }
.privacy { padding-block: 22px; border-bottom: 1px solid var(--on-night-line); }
.privacy summary { cursor: pointer; color: var(--white); font-weight: 500; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::after { content: "+"; font-family: var(--font-latin); font-size: 1.2em; line-height: 1; transition: transform 200ms var(--ease-out); }
.privacy[open] summary::after { transform: rotate(45deg); }
.privacy p { margin-block-start: 12px; max-width: 78ch; }
.legal { padding-block-start: 22px; font-size: 0.875rem; display: grid; gap: 6px; }

/* ---------- Reduced motion: keep fades, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > * { animation: fade 300ms ease both; }
  .card-media img, .card-cta .ico, .bubble, .bubble .tip { transition: none; }
  .bubble { animation: fade 300ms ease backwards; }
  .form-done:not([hidden]) { @starting-style { opacity: 0; transform: none; } }
  .btn:active, .card-cta:active, .contact-item:active { transform: none; }
}

/* =====================================================================
   Floating contact bubbles (WhatsApp + call)
   ===================================================================== */
.bubbles {
  position: fixed; z-index: 45;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  inset-block-end: calc(16px + env(safe-area-inset-bottom));
  display: grid; gap: 12px; justify-items: center;
}
.bubble {
  position: relative; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  color: var(--white); text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 160ms var(--ease-out), box-shadow 160ms ease;
  animation: bubble-in 420ms var(--ease-out) backwards;
}
.bubble-wa { width: 60px; height: 60px; background: #25d366; animation-delay: 420ms; }
.bubble-call { background: var(--blue); animation-delay: 360ms; }
.bubble svg { width: 26px; height: 26px; }
.bubble-wa svg { width: 30px; height: 30px; fill: currentColor; }
.bubble:active { transform: scale(0.94); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(0.92); } }
.bubble .tip {
  position: absolute; inset-inline-end: calc(100% + 12px); top: 50%;
  translate: 0 -50%; white-space: nowrap; pointer-events: none;
  padding: 8px 12px; border-radius: 10px;
  background: var(--night); color: var(--white); font-size: 0.875rem; font-weight: 500;
  opacity: 0; transform: translateX(6px) scale(0.97);
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}
[dir="rtl"] .bubble .tip { transform: translateX(-6px) scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .bubble:hover { box-shadow: 0 14px 28px -8px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.2); }
  .bubble:hover .tip, .bubble:focus-visible .tip { opacity: 1; transform: none; }
}
@media (max-width: 759px) {
  .bubble { width: 52px; height: 52px; }
  .bubble-wa { width: 56px; height: 56px; }
}

/* =====================================================================
   Registration band (compact form after each section)
   ===================================================================== */
.band { background: var(--blue); color: var(--white); padding-block: clamp(40px, 5vw, 56px); }
.band-grid { display: grid; gap: 24px 48px; align-items: center; }
@media (min-width: 1024px) { .band-grid { grid-template-columns: 4fr 7fr; } }
.band h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
html[lang="ar"] .band h2 { font-weight: 800; line-height: 1.45; letter-spacing: 0; }
.band .band-sub { color: rgba(255, 255, 255, 0.88); margin-block-start: 8px; }
.band form .fields { display: grid; gap: 12px; align-items: start; }
@media (min-width: 680px) {
  .band form .fields { grid-template-columns: 1fr 1fr; }
  .band form .fields.has-project { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1180px) {
  .band form .fields { grid-template-columns: 1fr 1fr auto; }
  .band form .fields.has-project { grid-template-columns: 1fr 1fr 1fr auto; }
}
.band .field { margin: 0; gap: 6px; }
.band .field label { color: rgba(255, 255, 255, 0.92); font-size: 0.875rem; }
.band .input { border-color: transparent; height: 52px; min-height: 52px; padding-block: 0; }
.band .input:focus { border-color: var(--night); box-shadow: 0 0 0 4px rgba(13, 15, 19, 0.25); }
.band .input[aria-invalid="true"] { border-color: #ffb4a9; box-shadow: 0 0 0 3px rgba(255, 180, 169, 0.45); }
.band .field-error { color: #ffe3df; }
.band .submit-wrap { display: grid; gap: 6px; }
.band .submit-wrap .spacer { font-size: 0.875rem; line-height: inherit; visibility: hidden; }
@media (max-width: 1179px) { .band .submit-wrap .spacer { display: none; } .band .submit-wrap { grid-column: 1 / -1; } }
.band .submit { height: 52px; min-height: 52px; background: var(--night); color: var(--white); white-space: nowrap; padding-inline: 26px; }
@media (hover: hover) and (pointer: fine) { .band .submit:hover { background: #000; } }
.band .form-alert { background: rgba(13, 15, 19, 0.35); color: var(--white); }
.band .form-done { grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; padding: 0; }
.band .form-done .done-mark { background: var(--white); color: var(--blue); grid-row: span 2; }
.band .form-done h3 { font-size: 1.25rem; font-weight: 600; }
.band .form-done p { color: rgba(255, 255, 255, 0.88); }
.band .form-done .btn { display: none; }

/* =====================================================================
   Project cards on the main page link to the project pages
   ===================================================================== */
.card { position: relative; }
.card-cta::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-cta:focus-visible { outline: none; }
.card:has(.card-cta:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }

/* =====================================================================
   Project pages
   ===================================================================== */
.header-link { font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--on-night-muted); padding: 8px 4px; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .header-link:hover { color: var(--white); } }
@media (max-width: 759px) { .header-link { display: none; } }

.p-hero .status { position: static; justify-self: start; }
.p-hero h1 { font-family: var(--font-latin); letter-spacing: -0.03em; font-weight: 600; }
html[lang="ar"] .p-hero h1 { font-family: var(--font-latin); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.p-hero .tagline-big { font-family: var(--font-latin); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-on-dark); }
.p-hero .tagline-big[lang="ar"] { font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-size: 1.0625rem; color: var(--white); }

.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 6fr 5fr; } }
.split-copy { display: grid; gap: 18px; }
.figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #dfe3ea; }
.figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.highlights { display: grid; gap: 12px; margin-block-start: 6px; }
.highlights li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.highlights .ico { width: 22px; height: 22px; color: var(--blue); margin-block-start: 0.15em; stroke-width: 2.4; }
html[lang="ar"] .highlights .ico { margin-block-start: 0.35em; }

.units { background: var(--paper); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.utable { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 1rem; }
.utable th, .utable td { text-align: start; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.utable th { font-size: 0.8125rem; font-weight: 600; color: var(--muted); background: var(--paper); }
.utable tr:last-child td { border-bottom: 0; }
.utable td:first-child { font-family: var(--font-latin); font-weight: 600; color: var(--blue); }
.utable .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.unit-cards { display: grid; gap: 16px; }
@media (min-width: 680px) { .unit-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.unit-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 6px; }
.unit-card strong { font-family: var(--font-latin); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.unit-card span { color: var(--muted); }
.units-note { color: var(--muted); font-size: 0.9375rem; margin-block-start: 16px; }

.gallery { display: grid; gap: 16px; margin-block-end: clamp(32px, 4vw, 44px); }
@media (min-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery .figure img { aspect-ratio: 16 / 10; }
.amenities { display: grid; gap: 12px; }
@media (min-width: 640px) { .amenities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .amenities { grid-template-columns: repeat(3, 1fr); } }
.amenities li { display: grid; grid-template-columns: 10px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink-2); }
.amenities li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin-block-start: 0.55em; }
html[lang="ar"] .amenities li::before { margin-block-start: 0.7em; }

.location-sec { background: var(--paper); }
.drive { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.drive li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drive li:last-child { border-bottom: 0; }
.drive .place { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.drive .place .ico { width: 18px; height: 18px; color: var(--blue); }
.drive .time { font-family: var(--font-latin); font-weight: 600; white-space: nowrap; }
html[lang="ar"] .drive .time { font-family: var(--font-body); }
.drive-note { color: var(--muted); font-size: 0.875rem; margin-block-start: 12px; }

.others { padding-block: clamp(56px, 7vw, 88px); }
.others-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .others-grid { grid-template-columns: repeat(3, 1fr); } }
.other { position: relative; display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); text-decoration: none; transition: transform 160ms var(--ease-out); }
.other:active { transform: scale(0.98); }
.other img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 700ms var(--ease-out); }
.other div { padding: 16px 18px; display: grid; gap: 4px; }
.other .tagline { font-size: 0.75rem; }
.other strong { font-family: var(--font-latin); font-size: 1.25rem; font-weight: 600; }
.other .status-text { color: var(--muted); font-size: 0.875rem; }
@media (hover: hover) and (pointer: fine) { .other:hover img { transform: scale(1.035); } }

.table-wrap + .unit-cards { margin-block-start: 16px; }
.loc-figure { background: none; }
.loc-figure img { border-radius: var(--radius); }
.loc-figure figcaption { padding: 10px 4px 0; }
html[lang="ar"] .stat-num { font-family: "Outfit", "Plex Arabic", system-ui, sans-serif; }
html[lang="ar"] .utable td:first-child { font-family: var(--font-body); }

.band .fields .hp { grid-column: 1 / -1; }
@media (min-width: 680px) and (max-width: 1179px) { .band .fields.has-project .field:has(select) { grid-column: 1 / -1; } }

/* Bubbles step aside on phones while the hero's own call button is on screen */
.bubbles { transition: opacity 200ms ease, transform 240ms var(--ease-out); }
.bubbles.is-tucked { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* Keep Latin names (Ayyam Residence, Front Gate…) on one line inside Arabic text */
html[lang="ar"] bdi:not([lang]) { white-space: nowrap; }

/* =====================================================================
   Contact preference + privacy reassurance (replaces the consent checkbox)
   ===================================================================== */
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-block: 4px 18px; }
.pref { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pref-legend { font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); margin-inline-end: 4px; }
.pref-opt {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid #cfd4dc; color: var(--ink-2); background: var(--white);
  font-size: 0.9375rem; font-weight: 500; cursor: pointer; user-select: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.pref-opt:active { transform: scale(0.97); }
.pref-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pref-opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.pref-opt:has(input:checked) { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pref-ico { width: 17px; height: 17px; flex: none; }
svg.pref-ico:not(.ico) { fill: currentColor; }
@media (hover: hover) and (pointer: fine) { .pref-opt:not(:has(input:checked)):hover { border-color: var(--blue); } }
.form-note { font-size: 0.875rem; color: var(--muted); }
.form-note a { color: var(--blue); }

/* On the blue bands */
.band .fields .form-foot { grid-column: 1 / -1; margin: 0; }
@media (min-width: 1180px) { .band .fields .form-foot { order: 99; margin-block-start: 2px; } }
.band .pref-legend { color: rgba(255, 255, 255, 0.92); }
.band .pref-opt { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.band .pref-opt:has(input:checked) { background: var(--white); border-color: var(--white); color: var(--blue); }
.band .pref-opt:has(input:focus-visible) { outline-color: var(--white); }
@media (hover: hover) and (pointer: fine) { .band .pref-opt:not(:has(input:checked)):hover { border-color: var(--white); } }
.band .form-note { color: rgba(255, 255, 255, 0.88); }
.band .form-note a { color: var(--white); }

/* Bands with a project dropdown need the full width: heading on top, form underneath */
@media (min-width: 1024px) { .band-grid:has(.fields.has-project) { grid-template-columns: 1fr; gap: 20px; } }
/* Phones: question on its own line, the two choices side by side */
@media (max-width: 559px) {
  .pref-legend { flex-basis: 100%; margin-block-end: 2px; }
  .pref-opt { flex: 1 1 0; justify-content: center; }
}

/* Phones: keep the hero brand line on one line */
@media (max-width: 479px) {
  .hero .eyebrow::before { display: none; }
  .hero .eyebrow bdi[lang="en"] { letter-spacing: 0.06em; font-size: 0.75rem; }
}
