/* SODIC-inspired luxury layout — distinct styling, AR/EN */
:root {
  --black: #0c0c0c;
  --gray-900: #1a1a1a;
  --gray-600: #5c5c5c;
  --gray-200: #e8e6e1;
  --gray-100: #f4f2ed;
  --white: #ffffff;
  --gold: #9a7b4f;
  --gold-light: #c4a574;
  --wa: #25d366;
  --font-ar: "Cairo", system-ui, sans-serif;
  --font-en-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;
  --radius: 4px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.0625rem;
}

.lang-ar body {
  font-family: var(--font-ar);
}

.lang-en body {
  font-family: var(--font-en-sans);
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.wrap {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(154, 123, 79, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand-name {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-logo {
  width: 136px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.lang-en .brand-name {
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 1.15rem;
}

.brand-tag {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: var(--white);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.lang-switch a.is-active {
  color: var(--white);
  border-bottom: 2px solid var(--white);
}

.lang-sep {
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

.header-cta {
  display: flex;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
  opacity: 0.92;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--gold);
  opacity: 1;
}

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

.btn-wa:hover {
  color: var(--white);
  filter: brightness(1.05);
  opacity: 1;
}

.btn-light {
  background: var(--white);
  color: var(--gray-900);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  opacity: 1;
}

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

.btn-dark:hover {
  color: var(--white);
  opacity: 1;
}

.btn-block {
  width: 100%;
}

/* —— Full hero —— */
.hero-full {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 5rem;
  background-color: var(--gray-900);
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center top;
}

.hero-full__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 12, 12, 0.92) 0%,
    rgba(12, 12, 12, 0.45) 45%,
    rgba(12, 12, 12, 0.25) 100%
  );
}

.hero-full__content {
  position: relative;
  z-index: 2;
  max-width: 44rem;
  padding-bottom: 2rem;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.02em;
}

.lang-ar .hero-title {
  font-family: var(--font-ar);
  font-weight: 700;
  letter-spacing: 0;
}

.hero-sub {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36em;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.hero-scroll:hover {
  color: var(--white);
}

/* —— Stats —— */
.stats-bar {
  background: var(--black);
  color: var(--white);
  padding: 2.25rem 0;
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (max-width: 720px) {
  .stats-bar__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.stat-item__n {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.65rem);
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.lang-ar .stat-item__n {
  font-family: var(--font-ar);
  font-weight: 700;
}

.stat-item__l {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.stat-item__d {
  display: block;
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 0.35rem;
}

/* —— About —— */
.section-about {
  padding: 5rem 0;
  background: var(--gray-100);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  margin: 0 0 1.25rem;
  line-height: 1.2;
  color: var(--gray-900);
}

.lang-ar .section-heading {
  font-family: var(--font-ar);
  font-weight: 700;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--gray-600);
}

.text-link {
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.about-frame {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.12);
}

.about-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* —— Developments grid —— */
.section-dev {
  padding: 5rem 0 4rem;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-lead {
  margin: 0;
  color: var(--gray-600);
  font-size: 1.05rem;
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.35rem;
}

.dev-card {
  grid-column: span 6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.dev-card:first-child {
  grid-column: span 7;
}

.dev-card:nth-child(2) {
  grid-column: span 5;
}

.dev-card:nth-child(n + 3) {
  grid-column: span 6;
}

@media (max-width: 900px) {
  .dev-card,
  .dev-card:first-child,
  .dev-card:nth-child(2),
  .dev-card:nth-child(n + 3) {
    grid-column: 1 / -1;
  }
}

.dev-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.dev-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.dev-card__link:hover {
  text-decoration: none;
  color: inherit;
}

.dev-card__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--gray-100);
}

.dev-card:first-child .dev-card__media {
  aspect-ratio: 16 / 9;
}

.dev-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.dev-card:hover .dev-card__media img {
  transform: scale(1.04);
}

.dev-card__body {
  padding: 1.5rem 1.65rem 1.75rem;
}

.dev-card__region {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.dev-card__body h3 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.lang-en .dev-card__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
}

.dev-card__body p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.dev-card__more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gray-900);
  letter-spacing: 0.04em;
}

/* —— CTA —— */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--gray-100) 0%, #e5e0d8 100%);
}

.cta-inner {
  text-align: center;
  max-width: 40rem;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.85rem;
  margin: 0 0 0.75rem;
}

.lang-ar .cta-inner h2 {
  font-family: var(--font-ar);
  font-weight: 700;
}

.cta-inner p {
  margin: 0 0 1.5rem;
  color: var(--gray-600);
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* —— Footer —— */
.site-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 0;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  display: block;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-logo-img {
  display: block;
  width: 145px;
  height: auto;
  margin-bottom: 0.85rem;
  filter: brightness(0) invert(1);
}

.footer-desc {
  margin: 0;
  line-height: 1.7;
  opacity: 0.75;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact-block strong {
  display: block;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.footer-contact-block p {
  margin: 0 0 0.4rem;
}

.footer-contact-block a {
  color: var(--gold-light);
}

.footer-loc {
  opacity: 0.8;
}

.footer-note {
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.55;
  line-height: 1.6;
}

.footer-note a {
  color: rgba(255, 255, 255, 0.75);
}

/* —— Project detail —— */
.project-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 3rem;
  margin-top: 0;
  background: var(--gray-900) var(--ph-img) center / cover no-repeat;
}

.project-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.9), rgba(12, 12, 12, 0.35));
}

.project-hero__text {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.75;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.bc-sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.project-hero__region {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.project-hero__lead {
  max-width: 38rem;
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

.project-body {
  padding: 3rem 0 4rem;
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 920px) {
  .project-layout {
    grid-template-columns: 1fr;
  }
}

.subheading {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.lang-en .subheading {
  font-family: var(--font-display);
  font-weight: 600;
}

.project-section {
  margin-bottom: 2.5rem;
}

.project-overview {
  margin: 0 0 1.35rem;
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 42rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

@media (max-width: 820px) {
  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .fact-grid {
    grid-template-columns: 1fr;
  }
}

.fact-card {
  min-height: 92px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  font-weight: 700;
  color: var(--gray-900);
}

.image-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.mosaic-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.08);
}

.mosaic-item--large {
  grid-column: 1 / -1;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.mosaic-item--large img {
  aspect-ratio: 16 / 8.5;
}

@media (max-width: 680px) {
  .image-mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic-item img,
  .mosaic-item--large img {
    aspect-ratio: 4 / 3;
  }
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .split-section {
    grid-template-columns: 1fr;
  }
}

.clean-list {
  margin: 0;
  padding: 1.2rem 1.35rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.clean-list li {
  position: relative;
  padding-inline-start: 1.1rem;
  margin-bottom: 0.65rem;
  color: var(--gray-600);
}

.clean-list li:last-child {
  margin-bottom: 0;
}

.clean-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--gold);
}

.payment-box {
  min-height: 100px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 1.2rem 1.35rem;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--gray-100), #ebe5dc);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-weight: 700;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  background: var(--gray-100);
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--white);
}

.gallery-item--wide img {
  object-fit: contain;
}

.highlight-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlight-list li {
  position: relative;
  padding-inline-start: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--gray-600);
}

.highlight-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.project-aside {
  position: sticky;
  top: 6rem;
  padding: 1.5rem;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.project-aside h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.aside-muted {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.aside-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pdf-dl {
  display: block;
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
}

.not-found {
  padding: 6rem 0 4rem;
}

/* —— Floating —— */
.floating-contact {
  position: fixed;
  z-index: 90;
  inset-inline-end: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.floating-contact a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.floating-contact a:hover {
  transform: scale(1.05);
  text-decoration: none;
}

.fc-phone {
  background: var(--gold);
}

.fc-wa {
  background: var(--wa);
}

.floating-contact svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 640px) {
  .floating-contact {
    top: auto;
    bottom: 1rem;
    transform: none;
    flex-direction: row;
    inset-inline-end: 0.75rem;
  }

  .header-inner {
    justify-content: center;
  }

  .brand {
    align-items: center;
  }

  .brand-logo {
    width: 120px;
  }

  .hero-full {
    padding-top: 7rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Main offset for fixed header */
main {
  padding-top: 0;
}
