/* ===== CSS VARIABLES ===== */
:root {
  --maroon: #009245;
  --maroon-dark: #006e33;
  --gold: #e31e24;
  --gold-light: #f36c6c;
  --cream: #fdf8f3;
  --cream-dark: #f5ede4;
  --brown: #3d2314;
  --white: #ffffff;
  --gray: #6b7280;
  --gray-light: #9ca3af;
}

.property-layout {
  padding-top: 1.5rem;
}

.filter-sidebar {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.filter-sidebar .form-label {
  font-size: 0.8rem;
  color: #555;
}

.filter-sidebar .form-control,
.filter-sidebar .form-select {
  border-radius: 10px;
}

.filter-actions .btn {
  border-radius: 12px;
  padding: 0.6rem 1rem;
}

/* Property grid cards (For Sale / For Rent listing pages) */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.property-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.property-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-ribbon {
  position: absolute;
  top: 10px;
  left: 0;
  background-color: var(--gold);
  color: #ffffff;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0 2px 2px 0;
}

.property-ribbon.rent {
  background-color: #d72626;
}

.property-card-body {
  padding: 0.85rem 1rem 1rem 1rem;
  flex: 1 1 auto;
}

.property-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  color: #333;
}

.property-card-title a {
  color: inherit;
  text-decoration: none;
}

.property-card-title a:hover {
  text-decoration: underline;
}

.property-card-location {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.45rem;
}

.property-card-price {
  color: #d72626;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.just{
    text-align: justify;
}

.property-card-meta {
  font-size: 0.78rem;
  color: #777;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.property-card-meta i {
  margin-right: 4px;
}

.property-card-footer {
  background: #222;
  color: #ffffff;
  text-align: center;
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
}

@media (max-width: 991px) {
  .filter-sidebar { margin-bottom: 1rem; }
}

/* ===== LIST / GRID TOGGLE (kept for future use) ===== */
.view-toggle .btn {
  border-radius: 10px;
  padding: 6px 10px;
}
.view-toggle .btn.active {
  background: #0FA958;
  color: #fff;
  border-color: #0FA958;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1199px) {
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--brown);
  background-color: var(--cream);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto", serif;
  font-weight: 600;
}

/* ===== UTILITY CLASSES ===== */
.bg-maroon {
  background-color: var(--maroon) !important;
}
.bg-cream {
  background-color: var(--cream) !important;
}
.bg-cream-dark {
  background-color: var(--cream-dark) !important;
}
.text-maroon {
  color: var(--maroon) !important;
}
.text-warning {
  color: var(--gold) !important;
}
.text-italic {
  font-style: italic;
}
.z-2 {
  z-index: 2;
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: transparent;
  padding: 1rem 0;
  box-shadow: none;
  transition: all 0.3s ease;
  z-index: 1030;
}

.navbar.scrolled {
  background-color: transparent;
  box-shadow: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: "Roboto", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--maroon);
}

.brand-tagline {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--gray);
}

.navbar .nav-link {
  color: #333;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  margin: 0 12px; /* ~24px spacing between items */
  transition: color 0.25s ease, opacity 0.25s ease;
  position: relative;
  border-radius: 10px;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: #0FA958;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.navbar .nav-link:hover {
  background: rgba(15, 169, 88, 0.06);
  color: #0FA958;
}

.navbar .nav-link.active {
  color: #0FA958;
}

.navbar .dropdown-item {
  text-transform: uppercase;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
  background: rgba(15, 169, 88, 0.08);
  color: #0FA958;
}

.navbar .btn-outline-primary {
  border-color: var(--maroon);
  color: var(--maroon);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
}

.navbar .btn-outline-primary:hover {
  background-color: var(--maroon);
  color: var(--white);
}

.navbar .btn-primary {
  background-color: var(--maroon);
  border-color: var(--maroon);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
}

.navbar .btn-primary:hover {
  background-color: var(--maroon-dark);
}

/* ===== NAVBAR PILL SURFACE ===== */
.nav-surface {
    margin-top: 2rem;
  background: #ffffff;
  border-radius: 9999px;
  padding: 10px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  gap: 1rem;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Buttons inside navbar to match pill look */
.navbar .btn-warning {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--brown);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.navbar .btn-warning:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
}

