/* ================= TRUSTED PARTNER SECTION ================= */

.trusted-section {
  padding: 75px 0;
  background:
    radial-gradient(circle at top left, rgba(24, 169, 107, 0.07), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f4fbfc 100%);
}

.trusted-container {
  width: min(1180px, calc(100% - 72px));
  margin: 0 auto;
}

.trusted-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 70px rgba(8, 22, 59, 0.12);
  border: 1px solid rgba(8, 22, 59, 0.06);
}

.trusted-content {
  padding: 54px 52px;
}

.section-tag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(24, 169, 107, 0.1);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.section-tag i {
  color: var(--green);
}

.trusted-content h2 {
  max-width: 500px;
  color: var(--navy);
  font-size: clamp(28px, 2.3vw, 36px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -1px;
}

.trusted-content p {
  max-width: 540px;
  margin-top: 20px;
  color: #344054;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
}

.trusted-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn-primary,
.btn-outline {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(8, 22, 59, 0.2);
}

.btn-primary:hover {
  background: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(24, 169, 107, 0.24);
}

.btn-outline {
  color: var(--navy);
  background: #ffffff;
  border: 1px solid rgba(8, 22, 59, 0.16);
}

.btn-outline:hover {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-3px);
}

.trusted-image {
  height: 100%;
  min-height: 430px;
  position: relative;
  overflow: hidden;
}

.trusted-image::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  z-index: 2;
  pointer-events: none;
}

.trusted-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
  transition: 0.5s ease;
}

.trusted-card:hover .trusted-image img {
  transform: scale(1.035);
}



/* ================= RESPONSIVE ================= */

@media (max-width: 1050px) {
  .trusted-card {
    grid-template-columns: 1fr;
  }

  .trusted-content {
    padding: 52px 44px;
  }

  .trusted-image,
  .trusted-image img {
    min-height: 360px;
  }
}

@media (max-width: 650px) {
  .trusted-section {
    padding: 58px 0;
  }

  .trusted-container {
    width: min(100% - 32px, 520px);
  }

  .trusted-card {
    border-radius: 20px;
  }

  .trusted-content {
    padding: 34px 24px;
  }

  .trusted-content h2 {
    font-size: 27px;
  }

  .trusted-content p {
    font-size: 15px;
    line-height: 1.75;
  }

  .trusted-actions {
    align-items: stretch;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }

  .trusted-image,
  .trusted-image img {
    min-height: 290px;
  }

  .trusted-image::after {
    left: 18px;
    bottom: 18px;
  }
}
/* ================= RESPONSIVE ================= */

@media (max-width: 1050px) {
  .trusted-card {
    grid-template-columns: 1fr;
  }

  .trusted-content {
    padding: 64px 52px;
  }

  .trusted-image {
    min-height: 420px;
  }

  .trusted-image img {
    min-height: 420px;
  }
}

@media (max-width: 650px) {
  .trusted-section {
    padding: 72px 0;
  }

  .trusted-container {
    width: min(100% - 32px, 520px);
  }

  .trusted-card {
    border-radius: 22px;
  }

  .trusted-content {
    padding: 42px 26px;
  }

  .trusted-content h2 {
    font-size: 28px;
  }

  .trusted-content p {
    font-size: 16px;
    line-height: 1.75;
  }

  .trusted-actions {
    align-items: stretch;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }

  .trusted-image {
    min-height: 320px;
  }

  .trusted-image img {
    min-height: 320px;
  }

  .trusted-image::after {
    left: 20px;
    bottom: 20px;
  }
}


/* ================= DREAM HOME CTA SECTION ================= */

.dream-home-section {
  min-height: 340px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(8, 22, 59, 0.42) 0%,
      rgba(8, 22, 59, 0.28) 48%,
      rgba(24, 169, 107, 0.18) 100%
    ),
    url("../images/pexels-siddanth-sawant-178759136-28464697-scaled.jpg") center/cover no-repeat;
}

.dream-home-overlay {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 24px;
}

.dream-home-content {
  max-width: 880px;
  text-align: center;
  color: #ffffff;
}

.dream-home-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.dream-home-content h2 {
  color: #ffffff;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -1.2px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.dream-home-content p {
  max-width: 720px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 600;
}

.dream-home-btn {
  margin-top: 30px;
  height: 54px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 10px;
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(6, 71, 168, 0.28);
  transition: 0.25s ease;
}

.dream-home-btn:hover {
  background: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(24, 169, 107, 0.28);
}

.dream-home-btn i {
  font-size: 14px;
  transition: 0.25s ease;
}

