:root {
  --primary: #2ae012;
  --primary-dark: #2d48e0;
  --primary-light: #2d48e0;
  --primary-bg: #FFF4F0;
  --primary-border: #FFD6C7;
  --primary-soft: #FFF8F5;
  --dark: #1E1E1E;
  --dark-soft: #333333;
  --text: #2D2D2D;
  --text-secondary: #5F6368;
  --text-muted: #9AA0A6;
  --border: #E5E7EB;
  --border-light: #F0F0F0;
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-section: #FAFBFC;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.25s ease;
  --header-h: 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Prevent global horizontal scroll */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

::selection {
  background: var(--primary);
  color: #fff;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
.main-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-xs);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-bg);
  color: var(--primary-dark);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-call {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  font-size: .82rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-call:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-call i {
  font-size: .75rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ✅ FIXED: Mobile nav transitions properly */
.mobile-nav {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  transition: opacity .3s, visibility .3s;
}

.mobile-nav.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-white);
  padding: 80px 24px 24px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}

.mobile-nav.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-panel a {
  display: block;
  padding: 14px 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.mobile-nav-panel a:hover {
  color: var(--primary-dark);
  padding-left: 8px;
}

/* ── Breadcrumb ── */
.breadcrumb-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--text-secondary);
}

.breadcrumb-nav a:hover {
  color: var(--primary);
}

.breadcrumb-nav .sep {
  color: var(--border);
}

.breadcrumb-nav .current {
  color: var(--text);
  font-weight: 500;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  overflow: hidden;
  background: linear-gradient(160deg, #AAFFC7 0%, #67C090 10%, #215B63 40%, #124170 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45,72,224,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(42,224,18,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-shape {
  position: absolute;
  border: 1px solid rgba(45,72,224,.12);
  border-radius: 4px;
  animation: floatShape 20s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
  transform: rotate(15deg);
}

.hero-shape:nth-child(2) {
  width: 50px;
  height: 50px;
  top: 60%;
  right: 10%;
  animation-delay: -5s;
  transform: rotate(45deg);
}

.hero-shape:nth-child(3) {
  width: 120px;
  height: 120px;
  bottom: 20%;
  left: 15%;
  animation-delay: -10s;
  border-radius: 50%;
}

.hero-shape:nth-child(4) {
  width: 40px;
  height: 40px;
  top: 25%;
  right: 25%;
  animation-delay: -15s;
  transform: rotate(30deg);
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(15deg); opacity: .4; }
  25% { transform: translateY(-20px) rotate(20deg); opacity: .7; }
  50% { transform: translateY(-10px) rotate(10deg); opacity: .5; }
  75% { transform: translateY(-25px) rotate(25deg); opacity: .8; }
}

.hero-label {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--primary);
  border-radius: 50px;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  color: rgba(255,255,255,.5);
  font-size: 1rem;
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto 32px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 13px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,72,224,.3);
}

.btn-outline {
  padding: 13px 32px;
  background: transparent;
  color: #fff;
  font-weight: 500;
  font-size: .88rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.25);
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.05);
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 6px;
}

.section-header .sub {
  font-size: .88rem;
  color: var(--text-muted);
}

.section-header .accent-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
  margin: 14px auto 0;
}

/* ── Location Intro ── */
.location-intro {
  padding: 48px 0;
  background: var(--bg-light);
}

.intro-wrap {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.intro-image {
  flex: 0 0 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(45,72,224,.15);
  border-radius: var(--radius-xl);
  pointer-events: none;
}

.intro-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 18px;
}

.intro-content p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.intro-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.intro-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: .82rem;
  font-weight: 500;
  transition: var(--transition);
}

.intro-highlight:hover {
  border-color: var(--primary-border);
  background: var(--primary-bg);
}

.intro-highlight svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ── Stats Bar ── */
.stats-bar {
  padding: 36px 0;
  background: var(--dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item .stat-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
}

/* ── Localities ── */
.localities {
  padding: 48px 0;
  background: var(--bg-light);
}

.locality-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.locality-card {
  background: var(--bg-white);
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.locality-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.locality-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42,224,18,.12);
}

.locality-card img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.locality-card h4 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.locality-card p {
  font-size: .8rem;
  color: var(--text-muted);
}

.locality-card .arrow {
  margin-left: auto;
  color: var(--primary-dark);
  font-size: 18px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s, transform .3s;
}

.locality-card:hover .arrow,
.locality-card.active .arrow {
  opacity: 1;
  transform: translateX(0);
}

.clear-filter-btn {
  display: none;
  margin: 0 auto;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  border-radius: 50px;
  margin-top: 20px;
  transition: var(--transition);
}

.clear-filter-btn.visible {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clear-filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45,72,224,.25);
}

/* ── Filter Bar ── */
.filter-bar {
  padding: 20px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 100;
}

.filter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-container select {
  padding: 11px 36px 11px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  font-size: .88rem;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239AA0A6' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: var(--transition);
  min-width: 180px;
}

