/* AL BAZ Properties — Coming Soon
   Brand: Gold #A38968 · Cream #E8E1D4 · Olive #827B52 · Dark brown #3A332A · White #FFFFFF */

@font-face {
  font-family: "GE SS Two";
  src: url("/assets/fonts/GESSTwo-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GE SS Two";
  src: url("/assets/fonts/GESSTwo-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GE SS Two";
  src: url("/assets/fonts/GESSTwo-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/Lato-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/Lato-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/Lato-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #A38968;
  --cream: #E8E1D4;
  --olive: #827B52;
  --brown: #3A332A;
  --white: #FFFFFF;

  --font-ar: "GE SS Two", "Almarai", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Lato", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  overflow-x: hidden;
  background: var(--brown);
  color: var(--cream);
  font-family: var(--font-ar);
  min-height: 100vh;
  min-height: 100svh;
}

html[dir="ltr"] body {
  font-family: var(--font-en);
}

/* ---------- Background video ---------- */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: -3;
  transform: scale(1);
}

@media (prefers-reduced-motion: no-preference) {
  .bg-video.playing {
    animation: slow-zoom 22s ease-in-out infinite alternate;
  }
}

@keyframes slow-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    to bottom,
    rgba(58, 51, 42, 0.45) 0%,
    rgba(58, 51, 42, 0.5) 55%,
    rgba(58, 51, 42, 0.58) 100%
  );
}

.wing-line {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 22vh;
  z-index: -1;
  pointer-events: none;
}

/* ---------- Header / language switch ---------- */

.site-header {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding: clamp(16px, 3vw, 32px);
  z-index: 10;
}

html[dir="rtl"] .site-header {
  justify-content: flex-start;
}
html[dir="ltr"] .site-header {
  justify-content: flex-end;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--cream);
  opacity: 0.6;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: opacity 200ms ease, border-color 200ms ease;
}

.lang-btn:hover {
  opacity: 0.9;
}

.lang-btn[aria-pressed="true"] {
  opacity: 1;
  border-bottom-color: var(--gold);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.lang-sep {
  opacity: 0.35;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px 140px;
  gap: 0;
}

.logo {
  width: clamp(120px, 14vw, 160px);
  height: auto;
  opacity: 0;
}

.rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 28px 0 22px;
  opacity: 0;
}

.eyebrow {
  font-family: var(--font-ar);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  opacity: 0;
}

html[dir="ltr"] .eyebrow {
  font-family: var(--font-en);
  font-weight: 700;
}

.headline {
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.3;
  max-width: 18ch;
  color: var(--white);
  margin-bottom: 20px;
  opacity: 0;
}

html[dir="ltr"] .headline {
  font-family: var(--font-en);
  font-weight: 700;
  max-width: 16ch;
}

.supporting {
  font-family: var(--font-ar);
  font-weight: 300;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  max-width: 46ch;
  color: var(--cream);
  opacity: 0.92;
  margin-bottom: 40px;
  opacity: 0;
}

html[dir="ltr"] .supporting {
  font-family: var(--font-en);
  font-weight: 400;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
}

.btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--brown);
  padding: 15px 34px;
  min-height: 48px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: #8f7657;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.btn-secondary {
  color: var(--cream);
  border-bottom: 1px solid rgba(232, 225, 212, 0.45);
  padding: 4px 2px;
  font-weight: 400;
}

.btn-secondary:hover {
  color: var(--white);
  border-bottom-color: var(--cream);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* ---------- Footer ---------- */

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 16px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--cream);
  opacity: 0.7;
  text-align: center;
}

.footer-dot {
  opacity: 0.5;
}

/* ---------- Load-in animation ---------- */

@media (prefers-reduced-motion: no-preference) {
  .logo {
    animation: fade-in 0.8s ease forwards;
  }
  .rule {
    animation: fade-up 0.6s ease forwards;
    animation-delay: 0.65s;
  }
  .eyebrow {
    animation: fade-up 0.6s ease forwards;
    animation-delay: 0.78s;
  }
  .headline {
    animation: fade-up 0.6s ease forwards;
    animation-delay: 0.9s;
  }
  .supporting {
    animation: fade-up 0.6s ease forwards;
    animation-delay: 1.02s;
  }
  .cta-row {
    animation: fade-up 0.6s ease forwards;
    animation-delay: 1.14s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .rule, .eyebrow, .headline, .supporting, .cta-row {
    opacity: 1;
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Text swap fade, triggered via JS class */
.i18n-fade {
  transition: opacity 260ms ease;
}
.i18n-fade.fading {
  opacity: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .hero {
    padding: 88px 20px 128px;
    justify-content: center;
  }

  .cta-row {
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }

  .btn-primary {
    width: 100%;
    max-width: 360px;
  }

  .site-footer {
    font-size: 11px;
    gap: 8px;
  }
}

@media (max-height: 640px) and (orientation: landscape) {
  .hero {
    padding-top: 72px;
    padding-bottom: 96px;
  }
  .logo {
    width: 96px;
  }
  .rule {
    margin: 16px 0 12px;
  }
  .supporting {
    margin-bottom: 24px;
  }
}