.dream-home-btn:hover i {
  transform: translateX(4px);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .dream-home-section,
  .dream-home-overlay {
    min-height: 300px;
  }

  .dream-home-overlay {
    padding: 58px 22px;
  }

  .dream-home-content h2 {
    font-size: 30px;
  }

  .dream-home-content p {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .dream-home-content {
    text-align: left;
  }

  .dream-home-tag {
    justify-content: flex-start;
    font-size: 12px;
  }

  .dream-home-content h2 {
    font-size: 28px;
  }

  .dream-home-btn {
    width: 100%;
  }
}

/* ================= LOCATIONS SECTION ================= */

.locations-section {
  padding: 84px 0 94px;
  background: #ffffff;
}

.locations-container {
  width: min(1320px, calc(100% - 72px));
  margin: 0 auto;
}

.locations-heading {
  max-width: 790px;
  margin-bottom: 42px;
}

.locations-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.locations-heading h2 {
  color: var(--navy);
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.locations-heading p {
  max-width: 730px;
  margin-top: 16px;
  color: #667085;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.location-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(8, 22, 59, 0.13);
  text-decoration: none;
  isolation: isolate;
}

.location-card-image,
.location-card-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.location-card-image {
  object-fit: cover;
  transition: transform .55s ease;
}

.location-card-overlay {
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(8, 22, 59, 0.12) 10%,
      rgba(8, 22, 59, 0.78) 100%
    );
  transition: background .35s ease;
}

.location-card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 28px;
}

.location-card-accent {
  width: 0;
  height: 3px;
  display: block;
  margin-bottom: 13px;
  border-radius: 999px;
  background: var(--green);
  transition: width .35s ease;
}

.location-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.location-card p {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.location-card-link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.location-card-link i {
  transition: transform .3s ease;
}

.location-card:hover .location-card-image {
  transform: scale(1.07);
}

.location-card:hover .location-card-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(8, 22, 59, 0.06) 10%,
      rgba(8, 22, 59, 0.67) 100%
    );
}

.location-card:hover .location-card-accent {
  width: 48px;
}

.location-card:hover .location-card-link i {
  transform: translateX(5px);
}

.locations-state {
  grid-column: 1 / -1;
  min-height: 130px;
  padding: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 22, 59, 0.1);
  border-radius: 16px;
  background: #f7f9fc;
  color: #667085;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.locations-loading {
  position: relative;
}

.locations-loading::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  border: 3px solid rgba(24, 169, 107, 0.2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: locationLoadingSpin .8s linear infinite;
}

.locations-error {
  color: #9b2c2c;
  background: #fff8f8;
}

@keyframes locationLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 620px) {
  .locations-section {
    padding: 65px 0 75px;
  }

  .locations-container {
    width: min(100% - 32px, 560px);
  }

  .locations-heading {
    margin-bottom: 30px;
  }

  .locations-heading h2 {
    font-size: 26px;
  }

  .locations-heading p {
    font-size: 15px;
  }

  .locations-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .location-card {
    min-height: 270px;
  }

  .location-card-content {
    padding: 23px;
  }
}

/* ================= TESTIMONIALS SECTION ================= */

.testimonials-section {
  padding: 85px 0 95px;
  background:
    radial-gradient(circle at top left, rgba(24, 169, 107, 0.08), transparent 30%),
    linear-gradient(180deg, #f5fbfc 0%, #ffffff 100%);
}

.testimonials-container {
  width: min(1180px, calc(100% - 72px));
  margin: 0 auto;
}

.testimonials-header {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}

.testimonials-tag {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.testimonials-header h2 {
  color: #050505;
  font-size: clamp(27px, 2.2vw, 34px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.7px;
}

.testimonials-header p {
  max-width: 680px;
  margin: 18px auto 0;
  color: #475467;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
}

/* Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.testimonial-card {
  position: relative;
  min-height: 360px;
  padding: 34px 32px 30px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(8, 22, 59, 0.08);
  box-shadow: 0 24px 65px rgba(8, 22, 59, 0.09);
  overflow: hidden;
  transition: 0.28s ease;
}

.testimonial-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--green);
}

.testimonial-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 32px 80px rgba(8, 22, 59, 0.13);
}

.featured-testimonial {
  border-color: rgba(24, 169, 107, 0.25);
  transform: translateY(-12px);
}

.featured-testimonial:hover {
  transform: translateY(-17px);
}

/* Quote */
.quote-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  background: rgba(24, 169, 107, 0.1);
  color: var(--green);
  font-size: 18px;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 18px;
  color: #f5b301;
  font-size: 14px;
}

.testimonial-card p {
  color: #1f2937;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 500;
}

/* Author */
.testimonial-author {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  border: 3px solid rgba(24, 169, 107, 0.22);
}

.testimonial-author h4 {
  color: #050505;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.testimonial-author span {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1000px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-testimonial {
    transform: none;
  }

  .featured-testimonial:hover {
    transform: translateY(-7px);
  }
}

@media (max-width: 700px) {
  .testimonials-section {
    padding: 65px 0 75px;
  }

  .testimonials-container {
    width: min(100% - 32px, 520px);
  }

  .testimonials-header {
    margin-bottom: 34px;
    text-align: left;
  }

  .testimonials-tag {
    font-size: 12px;
    letter-spacing: 4px;
  }

  .testimonials-header h2 {
    font-size: 26px;
  }

  .testimonials-header p {
    font-size: 15px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    min-height: auto;
    padding: 30px 26px;
  }
}

/* Keep homepage property titles compact without changing listings pages. */
.properties-section .public-property-body h3 {
  font-size: 17px;
  line-height: 1.35;
}

@media (max-width: 620px) {
  .properties-section .public-property-body h3 {
    font-size: 16px;
  }
}
