/* BUILD 20261014a */
/* ============================================================
   AL KAREEM DEVELOPERS — CUSTOM STYLES
   Design tokens: Navy #0D2137 · Gold #C9A84C · Cream #FAF8F3
   Fonts: Cinzel (display) · Inter (body) · Noto Nastaliq Urdu (RTL)
   Mobile-first. Breakpoints: 375 · 640 · 768 · 1024 · 1280
============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
============================================================ */
:root {
  --navy:        #0D2137;
  --navy-lt:     #1a3a5c;
  --navy-dk:     #081525;
  --gold:        #C9A84C;
  --gold-lt:     #E5C96A;
  --gold-dk:     #A88830;
  --cream:       #FAF8F3;
  --warm-white:  #FFFFFF;
  --gray-50:     #F9F7F2;
  --gray-100:    #EEE9DF;
  --gray-400:    #9E9484;
  --gray-600:    #5C5548;
  --gray-800:    #2D2820;

  --font-display: 'Cinzel', 'Georgia', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-urdu:    'Noto Nastaliq Urdu', serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  --shadow-card: 0 4px 24px rgba(13, 33, 55, 0.09);
  --shadow-hover: 0 12px 40px rgba(13, 33, 55, 0.16);
  --shadow-nav:  0 2px 24px rgba(13, 33, 55, 0.28);

  --transition-fast: 180ms ease;
  --transition-mid:  260ms ease;
}


/* ============================================================
   2. GLOBAL BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background-color: var(--cream);
  margin: 0;
}

/* RTL: switch to Urdu Nastaliq globally */
html[dir="rtl"] body {
  font-family: var(--font-urdu);
  line-height: 2.1;   /* Nastaliq needs generous line-height */
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }

/* Screen-reader only helper */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }


/* ============================================================
   3. UTILITY / SHARED
============================================================ */

/* Gold gradient text (hero headline) */
.text-gold-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section decorative divider */
.gold-divider {
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 2px;
  margin: 1.25rem 0 2rem;
}
html[dir="rtl"] .gold-divider { margin-left: auto; margin-right: 0; }

/* Shared section header block */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-header .gold-divider { margin: 1.25rem auto 0; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 0.6rem;
}
html[dir="rtl"] .section-label { letter-spacing: 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
html[dir="rtl"] .section-title { font-family: var(--font-urdu); }

.section-title.light { color: #fff; }

.section-sub {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}
.section-sub.light { color: rgba(255,255,255,0.72); }

/* Shared primary button */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.45);
}
.btn-primary:focus-visible {
  outline: 3px solid var(--gold-lt);
  outline-offset: 3px;
}
.btn-primary.large  { font-size: 1rem; padding: 1rem 2.4rem; }
.btn-primary.full-width { width: 100%; text-align: center; }

/* Outline button */
.btn-outline {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--gold-lt);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.btn-outline:hover { background-color: var(--gold); color: var(--navy); }
.btn-outline:focus-visible { outline: 3px solid var(--gold-lt); outline-offset: 3px; }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ============================================================
   4. WHATSAPP FLOATING ACTION BUTTON
============================================================ */
.wa-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2.4s infinite;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}
.wa-fab:hover { transform: scale(1.08); background-color: #1ebe5d; }
.wa-fab svg { width: 28px; height: 28px; }

html[dir="rtl"] .wa-fab { right: auto; left: 1.5rem; }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(37, 211, 102, 0.5); }
  60%       { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}


/* ============================================================
   ANNOUNCEMENT BAR
============================================================ */
.announce-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 7px 16px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Urdu RTL: slightly larger for Nastaliq legibility */
html[dir="rtl"] .announce-bar {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 15px;
  padding: 8px 16px;
}

/* ============================================================
   5. NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 28px; left: 0; right: 0;    /* push down by announce bar height */
  z-index: 1000;
  background-color: rgba(13, 33, 55, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow var(--transition-mid), background-color var(--transition-mid);
}
.navbar.scrolled { box-shadow: var(--shadow-nav); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  cursor: pointer;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
}
.logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--gold);
}
html[dir="rtl"] .logo-name { font-family: var(--font-urdu); letter-spacing: 0; font-size: 0.9rem; }
html[dir="rtl"] .logo-sub  { letter-spacing: 0; }

/* Desktop nav links */
.navbar-links {
  display: none;
  align-items: center;
  gap: 1.1rem;
}
@media (min-width: 1280px) { .navbar-links { display: flex; } }

.nav-link {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast);
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition-mid);
}
.nav-link:hover { color: var(--gold-lt); }
.nav-link:hover::after { width: 100%; }
html[dir="rtl"] .nav-link::after { left: auto; right: 0; }

/* ── Dropdown nav items (About / Projects) ──────────────────
   Hover-based with a focus-within fallback so it's keyboard
   reachable too — no extra JS needed on desktop. */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  background: none;
  border: none;
  font-family: inherit;
}

.nav-caret {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret { transform: rotate(180deg); }

/* Invisible bridge so the pointer can travel from the toggle
   down into the menu without the hover gap closing it. */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 14px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 226px;
  background: var(--navy);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 10px;
  box-shadow: 0 20px 45px -14px rgba(0,0,0,0.5);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 1100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.62rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.nav-dropdown-menu a:hover { background: rgba(201,168,76,0.14); color: var(--gold-lt); }
html[dir="rtl"] .nav-dropdown-menu a { text-align: right; }



/* Navbar right controls */
.navbar-controls {
  display: none;
  align-items: center;
  gap: 0.85rem;
}
@media (min-width: 1280px) { .navbar-controls { display: flex; } }

.navbar-phone {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.75);
  transition: color var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}
