html, body {
  height: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; }

body > main {
  flex: 1 0 auto; }

#main-footer {
  flex-shrink: 0; }

.btn-secondary {
  color: #fff !important; }

img {
  width: 100%; }

/* ===== NAVBAR ===== */
.nav-logo {
  max-height: 46px;
  width: auto;
}

#main-nav {
  transition: box-shadow 0.3s ease;
  text-transform: uppercase;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

#main-nav.nav-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.22);
}

/* Centre the main nav links on desktop */
@media (min-width: 992px) {
  #main-nav ul.navbar-nav:first-of-type {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

#main-nav .nav-link {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.5rem 0 !important;
  margin: 0 1rem;
  position: relative;
  color: rgba(255, 255, 255, 0.82) !important;
  transition: color 0.2s ease;
}

#main-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-secondary);
  transition: width 0.25s ease;
  border-radius: 2px;
}

#main-nav .nav-item.active > .nav-link,
#main-nav .nav-link:hover {
  color: #fff !important;
}

#main-nav .nav-item.active > .nav-link::before,
#main-nav .nav-link:hover::before {
  width: 100%;
}

#main-nav .nav-cta .nav-link::before {
  display: none;
}

/* Dropdown */
#main-nav .dropdown-menu {
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.13);
  padding: 0.4rem 0;
  min-width: 195px;
  margin-top: 0.5rem;
  animation: navDropIn 0.2s ease both;
}

@keyframes navDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

#main-nav .dropdown-item {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.6rem 1.3rem;
  color: #2c3e50;
  transition: background 0.15s, color 0.15s, padding-left 0.18s;
}

#main-nav .dropdown-item:hover,
#main-nav .dropdown-item:focus {
  background: var(--brand-secondary);
  color: #fff;
  padding-left: 1.55rem;
}

#main-nav .dropdown-divider {
  margin: 0.3rem 1rem;
  border-color: rgba(0, 0, 0, 0.07);
}

/* CTA Button */
.btn-quote {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--brand-secondary);
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1.2rem;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-quote:hover {
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 18px color-mix(in srgb, var(--brand-secondary) 40%, transparent);
}

/* Brand name next to logo */
.nav-brand-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-left: 0.55rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* Mobile top-bar CTA (compact variant) — min-height 44px meets Apple/Google touch target spec */
.btn-quote--sm {
  font-size: 0.7rem;
  padding: 0.4rem 0.9rem;
  letter-spacing: 0.06em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}


/* Hamburger */
#main-nav .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  transition: border-color 0.2s;
}

#main-nav .navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-secondary) 30%, transparent);
}

/* Mobile collapsed menu */
@keyframes mobileDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  #main-nav .navbar-nav {
    align-items: flex-end !important;
  }

  #main-nav .nav-item {
    text-align: right;
  }

  #main-nav .nav-link {
    margin: 0;
    padding: 0.65rem 0 !important;
  }

  #main-nav .nav-link::before {
    display: none;
  }

  #main-nav .navbar-collapse {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
  }

  #main-nav .dropdown-menu {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    border-radius: 6px;
    padding: 0.25rem 0;
    right: 0;
    left: auto;
  }

  #main-nav .dropdown-menu.show {
    animation: mobileDropIn 0.22s ease both;
  }

  #main-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.55rem 1rem;
    text-align: right;
  }

  #main-nav .dropdown-item:hover {
    background: color-mix(in srgb, var(--brand-secondary) 18%, transparent);
    color: #fff;
    padding-right: 1.3rem;
    padding-left: 1rem;
  }

  /* Brand name: absolutely positioned so it never shifts the flex row */
  .navbar-brand {
    position: relative;
  }

  .nav-brand-name {
    position: absolute;
    left: 100%;
    top: 50%;
    margin-left: 0.5rem;
    opacity: 0;
    transform: translateY(-50%) translateX(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
  }

  #main-nav.nav-menu-open .nav-brand-name {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
  }

  /* Top-bar CTA fades out as menu opens (CTA lives inside the menu instead) */
  .mobile-top-cta {
    transition: opacity 0.15s ease;
  }

  #main-nav.nav-menu-open .mobile-top-cta {
    opacity: 0;
    pointer-events: none;
  }

  /* CTA inside expanded mobile menu */
  .nav-mobile-cta {
    text-align: right;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.25rem;
  }

}


.social a {
  margin-right: 0.4rem; }