.navbar .btn-outline-dark {
  border-color: #222;
  color: #222;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.navbar .btn-outline-dark:hover {
  background-color: #222;
  color: var(--white);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
}

.hero-section .carousel-item {
  position: relative;
  min-height: 85vh; /* adjust 75vh–95vh */
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08);
  z-index: 1;
}

.hero-content {
  padding-top: 90px; /* because nav is fixed */
  padding-bottom: 60px;
}

.hero-badge {
  display: inline-block;
  background: #f2c14e;
  color: #1b1b1b;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-shadow: 2px 2px 4px #000000;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-subtitle {
  text-shadow: 2px 2px 4px #000000;
  max-width: 820px;
  margin: 0 auto 22px;
  font-size: 1.05rem;
  opacity: 0.95;
}

/* Your CTA button style (match your existing .btn-cta if you have it) */
.btn-cta {
  background: #e63946;
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
}

.btn-cta:hover {
  background: #c92f3b;
  color: #fff;
}

/* Make arrows nicer (optional) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.6));
}

/* Indicators style */
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}


/* ===== SECTION STYLES ===== */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--maroon);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.25rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 1rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background-color: var(--white);
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ===== WHY CHOOSE US SECTION ===== */
.choose-card {
  background-color: var(--cream);
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
}

.card-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  background-color: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.choose-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.build-together-card {
  background-color: var(--white);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid #eee;
}

.build-together-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.dedicated-card {
  height: 100%;
  min-height: 400px;
}

.dedicated-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(123, 45, 38, 0.95), transparent);
}