.navbar-phone svg { width: 14px; height: 14px; flex-shrink: 0; }
.navbar-phone:hover { color: var(--gold-lt); }

.btn-wa-nav {
  display: flex; align-items: center; gap: 0.4rem;
  background-color: #25D366;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}
.btn-wa-nav svg { width: 14px; height: 14px; }
.btn-wa-nav:hover { background-color: #1ebe5d; }

/* Language toggle */
.lang-toggle {
  display: flex;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-btn {
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.lang-btn.active {
  background-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
}
.lang-btn:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: -2px; }

/* Mobile right controls */
.navbar-mobile-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
@media (min-width: 1280px) { .navbar-mobile-controls { display: none; } }

.hamburger-btn {
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none;
  color: #fff; cursor: pointer;
  padding: 0.3rem;
  border-radius: 4px;
  transition: color var(--transition-fast);
}
.hamburger-btn svg { width: 22px; height: 22px; }
.hamburger-btn:hover { color: var(--gold-lt); }
.hamburger-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Mobile dropdown */
.mobile-menu {
  background-color: var(--navy-dk);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav-link {
  display: block;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
}
.mobile-nav-link:hover { color: var(--gold-lt); background-color: rgba(255,255,255,0.04); }

/* ── Mobile accordion groups (About / Projects) ─────────────── */
.mobile-nav-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
html[dir="rtl"] .mobile-nav-toggle { text-align: right; }
.mobile-nav-toggle .nav-caret { width: 14px; height: 14px; transition: transform var(--transition-fast); }
.mobile-nav-group.open .mobile-nav-toggle .nav-caret { transform: rotate(180deg); }

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  background: rgba(0,0,0,0.18);
  transition: max-height var(--transition-mid);
}
.mobile-nav-group.open .mobile-submenu { max-height: 20rem; }

.mobile-sublink {
  display: block;
  padding: 0.7rem 1.5rem 0.7rem 2.4rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.68);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
html[dir="rtl"] .mobile-sublink { padding: 0.7rem 2.4rem 0.7rem 1.5rem; }
.mobile-sublink:hover { color: var(--gold-lt); }

.mobile-menu-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-phone-link {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}


/* ============================================================
   6a. INNER PAGE BANNER (projects / payment-plans / about / contact)
   Replaces the full hero on non-home pages — compact navy strip.
============================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  padding: 8rem 0 3rem;   /* top clears navbar + announce bar */
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal stripe — same as plans section */
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    rgba(201,168,76,0.04) 0px, rgba(201,168,76,0.04) 1px,
    transparent 1px, transparent 60px
  );
  pointer-events: none;
}

.page-banner-content {
  position: relative;
  z-index: 1;
}

.page-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin: 0.4rem 0 0.75rem;
  line-height: 1.2;
}
html[dir="rtl"] .page-banner-title { font-family: var(--font-urdu); }

.page-banner-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  line-height: 1.7;
}

/* ============================================================
   6. HERO SECTION
============================================================ */
.hero {
  position: relative;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 96px;  /* navbar (68px) + announce bar (28px) */
  overflow: hidden;
}

/* Faint surveyed-plot grid on the navy ground — a nod to the site plans
   this business actually sells, instead of a generic dot pattern. Fully
   covered by the photo/overlay on mobile; visible behind the text panel
   once the desktop split layout kicks in below. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* ── Hero Image Slider ───────────────────────────────────── */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Each slide: fills the slider, image covers it */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* Slide enters from bottom-right, exits to top-left — like the SVG rising */
  transform: scale(1.06) translateY(14px);
  transition:
    opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 1;
}
/* Exiting slide fades out and drifts up */
.hero-slide.exit {
  opacity: 0;
  transform: scale(0.97) translateY(-10px);
  z-index: 0;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Dark gradient overlay — keeps text readable over bright images */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to right,
      rgba(13,33,55,0.82) 0%,
      rgba(13,33,55,0.55) 50%,
      rgba(13,33,55,0.30) 100%
    ),
    linear-gradient(
      to top,
      rgba(13,33,55,0.7) 0%,
      transparent 60%
    );
  pointer-events: none;
}

/* Prev / Next arrow buttons */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(13,33,55,0.5);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.slider-arrow:hover,
.slider-arrow:focus-visible {
  background: rgba(201,168,76,0.75);
  border-color: var(--gold);
  outline: none;
}
.slider-arrow:active { transform: translateY(-50%) scale(0.93); }
.slider-arrow svg { width: 18px; height: 18px; }

.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }

@media (min-width: 768px) {
  .slider-prev { left: 1.5rem; }
  .slider-next { right: 1.5rem; }
}

/* Dot indicators */
.slider-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 7px;
  align-items: center;
}

