/* ════════════════════════════════════════════════════════════
   RE/MAX Jareed — Landing Page Styles
   Brand: Navy #003DA5 · Red #DC1C2E · Light Blue #00A3E2
   ════════════════════════════════════════════════════════════ */

:root {
  --navy: #003DA5;
  --navy-dark: #002B7A;
  --red: #DC1C2E;
  --red-dark: #B5161F;
  --blue: #00A3E2;
  --gold: #C9A961;
  --bg: #FFFFFF;
  --bg-soft: #F8F9FB;
  --bg-dark: #0A1A3D;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-mute: #767676;
  --line: #E5E7EB;
  --line-soft: #F0F2F5;
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1180px;
  --font-en: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ar: 'Cairo', 'Inter', system-ui, sans-serif;
}

/* ──────────── Base ──────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
[lang="ar"] body, [lang="ar"] * { font-family: var(--font-ar); }
[dir="rtl"] { text-align: right; }

img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; color: var(--ink-soft); }
[dir="rtl"] ul { padding-left: 0; padding-right: 1.25rem; }
blockquote { margin: 0; padding: 0; }
cite { font-style: normal; color: var(--ink-mute); font-size: .9rem; display: block; margin-top: 1rem; }

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

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
}
.eyebrow-accent { color: var(--gold); }

/* ──────────── Buttons ──────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ──────────── Header ──────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}
.brand:hover { color: var(--navy); }
.brand-logo { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text strong { display: block; font-weight: 800; line-height: 1; color: var(--ink); }
.brand-text em { font-style: normal; font-size: .85rem; color: var(--red); font-weight: 600; }
.nav-main {
  display: flex;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}
.nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .92rem;
  position: relative;
  padding: .5rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .15s ease;
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-toggle {
  background: none;
  border: 1px solid var(--line);
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: .85rem;
  color: var(--ink-soft);
  transition: all .15s ease;
}
.lang-toggle:hover { border-color: var(--navy); color: var(--navy); }
.nav-toggle { display: none; }

/* ──────────── Hero ──────────── */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FB 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(248,249,251,0.85) 70%, rgba(255,255,255,0.95) 100%),
    radial-gradient(circle at 80% 20%, rgba(0,61,165,0.10) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(220,28,46,0.08) 0%, transparent 50%),
    url('/images/fb/cover.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-content { max-width: 820px; }
.hero-title {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  max-width: 720px;
}
.hero-subtitle strong { color: var(--red); font-weight: 700; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat span { font-size: .85rem; color: var(--ink-mute); }

/* ──────────── Sections ──────────── */
.section { padding: 5rem 0; }
.section-light { background: var(--bg-soft); }
.section-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-dark .eyebrow { color: var(--gold); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head-light h2 { color: #fff; }
.section-lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}
.section-dark .section-lede { color: rgba(255,255,255,0.8); }

/* ──────────── About ──────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p { font-size: 1.05rem; }
.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.pillar {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .15s ease;
}
.pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--navy); }
.pillar-icon { font-size: 2rem; margin-bottom: .75rem; }
.pillar h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.pillar p { font-size: .9rem; margin: 0; }

/* ──────────── Services ──────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  position: relative;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--navy); }
.service-card-featured {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--navy-dark) 100%);
  color: #fff;
  border-color: var(--navy);
}
.service-card-featured h3, .service-card-featured p { color: #fff; }
.service-card-featured ul { color: rgba(255,255,255,0.85); }
.service-card-featured strong { color: var(--gold); }
.service-card-featured:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,61,165,0.3); }
.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--red);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 999px;
}
[dir="rtl"] .service-badge { right: auto; left: 1rem; }
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { margin-bottom: .75rem; font-size: 1.25rem; }
.service-card ul { font-size: .9rem; }
.service-card .btn { margin-top: 1rem; }

/* ──────────── Why Us ──────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.why-card {
  padding: 2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: all .15s ease;
}
.why-card:hover { background: rgba(255,255,255,0.08); border-color: var(--gold); }
.why-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: var(--font-en);
}
.why-card h3 { font-size: 1.15rem; margin-bottom: .75rem; }

/* ──────────── Careers ──────────── */
.careers-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 5rem 0;
}
.careers-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}
.careers-text h2 { color: #fff; margin-bottom: 1rem; }
.careers-lede { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 2.5rem; }
.career-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.career-feature {
  padding: 1.25rem;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
[dir="rtl"] .career-feature { border-left: none; border-right: 3px solid var(--gold); }
.career-feature strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: .25rem;
  line-height: 1;
}
.career-feature span { font-size: .85rem; color: rgba(255,255,255,0.85); }

.careers-quote {
  padding: 2.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(201,169,97,0.3);
  position: relative;
}
.careers-quote::before {
  content: '"';
  position: absolute;
  top: -.5rem;
  left: 1.5rem;
  font-size: 5rem;
  color: var(--gold);
  font-family: serif;
  line-height: 1;
}
.careers-quote blockquote p {
  font-size: 1.15rem;
  color: #fff;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.careers-quote cite { color: var(--gold); font-weight: 600; }

/* ──────────── Contact ──────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}
.contact-info {
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-item:last-of-type { border-bottom: none; }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-item h4 { font-size: .8rem; font-weight: 600; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.contact-value { color: var(--ink); font-weight: 500; font-style: normal; line-height: 1.5; }
a.contact-value:hover { color: var(--red); }
.contact-social {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--navy);
  transition: all .15s ease;
}
.social-btn:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.contact-form {
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: block; margin-bottom: 1.25rem; }
.form-field > span {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .5rem;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  background: var(--bg-soft);
  color: var(--ink);
  transition: all .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,61,165,0.1);
}
.form-consent {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: .85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.form-consent input { margin-top: .25rem; flex-shrink: 0; }

/* ──────────── Footer ──────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding: 4rem 24px 2rem;
  max-width: var(--container);
  margin: 0 auto;
}
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-logo { width: 48px; height: 48px; flex-shrink: 0; }
.footer-brand strong { color: #fff; font-size: 1.1rem; display: block; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: .85rem; margin: .25rem 0 0; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: .9rem;
  padding: .35rem 0;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--gold); }

.footer-base {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  font-size: .8rem;
}
.footer-base-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255,255,255,0.5);
}
.footer-base p { margin: 0; color: inherit; }
.footer-disclaimer { max-width: 500px; text-align: right; }
[dir="rtl"] .footer-disclaimer { text-align: left; }

/* ──────────── Mobile ──────────── */
@media (max-width: 900px) {
  .nav-main, .header-actions .btn { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
  }
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
  }
  .hero { padding: 3rem 0 4rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .about-grid, .careers-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-pillars, .career-features { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .nav-main.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 1rem;
    border-top: 1px solid var(--line);
    gap: 0;
  }
  .nav-main.open .nav-link { padding: .75rem 1rem; }
}

/* ──────────── Reduced motion ──────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ──────────── Print ──────────── */
@media print {
  .site-header, .nav-main, .nav-toggle, .header-actions, .hero-bg, .careers-section, .contact-form { display: none; }
  body { color: #000; background: #fff; }
}