/* ===== BREADCRUMB ===== */
#bc {
  margin: 0;
  padding: 0.6rem 0;
  background: #f4f6f8;
  border-bottom: 1px solid #e4e8ed;
}

/* Overlay variant — bleeds up from the bottom of the hero */
#bc.bc-hero-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.52) 100%);
  border-bottom: none;
  padding: 0.75rem 0;
  margin-top: -43px;
  position: relative;
  z-index: 5;
}

/* Breadcrumb embedded inside a hero section (Django view templates) */
.bc-in-hero {
  position: relative;
  z-index: 2;
  padding: 0.65rem 0 0;
  text-align: left;
}

.bc-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.bc-item {
  display: flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa0a6;
}

.bc-item + .bc-item::before {
  content: '›';
  margin: 0 0.55rem;
  color: #ced4da;
  font-size: 1rem;
  line-height: 1;
}

.bc-item a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.15s;
}

.bc-item a:hover { color: var(--brand-secondary); }

.bc-item--active { color: #6c757d; }

/* White text for breadcrumbs rendered on dark/hero backgrounds */
.bc-hero-overlay .bc-item,
.bc-in-hero .bc-item                    { color: rgba(255,255,255,0.55); }
.bc-hero-overlay .bc-item a,
.bc-in-hero .bc-item a                  { color: rgba(255,255,255,0.82); }
.bc-hero-overlay .bc-item a:hover,
.bc-in-hero .bc-item a:hover            { color: #fff; }
.bc-hero-overlay .bc-item + .bc-item::before,
.bc-in-hero .bc-item + .bc-item::before { color: rgba(255,255,255,0.3); }
.bc-hero-overlay .bc-item--active,
.bc-in-hero .bc-item--active            { color: rgba(255,255,255,0.95); }

/* ===== GLOBAL FORM CONTROLS ===== */

/* Labels */
.form-label,
.form-group > label,
label.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.35rem;
  opacity: 0.85;
}

/* Base input / textarea */
.form-control {
  height: auto;
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #1a2540;
  background-color: #fff;
  border: 1.5px solid #dde3ec;
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.form-control::placeholder {
  color: #b0bac9;
  font-weight: 400;
}

.form-control:focus {
  color: #1a2540;
  background-color: #fff;
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-secondary) 16%, transparent);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

/* Select */
.form-select,
select.form-control {
  padding: 0.72rem 2.2rem 0.72rem 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #1a2540;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a9bae' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 11px;
  border: 1.5px solid #dde3ec;
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
}

.form-select:focus,
select.form-control:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-secondary) 16%, transparent);
  outline: none;
}

/* Checkbox & radio */
.form-check-input {
  width: 1.05em;
  height: 1.05em;
  border: 1.5px solid #c5cdd8;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.form-check-input:checked {
  background-color: var(--brand-secondary);
  border-color: var(--brand-secondary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-secondary) 18%, transparent);
  border-color: var(--brand-secondary);
}

/* Input group — keep icon border flush */
.input-group > .form-control,
.input-group > .form-select {
  border-radius: 0;
}

.input-group > .form-control:first-child,
.input-group > .form-select:first-child {
  border-radius: 8px 0 0 8px;
}

.input-group > .form-control:last-child,
.input-group > .form-select:last-child {
  border-radius: 0 8px 8px 0;
}

.input-group-text {
  border: 1.5px solid #dde3ec;
  background: #f5f7f9;
  color: #8a9bae;
  font-size: 0.85rem;
  transition: border-color 0.18s;
}

.input-group:focus-within .input-group-text {
  border-color: var(--brand-secondary);
}

.input-group:focus-within > .form-control,
.input-group:focus-within > .form-select {
  border-color: var(--brand-secondary);
  box-shadow: none;
}

/* ===== CUSTOM BUTTONS ===== */
.btn-brand,
.btn-accent,
.btn-outline-brand,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.18s, color 0.18s, border-color 0.18s;
}

.btn-brand.btn-lg,
.btn-accent.btn-lg,
.btn-outline-brand.btn-lg {
  font-size: 0.82rem;
  padding: 0.8rem 2.2rem;
}

.btn-brand.btn-sm,
.btn-accent.btn-sm,
.btn-outline-brand.btn-sm,
.btn-soft.btn-sm {
  font-size: 0.7rem;
  padding: 0.4rem 1rem;
}

.btn-brand {
  background: var(--brand-primary);
  color: #fff !important;
  border-color: var(--brand-primary);
}
.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--brand-primary) 35%, transparent);
  filter: brightness(1.12);
  color: #fff !important;
}

