*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--pearl-sheen); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
[hidden] { display: none !important; }

.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.sec { position: relative; overflow: hidden; padding-block: clamp(5rem, 12vw, 9.5rem); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
[dir='rtl'] .flip { transform: scaleX(-1); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h3 { font-size: 1.6rem; }
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3, [dir='rtl'] h4 { line-height: 1.35; letter-spacing: 0; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--matcha-700); margin-bottom: 1.1rem; display: flex; align-items: center; gap: .8rem; }
.eyebrow::before { content: ''; width: 2.2rem; height: 1px; background: currentColor; }
[dir='rtl'] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 40rem; margin-top: 1.3rem; }

.btn { display: inline-flex; align-items: center; gap: .7rem; padding: .95rem 1.7rem; border-radius: 999px; border: 1px solid var(--matcha-700); background: var(--matcha-700); color: var(--pearl); text-decoration: none; font-weight: 500; transition: transform .35s var(--ease), background .3s, box-shadow .3s; box-shadow: 0 12px 30px -14px var(--matcha-900); }
.btn:hover { transform: translateY(-3px); background: var(--matcha-900); }
.btn.ghost { background: transparent; color: var(--matcha-900); box-shadow: none; }
.btn.ghost:hover { background: var(--matcha-100); }
.btn.light { background: var(--cream); color: var(--matcha-900); border-color: var(--cream); }
.btn.light:hover { background: var(--pearl); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* decorative blobs */
.blob { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }
.b1 { width: 560px; height: 560px; top: -140px; inset-inline-end: -160px; background: radial-gradient(circle at 35% 35%, var(--matcha-300), transparent 68%); opacity: .7; }
.b2 { width: 420px; height: 420px; bottom: -80px; inset-inline-start: -120px; background: radial-gradient(circle, var(--cream-2), transparent 70%); }
.b3 { width: 180px; height: 180px; top: 24%; inset-inline-start: 46%; background: radial-gradient(circle, var(--matcha-100), transparent 70%); }
.b4 { width: 420px; height: 420px; top: 10%; inset-inline-end: -140px; background: radial-gradient(circle, var(--cream), transparent 70%); }
.b5 { width: 460px; height: 460px; top: -100px; inset-inline-start: -160px; background: radial-gradient(circle, var(--matcha-100), transparent 70%); }
.b6 { width: 380px; height: 380px; bottom: -120px; inset-inline-end: -100px; background: radial-gradient(circle, var(--cream-2), transparent 70%); opacity: .8; }
.b7 { width: 520px; height: 520px; top: -160px; inset-inline-end: -120px; background: radial-gradient(circle, rgba(141, 163, 107, .5), transparent 70%); }
.b8 { width: 340px; height: 340px; bottom: -100px; inset-inline-start: -80px; background: radial-gradient(circle, rgba(243, 234, 211, .22), transparent 70%); }
.ring { position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px dashed var(--matcha-300); top: 18%; inset-inline-start: 4%; pointer-events: none; }

/* reveal + hero entrance */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.rise { opacity: 0; animation: rise 1s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, box-shadow .4s, padding .4s; padding-block: 1.2rem; }
.nav.scrolled, .nav.open { background: rgba(253, 252, 250, .82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); padding-block: .7rem; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; text-decoration: none; color: var(--matcha-900); }
.nav-panel { display: flex; align-items: center; gap: 2.2rem; }
.nav-panel nav { display: flex; gap: 2rem; }
.nav-panel nav a { text-decoration: none; font-size: .95rem; color: var(--ink); position: relative; padding-block: .3rem; }
.nav-panel nav a::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: var(--matcha-700); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav-panel nav a:hover::after { transform: scaleX(1); }
.langs { display: flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: var(--matcha-100); }
.lang { border: 0; background: transparent; display: inline-flex; align-items: center; gap: .4rem; height: 2rem; padding: 0 .75rem 0 .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--matcha-700); transition: background .25s, color .25s; }
.lang .flag { width: 1.3rem; height: .9rem; border-radius: 3px; box-shadow: 0 0 0 1px rgba(42, 50, 35, .18); flex: none; }
.lang[lang='ar'] span { font-family: 'Tajawal', sans-serif; font-size: 1rem; line-height: 1; }
.lang:hover:not(.on) { background: rgba(94, 117, 69, .12); }
.lang.on { background: var(--matcha-700); color: var(--pearl); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--pearl-2); position: relative; }
.burger span { position: absolute; inset-inline: 13px; height: 1.5px; background: var(--matcha-900); transition: transform .3s; }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.nav.open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* hero */
.sec-hero { min-height: 100svh; display: flex; align-items: center; padding-block: 7rem 5rem; background: linear-gradient(180deg, transparent, rgba(243, 234, 211, .6)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; position: relative; }
.hero-visual { position: relative; justify-self: center; width: min(100%, 460px); }
.arch { aspect-ratio: 4 / 5; border-radius: 999px 999px 32px 32px; overflow: hidden; box-shadow: var(--shadow); border: 8px solid var(--pearl-2); }
.arch img, .frame img, .card-img img, .band-img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.chip { position: absolute; padding: .9rem 1.2rem; border-radius: 18px; background: rgba(253, 252, 250, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; line-height: 1.25; will-change: transform; }
.chip strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--matcha-700); }
.chip span { font-size: .78rem; color: var(--muted); }
.c0 { top: 10%; inset-inline-start: -14%; }
.c1 { top: 52%; inset-inline-end: -12%; }
.c2 { bottom: 4%; inset-inline-start: -8%; }
.scroll-cue { position: absolute; bottom: 1.6rem; inset-inline-start: 50%; width: 22px; height: 38px; border: 1.5px solid var(--matcha-500); border-radius: 12px; }
.scroll-cue i { position: absolute; top: 7px; inset-inline-start: 50%; width: 3px; height: 8px; margin-inline-start: -1.5px; border-radius: 2px; background: var(--matcha-700); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* about */
.sec-about { background: var(--pearl-2); }
.bigword { position: absolute; top: 3%; inset-inline-start: -4%; font-family: var(--font-display); font-size: clamp(7rem, 22vw, 20rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--matcha-300); white-space: nowrap; pointer-events: none; user-select: none; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; position: relative; }
.about-visual { position: relative; aspect-ratio: 1 / 1.1; }
.a1-wrap { width: 74%; }
.a2-wrap { position: absolute; width: 52%; bottom: -6%; inset-inline-end: 0; }
.frame { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.a1 { aspect-ratio: 3 / 4; border-radius: 999px 999px var(--radius) var(--radius); }
.a2 { aspect-ratio: 1; border: 8px solid var(--pearl-2); border-radius: 50%; }
.prose p + p { margin-top: 1rem; }
.prose { margin-top: 1.5rem; color: var(--muted); }
.values { display: grid; gap: 1.2rem; margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.values li { display: flex; gap: 1.2rem; align-items: baseline; }
.values b { font-family: var(--font-display); font-size: 1.6rem; color: var(--matcha-500); font-weight: 500; }
.values h4 { font-size: 1.4rem; } .values p { color: var(--muted); font-size: .95rem; }

/* parallax image band */
.sec-showcase { padding: 0; }
.band { position: relative; height: clamp(420px, 78vh, 760px); overflow: hidden; display: grid; place-items: center; text-align: center; color: var(--pearl); }
.band-img { position: absolute; inset: 0; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(52, 64, 42, .55), rgba(52, 64, 42, .72)); }
.band blockquote { position: relative; }
.band p { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.15; max-width: 22ch; margin-inline: auto; }
.band cite { display: block; margin-top: 1.5rem; font-style: normal; letter-spacing: .12em; font-size: .85rem; color: var(--cream); }

/* section head, grids */
.sec-head { max-width: 46rem; margin-bottom: 3rem; }
.grid { display: grid; gap: 2rem; }
.props { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.svcs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* properties */
.sec-properties { background: var(--pearl); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.pill { padding: .55rem 1.3rem; border-radius: 999px; border: 1px solid var(--line); background: var(--pearl-2); transition: all .3s; }
.pill:hover { border-color: var(--matcha-500); }
.pill.on { background: var(--matcha-700); color: var(--pearl); border-color: var(--matcha-700); }
.card { background: var(--pearl-2); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 40px -26px rgba(52, 64, 42, .5); border: 1px solid rgba(94, 117, 69, .1); }
.card { cursor: pointer; }
.card.in:hover { transform: translateY(-8px); box-shadow: var(--shadow); transition-delay: 0s; }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.tag { position: absolute; top: 1rem; inset-inline-start: 1rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(253, 252, 250, .88); font-size: .75rem; font-weight: 600; color: var(--matcha-700); }
.card-body { padding: 1.5rem 1.6rem 1.7rem; }
.loc { display: flex; gap: .4rem; align-items: center; color: var(--muted); font-size: .88rem; }
.card h3 { margin: .4rem 0 1rem; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .88rem; color: var(--muted); }
.meta li { display: flex; align-items: center; gap: .4rem; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.price-row strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--matcha-700); font-weight: 600; }
.price-row small { font-family: var(--font-body); font-size: .75rem; color: var(--muted); font-weight: 400; }
.link { border: 0; background: none; display: inline-flex; align-items: center; gap: .4rem; color: var(--matcha-700); font-weight: 500; font-size: .9rem; padding: 0; }
.link:hover .ico { transform: translateX(4px); } [dir='rtl'] .link:hover .ico { transform: scaleX(-1) translateX(4px); }
.empty { color: var(--muted); }

/* services */
.sec-services { background: linear-gradient(180deg, var(--cream), #f7f0dd); }
.svc { padding: 2rem; border-radius: var(--radius); background: rgba(253, 252, 250, .66); border: 1px solid rgba(255, 255, 255, .8); backdrop-filter: blur(6px); box-shadow: 0 10px 40px -30px var(--matcha-900); }
.svc .ico { width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: 14px; background: var(--matcha-100); color: var(--matcha-700); }
.svc h3 { margin: 1.2rem 0 .6rem; } .svc p { color: var(--muted); }

/* contact */
.sec-contact { background: linear-gradient(160deg, var(--matcha-900), #455535); color: var(--pearl); }
.sec-contact .eyebrow { color: var(--matcha-300); } .sec-contact .lead { color: rgba(248, 247, 243, .78); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); position: relative; }
.details { margin-top: 2.2rem; display: grid; gap: .7rem; color: var(--cream); }
.details a { text-decoration: none; border-bottom: 1px solid rgba(243, 234, 211, .35); }
.form { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); background: rgba(253, 252, 250, .08); border: 1px solid rgba(253, 252, 250, .16); backdrop-filter: blur(10px); }
.form label { display: grid; gap: .4rem; font-size: .85rem; color: var(--cream); }
.form input, .form textarea { font: inherit; padding: .85rem 1rem; border-radius: 14px; border: 1px solid rgba(253, 252, 250, .2); background: rgba(253, 252, 250, .92); color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--matcha-300); outline-offset: 1px; }
.form .btn { justify-content: center; border: 0; }

/* footer */
.footer { background: var(--cream-2); padding-block: 3rem 6rem; } /* extra bottom space: the floating WhatsApp button must not cover the last line */
.footer:empty { display: none; } /* empty until JS renders: otherwise it jumps down (layout shift) */
#main:empty { min-height: 100svh; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: end; }
.footer p { color: var(--matcha-900); opacity: .8; } .footer .small { font-size: .85rem; text-align: end; }
.foot-right { display: grid; gap: .8rem; justify-items: end; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem 1.4rem; }
.foot-links a { color: var(--matcha-900); text-decoration: none; font-size: .9rem; border-bottom: 1px solid rgba(52, 64, 42, .3); }
.foot-links a:hover { border-bottom-color: var(--matcha-700); color: var(--matcha-700); }

/* whatsapp floating button (always bottom-right, also in RTL) */
.wa-float { position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .65), 0 4px 12px rgba(0, 0, 0, .18); transition: transform .3s var(--ease), box-shadow .3s; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.55); opacity: 0; } }
body.lock .wa-float { display: none; }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* property modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.25rem; background: rgba(42, 50, 35, .55); backdrop-filter: blur(8px); animation: fade .3s; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(960px, 100%); background: var(--pearl-2); border-radius: var(--radius); overflow: hidden; animation: rise .5s var(--ease); max-height: 100%; }
/* carousel (property photos) */
.carousel { position: relative; overflow: hidden; min-height: 320px; background: var(--cream); user-select: none; -webkit-user-select: none; }
.carousel { touch-action: pan-y; cursor: grab; }
.car-track { display: flex; height: 100%; direction: ltr; transition: transform .5s var(--ease); }
.car-track.drag { transition: none; }
.carousel:active { cursor: grabbing; }
.car-track img { flex: 0 0 100%; width: 100%; height: 100%; min-height: 320px; object-fit: cover; pointer-events: none; }
.car-btn { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(253, 252, 250, .92); color: var(--matcha-900); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); transition: transform .25s var(--ease), background .25s; }
.car-btn:hover { background: #fff; transform: scale(1.08); }
.car-btn .ico { width: 1.3rem; height: 1.3rem; }
.car-left { left: .8rem; } .car-right { right: .8rem; }
.car-left .ico { transform: scaleX(-1); }
.car-dots { position: absolute; bottom: .9rem; left: 0; right: 0; display: flex; justify-content: center; gap: .45rem; }
.car-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); transition: width .3s var(--ease), background .3s; }
.car-dot.on { width: 24px; background: #fff; }
.car-count { position: absolute; top: .9rem; left: .9rem; padding: .2rem .7rem; border-radius: 999px; background: rgba(42, 50, 35, .6); color: #fff; font-size: .75rem; letter-spacing: .04em; }
.car-btn:focus-visible, .car-dot:focus-visible { outline: 2px solid var(--matcha-300); outline-offset: 2px; }
/* photo-count badge on property cards */
.count { position: absolute; bottom: .8rem; inset-inline-start: 1rem; display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(42, 50, 35, .62); color: #fff; font-size: .75rem; backdrop-filter: blur(4px); }
.count .ico { width: .95rem; height: .95rem; }
.modal-body { padding: clamp(1.5rem, 3vw, 2.6rem); display: grid; gap: 1rem; align-content: center; overflow-y: auto; }
.modal-price { font-family: var(--font-display); font-size: 2rem; color: var(--matcha-700); }
.modal-body .btn { justify-self: start; margin-top: .5rem; }
.x { position: absolute; top: .8rem; inset-inline-end: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(253, 252, 250, .9); font-size: 1.5rem; line-height: 1; z-index: 1; }

/* responsive */
@media (max-width: 900px) {
  .burger { display: block; }
  .nav-panel { position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 1.2rem; padding: 1.2rem 1.25rem 1.6rem; background: var(--pearl-2); box-shadow: 0 20px 40px -24px rgba(52, 64, 42, .5); display: none; }
  .nav.open .nav-panel { display: flex; }
  .nav-panel nav { flex-direction: column; gap: .4rem; }
  .nav-panel nav a { padding: .6rem 0; font-size: 1.1rem; }
  .langs { align-self: flex-start; }
  .hero-grid, .about-grid, .contact-grid, .modal-card { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 380px); margin-top: 1rem; }
  .c0 { inset-inline-start: -4%; } .c1 { inset-inline-end: -4%; } .c2 { inset-inline-start: -2%; }
  .about-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .scroll-cue { display: none; }
  .foot-in { align-items: start; } .footer .small { text-align: start; }
  .foot-right { justify-items: start; } .foot-links { justify-content: flex-start; }
  .carousel, .car-track img { min-height: 0; height: 260px; }
  .car-btn { width: 40px; height: 40px; margin-top: -20px; }
}
@media (max-width: 480px) {
  .chip { padding: .6rem .8rem; } .chip strong { font-size: 1.4rem; }
  .ring { width: 260px; height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .rise { opacity: 1; transform: none; animation: none; transition: none; }
  .scroll-cue i { animation: none; }
}
