/* =============================================================
   House Finder Shared Page CSS
   Upload this file to: /public/assets/css/housefinder-service-pages.css
   Theme: light premium navy/gold, responsive, animated. Scoped to .hf-page only.
============================================================= */

/* Font Awesome fallback/fix */
.fa-classic,
.fa-light,
.fa-regular,
.fa-solid,
.fa-thin,
.fal,
.far,
.fas,
.fat {
  font-family: "Font Awesome 6 Pro" !important;
}

/* Hide old breadcrumb banners when old markup accidentally remains */
.hf-page ~ .inner-banner-two,
.hf-page .breadcrumb,
.hf-page .sub-breadcrumb,
.hf-page .breadcrumb-arrow,
.inner-banner-two.hf-hide-old-banner {
  display: none !important;
}

.hf-page,
.hf-page * {
  box-sizing: border-box;
  font-family: 'Gordita', Arial, sans-serif;
}

.hf-page {
  background: #f9f9f9;
  color: #14213d;
  overflow: hidden;
  max-width: 100%;
}

.hf-page a {
  text-decoration: none !important;
}

.hf-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* =============================================================
   Buttons
============================================================= */
.hf-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .02em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.hf-btn.gold {
  background: linear-gradient(135deg, #ead08b, #c9a24d);
  color: #07162c !important;
  box-shadow: 0 15px 30px rgba(201, 162, 77, .24);
}

.hf-btn.navy {
  background: linear-gradient(135deg, #06264a, #0b3568);
  color: #fff !important;
  box-shadow: 0 15px 30px rgba(6, 38, 74, .20);
}

.hf-btn.outline {
  background: #fff;
  color: #06264a !important;
  border-color: rgba(6, 38, 74, .14);
  box-shadow: 0 10px 25px rgba(6, 38, 74, .06);
}

.hf-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(6, 38, 74, .16);
}

/* =============================================================
   Hero / SEO introduction
============================================================= */
.hf-hero {
  position: relative;
  isolation: isolate;
  min-height: 570px;
  display: flex;
  align-items: center;
  padding: 132px 0 84px;
  overflow: hidden;
  background-color: #fff7e6;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(105deg, rgba(249,249,249,.98) 0%, rgba(255,247,230,.94) 48%, rgba(255,255,255,.70) 100%);
  pointer-events: none;
}

.hf-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 78% 28%, rgba(201,162,77,.20), transparent 28%), linear-gradient(90deg, rgba(6,38,74,.035) 1px, transparent 1px), linear-gradient(rgba(6,38,74,.03) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  opacity: .90;
  pointer-events: none;
}
.hf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, .8fr);
  gap: 52px;
  align-items: center;
}

.hf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #c9a24d;
  border: 1px solid rgba(201,162,77,.22);
  box-shadow: 0 12px 30px rgba(6,38,74,.06);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: 18px;
}

.hf-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ead08b;
  box-shadow: 0 0 0 6px rgba(234,208,139,.15);
}

.hf-hero h1 {
  font-family: 'Gordita', Arial, sans-serif;
  font-size: clamp(39px, 5.6vw, 46px) !important;
  line-height: .96 !important;
  color: #06264a !important;
  font-weight: 800 !important;
  margin: 0 0 22px !important;
  letter-spacing: -1.4px;
}

.hf-hero h1 em {
  color: #ead08b;
  font-style: normal;
}

.hf-hero p {
  color: #425466;
  font-size: 17px;
  line-height: 1.82;
  max-width: 680px;
  margin: 0 0 30px;
}

.hf-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hf-seo-breadcrumb {
  display: none !important;
}

/* =============================================================
   Stat cards with icons
============================================================= */
.hf-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hf-stat-card {
  position: relative;
  min-height: 138px;
  padding: 24px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(6,38,74,.18);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  overflow: hidden;
}

.hf-stat-card::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -32px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(201,162,77,.12);
}

.hf-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(6,38,74,.22);
  border-color: rgba(234,208,139,.72);
}

.hf-stat-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #c9a24d;
  background: #fff7e6;
  margin-bottom: 13px;
  font-size: 16px;
}

