/* ============================================================
   JADEER Developments - Landing Page Styles
   Mobile-first, RTL, conversion-optimized
   ============================================================ */

:root {
  --brick: #A6402E;
  --brick-dark: #862F20;
  --brick-soft: #C9745F;
  --charcoal: #2B2B2B;
  --charcoal-soft: #4A4845;
  --sand: #F5F1EA;
  --sand-deep: #ECE4D7;
  --olive: #5C6B4C;
  --white: #ffffff;
  --ink: #211d1a;
  --muted: #8a8178;
  --line: rgba(43, 43, 43, 0.10);
  --shadow-sm: 0 4px 18px rgba(43, 26, 20, 0.08);
  --shadow-md: 0 14px 40px rgba(43, 26, 20, 0.14);
  --shadow-lg: 0 26px 70px rgba(43, 26, 20, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  font-family: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Default icon size (specific rules below override this) */
svg { width: 1.2em; height: 1.2em; flex-shrink: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: 64px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.section-head .eyebrow {
  display: block;
  color: var(--brick);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.section-head h2 { font-size: clamp(1.6rem, 4.5vw, 2.5rem); }
.section-head p { color: var(--charcoal-soft); margin-top: 8px; font-size: 1.02rem; }
.section-head--compact { margin-bottom: 24px; }
.section-head--compact h2 { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--brick);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(166, 64, 46, 0.35);
}
.btn-primary:hover { background: var(--brick-dark); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(166, 64, 46, 0.42); }
.btn-ghost { background: rgba(255,255,255,.12); color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 34px; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(43,26,20,.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; flex: 1; min-width: 0; }
.logo img {
  height: 44px;
  width: auto;
  max-width: min(260px, 70vw);
  object-fit: contain;
  transition: filter .3s;
}
.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
  font-family: "Tajawal", sans-serif;
}
.site-header:not(.scrolled) .header-phone { color: var(--white); }
.site-header:not(.scrolled) .logo img { filter: brightness(0) invert(1); }
.header-phone svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 30px) 50px;
  color: var(--white);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(20,12,8,.55), rgba(20,12,8,.15) 55%),
    linear-gradient(to left, rgba(20,12,8,.78), rgba(20,12,8,.30) 60%, rgba(20,12,8,.12));
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  width: 100%;
}
.hero-copy .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.hero-copy .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brick-soft); box-shadow: 0 0 0 4px rgba(201,116,95,.35); }
.hero-copy h1 { color: var(--white); font-size: clamp(2.1rem, 7vw, 3.8rem); margin-bottom: 18px; }
.hero-copy h1 .accent { color: var(--brick-soft); }
.hero-copy .lead { font-size: clamp(1rem, 2.5vw, 1.18rem); max-width: 560px; color: rgba(255,255,255,.92); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 22px 0 28px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .98rem; }
.hero-points .hero-price {
  color: #FFD089;
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  font-size: 1.25em;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 14px rgba(255, 176, 80, 0.45);
  padding-inline: 2px;
}
.hero-points svg { width: 20px; height: 20px; color: var(--brick-soft); flex-shrink: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Lead form card ---------- */
.lead-card {
  background: rgba(255,255,255,.97);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.6);
}
.lead-card .lc-title { font-size: 1.4rem; color: var(--charcoal); margin-bottom: 4px; }
.lead-card .lc-sub { color: var(--charcoal-soft); font-size: .95rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--charcoal); }
.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--sand);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus {
  outline: none;
  border-color: var(--brick);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(166,64,46,.12);
}
.field.has-error input { border-color: #d64545; background: #fdf3f3; }
.field .err-msg { color: #d64545; font-size: .82rem; margin-top: 5px; display: none; }
.field.has-error .err-msg { display: block; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.form-note svg { width: 15px; height: 15px; color: var(--olive); }

.form-success {
  display: none;
  text-align: center;
  padding: 18px 8px;
}
.form-success.show { display: block; animation: pop .4s var(--ease); }
.form-success .check {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--olive);
  display: grid; place-items: center;
  color: #fff;
}
.form-success .check svg { width: 34px; height: 34px; }
.form-success h3 { color: var(--olive); margin-bottom: 6px; }
.form-success p { color: var(--charcoal-soft); font-size: .95rem; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Trust / highlights strip ---------- */
.highlights { background: var(--charcoal); color: var(--white); }
.highlights .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  padding-block: 44px;
}
.hl-item { text-align: center; }
.hl-item .num { font-family: "Tajawal", sans-serif; font-weight: 800; font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--brick-soft); line-height: 1; }
.hl-item .lbl { font-size: .92rem; color: rgba(255,255,255,.8); margin-top: 8px; }

/* ---------- Partners ---------- */
.partners { background: var(--sand-deep); }
.partners-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.partner-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.partner-card .pname { font-family: "Tajawal", sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--charcoal); letter-spacing: .04em; }
.partner-card .prole { color: var(--brick); font-size: .92rem; margin-top: 6px; font-weight: 600; }

