/* ============================================================
   BASHAYER RESIDENCES BY MODON — SLATE & GOLD
   Aesthetic: Yas Acres layout system, recoloured to
   #2d302f slate and black with a champagne gold accent.
   ============================================================ */

:root {
  /* Palette — Slate depth to black + Champagne gold */
  --slate-abyss: #000000;
  --slate-deep: #2d302f;
  --slate-mid: #3a3e3c;
  --slate: #474c4a;
  --slate-light: #5a605d;
  --slate-glass: rgba(45, 48, 47, 0.72);

  --gold: #c9a96e;
  --gold-bright: #e8c76b;
  --gold-rich: #d4af37;
  --gold-deep: #a88a4f;
  --gold-soft-10: rgba(201, 169, 110, 0.1);
  --gold-soft-20: rgba(201, 169, 110, 0.2);
  --gold-soft-40: rgba(201, 169, 110, 0.4);

  --cream: #f5f1e8;
  --cream-dim: rgba(245, 241, 232, 0.78);
  --cream-faint: rgba(245, 241, 232, 0.45);
  --pearl: #faf7f0;
  --ink: #2d302f;

  --error: #e85a4f;
  --success: #6cae6e;

  /* Fonts */
  --font-display: "Archivo", "Outfit", "Helvetica Neue", system-ui, sans-serif;
  --font-serif: "Archivo", "Outfit", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Outfit", "Helvetica Neue", system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.375rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 7rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-gold-strong: 0 16px 44px rgba(0, 0, 0, 0.5);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   RESET + BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--slate-deep);
  background-image:
    linear-gradient(180deg, var(--slate-deep) 0%, var(--slate-abyss) 100%);
  background-attachment: fixed;
  overflow-x: clip;
  position: relative;
  width: 100%;
}

h1, h2, h3, h4, h5, h6, p, span, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 2px,
      rgba(255, 255, 255, 0.012) 2px,
      rgba(255, 255, 255, 0.012) 4px
    );
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--slate-deep);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--slate-abyss);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-deep), var(--gold));
  border-radius: var(--radius-pill);
  border: 2px solid var(--slate-abyss);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold), var(--gold-bright));
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--cream);
  letter-spacing: 0;
}

p {
  font-family: var(--font-body);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
  z-index: 2;
}

/* Section title pattern — gold ornamental flourish */
.section-title,
.section-header h2,
.section-header1 h2,
.section-header4 h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.8vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: relative;
  max-width: 100%;
  overflow-wrap: break-word;
}

.section-title em,
.section-header h2 em {
  color: var(--gold);
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-header::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto var(--space-md);
}

.section-header::after {
  content: "◆";
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  line-height: 1;
  margin-top: var(--space-sm);
  text-align: center;
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--cream-dim);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.7;
}

.desktop-br {
  display: none;
}

@media (min-width: 768px) {
  .desktop-br {
    display: inline;
  }
}

/* ============================================================
   PRIMARY BUTTON — GOLD ON NAVY
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-deep);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  background-size: 200% 200%;
  background-position: 0% 0%;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  box-shadow: var(--shadow-gold);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.7s var(--ease-out);
}

.btn-primary:hover {
  background-position: 100% 100%;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-strong);
  color: var(--slate-abyss);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary i {
  font-size: 0.875rem;
}

.gold-btn {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-rich));
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */

.language-switcher {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 950;
  animation: fadeInDown 0.8s var(--ease-out) 0.2s both;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  background: rgba(23, 25, 24, 0.6);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: var(--gold);
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--gold-soft-40);
  transition: all 0.4s var(--ease-out);
}

.lang-btn:hover {
  background: rgba(201, 169, 110, 0.12);
  color: var(--gold-bright);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.lang-btn i {
  font-size: 0.85rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 6rem 0 4rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(23, 25, 24, 0.85) 45%,
      rgba(45, 48, 47, 0.75) 100%
    ),
    url("images/exterior/1.webp") center/cover no-repeat;
  z-index: -2;
  filter: contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "logos"
    "text"
    "form";
  gap: var(--space-lg);
  position: relative;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
    grid-template-areas:
      "logos logos"
      "text form";
    gap: var(--space-xl);
    align-items: start;
  }
}

.hero-logos {
  grid-area: logos;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--gold-soft-20);
  animation: fadeInDown 1s var(--ease-out) 0.1s both;
}

