/* ═══════════════════════════════════════════════════════════
   RightPacts Real Estate — Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --navy:        #0d2137;
  --navy-light:  #1a3a5c;
  --navy-mid:    #112b48;
  --gold:        #c9a84c;
  --gold-light:  #e8d48a;
  --gold-dark:   #a8893a;
  --cream:       #f7f5f0;
  --white:       #ffffff;
  --text:        #2d3748;
  --text-muted:  #718096;
  --border:      #e2e8f0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.07);
  --shadow-lg:   0 20px 48px rgba(0,0,0,.14), 0 8px 20px rgba(0,0,0,.08);
  --shadow-gold: 0 8px 24px rgba(201,168,76,.35);

  --transition:  0.25s ease;
  --container:   1240px;
  --nav-h:       76px;
}

/* ── 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(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--alt { background: var(--cream); }

/* ── Typography ─────────────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-eyebrow--light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
}
.section-title--sm {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header .section-subtitle {
  margin-inline: auto;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .7rem 1.5rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
}

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

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

.btn--whatsapp {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}
.btn--whatsapp:hover {
  background: #1fba58;
  border-color: #1fba58;
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
  transform: translateY(-1px);
}

.btn--lg  { padding: .85rem 2rem;  font-size: .95rem; }
.btn--xl  { padding: .95rem 2.25rem; font-size: 1rem; width: 100%; justify-content: center; }

/* ── HEADER / NAV ───────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-h);
}

.nav__logo { flex-shrink: 0; }
.nav__logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: filter var(--transition);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-inline: auto;
}

.nav__link {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: .4rem .65rem;
  border-radius: var(--radius-sm);
  color: var(--white);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav__link:hover { color: var(--gold-light); }
.header.scrolled .nav__link { color: var(--text); }
.header.scrolled .nav__link:hover { color: var(--gold-dark); background: var(--cream); }
.nav__link.active { color: var(--gold); }
.header.scrolled .nav__link.active { color: var(--gold-dark); }

.nav__cta { flex-shrink: 0; font-size: .8rem; padding: .55rem 1.1rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.header.scrolled .bar { background: var(--navy); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero.loaded .hero__bg { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(13,33,55,.82) 0%,
    rgba(13,33,55,.55) 60%,
    rgba(13,33,55,.35) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--nav-h) + 2rem) 4rem;
  max-width: 700px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.8);
  letter-spacing: .04em;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll-dot {
  display: block;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 13px;
  position: relative;
}
.hero__scroll-dot::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  background: var(--white);
  border-radius: 3px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollBob 2s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  70% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ── ABOUT ──────────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about__media {
  position: relative;
}
.about__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.about__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.about__img-wrap:hover .about__img { transform: scale(1.04); }

.about__badge {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-gold);
  text-align: center;
  min-width: 110px;
}
.about__badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}
.about__badge-num sup { font-size: 1.1rem; }
.about__badge-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: .25rem;
  line-height: 1.3;
}

.about__body { padding-block: 1rem; }
.about__body p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-block: 1.5rem 2rem;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .925rem;
  font-weight: 500;
  color: var(--text);
}
.about__list .fa-check-circle { color: var(--gold); font-size: 1rem; }

/* ── SERVICES ───────────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.service-card__icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
}
.service-card__icon svg { width: 36px; height: 36px; }

.service-card__icon--seller    { background: #fff7e6; color: #b8860b; }
.service-card__icon--buyer     { background: #e8f4fd; color: #1a6fa8; }
.service-card__icon--management{ background: #edf7f0; color: #2e7d52; }
.service-card__icon--investors { background: #fdeaea; color: #b33030; }

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
}
.service-card__tagline {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.service-card__text {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: .5rem;
  transition: gap var(--transition), color var(--transition);
}
.service-card__link:hover { color: var(--gold-dark); gap: .75rem; }

/* ── COMMUNITIES ─────────────────────────────────────────────── */
.communities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.community-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.community-card__img-wrap {
  position: absolute;
  inset: 0;
}
.community-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.community-card:hover .community-card__img { transform: scale(1.06); }

