/* I+I Associates — Premium Real Estate Theme */

:root {
  --primary: #0c3d5a;
  --primary-dark: #082a3f;
  --primary-light: #145a7a;
  --accent: #e86b2a;
  --accent-hover: #ff7f3f;
  --success: #1a9c6e;
  --surface: #f8fafc;
  --surface-2: #eef2f6;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(12, 61, 90, 0.08);
  --shadow-lg: 0 20px 50px rgba(12, 61, 90, 0.15);
  --radius: 12px;
  --radius-lg: 16px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --nav-h: 130px;
  --logo-nav-h: 118px;
  --logo-nav-h-scrolled: 96px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Custom Scrollbar ── */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--surface-2);
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface-2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: 10px;
  border: 2px solid var(--surface-2);
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff9f5a 0%, var(--primary-light) 100%);
}

::-webkit-scrollbar-corner {
  background: var(--surface-2);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Show all sections if AOS fails or before init */
body.aos-fallback [data-aos],
html:not(.aos-init) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
}

section,
.site-footer,
.cta-banner,
header#home {
  position: relative;
  z-index: 1;
  visibility: visible;
}

section[id],
header#home {
  scroll-margin-top: 175px;
}

body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-inner { text-align: center; }

.preloader-logo-img {
  height: clamp(140px, 22vh, 200px);
  width: auto;
  max-width: min(360px, 92vw);
  object-fit: contain;
  display: block;
  margin: 0 auto 1.5rem;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.preloader-bar {
  width: 140px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  margin: 0 auto;
  border-radius: 3px;
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 35%;
  background: var(--accent);
  animation: loadbar 1.2s ease-in-out infinite;
}

@keyframes loadbar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* Top bar */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  padding: 0.5rem 0;
}

.top-bar a, .top-bar span {
  color: inherit;
  text-decoration: none;
  margin-right: 1.5rem;
}

.top-bar a:hover { color: var(--accent); }
.top-bar i { color: var(--accent); margin-right: 0.35rem; }

/* Navbar */
#mainNav.navbar {
  background: var(--white) !important;
  box-shadow: var(--shadow) !important;
  padding: 0.35rem 0 !important;
  min-height: var(--nav-h);
  transition: padding 0.3s var(--ease), box-shadow 0.3s, min-height 0.3s;
}

#mainNav.navbar .container {
  align-items: center;
  min-height: calc(var(--nav-h) - 0.7rem);
}

#mainNav.navbar.scrolled {
  padding: 0.25rem 0 !important;
  min-height: 108px;
  box-shadow: var(--shadow-lg) !important;
}

#mainNav .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0 !important;
  margin: 0 1.5rem 0 0 !important;
  flex-shrink: 0;
}

#mainNav .navbar-brand .site-logo,
.site-logo {
  height: var(--logo-nav-h);
  width: auto;
  max-width: 340px;
  min-width: 200px;
  object-fit: contain;
  object-position: left center;
  display: block;
  transition: height 0.3s var(--ease);
}

#mainNav.navbar.scrolled .site-logo {
  height: var(--logo-nav-h-scrolled);
}

#mainNav .navbar-collapse {
  flex-grow: 1;
}

#mainNav .navbar-nav {
  gap: 0.15rem;
}

.footer-logo-img {
  height: 120px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  display: block;
  background: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 10px;
}

.navbar .nav-link {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--primary); }

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  margin-left: 0.5rem;
  padding: 0.5rem 1.25rem !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-hover) !important; color: var(--white) !important; }

.navbar-toggler { border-color: var(--border); }

/* Typography */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-label-light { color: var(--accent); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0.75rem auto 0;
}

.section { padding: 5rem 0; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(8, 42, 63, 0.92) 0%, rgba(12, 61, 90, 0.75) 45%, rgba(12, 61, 90, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
  padding-bottom: 2rem;
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 107, 42, 0.2);
  border: 1px solid rgba(232, 107, 42, 0.4);
  color: #ffb88a;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--accent);
  font-style: italic;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  line-height: 1.7;
}

/* Search box */
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.search-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.search-box h3 i { color: var(--accent); margin-right: 0.5rem; }

.search-box .form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.search-box .form-select,
.search-box .form-control {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
}