.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
  flex-shrink: 0;
}
.slider-dot.active {
  background: var(--gold);
  transform: scale(1.25);
  width: 22px;
  border-radius: 4px;
}
.slider-dot:hover  { background: rgba(255,255,255,0.75); }
.slider-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
  width: 100%;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gold-lt);
  margin-bottom: 1.15rem;
}
.hero-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
html[dir="rtl"] .hero-label { letter-spacing: 0; }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  max-width: 700px;
}
html[dir="rtl"] .hero-headline { font-family: var(--font-urdu); }

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold-lt);
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 0.6rem 0.25rem;
}
.hero-link:hover { color: #fff; }

/* Trust strip — a plain divider bar reads more like a bank/developer's
   credentials line than a row of chip badges. */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}
.trust-badge svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }

/* ── Desktop: split the hero into a text panel + framed media panel ── */
@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "text media";
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
    padding-inline: clamp(2rem, 5vw, 4.5rem);
    padding-top: 96px;
    padding-bottom: 3rem;
    min-height: 100svh;
  }
  html[dir="rtl"] .hero { grid-template-areas: "media text"; }

  .hero-colony {
    grid-area: media;
    align-self: center;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }

  /* Corner-peg motif — echoes a surveyed plot boundary marker,
     deliberately tied to what Al Kareem actually sells. */
  .hero-colony::before,
  .hero-colony::after {
    content: '';
    position: absolute;
    width: 34px;
    height: 34px;
    border: 2px solid var(--gold);
    z-index: 4;
    pointer-events: none;
  }
  .hero-colony::before { top: -10px; left: -10px; border-right: none; border-bottom: none; }
  .hero-colony::after  { bottom: -10px; right: -10px; border-left: none; border-top: none; }

  .hero-content {
    grid-area: text;
    position: static;
    padding: 0;
    margin: 0;
    max-width: none;
    justify-self: start;
  }
  html[dir="rtl"] .hero-content { justify-self: end; text-align: right; }

  /* The 4.2rem Latin max was tuned for a full-bleed headline; the
     narrower text column reads better a touch smaller. */
  .hero-headline { font-size: clamp(2.6rem, 3.6vw, 3.6rem); }
}


/* ============================================================
   7. WHY CHOOSE US
============================================================ */
.section-why {
  padding: 5rem 0 4rem;
  background-color: var(--cream);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--warm-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform var(--transition-mid), border-color var(--transition-mid), box-shadow var(--transition-mid);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #fdf6e3, #faecc0);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon svg {
  width: 22px; height: 22px;
  color: var(--gold-dk);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
html[dir="rtl"] .feature-title { font-family: var(--font-urdu); }

.feature-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}


/* ============================================================
   8. AVAILABLE PLOTS
============================================================ */
.section-plots {
  padding: 5rem 0 4rem;
  background-color: var(--gray-50);
}

.plots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .plots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plots-grid { grid-template-columns: repeat(3, 1fr); } }
/* 5th card: center on 3-col layout */
@media (min-width: 1024px) {
  .plots-grid .plot-card:last-child:nth-child(3n-1) { grid-column: 2; }
  .plots-grid .plot-card:last-child:nth-child(3n)   { grid-column: unset; }
}

.plot-card {
  background: var(--warm-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}
.plot-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.plot-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.25);
}

.plot-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--gray-100);
}

.plot-size {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}
html[dir="rtl"] .plot-size { font-family: var(--font-urdu); }

.plot-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
html[dir="rtl"] .plot-badge { letter-spacing: 0; }
.plot-badge.available { background: #e8f7ee; color: #1a6b38; }
.plot-badge.popular   { background: linear-gradient(135deg, var(--gold), var(--gold-dk)); color: var(--navy); }
.plot-badge.limited   { background: #fff3e0; color: #b45309; }
.plot-badge.progress  { background: #e5edfb; color: #1d4ed8; }
.plot-badge.planning  { background: #f2e9fc; color: #7c3aed; }

.plot-card-body { padding: 1rem 1.25rem; flex: 1; }

.plot-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.plot-location svg { width: 13px; height: 13px; color: var(--gold-dk); flex-shrink: 0; }

.plot-stats { display: flex; flex-direction: column; gap: 0.55rem; }

.plot-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--gray-100);
}
.plot-stat:last-child { border-bottom: none; }
.plot-stat.highlight { background: linear-gradient(90deg, #fdf6e3, transparent); border-radius: 4px; padding: 0.45rem 0.5rem; }

.stat-label { font-size: 0.78rem; color: var(--gray-400); }
.stat-value { font-size: 0.88rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.plot-stat.highlight .stat-value { color: var(--gold-dk); font-size: 0.95rem; }

.plot-card-footer {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--gray-100);
}

.btn-plot-secondary {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--gold);
  color: var(--gold-dk);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.btn-plot-secondary:hover { background-color: var(--gold); color: var(--navy); }

.btn-plot-primary {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  color: var(--navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.btn-plot-primary:hover { opacity: 0.88; transform: translateY(-1px); }


/* ============================================================
   9. PAYMENT PLANS
============================================================ */
.section-plans {
  padding: 5rem 0 4.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal pattern on navy bg */
.section-plans::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    rgba(201,168,76,0.04) 0px, rgba(201,168,76,0.04) 1px,
    transparent 1px, transparent 60px
  );
  pointer-events: none;
}

/* Make section-header children white */
.section-plans .section-label { color: var(--gold-lt); }

/* Scrollable table wrapper for mobile */
.table-scroll-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  -webkit-overflow-scrolling: touch;
}
.table-scroll-wrapper::-webkit-scrollbar { height: 5px; }
.table-scroll-wrapper::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.table-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.plans-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.88rem;
}

.plans-table thead tr {
  background: rgba(201,168,76,0.15);
  border-bottom: 2px solid rgba(201,168,76,0.4);
}
.plans-table thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-lt);
  white-space: nowrap;
}
html[dir="rtl"] .plans-table thead th { text-align: right; letter-spacing: 0; }

.plans-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background-color var(--transition-fast);
}
.plans-table tbody tr:hover { background: rgba(255,255,255,0.05); }
.plans-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.03); }
.plans-table tbody tr:nth-child(even):hover { background: rgba(255,255,255,0.06); }