.community-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,33,55,.92) 0%,
    rgba(13,33,55,.3) 50%,
    rgba(13,33,55,.05) 100%
  );
  display: flex;
  align-items: flex-end;
  transition: background var(--transition);
}
.community-card:hover .community-card__overlay {
  background: linear-gradient(
    to top,
    rgba(13,33,55,.96) 0%,
    rgba(13,33,55,.55) 60%,
    rgba(13,33,55,.15) 100%
  );
}

.community-card__body { padding: 1.75rem; }
.community-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .3rem;
}
.community-card__sub {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  margin-bottom: .85rem;
}
.community-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
}
.community-card:hover .community-card__cta {
  opacity: 1;
  transform: translateY(0);
}

/* ── BLOG ────────────────────────────────────────────────────── */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card__img-link { display: block; }
.blog-card__img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.blog-card:hover .blog-card__img { transform: scale(1.05); }

.blog-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--text-muted);
}
.blog-card__avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.blog-card__author { font-weight: 600; color: var(--text); }
.blog-card__sep    { color: var(--border); }

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}
.blog-card__title a:hover { color: var(--gold-dark); }

.blog-card__excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: .5rem;
  transition: gap var(--transition), color var(--transition);
}
.blog-card__link:hover { color: var(--gold-dark); gap: .75rem; }

/* ── NEWSLETTER ──────────────────────────────────────────────── */
.newsletter {
  position: relative;
  padding-block: clamp(5rem, 10vw, 8rem);
  overflow: hidden;
}
.newsletter__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.newsletter__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,33,55,.9) 0%, rgba(13,33,55,.75) 100%);
}
.newsletter__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}
.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: .75rem;
}
.newsletter__subtitle {
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.newsletter__form { width: 100%; }
.newsletter__input-wrap {
  display: flex;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  padding: .35rem .35rem .35rem 1.25rem;
  backdrop-filter: blur(8px);
}
.newsletter__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  min-width: 0;
}
.newsletter__input::placeholder { color: rgba(255,255,255,.5); }
.newsletter__submit { border-radius: var(--radius-full); flex-shrink: 0; }
.newsletter__note {
  margin-top: .9rem;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.newsletter__success {
  margin-top: .75rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gold-light);
  min-height: 1.4em;
}

/* ── CONTACT CTA ─────────────────────────────────────────────── */
.contact-cta__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.contact-cta__body p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}
.contact-cta__info {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  font-size: .9rem;
  color: var(--text);
  transition: color var(--transition);
}
a.contact-info-item:hover { color: var(--gold-dark); }
.contact-info-icon {
  width: 36px; height: 36px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  flex-shrink: 0;
  font-size: .85rem;
}

.contact-cta__actions {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-width: 240px;
}
.contact-cta__actions .btn--outline {
  border-color: var(--border);
  color: var(--text);
}
.contact-cta__actions .btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-block: 4rem;
}

