:root {
  --bg: #030405;
  --bg-elevated: #0a0d12;
  --card: rgba(14, 18, 26, 0.72);
  --text: #f4f7fb;
  --muted: #9eb0c4;
  --gold: #d4a853;
  --gold-light: #f0d48a;
  --accent: #2d7bff;
  --accent-soft: #6aa8ff;
  --line: rgba(212, 168, 83, 0.22);
  --line-blue: rgba(106, 168, 255, 0.2);
  --radius: 20px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  --font: "Tajawal", Tahoma, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(45, 123, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(212, 168, 83, 0.1), transparent 45%),
    linear-gradient(180deg, #030405 0%, #06080c 45%, #020203 100%);
  line-height: 1.85;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1140px, 92%);
  margin-inline: auto;
}

a:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(3, 4, 5, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 0.35rem 0;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo em {
  font-style: normal;
  color: var(--gold-light);
}

/* Mobile-first: desktop nav hidden until large screens */
.nav-desktop {
  display: none;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--gold-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  background: linear-gradient(135deg, var(--gold), #b8862e);
  color: #0a0804;
  box-shadow: 0 8px 24px rgba(212, 168, 83, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(212, 168, 83, 0.3);
}

.header-cta-desktop {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0.5rem 0 1rem;
  border-top: 1px solid var(--line);
  background: rgba(6, 8, 12, 0.98);
  max-height: min(70vh, 420px);
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav.is-open[hidden] {
  display: flex !important;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--gold-light);
  background: rgba(212, 168, 83, 0.06);
}

/* Hero — starts below sticky header (no overlap) */
#main {
  display: block;
}

.hero {
  position: relative;
  min-height: min(calc(100svh - 64px), 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(3, 4, 5, 0.97) 0%,
    rgba(3, 4, 5, 0.88) 45%,
    rgba(3, 4, 5, 0.75) 100%
  );
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 200px;
  background: linear-gradient(transparent, var(--bg));
}

.hero-shell,
.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem 0 2.5rem;
}

.hero-content {
  order: 1;
}

.hero-visual {
  order: 2;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.link-quiet {
  color: var(--gold-light);
  font-weight: 600;
}

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

.hero-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.hero-cta-row--lg {
  gap: 0.85rem;
}

.btn-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 58px;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: right;
}

.btn-cta:hover {
  transform: translateY(-2px);
}

.btn-cta-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
}

.btn-cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
  min-width: 0;
}

.btn-cta-text strong {
  font-size: 0.98rem;
}

.btn-cta-text small {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.92;
}

.btn-cta-call {
  background: linear-gradient(135deg, var(--gold), #b8862e);
  color: #0a0804;
  box-shadow: 0 14px 40px rgba(212, 168, 83, 0.32);
}

.btn-cta-wa {
  background: linear-gradient(135deg, #1a9f4a, #25d366);
  color: #fff;
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.25);
}

.hero-cta-row--lg .btn-cta {
  min-height: 64px;
  padding: 0.95rem 1.1rem;
}

.hero-cta-row--lg .btn-cta-text strong {
  font-size: 1.05rem;
}

.page-hero-compact .hero-cta-row {
  margin-top: 1.25rem;
  max-width: 32rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 168, 83, 0.08);
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  line-height: 1.2;
  font-weight: 800;
  margin: 1.1rem 0 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.5rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8862e);
  color: #0a0804;
  box-shadow: 0 14px 40px rgba(212, 168, 83, 0.3);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #1a9f4a, #25d366);
  color: #fff;
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.22);
}