.plans-table tbody td {
  padding: 0.95rem 1.25rem;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
html[dir="rtl"] .plans-table tbody td { text-align: right; }

.featured-row td { background: rgba(201,168,76,0.1) !important; }

.plan-size {
  font-weight: 700;
  color: #fff !important;
}
.plan-monthly {
  color: var(--gold-lt) !important;
  font-weight: 700;
  font-size: 0.95rem !important;
}

.popular-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}
html[dir="rtl"] .popular-tag { margin-left: 0; margin-right: 0.4rem; }

.btn-table {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}
.btn-table:hover { opacity: 0.85; }

.plans-note {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

.plans-cta {
  text-align: center;
  margin-top: 2.5rem;
}


/* ============================================================
   10. LOCATION / MAP
============================================================ */
.section-location {
  padding: 5rem 0 4rem;
  background-color: var(--cream);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .location-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.location-info .section-title { text-align: left; }
.location-info .section-sub   { text-align: left; max-width: 100%; margin: 0; }
.location-info .gold-divider  { margin: 1.25rem 0 1.75rem; }
html[dir="rtl"] .location-info .section-title { text-align: right; }
html[dir="rtl"] .location-info .section-sub   { text-align: right; }
html[dir="rtl"] .location-info .gold-divider  { margin-right: 0; }

.distances-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.distance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}
.distance-item:first-child { border-top: 1px solid var(--gray-100); }

.dist-label { color: var(--gray-600); font-weight: 500; }
.dist-value {
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fdf6e3, #faecc0);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.82rem;
}

.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  height: 380px;
  border: 3px solid var(--gray-100);
}
@media (min-width: 1024px) { .map-wrapper { height: 100%; min-height: 400px; } }

.map-wrapper iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}


/* ============================================================
   11. ABOUT
============================================================ */
.section-about {
  padding: 5rem 0 4rem;
  background-color: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }

/* Stats grid (2×2) */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--warm-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

.stat-big {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}
html[dir="rtl"] .stat-big { font-family: var(--font-urdu); }

.stat-label-big {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-600);
  font-weight: 500;
  line-height: 1.4;
}

.about-content .section-title { text-align: left; }
.about-content .gold-divider  { margin: 1.25rem 0 1.5rem; }
html[dir="rtl"] .about-content .section-title { text-align: right; }

.about-para {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.1rem;
}


/* ============================================================
   11b. ABOUT PAGE — values list, mission/vision, CTA strip
============================================================ */

/* Values checklist */
.about-values {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-value-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.value-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: rgba(201,168,76,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dk);
}
.value-icon svg { width: 11px; height: 11px; stroke-width: 3; }

/* Mission & Vision section */
.section-mv {
  background: var(--cream);
  padding: 4rem 0;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .mv-grid { grid-template-columns: 1fr 1fr; }
}

.mv-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.mv-icon {
  width: 52px; height: 52px;
  background: rgba(13,33,55,0.07);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--navy);
}
.mv-icon svg { width: 24px; height: 24px; }

.mv-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
html[dir="rtl"] .mv-card-title { font-family: var(--font-urdu); }

.mv-card-desc {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* CTA strip */
.section-cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.section-cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    rgba(201,168,76,0.04) 0px, rgba(201,168,76,0.04) 1px,
    transparent 1px, transparent 60px
  );
  pointer-events: none;
}

.cta-strip-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  position: relative;
}
html[dir="rtl"] .cta-strip-title { font-family: var(--font-urdu); }

.cta-strip-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  position: relative;
}

.cta-strip-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.btn-wa-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.btn-wa-strip svg { width: 20px; height: 20px; }
.btn-wa-strip:hover { opacity: 0.88; }

/* ============================================================
   12. CONTACT
============================================================ */
.section-contact {
  padding: 5rem 0 4rem;
  background-color: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 3fr 2fr; } }

.contact-form-wrap .section-title { text-align: left; }
.contact-form-wrap .section-sub   { text-align: left; max-width: 100%; margin: 0 0 1.5rem; }
.contact-form-wrap .gold-divider  { margin: 1.25rem 0 1rem; }
html[dir="rtl"] .contact-form-wrap .section-title { text-align: right; }
html[dir="rtl"] .contact-form-wrap .section-sub   { text-align: right; }

/* Form */
.inquiry-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}
.required { color: var(--gold-dk); }
.form-optional { font-weight: 400; color: var(--gray-400); font-size: 0.78rem; }

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--warm-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px; /* touch target */
}
html[dir="rtl"] .form-input { font-family: var(--font-urdu); text-align: right; }

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
}
.form-input::placeholder { color: var(--gray-400); }
.form-input.form-textarea { resize: vertical; min-height: 100px; }