.footer__brand {}
.footer__logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.1rem;
}
.footer__tagline {
  font-size: .875rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.5rem;
}
.footer__social {
  display: flex;
  gap: .75rem;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.social-icon:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.footer__heading {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer__links { display: flex; flex-direction: column; gap: .6rem; }
.footer__links a {
  font-size: .875rem;
  transition: color var(--transition), padding-left var(--transition);
}
.footer__links a:hover { color: var(--gold-light); padding-left: 4px; }

.footer__address {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.footer__address p {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .875rem;
}
.footer__address .fas,
.footer__address .fab {
  color: var(--gold);
  margin-top: .2rem;
  flex-shrink: 0;
  width: 14px;
}
.footer__address a:hover { color: var(--gold-light); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
}
.footer__legal { display: flex; gap: .5rem; }
.footer__legal a:hover { color: var(--gold-light); }

/* ── BACK TO TOP ─────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 999;
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--gold-dark); transform: translateY(-3px); }

/* ── SCROLL REVEAL ANIMATIONS ────────────────────────────────── */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity .65s ease, transform .65s ease;
}
.reveal       { transform: translateY(30px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view {
  opacity: 1;
  transform: translate(0);
}

/* Stagger children inside service & blog grids */
.services__grid .service-card:nth-child(1) { transition-delay: .05s; }
.services__grid .service-card:nth-child(2) { transition-delay: .15s; }
.services__grid .service-card:nth-child(3) { transition-delay: .25s; }
.services__grid .service-card:nth-child(4) { transition-delay: .35s; }
.blog__grid .blog-card:nth-child(1) { transition-delay: .05s; }
.blog__grid .blog-card:nth-child(2) { transition-delay: .15s; }
.blog__grid .blog-card:nth-child(3) { transition-delay: .25s; }
.blog__grid .blog-card:nth-child(4) { transition-delay: .35s; }
.communities__grid .community-card:nth-child(1) { transition-delay: .05s; }
.communities__grid .community-card:nth-child(2) { transition-delay: .18s; }
.communities__grid .community-card:nth-child(3) { transition-delay: .31s; }

/* ── INNER PAGE (Check Property Value) ──────────────────────── */

/* Page hero banner */
.page-hero {
  position: relative;
  height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,33,55,.88) 0%,
    rgba(13,33,55,.45) 60%,
    rgba(13,33,55,.2) 100%
  );
}
.page-hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
}
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .6rem;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.page-hero__breadcrumb a:hover { color: var(--gold-light); }
.page-hero__breadcrumb .sep { font-size: .6rem; }
.page-hero__breadcrumb .current { color: var(--gold-light); }
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}
.page-hero__title em { font-style: italic; color: var(--gold-light); }

/* Two-column layout */
.cpv-section { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--cream); }
.cpv-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

/* Sidebar (image + info) */
.cpv-sidebar {}
.cpv-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  margin-bottom: 1.75rem;
}
.cpv-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.cpv-img-wrap:hover .cpv-img { transform: scale(1.04); }

.cpv-info-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .65rem;
}
.cpv-info-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.cpv-info-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.cpv-info-list .fas {
  color: var(--gold-dark);
  margin-top: .15rem;
  flex-shrink: 0;
  font-size: .85rem;
}

/* Form card */
.cpv-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.25rem 2rem;
}
.cpv-form-card .section-eyebrow { display: block; margin-bottom: .3rem; }
.cpv-form-card .section-title { font-size: 1.5rem; margin-bottom: .65rem; }
.cpv-intro {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.cpv-intro strong { color: var(--text); }

/* ── Shared form styles ─── */
.cpv-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-group {
  border: none;
  padding: 0;
  margin: 0;
}
.form-group__legend {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  width: 100%;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: .75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .01em;
}
.req { color: #c0392b; }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); font-size: .85rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.18);
  background: var(--white);
}
.field input.invalid { border-color: #e53e3e; }
.field 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='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.25rem;
}
.field textarea { resize: vertical; min-height: 80px; }

.file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: 1.25rem 1rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--cream);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}
.file-upload:hover { border-color: var(--gold); background: #fffbf0; }
.file-upload input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.file-upload .fas { font-size: 1.5rem; color: var(--gold-dark); }
.file-upload__text { font-size: .85rem; font-weight: 600; color: var(--text); }
.file-upload__hint { font-size: .75rem; color: var(--text-muted); }
.file-upload.has-files { border-color: var(--gold); background: #fffbf0; }
.file-upload.has-files .file-upload__text { color: var(--gold-dark); }

.btn--submit-full {
  width: 100%;
  justify-content: center;
  padding: .9rem;
  font-size: .95rem;
  border-radius: var(--radius-md);
  margin-top: .25rem;
}

.submit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: .25rem;
}
.btn--submit-half {
  justify-content: center;
  padding: .85rem .75rem;
  font-size: .9rem;
  border-radius: var(--radius-md);
}
@media (max-width: 480px) {
  .submit-row { grid-template-columns: 1fr; }
}

/* Thank-you state */
.cpv-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem 2rem;
  gap: 1rem;
}
.cpv-thanks[hidden] { display: none; }
.cpv-thanks__icon { font-size: 3.5rem; color: #27ae60; line-height: 1; }
.cpv-thanks h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
}
.cpv-thanks p { color: var(--text-muted); font-size: .95rem; max-width: 380px; line-height: 1.6; }