.hero-logos .language-switcher {
  position: static;
  animation: none;
}

.developer-logo-top {
  height: clamp(40px, 6vw, 56px);
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  opacity: 0.95;
  transition: opacity 0.3s var(--ease-out);
}

.developer-logo-top:hover {
  opacity: 1;
}

.project-logo-top {
  height: clamp(48px, 7vw, 72px);
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

/* Hero text */
.hero-text {
  grid-area: text;
  animation: fadeInUp 1s var(--ease-out) 0.4s both;
}

.hero-title {
  font-family: var(--font-display);
  /* "Bashayer Residences" is a long lockup — capped lower than the
     template default so it never overruns the text column. */
  font-size: clamp(2.5rem, 6.4vw, 5.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 100%;
}

.project-name {
  color: var(--cream);
  font-weight: 700;
  position: relative;
}

.project-name::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin-top: 0.5rem;
}

.project-location-tag {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  font-weight: 400;
  letter-spacing: clamp(0.12em, 0.5vw, 0.32em);
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
  padding-left: 0;
  max-width: 100%;
}

.hero-subtitle,
.hero-subtitle-tall {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--cream-dim);
  max-width: 560px;
  margin-bottom: var(--space-lg);
  letter-spacing: 0;
}

/* Property fact cards */
.hero-property-info {
  margin-top: var(--space-lg);
  animation: fadeInUp 1s var(--ease-out) 0.7s both;
}

.property-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 580px;
}

@media (min-width: 768px) {
  .property-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fact-card {
  padding: 1.125rem 1rem;
  background: rgba(23, 25, 24, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gold-soft-20);
  border-radius: var(--radius-md);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
}

.fact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-out);
}

.fact-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  background: rgba(45, 48, 47, 0.6);
}

.fact-card:hover::before {
  transform: scaleY(1);
}

.fact-number {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.fact-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

/* Hero form */
.hero-form-container {
  grid-area: form;
  animation: fadeInUp 1s var(--ease-out) 0.6s both;
}

.hero-form {
  background: rgba(245, 241, 232, 0.97);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3.4vw, 3rem);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--gold-soft-20),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.hero-form::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-deep));
}

.hero-form::after {
  content: "◆";
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: var(--gold);
  font-size: 0.6rem;
  opacity: 0.5;
}

.hero-form h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--slate-deep);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.hero-form h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-top: 0.875rem;
}

.privacy-guarantee {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(23, 25, 24, 0.65);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.5;
}

.hero-privacy-guarantee {
  color: rgba(23, 25, 24, 0.7);
}

/* Hero form sits beside a very large display title — scale its
   controls up so the panel reads as a primary element, not an aside. */
.hero-form .form-group {
  margin-bottom: 1.125rem;
}

.hero-form input {
  padding: 1.15rem 1.25rem;
  font-size: 1rem;
}

.hero-form .btn-primary {
  width: 100%;
  padding: 1.15rem 2rem;
  font-size: 0.95rem;
  margin-top: 0.375rem;
}

/* ============================================================
   FORM ELEMENTS — UNIVERSAL
   ============================================================ */

.form-group {
  margin-bottom: 1rem;
  position: relative;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-mid);
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  padding: 0.95rem 1.125rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--slate-deep);
  background: var(--pearl);
  border: 1px solid rgba(23, 25, 24, 0.12);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
  outline: none;
}

input::placeholder {
  color: rgba(23, 25, 24, 0.4);
  font-weight: 300;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(201, 169, 110, 0.15),
    0 4px 12px rgba(23, 25, 24, 0.06);
}

.error-message {
  color: var(--error);
  font-size: 0.78rem;
  margin-top: 0.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.success-message {
  color: var(--success);
  font-size: 0.78rem;
  margin-top: 0.4rem;
  font-weight: 500;
}

.validation-output {
  font-size: 0.75rem;
  margin-top: 0.4rem;
  color: rgba(23, 25, 24, 0.55);
}

/* intl-tel-input override */
.iti {
  width: 100%;
  display: block;
}

.iti--allow-dropdown input,
.iti--separate-dial-code input {
  padding-left: 52px !important;
}

.iti__flag-container {
  background: transparent;
}

.iti__selected-flag {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background-color: rgba(201, 169, 110, 0.08);
  padding: 0 8px 0 12px;
}

.iti__country-list {
  background: var(--pearl);
  border: 1px solid var(--gold-soft-40);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: var(--slate-deep);
}

.iti__country.iti__highlight {
  background: var(--gold-soft-20);
}

/* ============================================================
   FLOATING CONTACT BUTTONS
   ============================================================ */

.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}