/* Custom select arrow */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239E9484' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}
html[dir="rtl"] .form-select {
  background-position: left 0.85rem center;
  padding-right: 1rem;
  padding-left: 2.5rem;
}

.form-error {
  font-size: 0.77rem;
  color: #dc2626;
  font-weight: 500;
}

.form-success {
  background: #e8f7ee;
  border: 1px solid #86efac;
  color: #1a6b38;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  margin-top: 0.5rem;
}

/* WhatsApp alternative */
.form-wa-alt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  color: var(--gray-400);
  font-size: 0.8rem;
}

.btn-wa-large {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #25D366;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.8rem 1.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn-wa-large svg { width: 20px; height: 20px; }
.btn-wa-large:hover { background-color: #1ebe5d; transform: translateY(-1px); }

/* Contact info sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #fdf6e3, #faecc0);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-icon svg { width: 18px; height: 18px; color: var(--gold-dk); }

.info-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
html[dir="rtl"] .info-title { letter-spacing: 0; }

.info-text {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

.info-link {
  font-size: 0.88rem;
  color: var(--navy-lt);
  font-weight: 500;
  transition: color var(--transition-fast);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
}
.info-link:hover { color: var(--gold-dk); text-decoration-color: var(--gold); }


/* ============================================================
   12b. CONTACT PAGE — layout aliases + new components
============================================================ */

/* Layout — alias for contact-grid used by contact.html */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 3fr 2fr; } }

/* Form section heading */
.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
html[dir="rtl"] .contact-form-title { font-family: var(--font-urdu); }

/* Info label / value — used alongside existing .info-title/.info-text */
.info-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
html[dir="rtl"] .info-label { letter-spacing: 0; }

.info-value {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* Submit button full-width on form */
.form-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

/* Privacy note below submit */
.form-privacy {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Success state — replace simple banner with centred card */
.form-success {
  background: #e8f7ee;
  border: 1px solid #86efac;
  border-radius: 14px;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.success-icon {
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
}
.success-icon svg { width: 24px; height: 24px; }
.success-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a6b38;
  margin-bottom: 0.4rem;
}
.success-msg {
  font-size: 0.9rem;
  color: #2d8249;
  line-height: 1.6;
}

/* WhatsApp contact button (sidebar) */
.wa-contact-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  margin-top: 0.25rem;
}
.wa-contact-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.wa-contact-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* Map inside contact sidebar */
.contact-map {
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ============================================================
   13. FOOTER
============================================================ */
.site-footer {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-logo-block { margin-bottom: 0.85rem; }
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 280px;
}

/* Social icons */
.footer-socials { display: flex; gap: 0.6rem; }
.social-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
  background-color: rgba(201,168,76,0.1);
}
.social-icon:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Footer columns */
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
html[dir="rtl"] .footer-col-title { font-family: var(--font-urdu); letter-spacing: 0; }

.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-link {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.footer-link:hover { color: var(--gold-lt); }

.footer-address {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin-top: 0.25rem;
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}
.footer-copy  { font-size: 0.8rem;  color: rgba(255,255,255,0.4); }
.footer-legal { font-size: 0.72rem; color: rgba(255,255,255,0.25); }


/* ============================================================
   14. RTL (URDU) LAYOUT ADJUSTMENTS
============================================================ */
html[dir="rtl"] {
  /* Flip horizontal icon/text pairs that use margin-left/right */
  direction: rtl;
}

html[dir="rtl"] .hero-ctas       { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .trust-badge     { flex-direction: row-reverse; }
html[dir="rtl"] .plot-card-footer { flex-direction: row-reverse; }
html[dir="rtl"] .info-block      { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .distance-item   { flex-direction: row-reverse; }
html[dir="rtl"] .about-stats     { direction: rtl; }
html[dir="rtl"] .stat-card       { direction: rtl; }
html[dir="rtl"] .footer-grid     { direction: rtl; }
html[dir="rtl"] .mobile-nav-link { text-align: right; }

/* Select arrow flip for RTL */
html[dir="rtl"] .popular-tag { direction: rtl; }

/* Noto Nastaliq Urdu is a calligraphic script — its loops and diagonal
   strokes extend well above and below the baseline. Any heading that
   switches to var(--font-urdu) but keeps a tight Latin line-height
   (1.1–1.2) causes consecutive lines to visually collide, which is the
   "overlapping headline" bug on the homepage hero. Give every Urdu
   heading generous line-height instead. */
html[dir="rtl"] .hero-headline,
html[dir="rtl"] .section-title,
html[dir="rtl"] .page-banner-title,
html[dir="rtl"] .stat-big {
  line-height: 1.9;
}

/* The hero headline's Latin max-font-size (4.2rem) is oversized once
   swapped to Nastaliq and can overflow narrow screens; cap it slightly
   lower for RTL only. */
html[dir="rtl"] .hero-headline {
  font-size: clamp(2.2rem, 6.2vw, 3.6rem);
}


/* ============================================================
   15. RESPONSIVE FINE-TUNING
============================================================ */

/* Small phones (375px) */
@media (max-width: 400px) {
  .hero-headline { font-size: 2rem; }
  .trust-badges  { gap: 0.4rem; }
  .trust-badge   { font-size: 0.68rem; padding: 0.3rem 0.65rem; }
  .hero-ctas     { flex-direction: column; align-items: flex-start; }
  .plots-grid    { grid-template-columns: 1fr; }
}

/* Tablet (768px) */
@media (min-width: 768px) {
  .contact-grid { gap: 4rem; }
}

/* Tablet only — the split hero layout below takes over at 1024px */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-content { padding-bottom: 8rem; }
}

/* Large desktop (1280px+) */
@media (min-width: 1280px) {
  .features-grid { gap: 1.5rem; }
  .plots-grid    { gap: 1.5rem; }
}

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


/* ============================================================
   PART 2 — MAGIC ANIMATIONS
   Keyframes + shimmer layer.  All driven by js/animations.js.
   Disabled automatically by the prefers-reduced-motion block
   above (animation-duration collapses to 0.01ms).
============================================================ */

/* Hero text elements — JS sets these inline, but declare base */
.hero-anim-ready {
  will-change: opacity, transform;
}

/* Star twinkle in hero SVG */
@keyframes star-twinkle {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.85; }
}

/* Building grow from bottom */
@keyframes building-rise {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

/* Gold shimmer sweep across a card (applied to .card-shimmer-layer child) */
@keyframes card-shimmer {
  0%   { transform: translateX(-120%) skewX(-18deg); opacity: 1; }
  100% { transform: translateX(220%)  skewX(-18deg); opacity: 0; }
}

/* Invisible div that carries the shimmer — injected by JS */
.card-shimmer-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  z-index: 2;
}
.card-shimmer-layer::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(201,168,76,0.18) 50%,
    transparent 80%
  );
  transform: translateX(-120%) skewX(-18deg);
}
.card-shimmer-layer.shimmer-run::after {
  animation: card-shimmer 0.65s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* Featured plot card — gentle continuous gold glow */
@keyframes card-glow-pulse {
  0%, 100% { box-shadow: 0 0 0   0px rgba(201,168,76,0),
                          0 8px 32px rgba(0,0,0,0.14); }
  50%       { box-shadow: 0 0 28px 6px rgba(201,168,76,0.28),
                          0 8px 32px rgba(0,0,0,0.14); }
}
.plot-card.featured {
  animation: card-glow-pulse 3.2s ease-in-out 0.8s infinite;
}

/* Monthly installment cell — gold pulse on table entry */
@keyframes value-gold-pulse {
  0%   { color: inherit;     transform: scale(1); }
  35%  { color: var(--gold); transform: scale(1.08); }
  70%  { color: var(--gold); transform: scale(1.04); }
  100% { color: inherit;     transform: scale(1); }
}
.plan-monthly.pulse-run {
  animation: value-gold-pulse 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
  display: inline-block;
}


/* ============================================================
   16. ABOUT — CORE VALUES / HISTORY / APPROACH / TEAM
   PROJECTS — ONGOING  ·  SERVICES  ·  FUTURE OUTLOOK
============================================================ */

/* Core Values — reuses the .feature-card language already
   established in "Why Choose Us" so it doesn't feel bolted on. */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px)  { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Company History timeline ───────────────────────────────── */
.section-history { padding: 5rem 0; background-color: var(--warm-white); }

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 2rem;
  border-left: 2px solid rgba(201,168,76,0.3);
}
html[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: 2rem;
  border-left: none;
  border-right: 2px solid rgba(201,168,76,0.3);
}