/* Responsive */
@media (max-width: 960px) {
  .cpv-grid { grid-template-columns: 1fr; }
  .cpv-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
  .cpv-img-wrap { margin-bottom: 0; aspect-ratio: 3/2; }
}
@media (max-width: 600px) {
  .cpv-sidebar { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cpv-form-card { padding: 1.5rem 1.25rem; }
  .page-hero { height: 280px; }
}

/* ── PROPERTY MANAGEMENT PAGE ───────────────────────────────── */

/* Intro split */
.pm-intro { padding: 5rem 0; background: var(--cream); }
.pm-intro__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.pm-intro__text .section-title { margin-top: .4rem; margin-bottom: 1rem; }
.pm-intro__text p { color: var(--text-muted); line-height: 1.75; margin-bottom: 1.75rem; }
.pm-intro__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(13,33,55,.15);
  aspect-ratio: 4/3;
}
.pm-intro__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Quote banner */
.pm-banner {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.pm-banner__overlay {
  position: absolute; inset: 0;
  background: rgba(13,33,55,.72);
  display: flex; align-items: center;
}
.pm-banner__text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: #fff;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.5;
}
.pm-banner__text::before { content: '\201C'; color: var(--gold); margin-right: .15em; }
.pm-banner__text::after  { content: '\201D'; color: var(--gold); margin-left: .15em; }

/* Process section */
.pm-process { padding: 5rem 0; background: #fff; }
.pm-process__header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.pm-process__header .section-title { margin-top: .4rem; }
.pm-process__sub { color: var(--text-muted); line-height: 1.7; }

/* Step cards grid */
.pm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.pm-step {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid rgba(201,168,76,.2);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.pm-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(13,33,55,.1);
}
.pm-step__icon-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pm-step__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(201,168,76,.3);
  line-height: 1;
  min-width: 2.5rem;
}
.pm-step__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pm-step__icon i { font-size: 1.2rem; color: var(--gold); }
.pm-step__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.pm-step__text {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Why choose us split */
.pm-why { padding: 5rem 0; background: var(--navy); }
.pm-why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.pm-why__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.pm-why__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-why__text .section-eyebrow { color: var(--gold); }
.pm-why__text .section-title { color: #fff; margin-top: .4rem; margin-bottom: 1.5rem; }
.pm-why__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
}
.pm-why__list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  line-height: 1.5;
}
.pm-why__list i { color: var(--gold); font-size: 1rem; margin-top: .15rem; flex-shrink: 0; }