@media (max-width: 599px) {
  .floating-buttons {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }

  .floating-buttons .float-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

.float-btn {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--slate-deep);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  box-shadow: var(--shadow-gold);
  transition: all 0.4s var(--ease-spring);
  position: relative;
  border: 1px solid var(--gold);
}

.float-btn::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.3;
  z-index: -1;
  animation: pulse 2.4s var(--ease-out) infinite;
}

.float-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--shadow-gold-strong);
  color: var(--slate-abyss);
}

.float-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border-color: #128c7e;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}

.float-btn.whatsapp::before {
  background: #25d366;
}

.float-btn.whatsapp:hover {
  box-shadow: 0 18px 48px rgba(37, 211, 102, 0.5);
}

/* ============================================================
   ABOUT PROJECT SECTION
   ============================================================ */

.about-project {
  padding: var(--space-2xl) 0;
  position: relative;
  background: linear-gradient(180deg, var(--slate-deep) 0%, var(--slate-mid) 100%);
  overflow: hidden;
}

.about-project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--gold));
}

.about-project::after {
  content: "◆";
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 0.875rem;
}

.about-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  display: grid;
  gap: var(--space-xl);
}

.about-content article {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-top: var(--space-md);
}

.about-content article .section-title {
  margin-bottom: var(--space-lg);
}

.about-description {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--cream-dim);
  margin-bottom: var(--space-lg);
}

.about-brochure-section {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
}

/* Features — editorial alternating layout */
.features-section {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-md);
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
}

@media (min-width: 768px) {
  .feature-item {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-xl);
  }

  .feature-item:nth-child(even) .feature-image {
    order: 2;
  }

  .feature-item:nth-child(even) .feature-content {
    order: 1;
  }
}

.feature-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 11;
  max-height: 420px;
  width: 100%;
}

.feature-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-soft-40);
  border-radius: var(--radius-lg);
  z-index: 2;
  pointer-events: none;
}

.feature-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23, 25, 24, 0.15), transparent 50%, rgba(201, 169, 110, 0.08));
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.feature-item:hover .feature-image img {
  transform: scale(1.05);
}

.feature-content {
  position: relative;
  padding: var(--space-md) 0;
}

.feature-content::before {
  content: "0" counter(feature-counter);
  counter-increment: feature-counter;
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.4em;
  margin-bottom: 1rem;
  font-style: italic;
}

.features-section {
  counter-reset: feature-counter;
}

.feature-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: var(--space-md);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.feature-content h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin-top: 1rem;
}

.feature-content p {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--cream-dim);
  font-weight: 400;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */

.gallery-section {
  padding: var(--space-xl) 0;
  text-align: center;
}

.gallery-section h3 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
  max-width: 100%;
}

.gallery-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold);
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.tab-btn,
.floor-plan-tab {
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  background: transparent;
  border: 1px solid var(--gold-soft-20);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}

.tab-btn:hover,
.floor-plan-tab:hover {
  color: var(--gold-bright);
  border-color: var(--gold-soft-40);
}

.tab-btn.active,
.floor-plan-tab.active {
  color: var(--slate-deep);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.6s var(--ease-out);
}

/* Frame matches the 16:9 aspect of most source renders, so they are shown
   almost in full instead of being cropped by a much wider box. */
.gallery-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold-soft-20);
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--slate-deep);
}

/* Splide — gallery carousel */
.gallery-carousel .splide {
  width: 100%;
  height: 100%;
}

.gallery-carousel .splide__track {
  height: 100%;
}

.gallery-carousel .splide__list {
  height: 100%;
}

.gallery-carousel .splide__slide {
  height: 100%;
}

.gallery-carousel .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Splide shared theme ── */

/* Bottom gradient so pagination dots read on any image */
.gallery-carousel::after,
.wellness-carousel::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
  z-index: 2;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Arrows */
.splide__arrow {
  width: 44px !important;
  height: 44px !important;
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(201, 169, 110, 0.5) !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out) !important;
  z-index: 10 !important;
}