.btn-ghost {
  border-color: var(--line-blue);
  color: var(--accent-soft);
  background: rgba(45, 123, 255, 0.08);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card picture img {
  border-radius: 14px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-stats div {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-blue);
}

.hero-stats strong {
  display: block;
  font-size: 1.1rem;
  color: var(--gold-light);
}

.hero-stats span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.section-intro {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 2rem;
}

/* Trust grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.trust-item {
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line-blue);
  text-align: center;
  transition: border-color 0.2s ease;
}

.trust-item:hover {
  border-color: var(--line);
}

.trust-item .icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.trust-item h3 {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.trust-item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Cards */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line-blue);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

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

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.review {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  position: relative;
}

.review::before {
  content: "\201C";
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
  font-family: Georgia, serif;
}

.review .stars {
  color: var(--gold-light);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.review p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.review cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}

/* Split / prose */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media picture img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.prose h2,
.prose h3 {
  margin-top: 1.5rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-right: 1.25rem;
}

.prose strong {
  color: var(--text);
}

/* Neighborhoods inline */
.hood-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hood-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-blue);
  color: var(--muted);
}

/* Link pills */
.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.link-pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  border: 1px solid var(--line-blue);
  color: var(--accent-soft);
  transition: background 0.2s ease;
}

.link-pill:hover {
  background: rgba(45, 123, 255, 0.12);
}

/* CTA banner */
.cta-banner {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(212, 168, 83, 0.12), rgba(45, 123, 255, 0.08)),
    var(--card);
  border: 1px solid var(--line);
}

.cta-banner h2 {
  margin: 0 0 0.5rem;
}

.cta-banner p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.page-hero-compact h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0;
}

/* Footer */
.site-footer {
  padding: 3.5rem 0 6.5rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h3 {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  color: var(--gold-light);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-blue);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Floating + bottom bar */
.float-actions {
  position: fixed;
  left: 1rem;
  bottom: 5.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.float-call,
.float-wa {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.float-call {
  background: linear-gradient(135deg, var(--gold), #b8862e);
}

.float-wa {
  background: linear-gradient(135deg, #1a9f4a, #25d366);
}

.float-call:hover,
.float-wa:hover {
  transform: scale(1.08);
}

.bottom-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 95;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: rgba(6, 8, 12, 0.98);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.bar-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 62px;
  padding: 0.65rem 0.5rem;
  font-weight: 800;
  text-align: center;
}

.bar-cta-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.bar-cta-label {
  font-size: 0.82rem;
  line-height: 1.2;
}

.bar-call {
  background: linear-gradient(135deg, var(--gold), #b8862e);
  color: #0a0804;
}

.bar-wa {
  background: linear-gradient(135deg, #1a9f4a, #25d366);
  color: #fff;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-blue);
  background: var(--card);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    align-items: flex-start;
  }

  .hero-shell {
    padding: 1rem 0 2rem;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
    margin: 0.75rem 0 0.65rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-cta-row--lg {
    grid-template-columns: 1fr;
  }

  .hero-cta-row--lg .btn-cta {
    min-height: 60px;
  }

  .float-actions {
    display: none;
  }

  .bottom-bar {
    display: grid;
  }

  .site-footer {
    padding-bottom: 6.5rem;
  }

  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0));
  }
}

@media (min-width: 901px) {
  .header-inner {
    min-height: 76px;
    gap: 20px;
  }

  .logo {
    font-size: 1.45rem;
  }

  .nav-desktop {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 1.35rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .nav-desktop a {
    flex-shrink: 0;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .header-cta-desktop {
    display: inline-flex;
  }

  .header-cta {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  .hero-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
    padding: 4rem 0 3rem;
  }

  .hero-content,
  .hero-visual {
    order: unset;
  }

  .bottom-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* Below-fold sections — faster initial paint */
#gallery,
#reviews,
#villages,
.map-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

/* Map — bottom of homepage only */
.map-section {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.map-embed {
  margin-top: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-blue);
  background: var(--card);
  aspect-ratio: 16 / 9;
  max-height: 360px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
}

.map-section--link .map-link-wrap {
  margin-top: 1.25rem;
}

.map-link-wrap {
  margin: 0.85rem 0 0;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