/* ---------- Amenities ---------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.amenity {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.amenity:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(166,64,46,.3); }
.amenity .ic {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(166,64,46,.12), rgba(201,116,95,.18));
  display: grid; place-items: center;
  color: var(--brick);
}
.amenity .ic svg { width: 28px; height: 28px; }
.amenity p { font-weight: 600; font-size: .95rem; color: var(--charcoal); }

/* ---------- Units ---------- */
.units-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.unit-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.unit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.unit-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.unit-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.unit-card:hover .unit-media img { transform: scale(1.06); }
.unit-media .tag {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  background: rgba(43,43,43,.82);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.unit-body { padding: 20px 22px 24px; }
.unit-body h3 { font-size: 1.35rem; }
.unit-body .area { color: var(--charcoal-soft); font-size: .95rem; margin: 4px 0 16px; }
.unit-body .price-label { font-size: .82rem; color: var(--muted); }
.unit-body .price { font-family: "Tajawal", sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--brick); line-height: 1.1; }
.unit-body .price span { font-size: .95rem; color: var(--charcoal-soft); font-weight: 600; }
.unit-body .btn { margin-top: 18px; }

/* ---------- Payment plans ---------- */
.payment { background: var(--sand-deep); }
.plans-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.plan-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  border: 1.5px solid var(--line);
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.plan-card.featured { border-color: var(--brick); box-shadow: var(--shadow-md); }
.plan-card.featured::before {
  content: "الأكثر طلبًا";
  position: absolute;
  inset-block-start: -13px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  background: var(--brick);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
}
.plan-card .down { font-family: "Tajawal", sans-serif; font-weight: 800; font-size: 3rem; color: var(--brick); line-height: 1; }
.plan-card .down small { font-size: 1rem; }
.plan-card .phead { font-weight: 700; color: var(--charcoal); margin: 8px 0 16px; font-size: 1.15rem; }
.plan-card ul { display: flex; flex-direction: column; gap: 10px; }
.plan-card li { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--charcoal-soft); font-size: .96rem; }
.plan-card li svg { width: 18px; height: 18px; color: var(--olive); flex-shrink: 0; }

/* ---------- Guarantee band ---------- */
.guarantee {
  background: linear-gradient(120deg, var(--brick-dark), var(--brick));
  color: #fff;
  text-align: center;
}
.guarantee .container { max-width: 820px; }
.guarantee .gic {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.4);
}
.guarantee .gic svg { width: 38px; height: 38px; color: #fff; }
.guarantee h2 { color: #fff; font-size: clamp(1.5rem, 4.5vw, 2.2rem); margin-bottom: 14px; }
.guarantee p { font-size: clamp(1.05rem, 3vw, 1.25rem); color: rgba(255,255,255,.95); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery-grid figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.08); }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.final-cta .cta-bg { position: absolute; inset: 0; z-index: -2; }
.final-cta .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.final-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20,12,8,.85), rgba(20,12,8,.6)); }
.final-cta .container { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.final-cta .cta-copy h2 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.6rem); margin-bottom: 14px; }
.final-cta .cta-copy p { color: rgba(255,255,255,.9); font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.78); padding-block: 48px 30px; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img {
  height: 48px;
  width: auto;
  max-width: min(280px, 75vw);
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
}
.footer-brand p { font-size: .95rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.footer-col li svg { width: 18px; height: 18px; color: var(--brick-soft); flex-shrink: 0; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: grid; place-items: center;
  transition: background .25s, transform .25s;
}
.footer-social a:hover { background: var(--brick); transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; color: #fff; }
.footer-bottom { text-align: center; padding-top: 24px; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-start: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  z-index: 90;
  transition: transform .25s;
  animation: waPulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }
@keyframes waPulse {
  0% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 -6px 24px rgba(43,26,20,.14);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: none;
  gap: 10px;
  z-index: 95;
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { flex: 1; padding: 13px; font-size: 1rem; }
.mobile-cta .btn svg { width: 22px; height: 22px; }
.mobile-cta a[href^="tel"] { flex: 0 0 52px; }
.mobile-cta .btn-wa { background: #25D366; color: #fff; flex: 0 0 52px; padding: 13px; }

/* ---------- Urgency ribbon ---------- */
.urgency {
  background: var(--olive);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.urgency svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 0; }
  .wa-float { inset-block-end: 84px; }
  :root { --header-h: 80px; }
  .logo img {
    height: 46px;
    max-width: 72vw;
  }
  .header-phone span { display: none; }
  .header-phone {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    justify-content: center;
  }
  .site-header.scrolled .header-phone { background: rgba(166,64,46,.12); }
}

@media (min-width: 720px) {
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
  .units-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .highlights .container { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 980px) {
  :root { --header-h: 84px; }
  .section { padding-block: 88px; }
  .logo img { height: 52px; max-width: 300px; }
  .footer-brand img { height: 52px; }
  .hero .container { grid-template-columns: 1.15fr 0.85fr; gap: 50px; }
  .lead-card { padding: 34px 30px; }
  .amenities-grid { grid-template-columns: repeat(4, 1fr); }
  .units-grid { grid-template-columns: repeat(4, 1fr); }
  .final-cta .container { grid-template-columns: 1fr 420px; }
  .header-cta .btn { display: inline-flex; }
}

/* small phones */
@media (max-width: 380px) {
  .container { padding-inline: 16px; }
  .highlights .container { gap: 22px 10px; }
  .logo img { height: 42px; max-width: 74vw; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
