/* ==========================================================================
   RealtyMarket — brand styles
   Palette derived from the RealtyMarket house-mark: navy, red, green, taupe.
   ========================================================================== */

:root {
  --navy: #1b3a64;
  --navy-dark: #12283f;
  --navy-950: #0d1c2e;
  --red: #c8202c;
  --red-dark: #931823;
  --green: #1b7a49;
  --green-dark: #145c38;
  --taupe: #9c8f81;
  --taupe-dark: #7d7166;
  --taupe-light: #cdc3b7;
  --ink: #16202e;
  --grey-700: #4a5262;
  --grey-600: #5c6472;
  --grey-200: #e7e4de;
  --grey-100: #f7f6f3;
  --white: #ffffff;
  --radius: 14px;
  --container: 1180px;
  --shadow-md: 0 12px 32px rgba(13, 28, 46, 0.08);
  --shadow-lg: 0 24px 56px rgba(13, 28, 46, 0.22);
  --red-gradient: linear-gradient(120deg, var(--red-dark), var(--red));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', 'Inter', sans-serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--navy);
}

p { margin: 0 0 1em; color: var(--grey-600); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.accent-text { color: var(--red); }

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { flex-shrink: 0; }
.logo-text {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  line-height: 1;
  white-space: nowrap;
}
.logo-text b { font-weight: 800; color: var(--navy); }
.logo-text small {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.62em;
  color: var(--taupe-dark);
  margin-left: 2px;
}
.logo--light .logo-text,
.logo--light .logo-text b { color: var(--white); }
.logo--light .logo-text small { color: var(--taupe-light); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red-gradient);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(200, 32, 44, 0.28);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(200, 32, 44, 0.38); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); }

.btn-outline-dark {
  background: transparent;
  border-color: rgba(27, 58, 100, 0.2);
  color: var(--navy);
}
.btn-outline-dark:hover { border-color: var(--red); color: var(--red); }

.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  box-shadow: 0 2px 16px rgba(13, 28, 46, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  padding: 130px 0 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 820px 520px at 90% 4%, rgba(200, 32, 44, 0.22), transparent 60%),
    radial-gradient(ellipse 760px 520px at 4% 100%, rgba(27, 122, 73, 0.28), transparent 62%),
    linear-gradient(180deg, #0d1c2e 0%, #12283f 55%, #16304c 100%);
}

.hero-inner { position: relative; max-width: 780px; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero h1 span { color: var(--red); }

.hero-sub {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }

.hero-meta { color: rgba(255, 255, 255, 0.4); font-size: 0.85rem; }

/* ---------- Ticker ---------- */

.ticker {
  background: var(--navy-950);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ticker-track {
  display: inline-flex;
  gap: 40px;
  animation: scroll-left 26s linear infinite;
}
.ticker-track span {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ticker-track span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red);
}
.ticker-track span:nth-child(4n+2)::before { background: var(--green); }
.ticker-track span:nth-child(4n+3)::before { background: var(--taupe); }
.ticker-track span:nth-child(4n+4)::before { background: var(--red-dark); }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Stats ---------- */

.stats { background: var(--navy-dark); padding: 56px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--red);
}
.stat:nth-child(2) .stat-num { color: var(--green); }
.stat:nth-child(3) .stat-num { color: var(--taupe-light); }
.stat:nth-child(4) .stat-num { color: var(--red); }
.stat-label {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-top: 6px;
}

/* ---------- Section base ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--grey-100); }

.section-eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 720px;
  margin-bottom: 16px;
}
.section-lead {
  max-width: 620px;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.narrow-content { max-width: 760px; }
.narrow-content .section-title { margin-top: 40px; }
.narrow-content .section-title:first-child { margin-top: 0; }

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:nth-child(4n+2) { border-top-color: var(--red); }
.feature-card:nth-child(4n+3) { border-top-color: var(--green); }
.feature-card:nth-child(4n+4) { border-top-color: var(--taupe); }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.94rem; margin: 0; }

/* ---------- Steps ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  border-top: 4px solid var(--navy);
  box-shadow: var(--shadow-md);
}
.step:nth-child(2) { border-top-color: var(--red); }
.step:nth-child(3) { border-top-color: var(--green); }
.step:nth-child(4) { border-top-color: var(--taupe); }
.step-num {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--navy);
  display: block;
  margin-bottom: 14px;
}
.step:nth-child(2) .step-num { color: var(--red); }
.step:nth-child(3) .step-num { color: var(--green); }
.step:nth-child(4) .step-num { color: var(--taupe-dark); }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; margin: 0; }

/* ---------- Locations ---------- */

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.location-card {
  position: relative;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.location-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(13, 28, 46, 0.92) 100%);
}
.location-overlay {
  position: relative;
  padding: 24px;
  color: var(--white);
}
.location-overlay h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 4px; }
.location-overlay p { color: rgba(255, 255, 255, 0.78); font-size: 0.85rem; margin: 0; }