.btn-search {
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  transition: background 0.3s, transform 0.3s;
}

.btn-search:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero stats bar */
.hero-stats-bar {
  position: relative;
  z-index: 3;
  background: var(--white);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.h-stat {
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--border);
}

.h-stat:last-child { border-right: none; }

.h-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.h-stat span { color: var(--accent); font-weight: 700; }

.h-stat i {
  font-size: 2rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

.h-stat small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  font-weight: 700;
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
  border-radius: 8px;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Featured section */
.featured-section {
  padding: 4rem 0;
  background: var(--surface);
  clear: both;
}

.featured-section .d-flex.justify-content-between {
  gap: 1.25rem;
}

/* Property card */
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.property-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  filter: contrast(1.07) brightness(1.03) saturate(1.08);
}

.property-card:hover .property-card-image img {
  transform: scale(1.06);
}

.property-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--success);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.property-badge.commercial { background: var(--primary); }
.property-badge.interiors { background: #7c3aed; }
.property-badge.other { background: #b45309; }
.property-badge.featured { background: var(--accent); top: auto; bottom: 1rem; left: 1rem; }

.property-fav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: color 0.3s, background 0.3s;
  border: none;
}

.property-fav:hover { color: #ef4444; }

.property-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.property-card-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.property-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.property-location i { color: var(--accent); flex-shrink: 0; }

.property-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.property-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.property-meta i { color: var(--primary-light); }

.btn-view {
  margin-top: auto;
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-weight: 700;
  padding: 0.65rem;
  border-radius: 8px;
  transition: background 0.3s;
}

.btn-view:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* Crop for split PDF slides — show left or right half cleanly */
.property-card-image img.crop-left {
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  transform-origin: left center;
  transition: transform 0.6s var(--ease), filter 0.3s;
}

.property-card-image img.crop-right {
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  margin-left: -100%;
  transform-origin: right center;
  transition: transform 0.6s var(--ease), filter 0.3s;
}

.property-card:hover .property-card-image img.crop-left {
  transform: scale(1.06);
  transform-origin: left center;
}
.property-card:hover .property-card-image img.crop-right {
  transform: scale(1.06);
  transform-origin: right center;
}


.portfolio-col.hidden { display: none !important; }
.portfolio-col.mobile-hidden { display: none !important; }

/* Listings */
.listings-section { background: var(--surface); }

.listing-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.listing-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: var(--surface-2);
  border: 1px solid transparent;
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
}

.listing-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.listing-count span { color: var(--accent); font-weight: 800; }

/* About */
.about-section { background: var(--white); }

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: contrast(1.06) brightness(1.03) saturate(1.08);
}

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--accent);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.about-badge-text {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.about-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.about-features i { color: var(--success); font-size: 1.1rem; }

.lead { font-size: 1.1rem; color: var(--text); }

/* Agent */
.agent-section { background: var(--surface); }

.agent-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.agent-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(12, 61, 90, 0.28);
}

.agent-card.agent-card-simple { justify-content: center; }

.agent-avatar {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  margin: 0 auto 1.1rem;
  border: 3px solid rgba(255,255,255,0.3);
}

.agent-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.agent-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0.25rem 0;
}

.agent-creds {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.agent-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 1.5rem;
}

.agent-actions {
  width: 100%;
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.agent-card .btn-primary,
.agent-card .btn-outline-primary {
  width: 100%;
}

.agent-card .btn-outline-primary {
  border-color: var(--white);
  color: var(--white);
}

.agent-card .btn-outline-primary:hover {
  background: var(--white);
  color: var(--primary);
}

/* Services */
.services-section { background: var(--white); }

.service-card-re {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform 0.3s var(--ease);
}

.service-card-re:hover { transform: translateY(-6px); }

.service-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  filter: contrast(1.06) brightness(1.04) saturate(1.1);
}

.service-body {
  padding: 1.5rem;
}

.service-body > i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.service-body h4 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.service-card-plain .service-body { padding-top: 2rem; }

/* Why us */
.why-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 5rem 0;
}

.why-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  transition: background 0.3s, transform 0.3s;
}

.why-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.why-card i {
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.why-card h5 { color: var(--white); font-weight: 700; margin-bottom: 0.5rem; }
.why-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; }

/* Projects list */
.projects-section { background: var(--surface); }

