/* ===========================================================
   Homyz - Real Estate / Hotel Landing Page
   Brown theme (derived from #6a5745) · AR + EN · RTL · Dark mode
   =========================================================== */

:root {
  --secondary: rgba(255, 255, 255, 0.78);
  --black: #131110;

  /* --- Brown palette (derived from #6a5745) --- */
  --blue-gradient: linear-gradient(97.05deg, #8a7259 3.76%, #4a3d30 100%);
  --orange-gradient: linear-gradient(270deg, #ffb978 0%, #ff922d 100%);
  --blue: #6a5745;
  --blue-deep: #4a3d30;
  --lightBlue: #efe7dd;
  --shadow: 0px 23px 21px -8px rgba(106, 87, 69, 0.25);

  /* --- Theme tokens (light) --- */
  --page-bg: #ffffff;
  --section-alt: #faf8f5;
  --card-bg: #ffffff;
  --heading: #c3a17b;
  --muted: #8c8b8b;
  --soft-border: rgba(128, 128, 128, 0.16);
  --input-bg: #ffffff;
  --menu-bg: #ffffff;
}

/* --- Dark mode tokens --- */
[data-theme="dark"] {
  --black: #100d0a;
  --page-bg: #17130f;
  --section-alt: #1e1813;
  --card-bg: #221b15;
  --heading: #f3ead9;
  --muted: #b3a488;
  --soft-border: rgba(201, 169, 106, 0.20);
  --input-bg: #221b15;
  --menu-bg: #221b15;
  --lightBlue: #33291f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}
/* Arabic font */
html[lang="ar"] * { font-family: "Cairo", "Poppins", sans-serif; }

body { background: var(--page-bg); transition: background 0.4s ease, color 0.4s ease; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.paddings { padding: 1.5rem; }
.innerWidth { width: 100%; }

.flexCenter { display: flex; row-gap: 2rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.flexStart { display: flex; justify-content: flex-start; align-items: center; }
.flexEnd { display: flex; justify-content: center; align-items: center; }
.flexColCenter { display: flex; justify-content: center; align-items: center; flex-direction: column; }
.flexColStart { display: flex; max-width: 500px; flex-direction: column; justify-content: center; align-items: flex-start; }
.flexColEnd { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; }

/* ---------- Typography / buttons ---------- */
.primaryText { color: var(--heading); font-weight: 700; font-size: 2rem; }
.secondaryText { color: var(--muted); font-size: 1rem; font-weight: 500; }
.orangeText { color: #CE985C; font-size: 1.5rem; font-weight: 600; }

.button {
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  color: #fff;
  background: var(--blue-gradient);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  transition: all 0.3s ease-in;
}
.button:hover { cursor: pointer; transform: scale(1.1); }

.brand { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.5px; gap: 0.6rem; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }

@media (min-width: 1536px) { .innerWidth { max-width: 1280px; margin: auto; } }
@media (min-width: 640px) { .paddings { padding: 4rem; } }
@media (min-width: 768px) { .paddings { padding: 2rem; } }
@media (max-width: 640px) {
  .primaryText { font-size: 1.5rem; }
  .orangeText { font-size: 1.2rem; }
}

/* ---------- App wrapper ---------- */
.App { position: relative; overflow-x: clip; }
.App > :nth-child(1) { background: var(--black); position: relative; }

.white-gradient {
  position: absolute;
  width: 16rem;
  height: 16rem;
background: rgba(201, 169, 106, 0.22);
  filter: blur(100px);
  border-radius: 100px;
}
/* mirror copy at the opposite corner (bottom + inline-end);
   logical offsets flip automatically: bottom-left in AR, bottom-right in EN */
.white-gradient-2 {
  inset-block-start: auto;
  inset-inline-start: auto;
  inset-block-end: 0;
  inset-inline-end: 0;
}

/* ---------- Header ---------- */
.h-wrapper { color: #fff; z-index: 99; }
.h-container { justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; color: var(--secondary); }
.h-right { gap: 1.4rem; }
.h-menu { gap: 2rem; }
.h-menu > *:hover { cursor: pointer; }

/* toggle buttons */
.h-toggles { gap: 0.6rem; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 40px; padding: 0 0.8rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pill-btn.icon-only { width: 40px; padding: 0; justify-content: center; }
.pill-btn:hover { background: var(--blue-gradient); border-color: transparent;     transform: scale(1.1); }
.pill-btn svg { display: block; }
.pill-btn .lang-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; }
.pill-btn .ic-sun { display: none; }
[data-theme="dark"] .pill-btn .ic-moon { display: none; }
[data-theme="dark"] .pill-btn .ic-sun { display: block; }

.menu-icon { display: none; color: #fff; cursor: pointer; }

@media (max-width: 768px) {
  .menu-icon { display: block; }
  .h-menu {
    z-index: 99;
    color: var(--heading);
    position: absolute;
    top: 4.5rem;
    right: 2rem;
    background: var(--menu-bg);
    flex-direction: column;
    font-weight: 500;
    gap: 2rem;
    padding: 2.5rem;
    border-radius: 10px;
    align-items: flex-start;
    box-shadow: var(--shadow);
    transition: all 0.3s ease-in;
    display: none;
  }
  html[dir="rtl"] .h-menu { right: auto; left: 2rem; }
  .h-menu.active { display: flex; }
}

/* ---------- Hero ---------- */
.hero-wrapper { color: #fff; position: relative; padding-bottom: 2rem; z-index: 1; }
.hero-container { justify-content: space-around; align-items: center; }
.hero-left { gap: 3rem; }
.hero-title { position: relative; z-index: 1; }

/* entrance animations — run on every page load / refresh */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(45px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(45px) scale(0.92); }
  to   { opacity: 1; transform: none; }
}
/* stagger the text blocks inside the left column */
.hero-left > * { animation: heroRise 0.85s cubic-bezier(0.22, 0.9, 0.24, 1) both; }
.hero-left > :nth-child(1) { animation-delay: 0.15s; }
.hero-left > :nth-child(2) { animation-delay: 0.32s; }
.hero-left > :nth-child(3) { animation-delay: 0.48s; }
.hero-right { animation: heroReveal 1s cubic-bezier(0.22, 0.9, 0.24, 1) 0.2s both; }

@media (prefers-reduced-motion: reduce) {
  .hero-left > *, .hero-right { animation: none; }
}
.hero-title > h1 { font-weight: 600; font-size: 3.8rem; line-height: 4rem; }
.hero-des-strong { color: #fff; font-weight: 700; font-size: 1.05rem; margin-top: 0.4rem; }

.stats { width: 100%; justify-content: space-between; }
.stat > :nth-child(1) { font-size: 2rem; }
.stat > :nth-child(1) > :last-child { color: #CE985C; }

.image-container {
  width: 30rem; height: 35rem;
  overflow: hidden;
  border-radius: 15rem 15rem 0 0;
  border: 8px solid rgba(255, 255, 255, 0.12);
}
.image-container > img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.3); will-change: transform; transition: transform 0.12s linear; }

/* graceful fallback when an image file is missing */
.img-fallback { background: linear-gradient(135deg, #8a7259 0%, #4a3d30 100%); }
.image-container.no-img { background: linear-gradient(135deg, #8a7259 0%, #4a3d30 100%); }
.image-container.no-img > img { display: none; }

@media (max-width: 640px) {
  .hero-container { margin-top: 2rem; }
  .hero-title > h1 { font-size: 2.5rem; line-height: 3rem; }
  .image-container { width: 95%; height: 25rem; }
  .stats { justify-content: center; gap: 1.5rem; }
  .hero-right { width: 100%; }
  .stat > :nth-child(1) { font-size: 1.5rem; }
  .stat > :nth-child(2) { font-size: 0.8rem; }
}

/* ---------- Residencies ---------- */
.r-wrapper { background: var(--page-bg); }
.r-container { overflow: hidden; }
.r-head { margin-bottom: 2rem; }
.r-slider { overflow: hidden; width: 100%; }
.r-track { display: flex; gap: 2rem; transition: transform 0.4s ease-in-out; }
.r-card {
  display: flex; flex-direction: column;
  gap: 0.6rem; padding: 1rem; border-radius: 10px;
  max-width: 15rem; flex-shrink: 0;
  transition: all 0.3s ease-in;
}
.r-card > img { width: 100%; max-width: 15rem; height: 10rem; object-fit: cover; border-radius: 10px; }
.r-card > :nth-child(2) { font-size: 1.2rem; font-weight: 600; }
.r-card > :nth-child(3) { font-size: 1.5rem; }
.r-card > :nth-child(4) { font-size: 0.7rem; width: 15rem; color: var(--muted); }
.r-card > :nth-child(3) span:first-child { color: #CE985C; }
.r-buttons { gap: 1rem; margin-top: 2rem; justify-content: flex-start; }
.r-buttons button { font-size: 1.2rem; padding: 0.2rem 0.8rem; color: var(--blue); border: none; border-radius: 5px; background-color: white; cursor: pointer; }
.r-buttons > :nth-child(1) { background-color: var(--lightBlue); }

@media (max-width: 640px) {
  .r-head { align-items: center; }
  .r-card { max-width: 100%; }
}

/* ---------- Value / Accordion (FAQ) ---------- */
.v-wrapper { background: var(--page-bg); }
.v-container > div { flex: 1; }
.v-container .image-container { border: 8px solid rgb(232 232 232 / 93%); }
.v-right { gap: 0.5rem; }

.accordion { margin-top: 2rem; border: none; width: 100%; }
.accordion-item {
  background: var(--card-bg);
  border: 0.8px solid var(--soft-border);
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.accordion-header {
  background: var(--card-bg);
  padding: 1rem;
  width: 100%;
  justify-content: space-between;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.accordion-header .flexCenter { gap: 1rem; }
.accordion-header .primaryText { font-size: 1.2rem; }
.icon { padding: 10px; background: var(--lightBlue); border-radius: 5px; display: flex; }
.icon svg { fill: var(--blue); width: 22px; height: 22px; }
[data-theme="dark"] .icon svg { fill: #d9bf90; }
.accordion-panel {
  padding: 0 20px 20px 20px;
  color: var(--muted);
  font-size: 1rem;
  display: none;
  font-weight: 500;
  animation: fadein 0.35s ease-in;
}
.accordion-item.open .accordion-panel { display: block; }
.chevron { transition: transform 0.3s ease; color: var(--heading); font-weight: 700; }
.accordion-item.open .chevron { transform: rotate(180deg); }
@keyframes fadein { 0% { opacity: 0; } 100% { opacity: 1; } }

/* "view all questions" button (replaces the last FAQ item) */
.faq-all-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  background: var(--blue-gradient);
  color: #fff; font-weight: 600; font-size: 0.95rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.faq-all-btn svg { transition: transform 0.3s ease; }
html[dir="rtl"] .faq-all-btn svg { transform: scaleX(-1); }
.faq-all-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.faq-all-btn:hover svg { transform: translateX(4px); }
html[dir="rtl"] .faq-all-btn:hover svg { transform: scaleX(-1) translateX(4px); }

@media (max-width: 1024px) { .v-container { flex-direction: column; } }
@media (max-width: 768px) { .accordion-header .primaryText { font-size: 1rem; } }

/* ---------- Contact (About) ---------- */
/* row-reverse => image (c-right) sits at the visual start:
   left in English (LTR), right in Arabic (RTL); text (c-left) opposite */
.c-container { justify-content: space-between; flex-direction: row-reverse; }
.c-container > div { flex: 1; }
.c-right { width: 100%; }
.c-left { gap: 0.5rem; }

.contactModes { margin-top: 2rem; gap: 1rem; }
.contactModes .row { gap: 1.5rem; }
.mode {
  width: 16rem;
  padding: 1rem;
  border: 0.8px solid var(--soft-border);
  border-radius: 5px;
  gap: 1rem;
  background: var(--card-bg);
  transition: all 0.3s ease-in;
}
.mode .button {
  width: 100%;
  background: var(--lightBlue);
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem;
  border-radius: 4px;
  justify-content: center;
}
[data-theme="dark"] .mode .button { color: #d9bf90; }
.mode > :nth-child(1) { width: 100%; gap: 1.6rem; }
.mode .detail .primaryText { font-size: 1.1rem; font-weight: 600; }
.mode:hover { scale: 1.1; box-shadow: var(--shadow); }
.mode .button:hover { background: var(--blue-gradient); color: white; scale: 0.8; }

@media (max-width: 1024px) {
  .c-container { flex-direction: column; }
  .c-right { justify-content: center; }
  .contactModes { width: 100%; }
  .row { flex-direction: column; width: 100%; }
  .mode { width: 100%; }
}

/* ===========================================================
   Services  (custom section — simple, animated)
   =========================================================== */
.s-wrapper { background: var(--section-alt); }
.s-container { gap: 0.6rem; }
.s-head { gap: 0.5rem; text-align: center; margin-bottom: 1rem; }
.s-head .secondaryText { max-width: 34rem; }

.s-grid {
  margin-top: 2.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.s-card {
  position: relative;
  background: var(--card-bg);
  border: 0.8px solid var(--soft-border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.s-card::before {
  content: "";
  position: absolute;
  top: 0; inset-inline-start: 0;
  height: 4px; width: 0;
  background: var(--blue-gradient);
  transition: width 0.4s ease;
}
.s-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: transparent; }
.s-card:hover::before { width: 100%; }

.s-icon {
  width: 3.6rem; height: 3.6rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--lightBlue);
  margin-bottom: 1.2rem;
  transition: transform 0.4s ease, background 0.4s ease;
}
.s-icon svg { width: 28px; height: 28px; fill: var(--blue); transition: fill 0.4s ease; }
[data-theme="dark"] .s-icon svg { fill: #d9bf90; }
.s-card:hover .s-icon { background: var(--blue-gradient); transform: rotate(-8deg) scale(1.08); }
.s-card:hover .s-icon svg { fill: #fff; }

.s-card h3 { font-size: 1.15rem; color: var(--heading); margin-bottom: 0.5rem; font-weight: 600; }
.s-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; font-weight: 500; }

/* scroll-reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.reveal-in { opacity: 1; transform: none; }

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

/* ---------- Footer ---------- */
.f-container { justify-content: space-between; }
.f-left { gap: 1rem; }
.f-menu { gap: 1.5rem; margin-top: 1.5rem; font-weight: 500; }
@media (max-width: 768px) {
  .f-container { justify-content: center; }
  .f-container > div { align-items: center !important; text-align: center; }
}

/* ===========================================================
   Glimpses — coverflow (uses the site's global tokens)
   =========================================================== */
.mrai-section {
  /* accent pulled from the global palette */
  --mg: var(--blue);
  --mg-grad: var(--blue-gradient);
  position: relative;
  width: 100%;
  padding: 96px 0 112px;
  direction: rtl;
  overflow: hidden;
  background:
    radial-gradient(1100px 460px at 50% -5%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 62%),
    var(--section-alt);
}
.mrai-bg-pattern {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--blue) 12%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 75%);
}
.mrai-content {
  position: relative; z-index: 3;
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; gap: 44px;
}
.mrai-header { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.mrai-title {
  font-family: "Cairo", sans-serif;
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 800; color: var(--heading); line-height: 1.2;
  position: relative; padding-bottom: 8px;
}
/* view all — centered pill button at the bottom of the section */
.mrai-viewall-wrap { display: flex; justify-content: center; margin-top: 8px; }
.mrai-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 8px;
    background: var(--blue-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.mrai-view-all:hover { transform: translateY(-3px); filter: brightness(1.06); }
.mrai-view-all-arrow { transition: transform 0.3s ease; }
html[dir="rtl"] .mrai-view-all-arrow { transform: scaleX(-1); }
html[dir="ltr"] .mrai-view-all:hover .mrai-view-all-arrow { transform: translateX(4px); }
html[dir="rtl"] .mrai-view-all:hover .mrai-view-all-arrow { transform: scaleX(-1) translateX(4px); }

/* tabs */
.mrai-tabs {
  display: flex; align-items: center; justify-content: end; gap: 12px;
  padding-bottom: 24px;
}
.mrai-tab {
  padding: 8px 24px; border-radius: 4px;
  background: var(--card-bg);
  border: 1px solid var(--soft-border);
  color: var(--muted); font-family: "Cairo", sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.mrai-tab:hover { background: var(--lightBlue); color: var(--heading); }
.mrai-tab.active { background: var(--lightBlue); border-color: var(--blue); color: var(--blue); }

/* stage */
.mrai-stage { position: relative; height: 470px; }
.mrai-stage.mrai-mode-gallery .mrai-play { display: none; }
.mrai-stage::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 760px; height: 440px; max-width: 90%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--blue) 18%, transparent) 0%, transparent 70%);
  z-index: 0; pointer-events: none;
}
.mrai-track { position: absolute; inset: 0; }

.mrai-card {
  position: absolute; top: 50%; left: 50%;
  width: min(640px, 66vw); aspect-ratio: 16 / 10;
  border-radius: 22px; overflow: hidden; cursor: pointer;
  background: var(--card-bg);
  transform: translate(-50%, -50%) scale(0.55);
  opacity: 0; z-index: 1; pointer-events: none;
  transition: transform 0.85s cubic-bezier(0.22, 0.9, 0.24, 1), opacity 0.6s ease, filter 0.7s ease, box-shadow 0.7s ease;
}
.mrai-card[data-pos="0"] {
  transform: translate(-50%, -50%) scale(1); opacity: 1; z-index: 4; pointer-events: auto;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45), 0 0 0 2px color-mix(in srgb, var(--blue) 45%, transparent);
}
.mrai-card[data-pos="1"], .mrai-card[data-pos="-1"] {
  opacity: 1; z-index: 3; pointer-events: auto;
  filter: grayscale(1) brightness(0.6); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}
.mrai-card[data-pos="1"] { transform: translate(-50%, -50%) translateX(-46%) translateY(12px) scale(0.78) rotate(-5deg); }
.mrai-card[data-pos="-1"] { transform: translate(-50%, -50%) translateX(46%) translateY(12px) scale(0.78) rotate(5deg); }
.mrai-card[data-pos="1"]:hover, .mrai-card[data-pos="-1"]:hover { filter: grayscale(0.55) brightness(0.78); }
.mrai-card[data-pos="2"], .mrai-card[data-pos="-2"] { opacity: 0; z-index: 2; filter: grayscale(1) brightness(0.5); }
.mrai-card[data-pos="2"] { transform: translate(-50%, -50%) translateX(-92%) scale(0.62) rotate(-9deg); }
.mrai-card[data-pos="-2"] { transform: translate(-50%, -50%) translateX(92%) scale(0.62) rotate(9deg); }

.mrai-card-inner { position: absolute; inset: 0; }
.mrai-card[data-pos="0"] .mrai-card-inner { animation: mraiPop 0.85s cubic-bezier(0.22, 0.9, 0.24, 1); }
@keyframes mraiPop { 0% { transform: scale(0.94); } 62% { transform: scale(1.025); } 100% { transform: scale(1); } }

.mrai-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.mrai-card-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 10, 10, 0.94) 0%, rgba(8, 10, 10, 0.7) 42%, rgba(8, 10, 10, 0) 100%);
}
.mrai-card-title {
  transition: opacity 0.5s ease;
  position: absolute; right: 0; left: 0; bottom: 0; z-index: 3;
  padding: 0 26px 22px; color: #f2efe6; font-family: "Cairo", sans-serif;
  font-size: 19px; font-weight: 700; line-height: 1.6; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}
.mrai-card-title::before {
  content: ""; display: block; width: 42px; height: 3px; margin-bottom: 12px; border-radius: 3px;
  background: var(--mg-grad);
}

/* play icon */
.mrai-play {
  position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; z-index: 4; display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--mg-grad);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mrai-play::before, .mrai-play::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--blue) 60%, transparent); opacity: 0;
}
.mrai-card[data-pos="0"] .mrai-play { animation: mraiBeat 2.6s ease-in-out infinite; }
.mrai-card[data-pos="0"] .mrai-play::before { animation: mraiRing 2.6s ease-out infinite; }
.mrai-card[data-pos="0"] .mrai-play::after { animation: mraiRing 2.6s ease-out infinite 1.3s; }
.mrai-play:hover { transform: scale(1.08); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.6); }
@keyframes mraiRing { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.15); opacity: 0; } }
@keyframes mraiBeat { 0%, 100% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); } 50% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 10px color-mix(in srgb, var(--blue) 14%, transparent); } }

/* arrows */
.mrai-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--heading); background: var(--card-bg); border: 1px solid var(--soft-border);
  box-shadow: var(--shadow);
  cursor: pointer; transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.mrai-arrow-prev { right: 0; }
.mrai-arrow-next { left: 0; }
.mrai-arrow:hover {
  color: #fff; background: var(--mg-grad);
  border-color: transparent; transform: translateY(-50%) scale(1.07);
}
.mrai-arrow:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (max-width: 1150px) {
  .mrai-stage { height: 400px; }
  .mrai-card { width: min(560px, 70vw); }
  .mrai-card-title { font-size: 17px; padding: 0 20px 18px; }
}
@media (max-width: 768px) {
  .mrai-section { padding: 76px 0 90px; }
  .mrai-tabs { gap: 8px; padding-bottom: 18px; }
  .mrai-tab { padding: 7px 18px; font-size: 13px; }
  .mrai-stage { height: 330px; }
  .mrai-card { width: min(460px, 70vw); border-radius: 18px; }
  .mrai-card[data-pos="1"] { transform: translate(-50%, -50%) translateX(-42%) translateY(8px) scale(0.72) rotate(-5deg); }
  .mrai-card[data-pos="-1"] { transform: translate(-50%, -50%) translateX(42%) translateY(8px) scale(0.72) rotate(5deg); }
  .mrai-card[data-pos="1"] .mrai-card-title, .mrai-card[data-pos="-1"] .mrai-card-title { opacity: 0; }
  .mrai-play { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
  .mrai-arrow { width: 44px; height: 44px; }
}
@media (max-width: 480px) {
  .mrai-content { gap: 30px; }
  .mrai-stage { height: 250px; }
  .mrai-card { width: min(360px, 78vw); border-radius: 14px; }
  .mrai-card[data-pos="1"] { transform: translate(-50%, -50%) translateX(-40%) translateY(6px) scale(0.66) rotate(-5deg); }
  .mrai-card[data-pos="-1"] { transform: translate(-50%, -50%) translateX(40%) translateY(6px) scale(0.66) rotate(5deg); }
  .mrai-card-title { font-size: 14.5px; padding: 0 15px 13px; }
  .mrai-card-title::before { width: 30px; height: 2px; margin-bottom: 8px; }
  .mrai-play { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
  .mrai-arrow { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .mrai-card { transition: opacity 0.3s ease; }
  .mrai-card[data-pos="0"] .mrai-card-inner,
  .mrai-card[data-pos="0"] .mrai-play,
  .mrai-card[data-pos="0"] .mrai-play::before,
  .mrai-card[data-pos="0"] .mrai-play::after { animation: none; }
}

/* ===========================================================
   WhatsApp CTA banner
   =========================================================== */
.wa-wrapper { background: var(--page-bg); }
.wa-banner {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(2rem, 4vw, 3.2rem);
  background: var(--blue-gradient);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
/* floating decorative blobs */
.wa-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}
.wa-blob-1 {
  width: 260px; height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 70%);
  top: -90px; inset-inline-end: -40px;
  animation: waFloat 9s ease-in-out infinite;
}
.wa-blob-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle at 50% 50%, rgba(206, 152, 92, 0.35), rgba(206, 152, 92, 0) 70%);
  bottom: -80px; inset-inline-start: 10%;
  animation: waFloat 11s ease-in-out infinite reverse;
}
@keyframes waFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, -22px) scale(1.08); }
}