.splide__arrow--prev { left: 16px !important; right: auto !important; }
.splide__arrow--next { right: 16px !important; left: auto !important; }

/* RTL (Arabic page): Splide flips the arrows, so the opposite edge must be
   cleared or both arrows stack on the same side. */
.splide--rtl .splide__arrow--prev { right: 16px !important; left: auto !important; }
.splide--rtl .splide__arrow--next { left: 16px !important; right: auto !important; }

.splide__arrow svg {
  fill: var(--gold) !important;
  width: 15px !important;
  height: 15px !important;
  transition: fill 0.3s var(--ease-out);
}

.splide__arrow:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.splide__arrow:hover svg {
  fill: var(--slate-deep) !important;
}

/* Pagination */
.splide__pagination {
  bottom: 16px !important;
  z-index: 10 !important;
  gap: 0 !important;
  padding: 0 !important;
}

.splide__pagination__page {
  display: inline-block;
  width: 8px !important;
  height: 8px !important;
  background: rgba(245, 241, 232, 0.5) !important;
  border-radius: 4px !important;
  margin: 0 4px !important;
  opacity: 1 !important;
  transition: width 0.35s var(--ease-out), background 0.35s var(--ease-out) !important;
}

.splide__pagination__page.is-active {
  background: var(--gold) !important;
  width: 28px !important;
  transform: none !important;
}

/* Mobile — smaller arrows */
@media (max-width: 480px) {
  .splide__arrow {
    width: 34px !important;
    height: 34px !important;
  }
  .splide__arrow svg {
    width: 12px !important;
    height: 12px !important;
  }
  .splide__arrow--prev { left: 10px !important; right: auto !important; }
  .splide__arrow--next { right: 10px !important; left: auto !important; }
  .splide--rtl .splide__arrow--prev { right: 10px !important; left: auto !important; }
  .splide--rtl .splide__arrow--next { left: 10px !important; right: auto !important; }
}

/* Floor plans */
.floor-plans-diagram {
  padding: var(--space-xl) 0;
  text-align: center;
}

.floor-plans-diagram h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--cream);
  margin-bottom: var(--space-lg);
}

.floor-plan-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.floor-plan-content {
  position: relative;
}

.floor-plan-diagram {
  display: none;
  background: var(--pearl);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid var(--gold-soft-20);
}

.floor-plan-diagram.active {
  display: block;
  animation: fadeIn 0.6s var(--ease-out);
}

.floor-plan-download-section {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
}

/* ============================================================
   LOCATION SECTION
   ============================================================ */

.location-section {
  padding: var(--space-2xl) 0;
  position: relative;
  background:
    linear-gradient(180deg, var(--slate-mid) 0%, var(--slate-deep) 100%);
  overflow: hidden;
}

.location-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft-40), transparent);
}

.location-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: stretch;
}

@media (min-width: 1024px) {
  .location-content {
    grid-template-columns: 1.5fr 1fr;
  }
}

.location-map-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-soft-40);
  box-shadow: var(--shadow-lg);
  min-height: 300px;
  min-width: 0;
}

@media (min-width: 768px) {
  .location-map-container {
    min-height: 400px;
  }
}

.location-map-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(23, 25, 24, 0.3);
  z-index: 2;
}

.location-map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  filter: contrast(0.95) saturate(0.85);
}

.location-details {
  display: grid;
  /* minmax(0, …) everywhere: a bare 1fr floors at min-content, which
     lets these cards blow the grid out past the viewport on phones. */
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-content: start;
}

@media (min-width: 640px) {
  .location-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .location-details {
    grid-template-columns: minmax(0, 1fr);
  }
}

.location-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.25rem;
  background: rgba(23, 25, 24, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-soft-20);
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-out);
}

.location-detail:hover {
  border-color: var(--gold);
  background: rgba(45, 48, 47, 0.65);
  transform: translateX(6px);
}

.location-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.18), rgba(168, 138, 79, 0.08));
  border: 1px solid var(--gold-soft-40);
  color: var(--gold-bright);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.4s var(--ease-out);
}

.location-detail:hover .location-icon {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--slate-deep);
  transform: rotate(8deg);
}

.location-detail-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.location-detail p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream);
  margin: 0;
  letter-spacing: 0.02em;
}

.location-time {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid var(--gold-soft-20);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.6rem;
  width: fit-content;
}

