/* =========================================================================
   NEXA HOMES REAL ESTATE — Global Stylesheet
   Palette: deep navy + warm gold. Luxury, calm, established.
   ========================================================================= */

:root {
  --navy-900: #081826;
  --navy-800: #0c2337;
  --navy-700: #123049;
  --navy-600: #1c4160;
  --gold-500: #c8a35b;
  --gold-400: #d8b673;
  --gold-300: #e7cf9e;
  --ink:      #16202b;
  --slate:    #5a6b7b;
  --line:     #e4e8ec;
  --mist:     #f5f7f9;
  --paper:    #ffffff;
  --white:    #ffffff;

  --radius:   14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 10px rgba(8, 24, 38, .06);
  --shadow-md: 0 14px 40px rgba(8, 24, 38, .10);
  --shadow-lg: 0 30px 70px rgba(8, 24, 38, .16);

  --ff-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-serif: "Georgia", "Times New Roman", serif;

  --wrap: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--navy-800);
}

p { margin: 0 0 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--mist { background: var(--mist); }
.section--navy {
  background: var(--navy-800);
  color: #d7e0e8;
}
.section--navy h2,
.section--navy h3 { color: #fff; }

/* ---------- Eyebrow + headings ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 16px;
}
.section--navy .eyebrow { color: var(--gold-400); }

.h-lead {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 18px;
}
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head--center { margin-inline: auto; text-align: center; }
.lede { font-size: 1.08rem; color: var(--slate); }
.section--navy .lede { color: #a9bccb; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 8px 22px rgba(200, 163, 91, .32);
}
.btn--gold:hover { background: var(--gold-400); transform: translateY(-2px); }
.btn--ghost {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .10); }
.btn--dark {
  background: var(--navy-800);
  color: #fff;
}
.btn--dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--outline {
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn--outline:hover { background: var(--navy-800); color: #fff; }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand__mark {
  width: 38px; height: 38px;
  flex: none;
}
.brand__name {
  font-size: 1.18rem;
  color: var(--navy-800);
  line-height: 1;
}
.brand__name span { color: var(--gold-500); }
.brand__sub {
  display: block;
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  margin-top: 3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: .94rem;
  font-weight: 500;
  color: var(--navy-700);
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width .22s ease;
}
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--navy-900); }

.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__phone {
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy-800);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px; height: 42px;
  cursor: pointer;
  color: var(--navy-800);
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(200, 163, 91, .18), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
}
.hero__skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  opacity: .5;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 104px 0 150px;
  max-width: 720px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--gold-300);
  margin-bottom: 26px;
  background: rgba(255, 255, 255, .04);
}
.hero__badge b { color: #fff; font-weight: 600; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  line-height: 1.06;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
}
.hero__sub {
  font-size: 1.14rem;
  color: #b8c8d6;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stats strip riding the hero bottom */
.stats {
  position: relative;
  z-index: 3;
  margin-top: -66px;
}
.stats__grid {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat {
  padding: 34px 28px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -.02em;
  line-height: 1;
}
.stat__num span { color: var(--gold-500); }
.stat__label {
  margin-top: 9px;
  font-size: .86rem;
  color: var(--slate);
  font-weight: 500;
}

/* =========================================================================
   FEATURE / VALUE CARDS
   ========================================================================= */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card__icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-800));
  color: var(--gold-400);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--slate); margin: 0; font-size: .97rem; }

/* Service card variant (with footer link) */
.service__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy-700);
}
.service__link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.card:hover .service__link svg { transform: translateX(4px); }
.card:hover .service__link { color: var(--gold-500); }

/* =========================================================================
   SPLIT (image/panel + text)
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 420px;
  position: relative;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
}
.split__media svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list .tick {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(200, 163, 91, .15);
  color: var(--gold-500);
  display: grid; place-items: center;
  margin-top: 2px;
}
.check-list .tick svg { width: 14px; height: 14px; }
.check-list b { display: block; color: var(--navy-800); }
.check-list span { color: var(--slate); font-size: .93rem; }

/* =========================================================================
   FOUNDER
   ========================================================================= */
.founder {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}
.founder__photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  aspect-ratio: 4 / 5;
  position: relative;
}
.founder__photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.founder__badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(255,255,255,.95);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .78rem;
  color: var(--navy-800);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.founder__badge span { color: var(--slate); font-weight: 500; display: block; font-size: .72rem; }
.founder blockquote {
  margin: 0 0 22px;
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--navy-800);
  font-style: italic;
}
.founder__name { font-weight: 700; color: var(--navy-800); font-size: 1.05rem; }
.founder__role { color: var(--gold-500); font-weight: 600; font-size: .9rem; }

