/* EXL Realty Group Design System */

/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --navy:      #0D1855;
  --navy-mid:  #1a2660;
  --navy-dark: #080f33;
  --blue:      #2244CC;
  --green:     #F97316;
  --green-dark:#C2410C;
  --offwhite:  #EEF4FF;
  --slate:     #6B7B8D;
  --white:     #ffffff;
  --error:     #e03e3e;
  --muted:     #9aa5b4;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow:    0 2px 16px rgba(13,24,85,0.08);
  --shadow-md: 0 4px 28px rgba(13,24,85,0.12);
  --shadow-lg: 0 8px 48px rgba(13,24,85,0.18);

  --transition: 0.25s ease;
  --nav-height: 72px;
}

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { line-height: 1.7; }

/* ─── Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-light { background: var(--white); }
.section-off   { background: var(--offwhite); }

.section-dark {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--white); }

/* ─── Grid ──────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ─── Flex ──────────────────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.gap-16  { gap: 16px; }
.gap-24  { gap: 24px; }

/* ─── Section Header ────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(249,115,22,0.12);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-dark .section-label {
  background: rgba(249,115,22,0.18);
}

.section-headline {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-dark .section-headline { color: var(--white); }

.section-subhead {
  font-size: 1.1rem;
  color: var(--slate);
  line-height: 1.7;
}

.section-dark .section-subhead { color: rgba(255,255,255,0.72); }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: #1a35aa;
  border-color: #1a35aa;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 700;
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(249,115,22,0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-nav-cta {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 2px solid var(--green);
  transition: all var(--transition);
}
.btn-nav-cta:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
}

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13,24,85,0.07);
}

.card-feature {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13,24,85,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-feature .card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.card-feature h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.card-feature p {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.65;
}

/* ─── Navbar ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--navy);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), border-bottom var(--transition);
}

.navbar.scrolled {
  background: var(--navy-mid);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.92; }
.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  padding: 5px;
}

.nav-links a {
  padding: 7px 13px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-desktop-cta { display: none; }
}

/* ─── Stats Strip ───────────────────────────────────────── */
.stats-strip {
  background: var(--navy);
  padding: 48px 0;
}

.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .stats-strip .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) { border-right: none; }
}

/* ─── Orb Blobs ─────────────────────────────────────────── */
.orb-blue,
.orb-green {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.orb-blue {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34,68,204,0.35) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: orb-float 8s ease-in-out infinite;
}

.orb-green {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,0.22) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: orb-float 10s ease-in-out infinite reverse;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.04); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

/* ─── Form Styles ───────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.section-dark .form-label { color: rgba(255,255,255,0.85); }

.form-input,
.form-select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(13,24,85,0.18);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(34,68,204,0.12);
}

.form-input.error,
.form-select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(224,62,62,0.1);
}

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

.form-error.visible { display: block; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7B8D' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Dark section form */
.section-dark .form-input,
.section-dark .form-select {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}

.section-dark .form-input::placeholder { color: rgba(255,255,255,0.45); }

.section-dark .form-input:focus,
.section-dark .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.18);
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1.5px solid rgba(13,24,85,0.1);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: var(--blue);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
  gap: 12px;
}

.faq-question:hover { color: var(--blue); }
.faq-item.open .faq-question { color: var(--blue); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--slate);
  transition: all var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--blue);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.97rem;
  color: var(--slate);
  line-height: 1.75;
}

/* ─── Animations ────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ─── Footer ─────────────────────────────────────────────── */
#footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-logo-wrap {
  display: inline-block;
  background: var(--white);
  border-radius: 10px;
  padding: 8px 18px;
  margin-bottom: 16px;
}

.footer-brand-col .footer-logo {
  height: 52px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--green);
  color: var(--navy);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--green); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

.footer-contact-item a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-legal-links a:hover { color: rgba(255,255,255,0.75); }

.footer-entity {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-equal-housing {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 5px 12px;
}

.eho-icon { font-size: 1rem; }

.footer-cta-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-cta-btn {
  display: inline-flex;
  margin-bottom: 14px;
}

.footer-phone-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-phone-cta:hover { color: var(--green); }

.footer-website a {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  transition: color var(--transition);
}
.footer-website a:hover { color: var(--green); }

.footer-trec {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0 4px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-trec a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-trec a:hover { color: var(--green); }

.footer-disclaimer {
  color: rgba(255,255,255,0.35);
  font-size: 0.76rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── Range Slider ──────────────────────────────────────── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(13,24,85,0.12);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(249,115,22,0.4);
  cursor: pointer;
  transition: box-shadow var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 2px 16px rgba(249,115,22,0.6);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(249,115,22,0.4);
  cursor: pointer;
}