.location-time i {
  font-size: 0.65rem;
  opacity: 0.85;
}

/* ============================================================
   PAYMENT PLANS
   ============================================================ */

.payment-plans {
  padding: var(--space-2xl) 0;
  position: relative;
  background: var(--slate-deep);
  overflow: hidden;
}

.payment-plans .section-header {
  padding: 0 1rem;
}

.payment-horizontal {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
}

@media (min-width: 768px) {
  .payment-horizontal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
  }

  .payment-horizontal::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-soft-40), var(--gold), var(--gold-soft-40), transparent);
    transform: translateY(-50%);
    z-index: 0;
  }
}

.payment-step {
  position: relative;
  padding: var(--space-lg) var(--space-md);
  background: linear-gradient(160deg, rgba(45, 48, 47, 0.65), rgba(23, 25, 24, 0.85));
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-soft-20);
  border-radius: var(--radius-lg);
  text-align: center;
  z-index: 1;
  transition: all 0.5s var(--ease-out);
  overflow: hidden;
}

.payment-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out);
}

.payment-step:hover {
  transform: translateY(-8px);
  border-color: var(--gold-soft-40);
  box-shadow: var(--shadow-md);
}

.payment-step:hover::before {
  transform: scaleX(1);
}

.step-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 600;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.step-content h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.step-content p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--cream-faint);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ============================================================
   GOLDEN VISA SECTION
   ============================================================ */

.golden-visa {
  padding: var(--space-2xl) 0;
  position: relative;
  background:
    linear-gradient(180deg, var(--slate-deep) 0%, var(--slate-mid) 100%);
  overflow: hidden;
}

.golden-visa::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.golden-visa .section-header {
  margin-bottom: var(--space-xl);
}

.residency-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  max-width: 900px;
  margin: var(--space-lg) auto 0;
  padding: var(--space-lg);
  background: rgba(23, 25, 24, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-soft-40);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.residency-options::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-deep));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@media (min-width: 768px) {
  .residency-options {
    grid-template-columns: 1.4fr 1fr;
  }
}

.residency-text {
  text-align: left;
}

.residency-option h4 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 500;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.residency-option p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.6;
}

.apply-button-container {
  display: flex;
  justify-content: center;
}

.golden-visa-content {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
}

.golden-visa-content img {
  max-width: 100%;
  width: auto;
  max-height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-soft-40);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   EXPERTS / WHY WADI CONTACT SECTION
   ============================================================ */

.experts-contact {
  padding: var(--space-2xl) 0;
  position: relative;
  background: linear-gradient(180deg, var(--slate-mid) 0%, var(--slate-abyss) 100%);
  overflow: hidden;
}

.experts-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 1024px) {
  .experts-content {
    grid-template-columns: 1fr 1fr;
  }
}

.experts-left h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.experts-left h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin-top: 1rem;
}

.wellness-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold-soft-40);
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--slate-deep);
}

.wellness-carousel .splide {
  width: 100%;
  height: 100%;
}

.wellness-carousel .splide__track {
  height: 100%;
}

.wellness-carousel .splide__list {
  height: 100%;
}

.wellness-carousel .splide__slide {
  height: 100%;
}

.wellness-carousel .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.expert-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .expert-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.expert-feature {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(23, 25, 24, 0.5);
  border: 1px solid var(--gold-soft-20);
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.expert-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  transition: height 0.5s var(--ease-out);
}

.expert-feature:hover {
  border-color: var(--gold-soft-40);
  background: rgba(45, 48, 47, 0.5);
  transform: translateY(-2px);
}

.expert-feature:hover::before {
  height: 100%;
}

.expert-feature i {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.18), rgba(168, 138, 79, 0.08));
  border: 1px solid var(--gold-soft-40);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 1rem;
  transition: all 0.4s var(--ease-out);
}

.expert-feature:hover i {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--slate-deep);
}

.expert-feature h4 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.375rem;
  letter-spacing: 0.005em;
}

.expert-feature p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--cream-dim);
  font-weight: 400;
}

.experts-form {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--pearl);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.experts-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-deep));
}

.experts-form h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 600;
  color: var(--slate-deep);
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.experts-form h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin-top: 0.875rem;
}

.experts-form > p {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: italic;
  color: rgba(23, 25, 24, 0.7);
  margin-bottom: var(--space-md);
}