/* =========================================================================
   AREAS / COMMUNITIES
   ========================================================================= */
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.area {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 210px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}
.area::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,24,38,.15), rgba(8,24,38,.82));
}
.area__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.area:hover .area__img { transform: scale(1.06); }
.area h4 { color: #fff; margin: 0; font-size: 1.12rem; }
.area p { margin: 3px 0 0; font-size: .82rem; color: #c9d6e0; }
.area--tall { grid-row: span 2; }

/* =========================================================================
   STEPS
   ========================================================================= */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding-top: 8px; }
.step__n {
  font-family: var(--ff-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 14px;
}
.step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: .93rem; margin: 0; }
.section--navy .step p { color: #a9bccb; }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.quote-card .stars { color: var(--gold-500); margin-bottom: 14px; letter-spacing: 2px; }
.quote-card p { font-size: 1.02rem; color: var(--ink); }
.quote-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote-card .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(150deg, var(--navy-700), var(--gold-500));
  color: #fff; display: grid; place-items: center; font-weight: 700; flex: none;
}
.quote-card .who b { display: block; color: var(--navy-800); font-size: .95rem; }
.quote-card .who span { color: var(--slate); font-size: .82rem; }

/* =========================================================================
   CTA BANNER
   ========================================================================= */
.cta-banner {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(200,163,91,.22), transparent 60%),
    linear-gradient(150deg, var(--navy-800), var(--navy-700));
  border-radius: 20px;
  padding: 62px 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }
.cta-banner p { color: #b8c8d6; margin: 0; max-width: 440px; }

/* =========================================================================
   PAGE HERO (interior pages)
   ========================================================================= */
.page-hero {
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(200,163,91,.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 78px 0 92px;
  position: relative;
  overflow: hidden;
}
.page-hero__sky { position: absolute; bottom: 0; left: 0; width: 100%; opacity: .35; }
.page-hero .crumb {
  font-size: .82rem; color: var(--gold-300); margin-bottom: 16px;
  display: flex; gap: 8px; align-items: center; position: relative; z-index: 2;
}
.page-hero .crumb a { color: #b8c8d6; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.1rem); position: relative; z-index: 2; }
.page-hero p { color: #b8c8d6; max-width: 560px; position: relative; z-index: 2; font-size: 1.08rem; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 54px; align-items: start; }
.info-block { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-block:last-child { border-bottom: 0; }
.info-block__icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--mist); color: var(--navy-700);
  display: grid; place-items: center;
}
.info-block__icon svg { width: 22px; height: 22px; }
.info-block b { display: block; color: var(--navy-800); }
.info-block a, .info-block span { color: var(--slate); }
.info-block a:hover { color: var(--gold-500); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy-800); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(200,163,91,.16);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--slate); margin-top: 8px; }
.form-success {
  display: none;
  background: rgba(200,163,91,.12);
  border: 1px solid var(--gold-300);
  color: var(--navy-800);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .92rem;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

/* =========================================================================
   VALUES / MISSION (about)
   ========================================================================= */
.pillar {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.pillar .n {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  color: var(--gold-500); text-transform: uppercase;
}
.pillar h3 { margin: 10px 0 8px; font-size: 1.15rem; }
.pillar p { color: var(--slate); margin: 0; font-size: .96rem; }

.timeline { border-left: 2px solid var(--line); padding-left: 30px; margin-left: 8px; }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -39px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold-500); box-shadow: 0 0 0 4px rgba(200,163,91,.18);
}
.tl-item .yr { font-weight: 700; color: var(--gold-500); font-size: .9rem; }
.tl-item h4 { margin: 4px 0 6px; }
.tl-item p { color: var(--slate); margin: 0; font-size: .95rem; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--navy-900);
  color: #9fb2c1;
  padding: 68px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer .brand__name { color: #fff; }
.site-footer p { font-size: .93rem; line-height: 1.7; }
.footer-col h5 {
  color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  margin: 6px 0 18px; font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: .93rem; color: #9fb2c1; transition: color .18s ease; }
.footer-col a:hover { color: var(--gold-400); }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: grid; place-items: center; color: #c9d6e0;
  transition: background .18s ease, color .18s ease;
}
.social a:hover { background: var(--gold-500); color: var(--navy-900); }
.social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: .84rem; color: #6f8497; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: #9fb2c1; }
.rera-chip {
  display: inline-flex; gap: 8px; align-items: center;
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  padding: 6px 12px; font-size: .78rem; color: #c9d6e0;
}

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .grid--3, .grid--4, .steps, .area-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split, .founder, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .founder__photo { max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .area--tall { grid-row: span 1; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav__links {
    position: fixed;
    inset: 74px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform .28s ease;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .nav__phone { display: none; }
  .nav__cta .btn { display: none; }
  .grid--3, .grid--4, .steps, .area-grid, .field-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 30px; }
  .form-card { padding: 26px; }
  .founder blockquote { font-size: 1.25rem; }
}