.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  top: 0.2rem;
  left: -2.4rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--warm-white), 0 0 0 5px rgba(201,168,76,0.35);
}
html[dir="rtl"] .timeline-dot { left: auto; right: -2.4rem; }

.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-dk);
  margin-bottom: 0.35rem;
}
html[dir="rtl"] .timeline-year { font-family: var(--font-urdu); }

.timeline-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.35rem;
}

.timeline-desc { font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; margin: 0; }

/* ── Our Approach — numbered process steps ──────────────────── */
.section-approach { padding: 5rem 0; background-color: var(--cream); }

.approach-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: approach;
  margin-top: 2.5rem;
}
@media (min-width: 768px)  { .approach-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .approach-steps { grid-template-columns: repeat(5, 1fr); } }

.approach-step {
  position: relative;
  background: var(--warm-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  counter-increment: approach;
}
.approach-number {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.approach-title { font-size: 1rem; font-weight: 600; color: var(--navy); margin: 0 0 0.4rem; }
.approach-desc  { font-size: 0.85rem; color: var(--gray-600); line-height: 1.65; margin: 0; }

/* ── Our Team ─────────────────────────────────────────────────
   Initials avatars — no dependency on real headshots yet. */
.section-team { padding: 5rem 0; background-color: var(--warm-white); }

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.team-card {
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 2rem 1.25rem;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.team-avatar {
  width: 76px; height: 76px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-lt), var(--navy));
  color: var(--gold-lt);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.team-name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--navy); margin: 0 0 0.2rem; }
html[dir="rtl"] .team-name { font-family: var(--font-urdu); }
.team-role { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold-dk); margin: 0 0 0.75rem; }
.team-bio  { font-size: 0.85rem; color: var(--gray-600); line-height: 1.65; margin: 0; }

/* ── Ongoing Projects (projects.html) ────────────────────────── */
.section-ongoing { padding: 5rem 0; background-color: var(--cream); }

.ongoing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) { .ongoing-grid { grid-template-columns: repeat(3, 1fr); } }