.filter-container select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42,224,18,.1);
}

.search-btn {
  padding: 11px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45,72,224,.25);
}

.filter-result-count {
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.filter-result-count strong {
  color: var(--text);
}

/* ── Residential / Project Cards ── */
.residential {
  padding: 48px 0 32px;
  background: var(--bg-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  display: flex;
  height: 190px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-xs);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s, border-color .35s;
  position: relative;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.project-img {
  width: 45%;
  height: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.project-card:hover .project-img img {
  transform: scale(1.06);
}

.project-img .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(30,30,30,.85);
  backdrop-filter: blur(8px);
  color: var(--primary);
  padding: 4px 10px;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.project-content {
  width: 55%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  overflow: hidden; /* Prevents content spillover */
}

.project-content h3 {
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
  /* ✅ NEW: Truncate long project names */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-content .builder {
  font-size: .72rem;
  color: var(--text-muted);
}

.project-content .location {
  font-size: .72rem;
  color: var(--text-muted);
  margin: 2px 0;
  display: flex;
  align-items: center;
  gap: 3px;
}

.project-content .location svg {
  width: 11px;
  height: 11px;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.project-content h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 4px 0 2px;
}

.project-content .config {
  font-size: .78rem;
  color: var(--text-muted);
}

.project-content .status {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 4px;
  width: fit-content;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: .3;
}

.no-results p {
  font-size: 1rem;
  font-weight: 500;
}

.no-results span {
  display: block;
  font-size: .82rem;
  margin-top: 6px;
  color: #bbb;
}

.load-more-wrap {
  text-align: center;
  padding: 36px 0 16px;
}

.load-more-btn {
  padding: 13px 40px;
  background: var(--bg-white);
  color: var(--text);
  font-weight: 600;
  font-size: .88rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  transition: var(--transition);
}

.load-more-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ── CTA ── */
.cta {
  padding: 72px 24px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45,72,224,.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.cta-box p {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  margin-bottom: 28px;
}

.cta-btn {
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,72,224,.3);
}

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: #aaa;
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand img {
  height: 36px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: .85rem;
  line-height: 1.7;
  color: #888;
}

.footer-col h5 {
  color: #fff;
  font-size: .9rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: .84rem;
  color: #888;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .84rem;
  color: #888;
}

.footer-contact-item i {
  color: var(--primary);
  margin-top: 4px;
  font-size: .8rem;
  width: 16px;
  text-align: center;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: #666;
}

.footer-bottom a {
  color: #888;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: popupSlide .3s ease;
}

@keyframes popupSlide {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h4 {
  font-size: 1rem;
  margin: 0;
}

.modal-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 1rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255,255,255,.3);
}

.modal-body {
  padding: 28px 24px;
}

.modal-body .form-group {
  margin-bottom: 14px;
}

.modal-body input,
.modal-body textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-white);
  transition: var(--transition);
  resize: vertical;
}

.modal-body input:focus,
.modal-body textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42,224,18,.1);
}

.modal-body input::placeholder,
.modal-body textarea::placeholder {
  color: var(--text-muted);
}

.modal-body textarea {
  min-height: 70px;
}

.modal-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  border-radius: var(--radius-md);
  margin-top: 4px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45,72,224,.3);
}

.modal-sub {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.modal-success svg {
  width: 48px;
  height: 48px;
  color: #16a34a;
  margin-bottom: 14px;
}

.modal-success h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.modal-success p {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s, background .25s;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  transition: transform .3s, box-shadow .3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger .project-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s, transform .5s;
}

.reveal-stagger.visible .project-card {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1199px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro-image {
    flex: 0 0 320px;
  }
}

@media (max-width: 991px) {
  .hamburger {
    display: flex;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .intro-wrap {
    flex-direction: column;
  }
  .intro-image {
    flex: none;
    width: 100%;
    height: 260px;
  }
  .intro-content h2 {
    font-size: 26px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .locality-cards {
    grid-template-columns: 1fr;
  }

  /* ✅ FIXED: Cards go vertical at 991px instead of 767px to prevent cramping */
  .project-card {
    flex-direction: column;
    height: auto;
  }
  .project-img,
  .project-content {
    width: 100%;
  }
  .project-img {
    height: 180px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 400px;
    padding: 90px 16px 50px;
  }
  .intro-highlights {
    grid-template-columns: 1fr;
  }

  /* ✅ FIXED: Filter bar not sticky on mobile to save screen space */
  .filter-bar {
    position: relative;
    top: auto;
  }
  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-container select {
    min-width: unset;
  }
  .search-btn {
    width: 100%;
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-img {
    height: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .cta {
    padding: 56px 16px;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
  }
  .container {
    padding: 0 16px;
  }
}

/* ✅ NEW: Prevent grid overflow globally (fixes mobile horizontal scroll) */
.project-card,
.locality-card,
.stat-item,
.intro-highlight,
.footer-brand,
.footer-col {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .reveal-stagger .project-card {
    opacity: 1;
    transform: none;
  }
}