/* Mawtn Al Dhahab — Coming Soon redesign
 * Design source: Figma file 1zORJAFwYlfk7dVChNutqu */

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

:root {
  --bg-deep: #0d0a07;
  --gold: #a07851;
  --gold-soft: #c8a47a;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --border-soft: rgba(255, 255, 255, 0.4);
  --border-softer: rgba(255, 255, 255, 0.3);
  --hero-max: 920px;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Inter", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-deep);
}

body {
  background-image:
    radial-gradient(70% 50% at 18% 18%, rgba(214, 160, 96, 0.55) 0%, rgba(13, 10, 7, 0) 65%),
    url("../images/hero/bg-composite.png");
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  background-position: top left, center;
  background-attachment: fixed, fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.55) 100%);
  z-index: -1;
  pointer-events: none;
}

html[dir="rtl"] body {
  font-family: "Cairo", "IBM Plex Sans Arabic", "Almarai", system-ui, sans-serif;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Page shell ---------- */
.r-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- Top bar ---------- */
.r-topbar {
  display: flex;
  justify-content: flex-end;
  padding: 28px 48px 0;
}

html[dir="rtl"] .r-topbar { justify-content: flex-start; }

#lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font: 400 16px/1.4 "Inter", system-ui, sans-serif;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.02em;
}

#lang-toggle:hover, #lang-toggle:focus-visible { color: var(--gold-soft); outline: none; }

#lang-toggle .r-globe {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4b78c 0%, #8a6a45 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  flex: 0 0 14px;
}

#lang-toggle .r-caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-bottom: 3px;
  opacity: 0.7;
}

/* ---------- Hero ---------- */
.r-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 24px;
  text-align: center;
}

.r-hero > * { width: 100%; max-width: var(--hero-max); }
.r-hero img.r-logo { width: 220px; }

.r-logo {
  width: 220px;
  max-width: 60vw;
  height: auto;
  margin: 0 auto 36px;
}

.r-headline {
  margin: 0 0 24px;
  font-family: "Bai Jamjuree", "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

html[dir="rtl"] .r-headline {
  font-family: "Aref Ruqaa", "Reem Kufi", "Cairo", serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}

.r-body {
  margin: 0 auto 40px;
  max-width: 808px;
  font: 400 18px/1.66 "Inter", system-ui, sans-serif;
  color: var(--text);
  opacity: 0.96;
}

html[dir="rtl"] .r-body {
  font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

/* ---------- Form ---------- */
.r-form-wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.r-form {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.r-form__field {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid var(--border-soft);
  background: rgba(0, 0, 0, 0.18);
  min-height: 52px;
}

.r-form__field input {
  flex: 1;
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  margin: 0;
  padding: 0;
  color: var(--text);
  font: 400 16px/1.5 "Inter", system-ui, sans-serif;
  letter-spacing: 0.01em;
  height: auto;
}

html[dir="rtl"] .r-form__field input {
  font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
}

.r-form__field input::placeholder {
  color: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.r-form__btn {
  flex: 0 0 auto;
  display: inline-block;
  width: auto;
  padding: 12px 28px;
  min-width: 138px;
  min-height: 52px;
  border: 0.8px solid var(--border-softer);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: 600 16px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: none;
  transition: background 0.18s ease, border-color 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.r-form__btn:hover, .r-form__btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

.r-form__messages {
  min-height: 28px;
  margin-top: 14px;
  font: 400 14px/1.5 "Inter", system-ui, sans-serif;
  text-align: center;
}

.r-form__messages > div {
  display: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

.r-form__messages .r-form__success { color: var(--text-muted); }
.r-form__messages .r-form__error { color: #ffb4a8; }
.r-form__messages.is-success .r-form__success { display: block; }
.r-form__messages.is-error .r-form__error { display: block; }

/* ---------- Partner strip ---------- */
.r-partners {
  width: 100%;
  padding: 64px 0 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  overflow: hidden;
}

.r-partners__track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: r-marquee 38s linear infinite;
}

@keyframes r-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

html[dir="rtl"] .r-partners__track { animation-direction: reverse; }

.r-partners__item {
  flex: 0 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.r-partners__item:hover { opacity: 1; }

.r-partners__item img {
  height: 100%;
  width: auto;
  max-width: 220px;
  filter: brightness(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .r-partners { mask-image: none; -webkit-mask-image: none; }
  .r-partners__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    max-width: 100%;
    justify-content: center;
    gap: 32px 48px;
    padding: 0 24px;
  }
}

/* ---------- Footer ---------- */
.r-footer {
  width: 100%;
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.r-footer__links {
  display: flex;
  gap: 24px;
  font: 400 14px/1.2 "Inter", "Work Sans", system-ui, sans-serif;
}

.r-footer__links a { color: var(--text); opacity: 0.92; transition: opacity 0.2s ease; }
.r-footer__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.r-footer__social { display: flex; gap: 18px; align-items: center; }

.r-footer__social a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.r-footer__social a:hover { opacity: 1; transform: translateY(-1px); }
.r-footer__social svg { width: 20px; height: 20px; fill: currentColor; }

.r-footer__copyright {
  font: 400 13px/1.4 "Inter", "Cairo", system-ui, sans-serif;
  opacity: 0.6;
  text-align: center;
}

html[dir="rtl"] .r-footer__copyright {
  font-family: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .r-topbar { padding: 20px 24px 0; }
  .r-hero { padding: 24px 20px 16px; }
  .r-logo { width: 180px; margin-bottom: 28px; }
  .r-headline { font-size: 26px; margin-bottom: 18px; }
  html[dir="rtl"] .r-headline { font-size: 40px; }
  .r-body { font-size: 16px; margin-bottom: 28px; line-height: 1.6; }
  html[dir="rtl"] .r-body { font-size: 14px; }

  .r-form { gap: 12px; }
  .r-form__field { padding: 10px 16px; min-height: 48px; }
  .r-form__field input { font-size: 14px; }
  .r-form__btn { padding: 10px 16px; min-width: 110px; min-height: 48px; font-size: 14px; }

  .r-partners { padding: 40px 0 16px; }
  .r-partners__track { gap: 40px; animation-duration: 32s; }
  .r-partners__item { height: 40px; }
  .r-partners__item img { max-width: 140px; }

  .r-footer { gap: 14px; padding: 18px 20px 20px; }
  .r-footer__links { font-size: 13px; gap: 18px; }
  .r-footer__copyright { font-size: 12px; }
}

@media (max-width: 600px) {
  .r-form { flex-direction: column !important; gap: 10px; }
  .r-form__btn { width: 100%; min-width: 0; }
  .r-form__field { width: 100%; }
}