.project-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform 0.3s;
}

.project-chip:hover { transform: translateX(4px); }
.project-chip i { color: var(--success); flex-shrink: 0; margin-top: 0.1rem; }
.project-chip span { font-size: 0.9rem; font-weight: 500; }

/* CTA */
.cta-banner { padding: 0 0 5rem; }

.cta-inner {
  background: linear-gradient(135deg, var(--accent), #c44d1a);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
}

.cta-inner h2 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.cta-inner p { color: rgba(255,255,255,0.9); margin: 0; }

.cta-btns { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Contact */
.contact-section { background: var(--white); }

.contact-info-list { display: flex; flex-direction: column; gap: 1.25rem; }

.ci-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ci-item i {
  width: 44px;
  height: 44px;
  background: var(--surface);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ci-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.ci-item p { margin: 0; font-weight: 600; color: var(--primary); }
.ci-item a { color: var(--primary); text-decoration: none; }
.ci-item a:hover { color: var(--accent); }

.contact-form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-form-card h3 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.form-success-msg {
  text-align: center;
  padding: 2.5rem 1rem;
}

.form-success-inner i {
  font-size: 3.5rem;
  color: var(--success);
  display: block;
  margin-bottom: 1rem;
}

.form-success-inner h4 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-success-inner p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 61, 90, 0.15);
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}

.footer-brand {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 1rem;
}

.site-footer h6 {
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer ul a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.site-footer ul a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* Back to top */
.back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
  z-index: 100;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-4px);
}

/* Animations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Modal */
#lightboxModal .modal-dialog {
  max-width: min(1100px, 96vw);
  margin-left: auto;
  margin-right: auto;
}

#lightboxModal .modal-content {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

#lightboxModal .modal-header {
  background: var(--primary);
  color: var(--white);
}

#lightboxModal .modal-title { font-weight: 700; }
#lightboxModal .btn-close { filter: invert(1); }

#lightboxModal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  padding: 1.25rem;
  min-height: 320px;
}

#lightboxImg,
.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

/* Team */
.team-section { background: var(--surface); }

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface) 0%, var(--white) 100%);
}

.team-photo-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(232, 107, 42, 0.25);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.2rem;
  line-height: 1.2;
}

