/* --- Hero Image Overlay for Better Text Visibility --- */
.hero-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.35); /* adjust opacity: 0.25–0.5 for lighter/darker */
  z-index: 1;
}

.hero-banner .container,
.hero-banner .hero-title,
.hero-banner .hero-subtitle {
  position: relative;
  z-index: 2; /* ensures text is above overlay */
  color: #fff !important; /* enforce white text */
}

/* --- Optional: Add background box to text for extra clarity --- */
.hero-title {
  background: rgba(0, 0, 0, 0.55); 
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
}

/* --- Make Logo Area Bigger --- */
.header-logo img {
  max-height: 65px !important; /* increase height */
  max-width: 240px !important; /* increase width */
  height: auto !important;
  width: auto !important;
}
/* ===== HFSNM Intro Box ===== */

.hfsm-intro-wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 24px 28px;
}

.hfsm-intro-box{
  background: #f8fafc;
  border: 1px solid #dbe3ea;
  border-radius: 14px;
  padding: 34px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.hfsm-intro-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 30px;
  align-items: center;
}

.hfsm-intro-content h1{
  font-size: 44px;
  line-height: 1.08;
  margin: 0 0 18px;
  color: #0f172a;
}

.hfsm-intro-content p{
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 18px;
  color: #334155;
}

.hfsm-intro-content p strong{
  color: #0f172a;
}

.hfsm-btn-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 18px;
}

.hfsm-btn{
  display: inline-block;
  padding: 14px 22px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.hfsm-btn:hover{
  transform: translateY(-1px);
  opacity: 0.95;
}

.hfsm-btn-agent{
  background: #0f766e;
  color: #fff !important;
}

.hfsm-btn-fsbo{
  background: #ea580c;
  color: #fff !important;
}

.hfsm-note{
  font-size: 16px;
  color: #64748b;
  margin-bottom: 0 !important;
}

.hfsm-intro-image img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

/* tablet */
@media (max-width: 991px){
  .hfsm-intro-content h1{
    font-size: 44px;
  }

  .hfsm-intro-grid{
    grid-template-columns: 1fr;
  }

  .hfsm-intro-image{
    order: 2;
  }
}

/* mobile */
@media (max-width: 767px){
  .hfsm-intro-wrap{
    padding: 24px 16px 18px;
  }

  .hfsm-intro-box{
    padding: 22px;
  }

  .hfsm-intro-content h1{
    font-size: 34px;
  }

  .hfsm-intro-content p{
    font-size: 16px;
    line-height: 1.7;
  }

  .hfsm-btn-row{
    flex-direction: column;
  }

  .hfsm-btn{
    width: 100%;
    text-align: center;
  }
}