.btn-accent {
  background: var(--brand-secondary);
  color: #fff !important;
  border-color: var(--brand-secondary);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--brand-secondary) 40%, transparent);
  filter: brightness(0.95);
  color: #fff !important;
}

.btn-outline-brand {
  background: transparent;
  color: var(--brand-primary) !important;
  border-color: var(--brand-primary);
}
.btn-outline-brand:hover {
  background: var(--brand-primary);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--brand-primary) 28%, transparent);
}

.btn-outline-brand .fa-arrow-right,
.btn-brand .fa-arrow-right,
.btn-accent .fa-arrow-right {
  transition: transform 0.2s ease;
}

.btn-outline-brand:hover .fa-arrow-right,
.btn-brand:hover .fa-arrow-right,
.btn-accent:hover .fa-arrow-right {
  transform: translateX(3px);
}

.btn-soft {
  background: rgba(0, 0, 0, 0.05);
  color: #555 !important;
  border-color: rgba(0, 0, 0, 0.12);
}
.btn-soft:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #222 !important;
  transform: translateY(-1px);
}

/* ===== HERO TYPOGRAPHY & SEARCH CARD ===== */
#showcase h1,
#heroCarousel h1 {
  font-size: clamp(1.85rem, 6vw, 3.5rem);
}

#showcase .lead,
#heroCarousel .lead {
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
}

/* ===== HERO FILTER CARD ===== */
.hero-filter-card {
  max-width: 900px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22), 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-filter-fields {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.hero-filter-field {
  flex: 1;
  min-width: 0;
  padding: 0 1rem;
}

.hero-filter-field:first-child {
  padding-left: 0.25rem;
}

.hero-filter-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a9bae;
  margin-bottom: 0.35rem;
}

.hero-filter-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-filter-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: #aab4be;
  pointer-events: none;
  z-index: 1;
  transition: color 0.2s;
}

.hero-filter-input,
.hero-filter-select {
  width: 100%;
  height: 46px;
  padding: 0 0.75rem 0 2.2rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: #1a2332;
  background: #f5f7f9;
  border: 1.5px solid transparent;
  border-radius: 10px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.hero-filter-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a9bae' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
  cursor: pointer;
}

.hero-filter-input::placeholder {
  color: #b0bcc8;
  font-weight: 400;
}

.hero-filter-input:focus,
.hero-filter-select:focus {
  background: #fff;
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-secondary) 18%, transparent);
}

.hero-filter-input:focus ~ .hero-filter-icon,
.hero-filter-input-wrap:focus-within .hero-filter-icon {
  color: var(--brand-secondary);
}

.hero-filter-divider {
  width: 1px;
  background: #e4e8ed;
  margin: 4px 0;
  flex-shrink: 0;
  align-self: stretch;
}

.hero-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  flex-shrink: 0;
  height: 46px;
  padding: 0 1.6rem;
  margin-left: 1rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand-secondary);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  align-self: flex-end;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.18s;
}

.hero-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-secondary) 42%, transparent);
  filter: brightness(1.06);
}

/* Stack vertically on mobile */
@media (max-width: 767px) {
  .hero-filter-card {
    padding: 1.25rem 1rem 1rem;
    border-radius: 14px;
    /* backdrop-filter is GPU-expensive on mobile — use solid bg instead */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }

  .hero-filter-fields {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-filter-field {
    padding: 0;
  }

  .hero-filter-divider {
    display: none;
  }

  .hero-filter-btn {
    width: 100%;
    margin-left: 0;
    height: 48px;
    font-size: 0.8rem;
    align-self: stretch;
    /* Easier tap target */
    border-radius: 10px;
  }
}

/* ===== HERO HEIGHTS (responsive) ===== */

/* Mobile-first: form stacks vertically so the hero needs to be taller,
   not shorter. padding-bottom nudge is desktop-only. */
.hero-inner-wrap {
  min-height: 560px;
}

.hero-carousel,
.hero-carousel-inner,
.hero-carousel-item {
  min-height: 560px;
}

@media (min-width: 768px) {
  /* Horizontal form — much less height needed */
  .hero-inner-wrap {
    min-height: 480px;
    padding-bottom: 3.5rem;
  }
  .hero-carousel,
  .hero-carousel-inner,
  .hero-carousel-item {
    min-height: 480px;
  }
}

@media (min-width: 992px) {
  .hero-inner-wrap,
  .hero-carousel,
  .hero-carousel-inner,
  .hero-carousel-item {
    min-height: 530px;
  }
}


/* Slideshow captions: visible on all sizes, scaled for mobile */
.hero-slide-caption {
  display: block !important;
}

.hero-caption-text {
  font-size: 0.82rem;
}

@media (min-width: 768px) {
  .hero-caption-text {
    font-size: 0.95rem;
  }
}

#showcase {
  background: url("../img/showcase.44c1ad408ad8.jpg") no-repeat top center fixed;
  background-size: cover;
  position: relative;
  color: #fff;
  padding-top: 6rem; }
  #showcase .home-search {
    min-height: 400px;
    position: relative;
    border-radius: 5px; }
  #showcase .overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    min-height: 400px;
    width: 100%;
    background: rgba(51, 51, 51, 0.8); }

