:root {
  --navy: #020817;
  --navy-soft: #081426;
  --gold: #d6ad63;
  --gold-deep: #ae8039;
  --white: #f8fafc;
  --silver: #cbd5e1;
  --slate: #475569;
  --line: rgba(203, 213, 225, 0.22);
  --shadow: 0 22px 60px rgba(2, 8, 23, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.home-page {
  min-height: 100svh;
  background: var(--navy);
  color: var(--white);
}

.brand-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  will-change: opacity, visibility;
  background-color: rgba(1, 3, 10, 0.48);
  background:
    radial-gradient(circle at 50% 48%, rgba(248, 250, 252, 0.09), transparent 28%),
    radial-gradient(circle at 50% 54%, rgba(214, 173, 99, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(1, 2, 8, 0.58), rgba(2, 8, 23, 0.42));
  backdrop-filter: blur(3px) saturate(0.96);
}

.brand-splash--play {
  animation: brand-splash-exit 1300ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.brand-splash::before {
  content: "";
  position: absolute;
  width: min(68vw, 340px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(248, 250, 252, 0.14), rgba(214, 173, 99, 0.12) 42%, transparent 72%);
  filter: blur(20px);
  opacity: 0;
}

.brand-splash--play::before {
  animation: brand-splash-glow 1300ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.brand-splash__logo {
  position: relative;
  z-index: 1;
  width: clamp(160px, 54vw, 280px);
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.96);
  filter: blur(1.5px) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34));
}

.brand-splash--play .brand-splash__logo {
  animation: brand-splash-logo 1300ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes brand-splash-logo {
  0% {
    opacity: 0;
    transform: scale(0.96);
    filter: blur(1.5px) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34));
  }

  22%,
  78% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.3));
  }

  100% {
    opacity: 0;
    transform: scale(1);
    filter: blur(0) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.18));
  }
}

@keyframes brand-splash-glow {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }

  22%,
  78% {
    opacity: 0.92;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.01);
  }
}

@keyframes brand-splash-exit {
  0%,
  78% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 124px 18px 28px;
  isolation: isolate;
}

.hero__video,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video {
  object-fit: cover;
  z-index: -3;
  background: var(--navy) url("/assets/al-aali-poster.jpg") center / cover no-repeat;
}

.hero__overlay {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 8, 23, 0.72) 0%, rgba(2, 8, 23, 0.34) 42%, rgba(2, 8, 23, 0.92) 100%),
    radial-gradient(circle at 78% 18%, rgba(214, 173, 99, 0.16), transparent 34%);
}

.logo-link {
  position: absolute;
  left: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-link img {
  width: clamp(98px, 28vw, 136px);
  height: auto;
  object-fit: contain;
}

.logo-link--hero {
  top: max(18px, env(safe-area-inset-top));
}

.logo-link--page {
  top: max(16px, env(safe-area-inset-top));
}

.hero__content {
  width: min(100%, 560px);
  margin-inline: auto;
  padding: 22px;
  border: 1px solid rgba(248, 250, 252, 0.16);
  border-radius: 28px;
  background: rgba(2, 8, 23, 0.34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.business-card {
  padding-bottom: 4px;
}

.hero .agent-name {
  margin: 6px 0 4px;
  font-size: clamp(2.15rem, 10vw, 3.8rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.business-card__company {
  margin-bottom: 8px;
  color: rgba(248, 250, 252, 0.84);
  font-size: 1rem;
  font-weight: 800;
}

.business-card__role {
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 1.02rem;
  font-weight: 900;
}

.business-card__note {
  margin-bottom: 16px;
  color: rgba(248, 250, 252, 0.86);
  font-size: 0.96rem;
}

.business-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.business-actions .btn--primary {
  grid-column: auto;
}

.project-summary {
  margin-top: 16px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 18px;
  background: rgba(2, 8, 23, 0.22);
}

.eyebrow,
.project-label,
.section-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.project-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #86efac;
  font-size: 0.78rem;
}

.project-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14), 0 0 16px rgba(34, 197, 94, 0.62);
}

h1,
h2,
p {
  margin-top: 0;
}

.hero h1 {
  margin: 2px 0 12px;
  font-size: clamp(3.2rem, 18vw, 6.2rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-project-title {
  margin: 2px 0 12px;
  color: var(--white);
  font-size: clamp(1.48rem, 6.8vw, 2.35rem);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0;
}

.hero__text {
  margin-bottom: 24px;
  color: rgba(248, 250, 252, 0.9);
  font-size: 1rem;
}

.cta-grid,
.agent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.agent-actions .btn--primary {
  grid-column: auto;
}

.agent-actions .btn--location,
.agent-actions .btn--light {
  grid-column: 1 / -1;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn--primary {
  grid-column: 1 / -1;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), #f3d89f);
  box-shadow: 0 16px 35px rgba(214, 173, 99, 0.24);
}

.btn--glass {
  color: var(--white);
  border-color: rgba(248, 250, 252, 0.22);
  background: rgba(248, 250, 252, 0.1);
  backdrop-filter: blur(12px);
}

.btn--project {
  grid-column: 1 / -1;
}

.btn--location {
  grid-column: 1 / -1;
  color: #f7fff9;
  border-color: rgba(134, 239, 172, 0.48);
  background: rgba(74, 222, 128, 0.18);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.12);
  backdrop-filter: blur(12px);
}

.btn__icon-badge {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.apple-maps-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(2, 8, 23, 0.2));
}

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

.btn--call {
  color: var(--navy);
  border-color: rgba(203, 213, 225, 0.34);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(203, 213, 225, 0.86));
  box-shadow: 0 14px 30px rgba(203, 213, 225, 0.14);
}

.btn--light {
  color: var(--navy);
  border-color: rgba(2, 8, 23, 0.08);
  background: rgba(248, 250, 252, 0.9);
}

.project-page {
  background: var(--white);
}

.project-hero {
  position: relative;
  min-height: 312px;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(2, 8, 23, 0.98), rgba(8, 20, 38, 0.94)),
    url("/assets/project-1.jpg") center / cover no-repeat;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 23, 0.36), rgba(2, 8, 23, 0.86));
}