.loc-marina { background: linear-gradient(135deg, #0e2138, #1b3a64); }
.loc-downtown { background: linear-gradient(135deg, #1b3a64, #5c1620); }
.loc-palm { background: linear-gradient(135deg, #0f4a2e, #1b7a49); }
.loc-business-bay { background: linear-gradient(135deg, #7a1620, #c8202c); }
.loc-jvc { background: linear-gradient(135deg, #5c5348, #9c8f81); }
.loc-yas { background: linear-gradient(135deg, #145c38, #1b7a49); }

/* ---------- Service list ---------- */

.service-list { display: flex; flex-direction: column; gap: 0; }
.service-row {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--grey-200);
  align-items: flex-start;
}
.service-row:first-child { padding-top: 0; }
.service-index {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
  min-width: 50px;
}
.service-row:nth-child(4n+2) .service-index { color: var(--red); }
.service-row:nth-child(4n+3) .service-index { color: var(--green); }
.service-row:nth-child(4n+4) .service-index { color: var(--taupe-dark); }
.service-body h3 { font-size: 1.15rem; margin-bottom: 6px; transition: color 0.15s ease; }
.service-body p { margin: 0; }
a.service-row { cursor: pointer; }
a.service-row:hover .service-body h3 { color: var(--red); }
.service-link {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--red);
}

/* ---------- Check list ---------- */

.check-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; color: var(--grey-600); }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-list li:nth-child(4n+2)::before { background: var(--red); }
.check-list li:nth-child(4n+3)::before { background: var(--green); }
.check-list li:nth-child(4n+4)::before { background: var(--taupe-dark); }

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}
.back-link:hover { color: var(--white); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--grey-100);
  border-radius: 10px;
  padding: 18px 22px;
  border-left: 4px solid var(--navy);
}
.faq-item:nth-child(4n+2) { border-left-color: var(--red); }
.faq-item:nth-child(4n+3) { border-left-color: var(--green); }
.faq-item:nth-child(4n+4) { border-left-color: var(--taupe); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1rem;
  color: var(--navy);
}
.faq-item p { margin: 12px 0 0; }

/* ---------- Teaser grid (homepage section links) ---------- */

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.teaser-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.teaser-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--red); }
.teaser-card h3 { font-size: 1.15rem; margin-bottom: 0; }
.teaser-card p { font-size: 0.94rem; margin: 0; flex-grow: 1; }
.teaser-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--red);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-dark));
  padding: 80px 0;
  text-align: center;
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: rgba(255, 255, 255, 0.65); margin-bottom: 30px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
}
.contact-details { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact-details a { color: var(--navy); font-weight: 600; }

.contact-form {
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-row input,
.form-row select,
.form-row textarea {
  padding: 12px 14px;
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: var(--navy-950);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 420px at 90% -10%, rgba(200, 32, 44, 0.2), transparent 60%),
    radial-gradient(ellipse 600px 420px at 0% 110%, rgba(27, 122, 73, 0.24), transparent 62%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 720px; margin: 0; }
.page-hero h1 .accent-text { color: var(--red); }
.page-hero .hero-sub { max-width: 680px; margin-top: 18px; margin-bottom: 0; }
.page-hero-compact { padding: 70px 0 50px; }

/* ---------- Confirmation ---------- */

.confirmation-section { padding: 120px 0; }
.confirmation-box { max-width: 560px; margin: 0 auto; text-align: center; }
.confirmation-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e7f4ec;
  color: var(--green);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.confirmation-icon-error { background: #fbe8e6; color: var(--red-dark); }
.error-list { color: var(--red-dark); text-align: left; display: inline-block; margin-bottom: 24px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.7); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand p { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; margin-top: 16px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.footer-social a:hover { border-color: var(--red); color: var(--red); }
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--red); }
.footer-address { color: rgba(255, 255, 255, 0.65); }

.footer-bottom { padding: 22px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
}
.footer-disclaimer { max-width: 560px; text-align: right; }

/* ---------- WhatsApp float ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-disclaimer { text-align: left; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 30px;
    gap: 18px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; }
  .service-row { gap: 16px; }
  .hero { padding: 110px 0 70px; }
  .section { padding: 70px 0; }
}