.team-title {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-exp {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.team-exp i { color: var(--accent); }

.team-body {
  padding: 1.5rem 1.75rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.6rem;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.team-tags span {
  background: var(--surface-2);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  letter-spacing: 0.03em;
}

.team-extra {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}

.team-card.expanded .team-extra {
  max-height: 3000px;
}

.team-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.55rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.team-toggle-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.team-toggle-btn .show-less-text { display: none; }
.team-card.expanded .team-toggle-btn .show-more-text { display: none; }
.team-card.expanded .team-toggle-btn .show-less-text { display: flex; align-items: center; gap: 0.4rem; }

.team-subsection-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin: 1.25rem 0 0.5rem;
}

.team-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.team-highlights li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.team-highlights i {
  color: var(--success);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.team-position-info {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}

.team-pos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.82rem;
  align-items: baseline;
}

.team-pos-row span {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.team-pos-row span::after { content: ":"; margin-right: 0.25rem; }
.team-pos-row strong { color: var(--primary); font-weight: 600; }

.team-motto {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--primary-light);
  font-family: var(--font-display);
  line-height: 1.65;
}

/* Desktop layout fixes */
@media (min-width: 992px) {
  .hero .row.min-vh-100 {
    min-height: calc(100vh - 100px) !important;
  }

  .listings-section .container {
    max-width: 1320px;
  }

  #portfolioGrid .col-xl-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  /* Account for top-bar (~36px) + navbar (~130px) on large screens */
  section[id],
  header#home {
    scroll-margin-top: 190px;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — All Breakpoints
   ═══════════════════════════════════════════════════════ */

/* ── Tablet landscape: 768px – 991px ── */
@media (min-width: 768px) and (max-width: 991px) {
  :root {
    --nav-h: 100px;
    --logo-nav-h: 88px;
    --logo-nav-h-scrolled: 76px;
  }

  .hero { min-height: auto; }
  .search-box { margin-top: 2rem; }

  .team-card-header { flex-direction: column; text-align: center; }
  .team-photo-wrap  { margin: 0 auto; }
  .team-info        { text-align: center; }
  .team-exp         { justify-content: center; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-btns  { justify-content: center; width: 100%; }
}

/* ── All Tablet and below: ≤ 991px ── */
@media (max-width: 991px) {
  :root {
    --nav-h: 100px;
    --logo-nav-h: 88px;
    --logo-nav-h-scrolled: 76px;
  }

  section[id], header#home { scroll-margin-top: 118px; }

  #mainNav .navbar-brand .site-logo { max-width: 260px; min-width: 160px; }
  #mainNav .navbar-collapse { padding-top: 0.75rem; }

  .hero { min-height: auto; }
  .hero-content { padding-bottom: 1rem; }
  .h-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .listing-toolbar { flex-direction: column; align-items: stretch; }

  /* Service card alignment on tablet — give plain cards matching top space */
  .service-card-re.service-card-plain {
    background: linear-gradient(to bottom, var(--surface-2) 180px, var(--white) 180px);
  }
}

/* ── Mobile: ≤ 767px ── */
@media (max-width: 767px) {
  :root {
    --nav-h: 88px;
    --logo-nav-h: 72px;
    --logo-nav-h-scrolled: 64px;
  }

  section[id], header#home { scroll-margin-top: 100px; }

  #mainNav .navbar-brand .site-logo { max-width: 200px; min-width: 140px; }

  /* reduce all section padding */
  .section { padding: 3rem 0; }
  .featured-section { padding: 2.5rem 0; }
  .why-section  { padding: 3rem 0; }
  .cta-banner   { padding: 0 0 3rem; }

  /* Featured header — keep title + CTA on one row like desktop, just tighter */
  .featured-section .d-flex.justify-content-between {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
  }
  .featured-section .d-flex.justify-content-between > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }
  .featured-section .section-title {
    font-size: 23px !important;
  }
  .featured-section .d-flex.justify-content-between .btn-outline-primary {
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* Hero row — prevent excessive height on mobile from min-vh-100 */
  .hero .row.min-vh-100 {
    min-height: auto !important;
    padding-top: 3.5rem !important;
    padding-bottom: 2rem !important;
  }

  .top-bar { display: none !important; }

  /* Hero */
  .hero-lead { font-size: 0.95rem; }
  .hero-shape, .hero-blob, .hero::before { display: none; }

  /* Hero stats bar */
  .h-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .h-stat:last-child { border-bottom: none; }

  /* Search box */
  .search-box { padding: 1.25rem; margin-top: 1.5rem; }
  .search-box h3 { font-size: 1rem; }

  /* About */
  .about-badge { padding: 0.75rem 1rem; }
  .about-badge-num { font-size: 1.6rem; }

  /* Agent */
  .agent-card { padding: 1.75rem 1.25rem; }

  /* Services */
  .service-card-re:hover { transform: none; }

  /* Team */
  .team-card-header { flex-direction: column; text-align: center; gap: 1rem; padding: 1.25rem; }
  .team-photo-wrap  { margin: 0 auto; }
  .team-info        { text-align: center; }
  .team-exp         { justify-content: center; }
  .team-body        { padding: 1.25rem; }

  /* CTA */
  .cta-inner { flex-direction: column; text-align: center; padding: 2rem 1.25rem; }
  .cta-btns  { justify-content: center; width: 100%; flex-direction: column; }
  .cta-btns .btn { width: 100%; }

  /* Contact */
  .contact-form-card { padding: 1.25rem; }

  /* Filter */
  .listing-filters { gap: 0.35rem; }
  .filter-btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

  /* Footer */
  .footer-logo-img { height: 80px; }
  .site-footer { padding: 2.5rem 0 0; }
  .footer-bottom { margin-top: 1.5rem; }

  /* Marquee */
  .marquee-strip { display: none; }

  /* Tilt disabled on touch */
  .property-card { transform: none !important; }

  /* View More button wrapper — only on mobile */
  #viewMoreBtn { padding: 1rem 0.5rem 0.5rem; }
  #viewMoreBtn .btn { min-width: 200px; border-radius: 50px; font-size: 0.95rem; }

  /* Property card clarity on mobile */
  .property-card-image img { filter: contrast(1.1) brightness(1.04) saturate(1.1); }

  /* 1-column property grid on small mobile */
  #featuredGrid .col-md-6,
  #portfolioGrid .col-md-6 { padding-left: 0.5rem; padding-right: 0.5rem; }
}

/* ── Small mobile: ≤ 575px ── */
@media (max-width: 575px) {
  .section { padding: 2.5rem 0; }
  .why-section { padding: 2.5rem 0; }

  /* Hero */
  .hero-title { font-size: clamp(1.75rem, 7vw, 2.2rem) !important; }
  .hero-badge { font-size: 0.72rem; padding: 0.35rem 0.8rem; }
  .hero-lead  { font-size: 0.9rem; }

  /* Stats */
  .h-stat-num { font-size: 1.6rem; }
  .h-stat { padding: 1rem 0.75rem; }

  /* Section titles */
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem) !important; }
  .section-sub   { font-size: 0.875rem; }

  /* Property cards */
  .property-card-body { padding: 1rem; }
  .property-card-body h4 { font-size: 0.95rem; }
  .property-meta { flex-wrap: wrap; gap: 0.5rem; }

  /* About */
  .about-badge { bottom: 0.75rem; right: 0.75rem; padding: 0.6rem 0.75rem; }
  .about-badge-num  { font-size: 1.25rem; }
  .about-badge-text { font-size: 0.6rem; }

  /* Team */
  .team-tags span { font-size: 0.65rem; }

  /* Why cards */
  .why-card { padding: 1.25rem; }
  .why-card i { font-size: 1.5rem; }

  /* Agent */
  .agent-card h3 { font-size: 1.4rem; }
  .agent-creds   { font-size: 0.8rem; }
  .agent-avatar  { width: 80px; height: 80px; font-size: 2.4rem; }

  /* CTA */
  .cta-inner h2 { font-size: 1.25rem; }

  /* Filter icons hidden to save space */
  .listing-filters .filter-btn i { display: none; }
  .listing-toolbar { padding: 0.75rem 1rem; }

  /* Contact */
  .ci-item i { width: 38px; height: 38px; font-size: 1rem; }

  /* Footer */
  .site-footer ul li { margin-bottom: 0.35rem; }
  .footer-logo-img { height: 68px; }
}

/* ── Extra small: ≤ 380px (iPhone SE etc) ── */
@media (max-width: 380px) {
  :root {
    --nav-h: 76px;
    --logo-nav-h: 62px;
    --logo-nav-h-scrolled: 56px;
  }

  #mainNav .navbar-brand .site-logo { max-width: 160px; min-width: 120px; }

  .hero-title { font-size: 1.65rem !important; }
  .section-title { font-size: 1.4rem !important; }

  .featured-section .d-flex.justify-content-between { gap: 0.5rem; }
  .featured-section .d-flex.justify-content-between .btn-outline-primary {
    padding: 0.4rem 0.65rem;
    font-size: 0.7rem;
  }

  .search-box { padding: 1rem; }
  .search-box .form-select,
  .search-box .form-control { padding: 0.55rem 0.75rem; font-size: 0.875rem; }

  .property-card-body { padding: 0.875rem; }
  .team-card-header { padding: 1rem; }
  .team-body { padding: 1rem; }

  .cta-inner { padding: 1.5rem 1rem; }
  .contact-form-card { padding: 1rem; }
  .agent-card { padding: 1.25rem 1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM ANIMATION LAYER — 2025 Trendy Upgrades
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .hero-shape, .hero-badge, .about-image-wrap,
  .back-top, .agent-card::before, .team-photo-wrap,
  .project-chip, #scroll-progress,
  .cta-inner::before, .cta-inner::after,
  .why-section, .h-stat-num { animation: none !important; }
}

/* 1 — Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 10000;
  background: linear-gradient(90deg,
    var(--primary), var(--accent), #ffb870, var(--accent), var(--primary));
  background-size: 300% 100%;
  animation: progressGlow 3s linear infinite;
  pointer-events: none;
  will-change: width;
}
@keyframes progressGlow {
  0%   { background-position: 100% 0; }
  100% { background-position: -200% 0; }
}

/* 2 — Hero Floating Shapes */
.hero-shape {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 1;
}
.hero-shape-circle {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,107,42,0.22) 0%, transparent 70%);
  animation: floatShape var(--dur, 10s) ease-in-out infinite var(--delay, 0s);
}
.hero-shape-square {
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  animation: floatRotate var(--dur, 12s) linear infinite var(--delay, 0s);
}
.hero-shape-ring {
  border-radius: 50%;
  border: 2px solid rgba(232,107,42,0.18);
  background: transparent;
  animation: floatShape var(--dur, 15s) ease-in-out infinite var(--delay, 0s);
}
@keyframes floatShape {
  0%, 100% { transform: translateY(0) translateX(0); }
  25%       { transform: translateY(-28px) translateX(12px); }
  50%       { transform: translateY(-14px) translateX(-10px); }
  75%       { transform: translateY(12px) translateX(6px); }
}
@keyframes floatRotate {
  0%   { transform: rotate(0deg) translateY(0); }
  100% { transform: rotate(360deg) translateY(-18px); }
}

/* 3 — Hero Mouse Spotlight */
.hero::before {
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,107,42,0.07) 0%, transparent 68%);
  top: var(--mouse-y, 40%);
  left: var(--mouse-x, 30%);
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  transition: top 0.6s ease, left 0.6s ease;
}