.ongoing-card {
  background: var(--warm-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}
.ongoing-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.ongoing-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 0; }
html[dir="rtl"] .ongoing-title { font-family: var(--font-urdu); }
.ongoing-desc  { font-size: 0.88rem; color: var(--gray-600); line-height: 1.7; margin: 0 0 0.9rem; }
.ongoing-eta   { font-size: 0.78rem; font-weight: 600; color: var(--gold-dk); }

/* ── Our Services (services.html) ────────────────────────────── */
.section-services { padding: 5rem 0; background-color: var(--warm-white); }

/* ── Future Outlook (future-outlook.html) ────────────────────── */
.section-future { padding: 5rem 0; background-color: var(--cream); }

.future-intro {
  max-width: 680px;
  margin: -1.5rem auto 2.5rem;
  text-align: center;
  font-size: 0.98rem;
  color: var(--gray-600);
  line-height: 1.75;
}


/* ============================================================
   17. HOMEPAGE — QUICK LINKS / FREE CONSULTATION BAND
============================================================ */
.section-quicklinks {
  position: relative;
  padding: 5.5rem 0;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(13,33,55,0.9), rgba(13,33,55,0.93)),
    url('../images/hero-3.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
/* Faint site-plan grid, consistent with the hero's brand signature */
.section-quicklinks::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.section-quicklinks .section-header { position: relative; z-index: 1; }
.section-quicklinks .section-title  { color: #fff; }
html[dir="rtl"] .section-quicklinks .section-title { font-family: var(--font-urdu); }

.quicklinks-sub {
  max-width: 680px;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
  position: relative;
  z-index: 1;
}
.quicklinks-sub strong { color: var(--gold-lt); font-weight: 700; }

.quicklinks-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 640px)  { .quicklinks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .quicklinks-grid { grid-template-columns: repeat(4, 1fr); } }

.quicklink-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.5);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}
.quicklink-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -16px rgba(0,0,0,0.6); }

.quicklink-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,33,55,0.95) 0%, rgba(13,33,55,0.15) 55%, transparent 75%);
  transition: background var(--transition-mid);
}
.quicklink-card:hover::after { background: linear-gradient(to top, rgba(13,33,55,0.97) 0%, rgba(13,33,55,0.3) 60%, transparent 80%); }

.quicklink-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.quicklink-card:hover img { transform: scale(1.06); }

.quicklink-label {
  position: absolute;
  left: 1.1rem; right: 1.1rem; bottom: 1.1rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
html[dir="rtl"] .quicklink-label { font-family: var(--font-urdu); font-size: 1.15rem; }
.quicklink-label svg { width: 18px; height: 18px; color: var(--gold-lt); flex-shrink: 0; transition: transform var(--transition-fast); }
html[dir="rtl"] .quicklink-label svg { transform: scaleX(-1); }
.quicklink-card:hover .quicklink-label svg { transform: translateX(4px); }
html[dir="rtl"] .quicklink-card:hover .quicklink-label svg { transform: scaleX(-1) translateX(4px); }


/* ============================================================
   18. HERO — SIZE / INSTALLMENT HIGHLIGHT
   The core USP: 3, 5 & 7 Marla homes on easy installments,
   given its own prominent row rather than buried in body copy.
============================================================ */
.hero-sizes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 1.6rem 0;
}

.hero-size-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(201,168,76,0.1);
  border: 1.5px solid rgba(201,168,76,0.45);
}
.hero-size-num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1;
}
.hero-size-unit {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-top: 3px;
}
html[dir="rtl"] .hero-size-unit { font-family: var(--font-urdu); letter-spacing: 0; text-transform: none; font-size: 0.72rem; }

.hero-sizes-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-basis: 100%;           /* sits on its own line under the six size badges */
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
html[dir="rtl"] .hero-sizes-tag {
  font-family: var(--font-urdu);
  font-size: 1rem;
  line-height: 1.9;
}
.hero-sizes-tag svg { width: 20px; height: 20px; color: var(--gold-lt); flex-shrink: 0; }

@media (max-width: 639px) {
  .hero-sizes-tag {
    border-left: none;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }
}


/* ============================================================
   18. HOMEPAGE — HERO COLONY MAP PANEL + "OUR HOMES" GALLERY
   - .hero-colony  : grid cell in the hero (stacks under the text on mobile)
   - .colony-panel : white card; slides (name + distances + map) cross-fade
                     together, driven by animations.js → runColonyPanel()
   - .section-gallery : the photo slideshow, moved out of the hero
============================================================ */

/* ── Hero colony panel ───────────────────────────────────── */
.hero-colony {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.colony-panel {
  position: relative;
  background: var(--warm-white);
  color: var(--navy);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,168,76,0.35);
}

/* thin progress line = time until the next colony */
.colony-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(201,168,76,0.18);
  z-index: 3;
}
.colony-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 90ms linear;
}
html[dir="rtl"] .colony-progress i { transform-origin: right center; }

.colony-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem 0.5rem;
}
.colony-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dk);
}
html[dir="rtl"] .colony-eyebrow { letter-spacing: 0; font-size: 0.8rem; line-height: 1.9; }