.project-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 36px, 980px);
  min-height: 312px;
  margin-inline: auto;
  padding: 118px 0 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.back-link {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: 0;
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(248, 250, 252, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(248, 250, 252, 0.09);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
  font-weight: 800;
}

.project-hero h1 {
  margin: 6px 0 0;
  font-size: clamp(1.65rem, 8vw, 3.2rem);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: 0;
}

.section {
  padding: 48px 18px;
  background: var(--white);
}

.section--intro {
  padding-top: 38px;
}

.section--tint {
  background: #eef2f7;
}

.section--contact {
  padding-bottom: 64px;
  background: linear-gradient(180deg, var(--white), #e7ecf3);
}

.section--contact-top {
  padding-top: 30px;
  padding-bottom: 26px;
  background: linear-gradient(180deg, #e7ecf3, var(--white));
}

.section__inner {
  width: min(100%, 980px);
  margin-inline: auto;
}

.section h2 {
  margin: 4px 0 14px;
  color: var(--navy);
  font-size: clamp(1.55rem, 7vw, 2.45rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.section p {
  color: var(--slate);
  font-size: 1.02rem;
}

.section-heading {
  margin-bottom: 20px;
}

.gallery {
  display: grid;
  gap: 14px;
}

.gallery-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--navy);
  box-shadow: var(--shadow);
  cursor: pointer;
  isolation: isolate;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 8, 23, 0.78));
  z-index: 1;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 280ms ease;
}

.gallery-card span {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  color: var(--white);
  font-weight: 900;
  font-size: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.gallery-card:active img {
  transform: scale(1.02);
}

.masterplan {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.masterplan img {
  width: 100%;
  background: #e2e8f0;
}

.masterplan figcaption {
  padding: 14px 16px 18px;
  color: var(--slate);
  font-size: 0.92rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-grid li {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(2, 8, 23, 0.08);
  border-radius: 18px;
  color: var(--navy);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  font-weight: 800;
}

.feature-grid li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(214, 173, 99, 0.14);
  flex: 0 0 auto;
}

.agent-card {
  display: grid;
  gap: 24px;
  padding: 24px;
  border-radius: 26px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(214, 173, 99, 0.14), transparent 42%),
    linear-gradient(135deg, var(--navy), var(--navy-soft));
  box-shadow: var(--shadow);
}

.agent-card--actions-only {
  display: block;
}

.agent-card h2 {
  margin-bottom: 8px;
  color: var(--white);
}

.agent-card p:not(.section-kicker) {
  margin-bottom: 4px;
  color: var(--silver);
}

.lightbox {
  width: min(94vw, 980px);
  max-height: 90svh;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.lightbox::backdrop {
  background: rgba(2, 8, 23, 0.78);
  backdrop-filter: blur(10px);
}

.lightbox img {
  width: 100%;
  max-height: 76svh;
  object-fit: contain;
  background: #000;
}

.lightbox p {
  margin: 0;
  padding: 12px 16px 16px;
  color: var(--white);
  font-weight: 800;
}

.lightbox__close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(248, 250, 252, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 8, 23, 0.72);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (min-width: 700px) {
  .hero {
    padding-inline: 28px;
  }

  .hero__content {
    margin-inline: 0 auto;
  }

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

  .gallery-card--wide {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  .gallery-card--wide img {
    min-height: 360px;
  }

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

  .agent-card {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
  }
}

@media (min-width: 980px) {
  .hero__content {
    margin-inline-start: calc((100vw - min(100vw - 72px, 1120px)) / 2);
  }

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

  .gallery-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 360px) {
  .hero__content,
  .agent-card {
    padding: 18px;
  }

  .btn {
    padding-inline: 10px;
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