/* 4 — Section Label Animated Underline */
.section-label { position: relative; }
.section-label::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), #ffb870);
  border-radius: 2px;
  transition: width 0.7s var(--ease);
}
.section-label.in-view::after { width: 100%; }

/* 5 — Section Title Gradient Shimmer */
.section-title.shimmer:not(.text-white) {
  background: linear-gradient(90deg,
    var(--primary) 0%, var(--primary) 30%,
    var(--accent) 50%,
    var(--primary) 70%, var(--primary) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 5s linear infinite;
}
@keyframes textShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* 6 — Hero Stats Gradient Numbers */
.h-stat-num {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: statPop 0.6s var(--ease) both;
}
@keyframes statPop {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* 7 — Property Card 3D Tilt + Mouse Spotlight */
.property-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.property-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(232,107,42,0.13) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 6;
}
.property-card:hover::before { opacity: 1; }

/* 8 — Service Card Icon Bounce */
.service-card-re:hover .service-body > i {
  animation: iconBounce 0.55s var(--ease) both;
}
@keyframes iconBounce {
  0%   { transform: translateY(0) scale(1); }
  40%  { transform: translateY(-14px) scale(1.3); }
  70%  { transform: translateY(5px) scale(0.92); }
  100% { transform: translateY(0) scale(1); }
}

/* 9 — Team Photo Pulsing Ring */
.team-photo-wrap {
  animation: photoRing 3s ease-in-out infinite;
}
@keyframes photoRing {
  0%, 100% {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(232,107,42,0.25);
  }
  50% {
    border-color: #ffb870;
    box-shadow: 0 4px 28px rgba(232,107,42,0.55), 0 0 0 5px rgba(232,107,42,0.1);
  }
}

/* 10 — Button Ripple Wave */
.btn-primary, .btn-search, .btn-view, .filter-btn, .nav-cta, .btn-light { position: relative; overflow: hidden; }
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleExpand 0.65s linear forwards;
  background: rgba(255,255,255,0.3);
  pointer-events: none;
}
@keyframes rippleExpand {
  to { transform: scale(4.5); opacity: 0; }
}