#services {
  background: url("../img/building.fd210196d34a.jpg") no-repeat top center fixed;
  background-size: cover;
  min-height: 300px;
  position: relative;
  overflow: hidden; }

#showcase-inner {
  background: url("../img/building.fd210196d34a.jpg") no-repeat top center fixed;
  background-size: cover;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

#showcase-inner > .container {
  width: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
}

#work {
  padding: 6rem 0;
  background: var(--brand-primary);
  background-image: radial-gradient(
    ellipse 80% 60% at 50% 110%,
    color-mix(in srgb, var(--brand-secondary) 18%, transparent),
    transparent 70%
  );
}

.listing-preview a {
  position: relative; }

.realtor-photo {
  height: 220px;
  width: 220px;
  max-width: 100%;
  object-fit: cover;
}

@media (min-width: 576px) {
  .realtor-photo {
    height: 280px;
    width: 280px;
  }
}

@media (min-width: 768px) {
  .realtor-photo {
    height: 350px;
    width: 350px;
  }
}

@media (max-width: 991px) {
  #showcase {
    padding-top: 4rem; }
    #showcase h1 {
      font-size: 40px; }
  .hide-md-down {
    display: none; } }

/* iOS doesn't support background-attachment:fixed — switch to scroll on touch devices */
@media (max-width: 1024px) {
  #showcase,
  #showcase-inner,
  #services {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  #showcase {
    padding-top: 3rem; }
    #showcase h1 {
      font-size: 40px; }
    #showcase p {
      display: none; }
  #top-bar {
    text-align: center; }
    #top-bar .social {
      text-align: center !important; } }

@media (max-width: 576px) {
  #showcase h1 {
    font-size: 30px; }
  #showcase-inner h1 {
    font-size: 40px; } }

/* ===== CTA BANNER ===== */
.cta-inner {
  max-width: 680px;
}

.cta-accent-bar {
  width: 48px;
  height: 4px;
  background: var(--brand-secondary);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

#work h2.display-4 {
  font-size: clamp(1.6rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.cta-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.8rem 2.2rem;
  border-radius: 6px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== BACKGROUND OVERLAYS ===== */
.overlay-black { background-color: #000; }
.overlay-brand-primary { background-color: var(--brand-primary); }
.overlay-brand-secondary { background-color: var(--brand-secondary); }

/* ===== SERVICE CARDS ===== */
.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px; }

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important; }

/* ===== PROJECT CARDS ===== */
.project-card-img-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: var(--brand-primary); }

.project-card-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease; }

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

.project-card-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-primary);
  opacity: 0.8; }

.project-card {
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease; }

.project-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14) !important;
  transform: translateY(-3px); }

/* ===== STATS ROW ===== */
.stats-counter {
  padding: 1rem 0; }

.stats-counter .stat-value {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem; }

.stats-counter .stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85; }

/* ===== PROCESS STEPS ===== */
.process-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--brand-secondary);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem; }

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  background: var(--brand-primary);
  position: relative; }

.testimonials-section .section-heading {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em; }

.testimonials-section .section-subheading {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem; }

.testimonial-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 6px 32px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  height: 100%; }

.testimonial-body-wrap {
  flex: 1; }

.testimonial-open-quote {
  display: block;
  font-size: 3rem;
  line-height: 1;
  color: var(--brand-secondary);
  font-family: Georgia, serif;
  margin-bottom: 0.5rem;
  margin-top: -0.25rem; }

.testimonial-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #3a3a3a;
  font-style: italic;
  margin: 0; }

.testimonial-read-more {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px; }

.testimonial-read-more:hover {
  opacity: 0.8; }