.colony-nav { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.colony-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  font-variant-numeric: tabular-nums;
  margin-inline-end: 0.35rem;
  direction: ltr;
}
.colony-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.55);
  background: #fff;
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.colony-arrow:hover,
.colony-arrow:focus-visible { background: var(--gold); border-color: var(--gold); color: #fff; outline: none; }
.colony-arrow svg { width: 15px; height: 15px; }

/* All slides share one grid cell, so the panel is always as tall as the
   tallest slide and nothing jumps when the colony changes. */
.colony-slides { display: grid; }
.colony-slide {
  grid-area: 1 / 1;
  padding: 0.25rem 1.25rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0.6s;
}
.colony-slide.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.colony-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 0.2rem;
}
.colony-name svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
html[dir="rtl"] .colony-name { font-family: var(--font-urdu); line-height: 1.9; }

.colony-info-title { font-size: 0.74rem; color: var(--gray-400); margin: 0 0 0.3rem; }
html[dir="rtl"] .colony-info-title { line-height: 1.9; font-size: 0.8rem; }

/* Same row style as the About-page distance list: label + gold pill */
.colony-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
}
.colony-info li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.8rem;
}
.colony-info li:nth-child(-n+2) { border-top: 1px solid var(--gray-100); }
.ci-label { color: var(--gray-600); font-weight: 500; line-height: 1.35; }
.ci-val {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fdf6e3, #faecc0);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.74rem;
  line-height: 1.5;
}
html[dir="rtl"] .ci-label { line-height: 1.9; }
html[dir="rtl"] .ci-val   { line-height: 1.8; }

/* Map — runs edge to edge along the bottom of the card */
.colony-map {
  position: relative;
  margin: 0.9rem -1.25rem 0;
  height: clamp(200px, 30vh, 280px);
  background: var(--gray-100);
  overflow: hidden;
}
.colony-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;      /* page scroll is never trapped by the map… */
}
.colony-panel.is-live .colony-slide.active iframe { pointer-events: auto; }  /* …until the visitor taps it */
.colony-map-shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.colony-panel.is-live .colony-map-shield { display: none; }
.colony-map-hint {
  position: absolute;
  top: 0.6rem;
  inset-inline-start: 0.6rem;
  background: rgba(13,33,55,0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity var(--transition-mid);
  pointer-events: none;
}
html[dir="rtl"] .colony-map-hint { line-height: 1.8; }
.colony-map-shield:hover .colony-map-hint,
.colony-map-shield:focus-visible .colony-map-hint { opacity: 1; }
.colony-map-shield:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
@media (hover: none) { .colony-map-hint { opacity: 0.9; } }

.colony-open {
  position: absolute;
  bottom: 0.6rem;
  inset-inline-end: 0.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.96);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(13,33,55,0.25);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.colony-open svg { width: 12px; height: 12px; }
.colony-open:hover, .colony-open:focus-visible { background: var(--gold); color: #fff; outline: none; }
html[dir="rtl"] .colony-open { line-height: 1.8; }

.colony-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 0 1rem;
  background: var(--warm-white);
}
.colony-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--gray-100);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.colony-dot:hover { background: var(--gold-lt); }
.colony-dot.active { width: 24px; border-radius: 5px; background: var(--gold); }
.colony-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (min-width: 1024px) {
  .colony-info li { font-size: 0.78rem; }
}
@media (max-width: 480px) {
  .colony-info { grid-template-columns: 1fr; }
  .colony-info li:nth-child(2) { border-top: 0; }
  .colony-map  { height: 220px; }
}
@media (max-width: 1023px) and (min-width: 481px) {
  .hero-colony { padding-bottom: 3.5rem; }
}

/* ── "Our Homes" gallery (the old hero slideshow, now its own section) ── */
.section-gallery {
  padding: 5rem 0 4.5rem;
  background-color: var(--cream);
}
.section-gallery .section-header { margin-bottom: 2.75rem; }

.gallery-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: var(--navy-dk);
  box-shadow: var(--shadow-hover), 0 0 0 1px rgba(201,168,76,0.3);
}
.gallery-frame .hero-slider { border-radius: inherit; }

@media (min-width: 768px) {
  .gallery-frame { aspect-ratio: 16 / 9; max-height: 680px; border-radius: 20px; }
  /* corner pegs, same motif as the hero panel */
  .gallery-frame::before,
  .gallery-frame::after {
    content: '';
    position: absolute;
    width: 34px; height: 34px;
    border: 2px solid var(--gold);
    z-index: 5;
    pointer-events: none;
  }
  .gallery-frame::before { top: -10px; left: -10px; border-right: none; border-bottom: none; }
  .gallery-frame::after  { bottom: -10px; right: -10px; border-left: none; border-top: none; }
}

/* The renders are portrait. In the wide frame we show them whole
   (object-fit: contain) over a blurred, enlarged copy of themselves so
   there are never empty bars at the sides. */
.section-gallery .hero-slide::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: var(--bg) center / cover no-repeat;
  filter: blur(26px) saturate(1.1) brightness(0.7);
}
.section-gallery .hero-slide img {
  position: relative;
  object-fit: contain;
  object-position: center;
}
.section-gallery .hero-overlay {
  background: linear-gradient(to top, rgba(13,33,55,0.5) 0%, transparent 38%);
}


/* Commercial Plaza badge — same tile, wider, icon instead of a number */
.hero-size-plaza {
  width: auto;
  min-width: 62px;
  padding: 0 0.9rem;
  gap: 4px;
}
.hero-size-plaza svg { width: 24px; height: 24px; color: var(--gold-lt); }
.hero-size-plaza .hero-size-unit { margin-top: 0; white-space: nowrap; }