/* 11 — CTA Banner Floating Orbs */
.cta-inner { position: relative; overflow: hidden; }
.cta-inner::before, .cta-inner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-inner::before {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  top: -120px; right: -80px;
  animation: orbFloat 6s ease-in-out infinite;
}
.cta-inner::after {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  bottom: -80px; left: 40px;
  animation: orbFloat 8s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-22px) scale(1.1); }
}

/* 12 — Why Section Animated Gradient */
.why-section {
  background: linear-gradient(135deg,
    var(--primary-dark) 0%, var(--primary) 45%, #1a5a78 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* 13 — Why Card Glow Overlay on Hover */
.why-card { position: relative; overflow: hidden; }
.why-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232,107,42,0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.why-card:hover::after { opacity: 1; }

/* 14 — Project Chip Left Bar Pulse */
.project-chip {
  animation: chipBarPulse 3s ease-in-out infinite;
}
@keyframes chipBarPulse {
  0%, 100% { border-left-color: var(--accent); }
  50%       { border-left-color: #ffb870; }
}

/* 15 — Hero Badge Glow Pulse */
.hero-badge {
  animation: badgeGlow 3s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,107,42,0); }
  50%       { box-shadow: 0 0 18px 6px rgba(232,107,42,0.25); }
}

/* 16 — About Image Wrap Gentle Float */
.about-image-wrap {
  animation: imgFloat 6s ease-in-out infinite;
}
@keyframes imgFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* 17 — Back-to-Top Pulsing Glow */
.back-top.visible {
  animation: backTopPulse 2.5s ease-in-out infinite;
}
@keyframes backTopPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(232,107,42,0.4); }
  50%       { box-shadow: 0 4px 32px rgba(232,107,42,0.7), 0 0 0 8px rgba(232,107,42,0.08); }
}