.testimonial-divider {
  border: none;
  border-top: 1px solid #ececec;
  margin: 1.25rem 0 1rem; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem; }

.testimonial-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-secondary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase; }

.testimonial-name {
  font-weight: 700;
  color: #111;
  font-size: 0.92rem;
  line-height: 1.2; }

.testimonial-role {
  color: #888;
  font-size: 0.8rem;
  margin-top: 0.1rem; }

/* Modal */
.testimonial-modal-content {
  border-radius: 16px;
  border: none; }

.testimonial-modal-content .modal-body {
  max-height: 70vh;
  overflow-y: auto; }

.testimonial-modal-quote {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--brand-secondary);
  font-family: Georgia, serif;
  margin-bottom: 0.5rem; }

.testimonial-modal-body,
.testimonial-modal-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: #3a3a3a;
  font-style: italic;
  margin-bottom: 1rem; }

.testimonial-modal-body p:last-child { margin-bottom: 0; }

/* Swiper overrides */
.testimonials-section .swiper {
  padding-bottom: 3.25rem !important; }

.testimonials-section .swiper-pagination-bullet {
  background: rgba(255,255,255,0.35);
  opacity: 1;
  width: 8px;
  height: 8px; }

.testimonials-section .swiper-pagination-bullet-active {
  background: var(--brand-secondary);
  width: 22px;
  border-radius: 4px; }

.testimonials-slider-wrap {
  position: relative;
  padding: 0 3.25rem; }

@media (max-width: 767px) {
  .testimonials-slider-wrap { padding: 0; } }

.t-nav-btn {
  position: absolute;
  /* vertically center on the card area, excluding pagination padding-bottom */
  top: calc(50% - 1.625rem);
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: rgba(255,255,255,0.85); }

.t-nav-prev { left: 0; }

.t-nav-next { right: 0; }

@media (max-width: 767px) {
  .t-nav-btn { display: none; } }

.t-nav-btn:hover {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
  color: #fff;
  transform: translateY(-50%) scale(1.1); }

.t-nav-btn:active {
  transform: translateY(-50%) scale(0.95); }

.t-nav-btn.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none; }

.t-nav-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0; }

/* ===== GALLERY ===== */
.gallery-thumb {
  transition: opacity 0.2s ease; }

.gallery-thumb:hover {
  opacity: 0.85; }

/* ===== FOOTER ===== */
#main-footer {
  flex-shrink: 0; }

.footer-links li {
  margin-bottom: 0.5rem; }

.footer-links a {
  transition: color 0.15s ease; }

.footer-links a:hover {
  color: #fff !important;
  text-decoration: none; }

.letter-spacing {
  letter-spacing: 0.06em; }

.text-white-50 {
  color: rgba(255, 255, 255, 0.55) !important; }

/* ===== PAGINATION ===== */
.projects-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #4a5568;
  background: #f0f2f5;
  border: 1.5px solid transparent;
  transition: background 0.16s, color 0.16s, border-color 0.16s, transform 0.15s, box-shadow 0.18s;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

.pg-btn:hover:not(.pg-disabled):not(.pg-active) {
  background: #fff;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-primary) 16%, transparent);
  text-decoration: none;
}

.pg-btn.pg-active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--brand-primary) 32%, transparent);
  cursor: default;
}

.pg-btn.pg-arrow {
  font-size: 0.72rem;
  color: #64748b;
}

.pg-btn.pg-arrow:hover:not(.pg-disabled) {
  color: var(--brand-primary);
}

.pg-btn.pg-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== CONTACT PAGE ===== */
.contact-info-list li {
  font-size: 1.05rem; }


/* ===== PROJECT DETAIL PAGE ===== */

/* Sticky sidebar */
.project-sidebar {
  position: sticky;
  top: 88px;
}

/* Mobile fixed CTA bar */
.project-cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 12px 16px;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.10);
}

/* Add bottom padding on mobile so the fixed bar doesn't overlap content */
@media (max-width: 767px) {
  body:has(.project-cta-mobile) {
    padding-bottom: 72px;
  }
}

/* Key stats bar */
.project-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  min-width: 110px;
  flex: 1 1 110px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.project-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  margin-bottom: 0.2rem;
}

.project-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.1;
}

/* Description typography */
.project-description {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #444;
  max-width: 72ch;
}

.project-description p {
  margin-bottom: 1.1em;
}

/* Sold state card */
.sold-state-card {
  background: #f8f9fa;
}