.expert-form .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: var(--space-lg) 0;
  background: var(--slate-abyss);
  border-top: 1px solid var(--gold-soft-20);
  position: relative;
}

/* On phones the floating call/WhatsApp stack sits over the footer —
   reserve room so the links are never underneath it. */
@media (max-width: 859px) {
  .footer {
    padding-bottom: calc(var(--space-lg) + 130px);
  }
}

.footer::before {
  content: "◆";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--slate-abyss);
  padding: 0 1rem;
  color: var(--gold);
  font-size: 0.7rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
    gap: 1rem;
  }
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--cream-faint);
  letter-spacing: 0.04em;
  margin: 0;
  max-width: 46ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--cream-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease-out);
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================================
   DIALOGS
   ============================================================ */

.consultation-dialog,
.brochure-dialog,
.dialog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 1rem;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

/* openGoldenVisaDialog() toggles .active (not an inline style like the
   brochure dialog), so the overlay needs a matching visible state. */
.dialog-overlay.active {
  display: flex;
}

.consultation-dialog .dialog-content,
.brochure-dialog .dialog-content,
.dialog-overlay .dialog-content {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: var(--pearl);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: dialogSlideUp 0.5s var(--ease-spring);
  margin: auto;
}

.dialog-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-deep));
  z-index: 5;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-deep);
  color: var(--gold-bright);
  border: 1px solid var(--gold-soft-40);
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s var(--ease-out);
}

.dialog-close:hover {
  background: var(--gold);
  color: var(--slate-deep);
  transform: rotate(90deg);
}

.dialog-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 460px;
}

@media (min-width: 768px) {
  .dialog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dialog-image {
  position: relative;
  background: var(--slate-deep);
  overflow: hidden;
  height: 220px;
}

@media (min-width: 768px) {
  .dialog-image {
    height: auto;
    min-height: 100%;
  }
}

.dialog-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23, 25, 24, 0.2), transparent 50%, rgba(201, 169, 110, 0.1));
  pointer-events: none;
}

.dialog-image img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.dialog-form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dialog-body {
  padding: 0;
}

.dialog-form h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  font-weight: 600;
  color: var(--slate-deep);
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}

.dialog-form h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-top: 0.75rem;
}

.dialog-form > p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(23, 25, 24, 0.7);
  margin-bottom: var(--space-md);
  margin-top: 0.875rem;
  line-height: 1.55;
}

.dialog-form .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
}

.form-actions {
  display: flex;
  justify-content: stretch;
}

.form-actions .btn-primary {
  width: 100%;
}

/* Golden visa dialog */
.golden-visa-dialog {
  max-width: 960px;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  width: calc(100% - 2rem);
  max-width: 420px;
}

.toast {
  pointer-events: auto;
  padding: 1rem 1.25rem;
  background: var(--slate-deep);
  border: 1px solid var(--gold-soft-40);
  border-radius: var(--radius-md);
  color: var(--cream);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-12px);
  transition: all 0.4s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
}

.toast-success::before {
  background: var(--success);
}

.toast-error::before {
  background: var(--error);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--slate-deep);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.toast-error .toast-icon {
  background: var(--error);
  color: #fff;
}

.toast-message {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes dialogSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================================
   SCROLL-TRIGGERED REVEAL (CSS-only)
   ============================================================ */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .feature-item,
    .expert-feature,
    .fact-card,
    .payment-step,
    .location-detail {
      animation: fadeInUp 0.8s var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
  }
}

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

/* ============================================================
   RESPONSIVE — MOBILE TUNING
   ============================================================ */

