/* remax.mkw.group — RE/MAX Estates landing
 * Visual identity: bound to RE/MAX HQ 2025 brand standards.
 * Palette: Maroon · Red · Cream · Navy · Royal Blue (per Balloon Pin) */

:root {
  --bg-cream:    #F5F1EA;     /* RE/MAX cream */
  --bg-cream-2:  #EBE5D6;
  --maroon:      #5E0000;     /* Pin top-left */
  --red:         #FF1A1A;     /* Pin top-right — accent CTA */
  --navy:        #0E1538;     /* Pin bottom-left */
  --blue:        #1F4FFF;     /* Pin bottom-right — secondary accent */
  --ink:         #0E1538;
  --ink-soft:    #475569;
  --line:        rgba(14, 21, 56, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg-cream);
  color: var(--ink);
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body[lang="en"] { font-family: 'Inter', system-ui, sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Floating language toggle ── */
.lang-toggle-floating {
  position: fixed;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 100;
  background: var(--navy);
  color: var(--bg-cream);
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(14, 21, 56, 0.25);
  transition: transform 0.18s, background 0.18s;
}
.lang-toggle-floating:hover { transform: translateY(-2px); background: #1A2750; }

/* ── Back link ── */
.back-link {
  position: fixed;
  top: 22px;
  inset-inline-start: 22px;
  z-index: 100;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: rgba(245, 241, 234, 0.85);
  padding: 7px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  transition: background 0.18s;
}
.back-link:hover { background: rgba(245, 241, 234, 1); }

/* ── HERO ── */
.hero {
  position: relative;
  background: var(--bg-cream);
  padding: clamp(7rem, 14vw, 10rem) 1.5rem clamp(4rem, 8vw, 6rem);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; inset-inline-end: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255, 26, 26, 0.07), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; inset-inline-start: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(31, 79, 255, 0.06), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(14, 21, 56, 0.06);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
}

/* Logo lockup: balloon pin + RE/MAX wordmark + Estates */
.lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 1.2vw, 1rem);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.lockup-pin {
  width: clamp(3rem, 6vw, 4.2rem);
  height: auto;
  flex-shrink: 0;
}
.lockup-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
html[dir="rtl"] .lockup-text { align-items: flex-end; }
.lockup-wordmark {
  height: clamp(1.6rem, 3.2vw, 2.4rem);
  width: auto;
}
.lockup-suffix {
  font-family: 'Inter', 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(0.95rem, 1.7vw, 1.25rem);
  letter-spacing: 0.18em;
  color: var(--navy);
  margin-top: 0.35rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Inter', 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 1.25rem;
}
body[lang="ar"] .hero-title { font-family: 'Cairo', sans-serif; font-weight: 800; }

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 44rem;
  margin: 0 auto 2rem;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 0.95rem 1.85rem;
  border-radius: 4px;        /* sharp corners — architectural / Remax-style */
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.btn-primary {
  background: var(--red);
  color: #FFF;
  box-shadow: 0 14px 30px -10px rgba(255, 26, 26, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -10px rgba(255, 26, 26, 0.6); background: #E60000; }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--bg-cream); }

/* ── ABOUT ── */
.about {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
  text-align: center;
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--red);
  margin-bottom: 1.4rem;
}
.section-title {
  font-family: 'Inter', 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 1.25rem;
}
body[lang="ar"] .section-title { font-family: 'Cairo', sans-serif; font-weight: 800; }
.about-body {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--ink-soft);
}

/* ── SERVICES ── */
.services {
  background: var(--bg-cream-2);
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
}
.services-inner { max-width: 70rem; margin: 0 auto; }
.services-header { text-align: center; margin-bottom: 3rem; }
.services-subtitle { color: var(--ink-soft); margin-top: 0.5rem; font-size: 1rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--blue) 100%);
  border-radius: 8px 8px 0 0;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -20px rgba(14, 21, 56, 0.18);
}
.service-icon {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: rgba(255, 26, 26, 0.08);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.5rem;
}
.service-icon svg { width: 1.5rem; height: 1.5rem; stroke-width: 2; }
.service-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.35;
}
.service-body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ── WHY ── */
.why {
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
  max-width: 70rem;
  margin: 0 auto;
}
.why-header { text-align: center; margin-bottom: 3rem; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}
.why-card {
  text-align: center;
  padding: 1.5rem 1rem;
}
.why-num {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.85rem;
  letter-spacing: -0.03em;
}
.why-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.why-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ── CONTACT (CTA section, navy bg) ── */
.contact {
  background: linear-gradient(135deg, var(--navy) 0%, #1A2750 100%);
  color: var(--bg-cream);
  padding: clamp(5rem, 10vw, 7rem) 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(255, 26, 26, 0.12), transparent 60%);
}
.contact-inner { max-width: 50rem; margin: 0 auto; position: relative; }
.contact .kicker { color: var(--red); border-bottom-color: var(--red); }
.contact .section-title { color: var(--bg-cream); }
.contact-lead {
  color: rgba(245, 241, 234, 0.85);
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 1.25rem auto 2rem;
  max-width: 40rem;
}

.contact-call {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 2.2rem;
  background: var(--red);
  color: #FFF;
  border-radius: 4px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 40px -10px rgba(255, 26, 26, 0.5);
  margin-bottom: 2rem;
  transition: transform 0.2s, background 0.2s;
}
.contact-call:hover { transform: translateY(-3px); background: #E60000; }

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.channel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: rgba(245, 241, 234, 0.08);
  border: 1px solid rgba(245, 241, 234, 0.18);
  color: rgba(245, 241, 234, 0.92);
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.channel-btn:hover {
  background: rgba(245, 241, 234, 0.16);
  border-color: rgba(245, 241, 234, 0.4);
  transform: translateY(-2px);
}
.channel-btn svg { width: 1.25rem; height: 1.25rem; }

.address-line {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(245, 241, 234, 0.6);
  letter-spacing: 0.04em;
}
.address-line strong { color: rgba(245, 241, 234, 0.9); font-weight: 700; }

/* ── FOOTER ── */
.site-footer {
  background: #060A1E;
  color: rgba(245, 241, 234, 0.6);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(245, 241, 234, 0.06);
}
.endorsement {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2rem;
  border: 1px solid rgba(245, 241, 234, 0.1);
  border-radius: 8px;
  background: rgba(245, 241, 234, 0.03);
  margin-bottom: 1.25rem;
  transition: background 0.2s, border-color 0.2s;
}
.endorsement:hover {
  background: rgba(245, 241, 234, 0.06);
  border-color: rgba(245, 241, 234, 0.18);
}
.endorsement img {
  height: 2.6rem;
  width: auto;
  filter: brightness(1.1);
}
.endorsement-line {
  font-size: 0.78rem;
  color: rgba(245, 241, 234, 0.7);
  letter-spacing: 0.02em;
}
.footer-indep {
  font-size: 0.7rem;
  color: rgba(245, 241, 234, 0.45);
  margin-top: 0.85rem;
  letter-spacing: 0.05em;
}
.footer-copy {
  font-size: 0.68rem;
  color: rgba(245, 241, 234, 0.35);
  margin-top: 0.85rem;
  max-width: 40rem;
  margin-inline: auto;
  line-height: 1.6;
}

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

/* ── responsive ── */
@media (max-width: 480px) {
  .back-link { padding: 6px 10px; font-size: 11px; }
  .lang-toggle-floating { padding: 7px 14px; font-size: 12px; }
  .lockup { gap: 0.5rem; }
}