/* 18 — Agent Card Conic Sweep */
.agent-card { position: relative; overflow: hidden; }
.agent-card::before {
  content: '';
  position: absolute; inset: 0;
  background: conic-gradient(
    transparent 0deg,
    rgba(255,255,255,0.045) 90deg,
    transparent 180deg);
  animation: agentSweep 5s linear infinite;
  pointer-events: none;
}
@keyframes agentSweep {
  to { transform: rotate(360deg); }
}

/* 19 — Filter Button Active Pop */
.filter-btn.active {
  animation: filterPop 0.3s var(--ease) both;
}
@keyframes filterPop {
  0%   { transform: scale(0.94); }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* 20 — Search Box Focus Lift */
.search-box {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.search-box:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 36px 80px rgba(12,61,90,0.28) !important;
}

/* 21 — Navbar Logo Shine on Hover */
#mainNav .navbar-brand .site-logo {
  transition: height 0.3s var(--ease), filter 0.4s;
}
#mainNav .navbar-brand:hover .site-logo {
  filter: drop-shadow(0 2px 14px rgba(232,107,42,0.45));
}

/* 22 — Stagger card entrance via JS class */
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.card-enter {
  animation: cardEntrance 0.55s var(--ease) both;
  animation-delay: var(--stagger, 0ms);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATION ROUND 2 — Elite-Tier Additions
   ═══════════════════════════════════════════════════════════════ */

/* 23 — Custom Cursor */
.cursor-outer {
  position: fixed;
  width: 38px; height: 38px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              background 0.35s, border-color 0.35s, opacity 0.3s,
              transform 0.35s var(--ease);
  mix-blend-mode: normal;
}
.cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s;
}
.cursor-outer.expanded {
  width: 64px; height: 64px;
  background: rgba(232,107,42,0.1);
}
.cursor-outer.clicking {
  transform: translate(-50%, -50%) scale(0.75);
  background: rgba(232,107,42,0.22);
}
@media (hover: none), (pointer: coarse) {
  .cursor-outer, .cursor-dot { display: none !important; }
}

/* 24 — Mouse Trail Dot */
.trail-dot {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 99995;
  transform: translate(-50%, -50%) scale(1);
  animation: trailFade 0.75s ease-out forwards;
}
@keyframes trailFade {
  0%   { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;    transform: translate(-50%, calc(-50% - 22px)) scale(0.15); }
}

/* 25 — Marquee Ticker Strip */
.marquee-strip {
  background: var(--primary-dark);
  padding: 0.65rem 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.marquee-strip::before,
.marquee-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 3;
  pointer-events: none;
}
.marquee-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--primary-dark), transparent);
}
.marquee-strip::after {
  right: 0;
  background: linear-gradient(-90deg, var(--primary-dark), transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeRun 32s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.mq-item {
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1.5rem;
  transition: color 0.3s;
}
.mq-item:hover { color: var(--accent); }
.mq-item i { color: var(--accent); font-size: 0.82rem; }
.mq-sep {
  color: var(--accent);
  opacity: 0.45;
  font-size: 0.6rem;
  flex-shrink: 0;
}
@keyframes marqueeRun {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 26 — Card Image Diagonal Shine Sweep */
.property-card-image::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.22) 50%,
    transparent 70%
  );
  transform: skewX(-15deg);
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 3;
}
.property-card:hover .property-card-image::after { left: 145%; }