/* Responsive — PM page */
@media (max-width: 1024px) {
  .pm-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pm-intro__inner  { grid-template-columns: 1fr; gap: 2rem; }
  .pm-why__inner    { grid-template-columns: 1fr; gap: 2.5rem; }
  .pm-why__img-wrap { order: -1; }
  .pm-banner        { background-attachment: scroll; }
}
@media (max-width: 560px) {
  .pm-steps { grid-template-columns: 1fr; }
  .pm-banner { height: auto; padding: 3rem 1rem; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* ── Large (≤1100px) ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services__grid  { grid-template-columns: repeat(2, 1fr); }
  .blog__grid      { grid-template-columns: repeat(2, 1fr); }
  .footer__top     { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav__link       { font-size: .75rem; padding: .35rem .5rem; }
}

/* ── Medium (≤900px) ─────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --nav-h: 68px; }

  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    gap: .25rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
    z-index: 999;
  }
  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link        { color: var(--text) !important; font-size: .9rem; padding: .6rem .75rem; }
  .nav__link:hover  { background: var(--cream); color: var(--gold-dark) !important; }
  .nav__link.active { color: var(--gold-dark) !important; }

  .nav__cta { display: none; }

  .about__grid        { grid-template-columns: 1fr; gap: 3rem; }
  .about__media       { max-width: 420px; margin-inline: auto; }
  .contact-cta__grid  { grid-template-columns: 1fr; }
  .communities__grid  { grid-template-columns: 1fr 1fr; }
  .blog__grid         { grid-template-columns: 1fr 1fr; }

  /* hamburger active state */
  .nav__toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav__toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* ── Small (≤600px) ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .services__grid    { grid-template-columns: 1fr; }
  .communities__grid { grid-template-columns: 1fr; }
  .blog__grid        { grid-template-columns: 1fr; }
  .footer__top       { grid-template-columns: 1fr; }
  .footer__bottom    { flex-direction: column; text-align: center; }
  .newsletter__input-wrap { flex-direction: column; gap: .75rem; border-radius: var(--radius-lg); padding: .75rem 1rem; }
  .newsletter__submit { border-radius: var(--radius-full); width: 100%; justify-content: center; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .about__badge { bottom: -1rem; right: -.5rem; }
  .back-to-top  { bottom: 1.25rem; right: 1.25rem; }
  .community-card { aspect-ratio: 4/3; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE-FIRST ENHANCEMENTS
   (Site used primarily on phones — these are priority fixes)
   ══════════════════════════════════════════════════════════════ */

/* Touch devices: community card CTA always visible (no hover) */
@media (hover: none) {
  .community-card__cta {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile sticky CTA bar — hidden on desktop */
.mobile-cta-bar { display: none; }

/* ── ≤ 900px ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Sticky Call / WhatsApp bar fixed at bottom */
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 998;
    box-shadow: 0 -2px 16px rgba(0,0,0,.18);
  }
  .mobile-cta-bar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .9rem 1rem;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: filter .2s ease;
  }
  .mobile-cta-bar__btn:active { filter: brightness(.88); }
  .mobile-cta-bar__btn i { font-size: 1rem; }
  .mobile-cta-bar__btn--call { background: var(--navy); }
  .mobile-cta-bar__btn--wa   { background: #25d366; }

  /* Lift all page content above the bar */
  body { padding-bottom: 58px; }

  /* Back-to-top above the sticky bar */
  .back-to-top { bottom: 4.75rem; right: 1.25rem; }

  /* WhatsApp link inside the hamburger menu */
  .nav__wa-item {
    width: 100%;
    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px solid var(--border);
  }
  .nav__wa-link {
    display: inline-flex !important;
    align-items: center;
    gap: .5rem;
    background: #25d366 !important;
    color: var(--white) !important;
    border-radius: var(--radius-full) !important;
    padding: .65rem 1.4rem !important;
    font-size: .875rem;
    font-weight: 600;
  }
  .nav__wa-link:active { background: #1fba58 !important; }

  /* 44 px minimum tap targets for nav links */
  .nav__menu > li > .nav__link {
    padding-block: .75rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Bigger hamburger tap area */
  .nav__toggle { padding: 12px; margin-right: -12px; width: auto; height: auto; }

  /* Contact CTA action buttons full-width */
  .contact-cta__actions { min-width: unset; width: 100%; }
}

/* ── ≤ 600px ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  /* CRITICAL: prevents iOS Safari auto-zoom on input focus */
  .field input,
  .field select,
  .field textarea { font-size: 1rem; }

  /* Minimum tap target on all buttons */
  .btn { min-height: 44px; }

  /* Tighter page-hero height on small phones */
  .page-hero { height: 230px; }
  .page-hero__content { padding-bottom: 1.5rem; }

  /* Service card padding */
  .service-card { padding: 1.5rem 1.25rem 1.25rem; }

  /* About badge: prevent overflowing viewport edge */
  .about__badge {
    bottom: -.5rem; right: -.25rem;
    padding: .85rem 1rem;
    min-width: 90px;
  }
  .about__badge-num { font-size: 2rem; }

  /* Footer breathing room */
  .footer__top { gap: 1.5rem; }
}

/* ── ≤ 400px (very small phones) ────────────────────────────── */
@media (max-width: 400px) {
  .hero__title { font-size: 2.1rem; }
  .cpv-form-card { padding: 1.25rem .9rem; }
}
