/* ============================================================
   Medeya International Real Estate — Dubai
   Original brand language: hot-pink + charcoal + white,
   bold uppercase grotesque, diagonal sections, pink-dot headings.
   ============================================================ */

:root {
  --pink: #ea3a6b;
  --pink-deep: #c9285a;
  --pink-dark: #a51f49;
  --pink-soft: #fce4ec;
  --pink-tint: #fdf0f4;
  --charcoal: #3a3d44;
  --charcoal-2: #2c2e34;
  --ink: #16181d;
  --muted: #6b6f76;
  --muted-2: #9aa0a8;
  --line: #e8e8ec;
  --bg: #ffffff;
  --white: #ffffff;
  --display: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1240px;
  --shadow: 0 24px 60px -28px rgba(20, 22, 28, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--pink); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.0; letter-spacing: -0.02em; text-transform: uppercase; }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pink); }
.dot { color: var(--pink); }
.h-xl { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.h-lg { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.h-md { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.lead { font-family: var(--sans); font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }

/* ---- Buttons (sharp, bold) ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 28px; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-deep); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--charcoal); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--pink-deep); border-color: #fff; }
.btn-wa { background: #25d366; color: #06351c; }
.btn-wa:hover { background: #1eb858; transform: translateY(-2px); }

/* ===================== NAV ===================== */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(0,0,0,.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); }
.brand .mark { width: 44px; flex: none; color: currentColor; }
.brand .mark svg { width: 100%; height: auto; display: block; }
.brand .word { display: flex; flex-direction: column; line-height: 1.04; font-family: var(--sans); }
.brand .word .pre { font-size: 10px; letter-spacing: 0.18em; font-weight: 400; opacity: 0.85; text-transform: lowercase; }
.brand .word .nm { font-size: 1.42rem; letter-spacing: 0.14em; font-weight: 500; text-transform: uppercase; }
.brand .word .post { font-size: 0.82rem; letter-spacing: 0.18em; font-weight: 300; text-transform: lowercase; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); transition: color .2s; }
.nav-links a:hover { color: var(--pink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang { display: inline-flex; border: 2px solid var(--ink); overflow: hidden; }
.lang button { background: transparent; border: none; color: var(--ink); cursor: pointer; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding: 7px 11px; transition: background .2s, color .2s; }
.lang button.active { background: var(--pink); color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); cursor: pointer; }

/* ===================== HERO ===================== */
.hero { position: relative; background: var(--bg); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .panel { position: absolute; top: 0; bottom: 0; left: 0; width: 64%;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0% 100%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; min-height: 620px; padding: 70px 0 90px; }
.hero-copy { color: #fff; max-width: 620px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; color: #fff; opacity: 0.95; }
.hero-eyebrow .eyebrow { color: #fff; }
.hero-eyebrow .pin { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.hero h1 { color: #fff; font-size: clamp(2.7rem, 6.6vw, 5.2rem); margin-bottom: 24px; }
.hero h1 .dot { color: var(--ink); }
.hero-sub { color: rgba(255,255,255,0.92); font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-side { position: relative; z-index: 1; }

/* hero stat card (sits on white side) */
.hero-card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 34px; }
.hero-card .k { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink); margin-bottom: 18px; }
.hero-card .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.hero-card .stat:first-of-type { border-top: none; }
.hero-card .stat b { font-family: var(--display); font-weight: 800; font-size: 2.1rem; color: var(--ink); line-height: 1; }
.hero-card .stat span { font-size: 12.5px; color: var(--muted); text-align: right; max-width: 160px; }

/* ===================== SEARCH / FILTER BAND ===================== */
.band { background: var(--pink); }
.band .wrap { padding: 26px 28px; }
.band-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.band-row .label { color: #fff; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.1rem; letter-spacing: -0.01em; margin-right: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.4); color: #fff; padding: 10px 16px; font-size: 13px; font-weight: 600; }
.chip svg { width: 15px; height: 15px; }
.band .count { margin-left: auto; background: var(--ink); color: #fff; padding: 12px 20px; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px; }

/* ===================== SECTION SHELL ===================== */
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-head { max-width: 720px; margin-bottom: 50px; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* Developers strip */
.devs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; }
.devs-track { display: flex; gap: 54px; align-items: center; animation: marquee 30s linear infinite; width: max-content; }
.devs:hover .devs-track { animation-play-state: paused; }
.devs span { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; color: #cfd2d7; letter-spacing: 0.02em; white-space: nowrap; transition: color .3s; }
.devs span:hover { color: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* About */
.about { background: var(--pink-tint); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-copy h2 { margin: 16px 0 22px; }
.about-copy .lead-strong { font-family: var(--display); font-weight: 700; text-transform: none; font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 18px; color: var(--ink); }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-card { background: var(--ink); color: #fff; padding: 40px; box-shadow: var(--shadow); }
.about-card .pin { display: inline-flex; align-items: center; gap: 8px; color: var(--pink); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.about-card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.about-card .desc { color: rgba(255,255,255,0.7); font-size: 14.5px; }
.about-card .meta { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); display: grid; gap: 14px; }
.about-card .meta div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.about-card .meta div span:first-child { color: rgba(255,255,255,0.55); }
.about-card .meta div span:last-child { color: #fff; font-weight: 600; text-align: right; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 32px; transition: background .25s ease; }
.svc:hover { background: var(--pink-tint); }
.svc .ico { width: 48px; height: 48px; display: grid; place-items: center; background: var(--pink); color: #fff; margin-bottom: 22px; }
.svc .ico svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.25rem; margin-bottom: 10px; }
.svc p { font-size: 14.5px; color: var(--muted); text-transform: none; }

/* Featured (charcoal cards, like the blog) */
.featured { background: var(--bg); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  position: relative; min-height: 360px; background: var(--charcoal); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; overflow: hidden; isolation: isolate;
  transition: transform .35s ease;
}
.feat::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .85;
  background: linear-gradient(180deg, rgba(58,61,68,0) 30%, rgba(28,30,34,0.9) 100%); }
.feat::after { content: ""; position: absolute; top: 0; right: 0; width: 140px; height: 140px; z-index: -2;
  background: radial-gradient(circle at 100% 0, rgba(234,58,107,0.55), transparent 70%); }
.feat:hover { transform: translateY(-6px); }
.feat .tag { position: absolute; top: 26px; left: 30px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; }
.feat h3 { font-size: 1.4rem; margin-bottom: 10px; }
.feat p { font-size: 13.5px; color: rgba(255,255,255,0.78); text-transform: none; margin-bottom: 16px; }
.feat .more { color: var(--pink); font-weight: 700; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.feat .more .arr { transition: transform .2s; }
.feat:hover .more .arr { transform: translateX(4px); }

/* Areas */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.area { position: relative; min-height: 200px; border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; transition: background .3s ease, transform .3s ease; overflow: hidden; }
.area .n { position: absolute; top: 22px; right: 26px; font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--line); transition: color .3s; }
.area h3 { font-size: 1.3rem; margin-bottom: 6px; }
.area span { font-size: 12.5px; color: var(--muted); text-transform: none; }
.area:hover { background: var(--pink); transform: translateY(-4px); }
.area:hover h3, .area:hover span { color: #fff; }
.area:hover .n { color: rgba(255,255,255,0.4); }

/* Catalogue form band */
.catalogue { background: var(--ink); color: #fff; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cat-copy h2 { color: #fff; margin-bottom: 18px; }
.cat-copy .h-lg .dot { color: var(--pink); }
.cat-copy p { color: rgba(255,255,255,0.72); text-transform: none; margin-bottom: 22px; }
.cat-list { list-style: none; display: grid; gap: 12px; }
.cat-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #fff; }
.cat-list li svg { flex: none; width: 20px; height: 20px; color: var(--pink); margin-top: 2px; }
.cat-form { background: #fff; color: var(--ink); padding: 36px; }
.cat-form h3 { font-size: 1.4rem; margin-bottom: 6px; }
.cat-form .sub { color: var(--muted); font-size: 14px; text-transform: none; margin-bottom: 24px; }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: #fff; border: 1px solid var(--line); border-bottom: 2px solid var(--ink);
  padding: 13px 14px; color: var(--ink); font-family: var(--sans); font-size: 15px; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pink); border-bottom-color: var(--pink); }
.field textarea { resize: vertical; min-height: 84px; }
.cat-form .btn, .contact-card .btn { width: 100%; justify-content: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-list { display: grid; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-child { padding-top: 0; }
.contact-item .ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--pink); color: #fff; }
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item .k { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-item .v { color: var(--ink); font-size: 16px; font-weight: 500; }
.contact-item a.v:hover { color: var(--pink); }
.contact-card { background: var(--pink-tint); border: 1px solid var(--line); padding: 36px; }
.contact-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.contact-card .sub { color: var(--muted); font-size: 14px; text-transform: none; margin-bottom: 24px; }

/* ===================== FOOTER (pink diagonal) ===================== */
.footer { position: relative; background: var(--pink); color: #fff; margin-top: 0; overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 22%; background: var(--pink-dark); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%); z-index: 0; }
.footer::after { content: "SOCIAL."; position: absolute; right: 36px; bottom: 28px; writing-mode: vertical-rl; font-family: var(--display); font-weight: 800; font-size: clamp(2rem,5vw,3.4rem); color: rgba(255,255,255,0.18); letter-spacing: -0.02em; z-index: 1; }
.footer .wrap { position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 40px; padding: 72px 0 48px; }
.footer .brand { color: #fff; }
.footer-about p { color: rgba(255,255,255,0.88); font-size: 14.5px; max-width: 330px; margin: 18px 0 20px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,0.5); display: grid; place-items: center; color: #fff; transition: all .2s; }
.socials a:hover { background: #fff; color: var(--pink); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.16em; color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: #fff; font-size: 14.5px; margin-bottom: 12px; transition: opacity .2s; }
.footer-col a:hover { opacity: 0.7; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 12.5px; color: rgba(255,255,255,0.8); }

/* ===================== FLOATING WIDGETS ===================== */
.floaters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; pointer-events: none; }
.floaters .wrap { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 22px; }
.float { pointer-events: auto; opacity: 0; transform: translateY(26px); transition: opacity .45s ease, transform .45s ease; }
.floaters.show .float { opacity: 1; transform: translateY(0); }
.float-info { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 20px 12px 14px; }
.float-info .pulse { position: relative; width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: var(--pink); color: #fff; }
.float-info .pulse::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--pink); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.float-info b { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.float-info span { display: block; font-size: 12px; color: var(--muted); }
.float-cta { display: flex; align-items: center; gap: 12px; }
.float-cta .btn { box-shadow: var(--shadow); }
.float-wa { pointer-events: auto; width: 56px; height: 56px; flex: none; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(37,211,102,0.6); transition: transform .2s; }
.float-wa:hover { transform: scale(1.07); }
.float-wa svg { width: 28px; height: 28px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 30px; }
  .hero-bg .panel { width: 100%; clip-path: none; }
  .about-grid, .contact-grid, .cat-grid { grid-template-columns: 1fr; gap: 34px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid, .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer::before { width: 30%; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 78px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 22px 28px; gap: 18px; }
  .services-grid, .feat-grid, .areas-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer::after { display: none; }
  .band .count { margin-left: 0; }
  .float-info span, .float-cta .btn .label { display: none; }
  .float-cta .btn { padding: 16px; }
  .floaters .wrap { padding-left: 16px; padding-right: 16px; }
}