/* 27 — Hero Title Clip-Path Wipe */
.hero-title {
  transform-origin: left center;
}
.hero-title.wipe-reveal {
  clip-path: inset(0 100% 0 0);
  opacity: 1 !important;
  transform: none !important;
  animation: none;
}
.hero-title.wipe-reveal.wiping {
  clip-path: inset(0 0% 0 0);
  transition: clip-path 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 28 — Hero Badge Typewriter Cursor */
.hero-badge .badge-text::after {
  content: '|';
  animation: cursorBlink 0.7s step-end infinite;
  color: #ffb870;
  margin-left: 1px;
  font-weight: 400;
}
.hero-badge .badge-text.typed::after { display: none; }
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* 29 — Text Scramble Characters */
.scramble-active { will-change: contents; }

/* 30 — Animated Gradient Blobs in Hero */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.hero-blob-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(232,107,42,0.16) 0%, transparent 70%);
  bottom: 8%; left: 3%;
  animation: blob1 12s ease-in-out infinite;
}
.hero-blob-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(20,90,122,0.22) 0%, transparent 70%);
  top: 12%; right: 8%;
  animation: blob2 15s ease-in-out infinite;
}
.hero-blob-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,184,112,0.11) 0%, transparent 70%);
  top: 48%; right: 28%;
  animation: blob3 10s ease-in-out infinite;
}
@keyframes blob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(45px, -30px) scale(1.1); }
  66%       { transform: translate(-20px, 22px) scale(0.95); }
}
@keyframes blob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-38px, 28px) scale(1.07); }
  70%       { transform: translate(22px, -18px) scale(0.93); }
}
@keyframes blob3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(28px, 22px) scale(1.14); }
}

/* 31 — About Feature List Staggered Reveal */
.about-features.js-reveal li {
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.about-features.js-reveal li.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* 32 — Hero Glitch Flash */
@keyframes glitchFlash {
  0%   { text-shadow:  2px 0 var(--accent), -2px 0 #82cfff; }
  20%  { text-shadow: -3px 1px var(--accent),  3px -1px #ff9f5a; }
  40%  { text-shadow:  3px -2px #82cfff,  -3px 2px var(--accent); }
  60%  { text-shadow: -2px 1px #ff9f5a,    2px -1px var(--accent); }
  80%  { text-shadow:  1px -1px var(--accent), -1px 1px #82cfff; }
  100% { text-shadow: none; }
}
.hero-title.glitch-flash {
  animation: glitchFlash 0.38s steps(5) both;
}

/* 33 — Gradient Shimmer Section Dividers */
.gradient-divider {
  display: block;
  height: 2px;
  border: none;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    #ffb870,
    var(--accent),
    transparent
  );
  background-size: 200% 100%;
  animation: dividerShimmer 4s linear infinite;
}
@keyframes dividerShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 34 — Stat card bottom-bar reveal */
.h-stat {
  position: relative;
}
.h-stat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.1s var(--ease);
}
.h-stat.bar-in::after { transform: scaleX(1); }

/* 35 — Section titles enhance: letter-spacing breathe on shimmer */
.section-title.shimmer:not(.text-white) {
  animation: textShimmer 5s linear infinite, titleBreath 8s ease-in-out infinite;
}
@keyframes titleBreath {
  0%, 100% { letter-spacing: normal; }
  50%       { letter-spacing: 0.015em; }
}

/* 36 — Property card view button slide-up reveal */
.property-card .btn-view {
  transform: translateY(6px);
  transition: background 0.3s, transform 0.4s var(--ease);
}
.property-card:hover .btn-view {
  transform: translateY(0);
}

/* 37 — Nav CTA pulse ring */
.nav-cta {
  position: relative;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: ctaRing 2.5s ease-in-out infinite;
}
@keyframes ctaRing {
  0%   { opacity: 0;   transform: scale(1); }
  50%  { opacity: 0.4; transform: scale(1.06); }
  100% { opacity: 0;   transform: scale(1.12); }
}

/* 38 — Preloader logo pulse glow */
.preloader-logo-img {
  animation: float 2s ease-in-out infinite, logoGlow 3s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
  50%       { box-shadow: 0 12px 60px rgba(232,107,42,0.4), 0 0 0 8px rgba(232,107,42,0.08); }
}