.card-number-gold {
  display: inline-flex;
  width: 30px;
  height: 30px;
  background-color: var(--gold);
  color: var(--white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.dedicated-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ===== SERVICES HEADER ===== */
.services-header {
  background-color: var(--white);
}

.services-title {
  font-size: 3rem;
  font-weight: 600;
  color: var(--brown);
}

.services-icon {
  height: 80px;
  object-fit: contain;
}

/* ===== PROPERTY MANAGEMENT SECTION ===== */
.service-card {
  background-color: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #eee;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.service-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 0;
}

.service-link {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 35px;
  height: 35px;
  background-color: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-link:hover {
  background-color: var(--maroon);
  color: var(--white);
}

/* ===== TECHNICAL SERVICES ===== */
.tech-card {
  height: 350px;
  cursor: pointer;
}

.tech-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tech-card:hover img {
  transform: scale(1.1);
}

.tech-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(123, 45, 38, 0.95), transparent);
  color: var(--white);
}

.tech-number {
  display: inline-flex;
  width: 30px;
  height: 30px;
  background-color: var(--gold);
  color: var(--white);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.tech-overlay h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.tech-overlay p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* ===== PROJECTS GALLERY ===== */
.project-card {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.project-card img {
  transition: transform 0.5s ease;
  height: 250px;
  object-fit: cover;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-info {
  padding: 1rem;
  background: var(--white);
}

.project-category {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
}

.project-info h4 {
  font-size: 1.125rem;
  margin: 0.5rem 0;
}

.project-info p {
  font-size: 0.875rem;
  color: var(--gray);
  margin: 0;
}

/* ===== HOME: LIST WITH US + COMMUNITIES ===== */
.list-with-us-section {
  position: relative;
  overflow: hidden;
}

.list-with-us-bg {
  position: absolute;
  inset: 0;
  background-image: url('public/luxury-modern-apartment-balcony-city-view.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
}

.list-with-us-card {
  position: relative;
  max-width: 540px;
  background: #ffffff;
  padding: 2.5rem 3rem;
  border-radius: 6px;
  margin-top: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.communities-grid .community-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 180px;
}

.community-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
}

.community-card .community-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  z-index: 1;
}

.community-card-intro {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fafafa;
}

/* ===== CTA SECTION ===== */
.cta-box h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

/* ===== PARTNERS SECTION ===== */
.partners-section .partner-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 1rem;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-section .partner-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: var(--brown);
  text-transform: uppercase;
}

.partners-section .partner-logo img {
  max-height: 42px;
  width: auto;
  opacity: 0.9;
}

/* ===== ARTICLES ===== */
.property-search-wrap {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.property-search {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 9999px;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.property-search .search-field {
  display: flex;
  flex-direction: column;
  padding: 0 0.75rem;
  min-width: 140px;
  border-right: 1px solid rgba(0,0,0,0.08);
}

.property-search .search-field:last-of-type {
  border-right: 0;
}

.property-search .search-label {
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 0.15rem;
}

.property-search .search-input {
  padding: 0;
  margin: 0;
  height: 32px;
}

.property-search .search-select {
  border: none;
  background: transparent;
  padding: 0;
  height: 32px;
  box-shadow: none;
}

.property-search .search-select:focus {
  box-shadow: none;
}

.property-search .search-submit {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #222;
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.property-search .search-submit:hover {
  background: #000;
}

@media (max-width: 991px) {
  .property-search {
    flex-wrap: wrap;
    border-radius: 20px;
    gap: 0.5rem 1rem;
  }
  .property-search .search-field {
    flex: 1 1 calc(50% - 1rem);
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 0.5rem;
  }
  .property-search .search-field:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

.article-card img {
  height: 200px;
  object-fit: cover;
}

.article-card h4 {
  font-size: 1.125rem;
  line-height: 1.4;
}

/* ===== CONTACT SECTION ===== */
.contact-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-form .form-control,
.contact-form .form-select {
  border: none;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  padding: 1rem 0;
  background: transparent;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  box-shadow: none;
  border-color: var(--gold);
}

/* ===== FOOTER ===== */
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--gold);
  color: var(--white);
}

/* ===== ABOUT PAGE ===== */
.about-hero-section {
  background-color: var(--cream);
  min-height: 100vh;
  padding-top: 80px;
}

.about-hero-title {
  font-size: 3rem;
  line-height: 1.3;
}

.about-hero-tagline {
  font-style: italic;
  color: var(--gray);
  font-size: 1.25rem;
}

.story-text {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* ===== VALUES SECTION ===== */
.value-card {
  background-color: var(--white);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid #eee;
}

.value-icon {
  width: 50px;
  height: 50px;
  background-color: var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.mission-card {
  border-left: 4px solid var(--gold);
}

.vision-card {
  border-left: 4px solid var(--maroon);
}

.core-values-card {
  background-color: var(--cream);
}

.core-value-item h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.core-value-item p {
  font-size: 0.875rem;
  color: var(--gray);
}

/* ===== FOUNDER SECTION ===== */
.founder-quote {
  padding: 2rem;
}

.quote-text {
  font-size: 1.125rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.quote-author {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
}

/* ===== TRUST SECTION ===== */
.trust-card {
  padding: 2rem;
}

.trust-icon {
  width: 60px;
  height: 60px;
  background-color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.trust-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.trust-card p {
  font-size: 0.875rem;
  color: var(--gray);
}

/* ===== SERVICE DETAIL CARDS ===== */
.service-detail-card {
  background-color: var(--white);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid #eee;
  height: 100%;
  transition: all 0.3s ease;
}

.service-detail-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.service-detail-card .service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-detail-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-detail-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== CONTACT INFO CARDS ===== */
.contact-info-card {
  background-color: var(--white);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-card .contact-icon {
  width: 60px;
  height: 60px;
  background-color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.contact-info-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.contact-info-card p {
  font-size: 0.95rem;
  color: var(--gray);
  margin: 0;
}

/* ===== HOURS CARD ===== */
.hours-card p {
  margin-bottom: 1rem;
}

/* ===== HERO SECTIONS FOR INNER PAGES ===== */
.services-hero-section,
.projects-hero-section,
.contact-hero-section {
  padding-top: 10px;
  padding-bottom: 20px;
}

.services-hero-title,
.projects-hero-title,
.contact-hero-title {
  font-size: 2.5rem;
  font-weight: 600;
}

/* Page-specific project hero backgrounds */
.projects-hero-section.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
}
.projects-hero-section.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45));
}
.projects-hero-section.page-hero > .container {
  position: relative;
  z-index: 1;
}

/* Apply same page-hero treatment to services/contact heroes */
.services-hero-section.page-hero,
.contact-hero-section.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
}
.services-hero-section.page-hero::before,
.contact-hero-section.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45));
}
.services-hero-section.page-hero > .container,
.contact-hero-section.page-hero > .container {
  position: relative;
  z-index: 1;
}

/* Unique banner images per page */
.hero-sale { background-image: url('public/nairobi-city-skyline-at-golden-sunset-with-modern-.jpg'); }
.hero-rent { background-image: url('public/modern-apartment-building-exterior-nairobi.jpg'); }
.hero-featured { background-image: url('public/luxury-modern-apartment-balcony-city-view.jpg'); }
.hero-commercial { background-image: url('public/modern-building-architectural-sketch-illustration.jpg'); }
/* New pages */
.hero-team { background-image: url('public/property-management-team-meeting-with-construction.jpg'); }
.hero-testimonials { background-image: url('public/nairobi-modern-skyline-buildings-sunset.jpg'); }
.hero-gallery { background-image: url('public/modern-circular-building-architecture-stadium-nair.jpg'); }
.hero-services { background-image: url('public/interior-designer-finishing-modern-room-decoration.jpg'); }
.hero-faqs { background-image: url('public/modern-building-architectural-sketch-illustration.jpg'); }
.hero-careers { background-image: url('public/736.jpg'); }
.hero-contact { background-image: url('public/nairobi-city-skyline-at-golden-sunset-with-modern-.jpg'); }

.articles-hero-section {
  position: relative;
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 350px;
  display: flex;
  align-items: center;
}

.articles-hero-title {
  font-size: 2.5rem;
  font-weight: 600;
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--brown) !important;
}

/* ===== RESPONSIVE ===== */
.btn-cta {
  background-color: #D72626;
  border-color: #D72626;
  color: #fff;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 60px;
  box-shadow: 0 4px 12px rgba(215, 38, 38, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-cta:hover {
  background-color: #b81d1d;
  border-color: #b81d1d;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(215, 38, 38, 0.3);
}

.btn-cta:active {
  transform: translateY(0);
}

/* Scroll behavior: emphasize floating header on scroll */
.navbar.scrolled .nav-surface {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Navbar toggler (mobile) */
.navbar .navbar-toggler {
  border: none;
}

.navbar .navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 991px) {
  .nav-surface {
    padding: 12px 16px;
    border-radius: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .hero-title {
    font-size: 2.75rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-title {
    font-size: 2rem;
  }

  .contact-title {
    font-size: 2.5rem;
  }

  .nav-buttons {
    margin-top: 1rem;
  }
  .navbar .nav-link {
    margin: 0 6px;
    display: block;
    padding: 12px 8px;
    border-radius: 10px;
  }
  .navbar .nav-link:hover {
    background: rgba(15, 169, 88, 0.06);
  }

  /* Collapse panel styling */
  .navbar .collapse.show,
  .navbar .collapsing {
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    margin-top: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    width: 100%;
  }

  /* Dropdowns behave like inline lists on mobile */
  .navbar .dropdown-menu {
    position: static;
    float: none;
    transform: none !important;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 8px 12px;
    margin: 0;
  }
  .navbar .dropdown-item {
    padding: 10px 8px;
    border-radius: 8px;
    
  }
  .navbar .dropdown-item:hover {
    background: rgba(0,0,0,0.04);
  }

  /* Full-width CTA on mobile */
  .nav-buttons .btn-cta {
    width: 100%;
  }

  /* Toggler visibility tweaks */
  .navbar .navbar-toggler {
    color: #333;
  }

  .hero-buttons {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 360px;
    padding: 0.85rem 1.25rem;
  }
}

@media (max-width: 767px) {
  .hero-buttons .btn {
    max-width: 100%;
  }
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .about-hero-title {
    font-size: 2rem;
  }

  .services-hero-title,
  .projects-hero-title,
  .contact-hero-title,
  .articles-hero-title {
    font-size: 1.75rem;
  }

  .contact-title {
    font-size: 2rem;
  }

  .tech-card {
    height: 280px;
  }
}