.wa-content { position: relative; z-index: 1; max-width: 44rem; display: flex; flex-direction: column; gap: 0.7rem; }
.wa-badge {
  align-self: flex-start;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px;
  color: #fff; padding: 0.3rem 0.9rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.wa-title { color: #fff; font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.35; }
.wa-text { color: rgba(255, 255, 255, 0.85); font-size: 1rem; line-height: 1.7; }

/* WhatsApp button */
.wa-btn {
  position: relative;
  z-index: 1;
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: #25d366; color: #fff;
  font-weight: 700; font-size: 1.05rem; white-space: nowrap;
  animation: waPulse 2.4s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.wa-btn:hover {
  transform: translateY(-3px) scale(1.04);
  background: #1fbe5b;
  animation-play-state: paused;
}
.wa-btn-icon { display: inline-flex; animation: waTilt 3s ease-in-out infinite; }
.wa-btn-icon svg { display: block; }
@keyframes waTilt {
  0%, 92%, 100% { transform: rotate(0deg); }
  46% { transform: rotate(-12deg); }
  69% { transform: rotate(8deg); }
}

@media (max-width: 768px) {
  .wa-banner { flex-direction: column; text-align: center; align-items: center; }
  .wa-badge { align-self: center; }
  .wa-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-blob, .wa-btn, .wa-btn-icon { animation: none; }
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(900px 380px at 50% 0%, rgba(201, 169, 106, 0.12), transparent 65%),
    var(--black);
}
.f-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.f-col { display: flex; flex-direction: column; gap: 1rem; }

/* brand */
.f-logo { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.4rem; font-weight: 800; color: #fff; }
.f-logo-img { width: 46px; height: 46px; object-fit: contain; }
.f-about { color: rgba(255, 255, 255, 0.62); font-size: 0.92rem; line-height: 1.8; max-width: 24rem; }

/* socials */
.f-socials { display: flex; gap: 0.7rem; margin-top: 0.3rem; }
.f-social {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.f-social:hover { transform: translateY(-3px); background: var(--blue-gradient); border-color: transparent; }

/* column titles */
.f-title {
  position: relative;
  color: #fff; font-size: 1.05rem; font-weight: 700;
  padding-bottom: 0.6rem;
}
.f-title::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 34px; height: 3px; border-radius: 3px; background: var(--blue-gradient);
}

/* contact list */
.f-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.f-list a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: rgba(255, 255, 255, 0.72); font-size: 0.92rem;
  transition: color 0.3s ease;
}
.f-list a svg { color: #CE985C; flex-shrink: 0; }
.f-list a:hover { color: #fff; }

/* location */
.f-addr { color: rgba(255, 255, 255, 0.62); font-size: 0.92rem; line-height: 1.8; }
.f-map-btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.7rem 1.3rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff; font-size: 0.9rem; font-weight: 600;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.f-map-btn svg { color: #CE985C; transition: color 0.3s ease; }
.f-map-btn:hover { transform: translateY(-2px); background: var(--blue-gradient); border-color: transparent; }
.f-map-btn:hover svg { color: #fff; }

/* bottom bar */
.f-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 1.4rem 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .f-grid { grid-template-columns: 1fr; text-align: center; }
  .f-col { align-items: center; }
  .f-logo, .f-socials { justify-content: center; }
  .f-title::after { inset-inline-start: 50%; transform: translateX(-50%); }
  .f-list a, .f-map-btn { align-self: center; }
  html[dir="rtl"] .f-title::after { transform: translateX(50%); }
}

/* ===========================================================
   Floating WhatsApp "Book Now" button (fixed)
   bottom-left in AR (RTL), bottom-right in EN (LTR)
   =========================================================== */
.wa-fab {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.1rem 0.6rem 0.6rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
/* label sits before the icon; padding side balanced per direction */
html[dir="ltr"] .wa-fab { padding: 0.6rem 0.6rem 0.6rem 1.1rem; }
.wa-fab:hover {
  transform: translateY(-3px) scale(1.05);
  background: #1fbe5b;
  animation-play-state: paused;
}
.wa-fab-label { white-space: nowrap; }
.wa-fab-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  animation: waTilt 3s ease-in-out infinite;
}
.wa-fab-icon svg { display: block; }

@media (max-width: 560px) {
  .wa-fab { inset-block-end: 16px; inset-inline-end: 16px; font-size: 0.92rem; padding: 0.5rem 0.9rem 0.5rem 0.5rem; }
  html[dir="ltr"] .wa-fab { padding: 0.5rem 0.5rem 0.5rem 0.9rem; }
  .wa-fab-icon { width: 34px; height: 34px; }
  .wa-fab-icon svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab, .wa-fab-icon { animation: none; }
}

/* ===========================================================
   FAQ page (faq.html)
   =========================================================== */
.faq-hero { position: relative; z-index: 1; color: #fff; }
.faq-hero .fh-inner { gap: 0.7rem; text-align: center; padding-block: 2rem 3.5rem; }
.faq-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; color: #fff; line-height: 1.2; }
.faq-hero .secondaryText { color: rgba(255, 255, 255, 0.72); max-width: 40rem; }

.faq-page-wrap { background: var(--page-bg); }
.faq-list-wrap { max-width: 880px; margin-inline: auto; width: 100%; }

.faq-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.6rem 1.2rem; border-radius: 999px;
  background: var(--card-bg); border: 1px solid var(--soft-border);
  color: var(--heading); font-weight: 600; font-size: 0.9rem;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.faq-back svg { transition: transform 0.3s ease; }
html[dir="rtl"] .faq-back svg { transform: scaleX(-1); }
.faq-back:hover { background: var(--blue-gradient); border-color: transparent; color: #fff; transform: translateY(-2px); }
.faq-back:hover svg { color: #fff; }
html[dir="ltr"] .faq-back:hover svg { transform: translateX(-3px); }
html[dir="rtl"] .faq-back:hover svg { transform: scaleX(-1) translateX(-3px); }

/* ===========================================================
   Gallery page (gallery.html)
   =========================================================== */
.gallery-wrap { background: var(--page-bg); }
.gallery-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 2.5rem; flex-wrap: wrap; }

.g-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}
.g-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  cursor: pointer;
  animation: gFade 0.5s ease both;
}
@keyframes gFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.g-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; }
.g-card:hover .g-thumb { transform: scale(1.08); }
.g-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 10, 10, 0.82) 0%, rgba(8, 10, 10, 0.15) 45%, rgba(8, 10, 10, 0) 70%);
}
.g-title {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  padding: 14px 16px; color: #fff; font-weight: 700; font-size: 0.95rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.g-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--mg-grad);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}
.g-card:hover .g-play { transform: translate(-50%, -50%) scale(1.1); }

@media (max-width: 480px) {
  .g-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.9rem; }
}

/* ---------- Lightbox dialog (image / video) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: clamp(14px, 4vw, 48px);
}
.lightbox.open { display: flex; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 8, 8, 0.82);
  backdrop-filter: blur(4px);
  animation: lbFade 0.25s ease both;
}
.lightbox-body {
  position: relative; z-index: 1;
  max-width: min(1100px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center;
  animation: lbPop 0.32s cubic-bezier(0.22, 0.9, 0.24, 1) both;
}
.lightbox-media {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background: #000; line-height: 0;
}
.lightbox-img, .lightbox-video {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto; height: auto;
  object-fit: contain;
}
.lightbox-caption {
  margin-top: 14px; color: #fff; font-weight: 700;
  font-size: 1.05rem; text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute; top: -14px; inset-inline-end: -14px; z-index: 2;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  ; background: var(--lightBlue); cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}
.lightbox-close:hover { transform: scale(1.08) rotate(90deg); }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbPop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .lightbox-close { top: -8px; inset-inline-end: -8px; width: 40px; height: 40px; }
  .lightbox-img, .lightbox-video { max-height: 74vh; }
}