@media (max-width: 768px) {
  .hero {
    padding: 5rem 0 3rem;
    min-height: auto;
  }

  .hero-logos {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
  }

  /* ── Centred hero stack on mobile ──────────────────────────────
     A long lockup ("بشاير ريزيدنسز" / "Bashayer Residences") plus a
     justified paragraph reads awkwardly ragged on a narrow screen.
     Centre the whole text column so it holds together as one block. */
  .hero-text {
    text-align: center;
  }

  /* .hero-title is a flex column, so the spans centre via align-items */
  .hero-title {
    align-items: center;
  }

  /* gold rule under the project name must centre with it */
  .project-name::after {
    margin-left: auto;
    margin-right: auto;
  }

  .project-location-tag {
    letter-spacing: 0.18em;
  }

  .hero-subtitle,
  .hero-subtitle-tall {
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
  }

  .property-facts {
    margin-left: auto;
    margin-right: auto;
  }

  .fact-card {
    text-align: center;
  }

  /* The accent is a left-edge bar by default, which fights centred
     text — run it along the top instead. */
  .fact-card::before,
  [dir="rtl"] .fact-card::before {
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 3px;
    transform: scaleX(0);
    transform-origin: center;
  }

  .fact-card:hover::before {
    transform: scaleX(1);
  }

  .language-switcher {
    top: 16px;
    right: 16px;
  }

  .lang-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.7rem;
  }

  .hero-form {
    padding: 1.5rem;
  }

  .floating-buttons {
    bottom: 16px;
    right: 16px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .toast-container {
    top: 80px;
  }

  .about-project,
  .location-section,
  .payment-plans,
  .golden-visa,
  .experts-contact {
    padding: 4rem 0;
  }

  .about-content {
    gap: 3.5rem;
  }

  .features-section {
    gap: 3.5rem;
  }

  .residency-options {
    padding: 1.5rem;
  }

  .experts-form {
    padding: 1.75rem;
  }

  .splide__arrow {
    width: 34px;
    height: 34px;
  }

  .splide__arrow svg {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 480px) {
  .property-facts {
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
  }

  .fact-card {
    padding: 0.875rem 0.75rem;
  }

  .fact-number {
    font-size: 0.95rem;
  }

  .fact-label {
    font-size: 0.625rem;
  }

  .btn-primary {
    padding: 0.875rem 1.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }

  .gallery-tabs,
  .floor-plan-tabs {
    gap: 0.375rem;
  }

  .tab-btn,
  .floor-plan-tab {
    padding: 0.6rem 1.125rem;
    font-size: 0.7rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* RTL — minimal hooks for Arabic page consistency */
[dir="rtl"] .feature-content::before {
  letter-spacing: 0.4em;
}

[dir="rtl"] .location-detail:hover {
  transform: translateX(-6px);
}

[dir="rtl"] .floating-buttons {
  right: auto;
  left: 24px;
}

[dir="rtl"] .language-switcher {
  right: auto;
  left: 24px;
}

@media (max-width: 599px) {
  [dir="rtl"] .floating-buttons {
    right: auto;
    left: 16px;
  }
}

[dir="rtl"] .dialog-close {
  right: auto;
  left: 16px;
}

[dir="rtl"] .hero-form::after {
  right: auto;
  left: 1.25rem;
}

[dir="rtl"] .fact-card::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .faq-item summary {
  padding: 1.15rem 1.5rem 1.15rem 3.25rem;
}

[dir="rtl"] .faq-item summary::after {
  right: auto;
  left: 1.5rem;
}

[dir="rtl"] .footer-links a::after {
  transform-origin: left;
}

[dir="rtl"] .footer-links a:hover::after {
  transform-origin: right;
}

/* ============================================================
   UNIT TYPES — reuses .payment-step in a 6-up price grid
   ============================================================ */

.unit-types-section {
  padding: var(--space-2xl) 0;
  background: var(--slate-abyss);
  position: relative;
}

.unit-types-section .payment-horizontal {
  max-width: 1280px;
}

@media (min-width: 768px) {
  .unit-types-section .payment-horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* the connecting hairline belongs to the 3-step plan, not the price grid */
  .unit-types-section .payment-horizontal::before {
    display: none;
  }
}

@media (min-width: 1024px) {
  .unit-types-section .payment-horizontal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step-number--price {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-style: normal;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.units-note {
  max-width: 720px;
  margin: var(--space-lg) auto 0;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--cream-faint);
}

.floor-plan-download-section {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-section {
  padding: var(--space-2xl) 0;
  background: var(--slate-deep);
  position: relative;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: linear-gradient(160deg, rgba(45, 48, 47, 0.55), rgba(23, 25, 24, 0.8));
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-soft-20);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.faq-item[open],
.faq-item:hover {
  border-color: var(--gold-soft-40);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.15rem 3.25rem 1.15rem 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  font-weight: 500;
  color: var(--cream);
  transition: color 0.3s var(--ease-out);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--gold-bright);
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.4s var(--ease-out);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.35rem;
}

.faq-answer p {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--cream-dim);
}