.hf-stat-number {
  font-family: 'Gordita', Arial, sans-serif;
  font-size: 35px;
  line-height: 1;
  color: #06264a;
  font-weight: 900;
  margin-bottom: 7px;
}

.hf-stat-label {
  font-size: 12px;
  color: #667085;
  font-weight: 750;
  line-height: 1.45;
}

/* =============================================================
   Sections / headings
============================================================= */
.hf-section {
  position: relative;
  padding: 86px 0;
  background: #f9f9f9;
}

.hf-section.alt {
  background: linear-gradient(180deg, #fffaf0 0%, #fff 100%);
}

.hf-section.blue-soft {
  background: linear-gradient(180deg, #edf5ff 0%, #f8fbff 100%);
}

.hf-section-title {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.hf-label {
  display: block;
  color: #c9a24d;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .20em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hf-title {
  font-size: clamp(30px, 4vw, 48px) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  color: #06264a !important;
  letter-spacing: -.8px;
  margin: 0 0 14px !important;
}

.hf-title em,
.hf-gold {
  color: #c9a24d !important;
  font-style: normal;
}

.hf-text {
  color: #667085;
  font-size: 16px;
  line-height: 1.86;
  margin: 0 0 16px;
}

.hf-line {
  display: block;
  width: 66px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9a24d, transparent);
  margin: 0 0 24px;
}

.hf-line.center {
  margin: 12px auto 20px;
  background: linear-gradient(90deg, transparent, #c9a24d, transparent);
}

/* =============================================================
   Cards / grids / lists
============================================================= */
.hf-intro-grid,
.hf-market-grid,
.hf-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

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

.hf-card,
.hf-feature-card,
.hf-testimonial,
.hf-form-panel,
.hf-legal-card,
.hf-office-card,
.hf-blog-card,
.hf-team-card {
  background: #fff;
  border: 1px solid rgba(6, 38, 74, 0.12);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(6, 38, 74, 0.08);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.hf-card {
  min-height: 238px;
  padding: 28px;
  overflow: hidden;
}

.hf-card:hover,
.hf-feature-card:hover,
.hf-testimonial:hover,
.hf-blog-card:hover,
.hf-team-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 60px rgba(6, 38, 74, 0.10);
  border-color: rgba(201,162,77,.38);
}

.hf-card-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  color: #c9a24d;
  background: #fff7e6;
  font-size: 22px;
  margin-bottom: 18px;
}

.hf-card h3,
.hf-feature-card h3,
.hf-form-panel h3,
.hf-office-card h3,
.hf-blog-card h3,
.hf-team-info h3 {
  color: #06264a !important;
  font-size: 21px !important;
  line-height: 1.25 !important;
  font-weight: 850 !important;
  margin: 0 0 10px !important;
}

.hf-card p,
.hf-feature-card p,
.hf-office-card p,
.hf-blog-card p,
.hf-team-info p {
  color: #667085;
  line-height: 1.78;
  font-size: 14px;
  margin: 0;
}

.hf-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hf-check-list li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(6,38,74,.08);
  color: #14213d;
  line-height: 1.7;
}

.hf-check-list i {
  color: #c9a24d;
  margin-top: 5px;
  flex: 0 0 auto;
}

.hf-highlight {
  padding: 18px 20px;
  border-left: 4px solid #c9a24d;
  background: #fff7e6;
  border-radius: 0 18px 18px 0;
  color: #06264a;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  margin: 26px 0;
}

/* =============================================================
   Process / metrics / testimonials / FAQ
============================================================= */
.hf-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.hf-step {
  text-align: center;
  padding: 26px 16px;
}

.hf-step-num {
  width: 68px;
  height: 68px;
  margin: 0 auto 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #06264a;
  color: #ead08b;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(6,38,74,.20);
}

.hf-step h3 {
  color: #06264a !important;
  font-size: 19px !important;
  font-weight: 850 !important;
  margin: 0 0 10px !important;
}

.hf-step p {
  color: #667085;
  font-size: 13px;
  line-height: 1.7;
}

.hf-metrics {
  padding: 30px;
  background: #fff;
  border: 1px solid rgba(6, 38, 74, 0.12);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(6, 38, 74, 0.08);
}

.hf-metric {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(6,38,74,.08);
}

.hf-metric:last-child { border-bottom: 0; }
.hf-metric span { color: #667085; font-size: 13px; }
.hf-metric strong { color: #06264a; font-size: 18px; font-weight: 900; }
.hf-bar { height: 6px; background: #edf2f7; border-radius: 999px; overflow: hidden; }
.hf-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c9a24d, #ead08b); border-radius: inherit; }

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

.hf-testimonial {
  position: relative;
  padding: 28px;
}

.hf-stars { color: #c9a24d; margin-bottom: 10px; }
.hf-testimonial p { color: #14213d; line-height: 1.78; font-size: 14px; }
.hf-author { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.hf-avatar { width: 42px; height: 42px; border-radius: 50%; display:flex; align-items:center; justify-content:center; background: #06264a; color: #ead08b; font-weight:900; }
.hf-author strong { display:block; color: #06264a; font-size: 14px; }
.hf-author span { display:block; color: #667085; font-size: 12px; }

.hf-faq-wrap { max-width: 920px; margin: 0 auto; }
.hf-faq-group { margin-bottom: 38px; }
.hf-faq-group-title { color: #06264a !important; font-size: 25px !important; margin: 0 0 16px !important; font-weight: 900 !important; }
.hf-faq-item { background: #fff; border: 1px solid rgba(6, 38, 74, 0.12); border-radius: 16px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 10px 24px rgba(6,38,74,.05); }
.hf-faq-q { width: 100%; background: transparent; border: 0; display:flex; align-items:center; justify-content:space-between; gap:16px; text-align:left; padding: 20px 22px; color: #06264a; font-weight:850; font-size: 16px; cursor:pointer; }
.hf-faq-q i { color: #c9a24d; transition: transform .25s ease; }
.hf-faq-item.open .hf-faq-q i { transform: rotate(45deg); }
.hf-faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.hf-faq-a p { padding: 0 22px 20px; margin:0; color: #667085; line-height:1.8; }

/* =============================================================
   Forms / Contact / Calculator
============================================================= */
.hf-form-panel {
  padding: 32px;
}

.hf-form-panel form,
.hf-form-panel .form-wrapper {
  position: relative;
  z-index: 2;
}

.hf-form-panel label,
.hf-page form label,
.hf-page .form-label,
.hf-page .cal-label {
  display: block;
  color: #06264a;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 7px;
}

.hf-page input[type="text"],
.hf-page input[type="email"],
.hf-page input[type="tel"],
.hf-page input[type="number"],
.hf-page input[type="mobile"],
.hf-page input[type="file"],
.hf-page select,
.hf-page textarea,
.hf-page .form-control,
.hf-page .form-select,
.hf-page .cal-input {
  width: 100%;
  min-height: 52px;
  border-radius: 14px !important;
  border: 1px solid rgba(6,38,74,.14) !important;
  background: #fff !important;
  color: #14213d !important;
  padding: 12px 15px !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.hf-page textarea { min-height: 132px; resize: vertical; }
.hf-page input:focus,
.hf-page textarea:focus,
.hf-page select:focus,
.hf-page .form-control:focus,
.hf-page .cal-input:focus {
  border-color: #c9a24d !important;
  box-shadow: 0 0 0 4px rgba(201,162,77,.14) !important;
}

.hf-page .btn-two,
.hf-page .btn-primary,
.hf-page .result,
.hf-page .cal-button,
.hf-page input[type="submit"] {
  min-height: 48px;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #ead08b, #c9a24d) !important;
  color: #07162c !important;
  border: 0 !important;
  font-weight: 900 !important;
  padding: 0 24px !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
}

.hf-page .btn-two:hover,
.hf-page .btn-primary:hover,
.hf-page .result:hover,
.hf-page .cal-button:hover,
.hf-page input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(201,162,77,.24);
}

.hf-contact-cards { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; margin-bottom:34px; }
.hf-office-card { padding:24px; }
.hf-map-frame { min-height: 460px; border-radius: 22px; overflow:hidden; box-shadow: 0 12px 34px rgba(6, 38, 74, 0.08); border:1px solid rgba(6, 38, 74, 0.12); }
.hf-map-frame iframe { width:100%; height:100%; min-height:460px; display:block; border:0; }

/* =============================================================
   Blog / Team / Legal
============================================================= */
.hf-blog-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:24px; }
.hf-blog-image { height: 230px; display:block; background-size: cover; background-position:center; position:relative; border-radius: 22px 22px 0 0; }
.hf-blog-date { position:absolute; left:16px; top:16px; background:#c9a24d; color:#07162c; border-radius:999px; padding:7px 12px; font-size:12px; font-weight:900; }
.hf-blog-content { padding:22px; }
.hf-blog-content a { color: #06264a !important; }

.hf-team-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:22px; }
.hf-team-card { overflow:hidden; }
.hf-team-image { position:relative; height:360px; background:#edf2f7; overflow:hidden; }
.hf-team-image img { width:100%; height:100%; object-fit:cover; transition: transform .55s ease; }
.hf-team-card:hover img { transform: scale(1.05); }
.hf-team-info { padding:18px; }
.hf-team-info span { color: #c9a24d; font-weight:850; font-size:13px; }

.hf-legal-card { max-width: 980px; margin:0 auto; padding: 42px; }
.hf-legal-card h2 { color: #06264a !important; font-size: 24px !important; margin: 30px 0 10px !important; }
.hf-legal-card p, .hf-legal-card li { color: #667085; line-height: 1.85; }

/* =============================================================
   CTA and animations
============================================================= */
.hf-cta {
  position: relative;
  text-align: center;
  padding: 84px 0;
  background: linear-gradient(135deg, #fff7e6 0%, #f9f9f9 50%, #eef4fb 100%);
  color: #06264a;
  overflow: hidden;
  border-top: 1px solid rgba(201,162,77,.18);
  border-bottom: 1px solid rgba(6,38,74,.08);
}
.hf-cta::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 50% 0%, rgba(234,208,139,.35), transparent 38%); }
.hf-cta .hf-container { position:relative; z-index:2; }
.hf-cta h2 { color:#06264a !important; font-size: clamp(30px,4vw,48px) !important; font-weight:900 !important; margin:0 0 14px !important; }
.hf-cta p { color: #667085; max-width:760px; margin:0 auto 28px; line-height:1.75; }

.hf-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.hf-reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================================
   Responsive
============================================================= */
@media (max-width: 1100px) {
  .hf-hero-grid,
  .hf-intro-grid,
  .hf-market-grid,
  .hf-contact-grid { grid-template-columns: 1fr; }
  .hf-card-grid, .hf-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .hf-team-grid { grid-template-columns: repeat(2, 1fr); }
  .hf-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .hf-container { width: min(100% - 24px, 1200px); }
  .hf-hero { min-height: auto; padding: 118px 0 56px; }
  .hf-hero::before { background-attachment: scroll; }
  .hf-hero h1 {
  font-family: 'Gordita', Arial, sans-serif;
  font-size: clamp(39px, 5.6vw, 46px) !important;
  line-height: .96 !important;
  color: #06264a !important;
  font-weight: 800 !important;
  margin: 0 0 22px !important;
  letter-spacing: -1.4px;
}
  .hf-hero p { font-size: 15px; }
  .hf-stats-grid, .hf-card-grid, .hf-blog-grid, .hf-test-grid, .hf-contact-cards, .hf-team-grid, .hf-steps { grid-template-columns: 1fr; }
  .hf-section { padding: 62px 0; }
  .hf-form-panel, .hf-legal-card { padding: 24px; }
  .hf-btn { width: 100%; }
  .hf-hero-actions { width: 100%; }
  .hf-metric { grid-template-columns: 1fr; gap: 8px; }
  .hf-team-image { height: 420px; }
}
