/* M-Hub homepage redesign. Everything is scoped under .hr-home so it can't leak into other pages. */
.hr-home {
    --hr-navy: #12354A;
    --hr-ink: #3B4A55;
    --hr-muted: #5B6B76;
    --hr-accent: #0F78AE;
    --hr-accent-dark: #0B6693;
    --hr-accent-soft: #E3F1F8;
    --hr-green: #1B6E48;
    --hr-green-soft: #E4F2EA;
    --hr-ground: #F7F5F0;
    --hr-line: #E3DFD6;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--hr-ink);
    background: var(--hr-ground);
}
.hr-home *, .hr-home *::before, .hr-home *::after { box-sizing: border-box; }
.hr-home h1, .hr-home h2, .hr-home h3, .hr-home h4 { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--hr-navy); margin: 0; }
.hr-home p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--hr-ink); }
.hr-home ul, .hr-home ol { list-style: none !important; }
.hr-home li { list-style: none !important; }
.hr-home li::marker { content: none; }
.hr-home ol, .hr-home ul { counter-reset: none !important; }
.hr-home li::before, .hr-home li::after { content: none !important; display: none !important; }
.hr-home a { text-decoration: none; }
.hr-home a:focus-visible, .hr-home button:focus-visible, .hr-home input:focus-visible { outline: 3px solid var(--hr-accent); outline-offset: 2px; }

.hr-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hr-section { padding: 72px 0; }
.hr-h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.01em; }
.hr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.hr-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--hr-accent-dark); }

/* Buttons */
.hr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 12px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16px; cursor: pointer; }
.hr-btn-primary { background: var(--hr-accent); color: #fff; }
.hr-btn-primary:hover { background: var(--hr-accent-dark); color: #fff; }
.hr-btn-navy { background: var(--hr-navy); color: #fff; }
.hr-btn-navy:hover { color: #fff; opacity: 0.92; }
.hr-btn-outline { background: #fff; color: var(--hr-navy); border: 1.5px solid #C9D3D9; }

/* Hero */
.hr-hero { padding: 120px 0 72px; } /* the site header is positioned over the page top */
.hr-hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hr-hero-copy { flex: 1 1 480px; min-width: 0; }
.hr-home .hr-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 14px; border-radius: 999px; background: var(--hr-green-soft); color: var(--hr-green); font-weight: 700; font-size: 14px; }
.hr-hero h1 { margin-bottom: 20px; font-weight: 800; font-size: clamp(36px, 5vw, 60px); line-height: 1.08; letter-spacing: -0.02em; }
.hr-home .hr-lead { margin-bottom: 32px !important; font-size: 19px; max-width: 540px; }
.hr-search { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; max-width: 620px; padding: 16px; background: #fff; border: 1px solid var(--hr-line); border-radius: 16px; }
.hr-field { flex: 2 1 240px; min-width: 0; }
.hr-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--hr-navy); }
.hr-field input { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid #C9D3D9; border-radius: 12px; font: 500 16px 'Manrope', sans-serif; color: var(--hr-navy); background: #fff; }
.hr-search .hr-btn { flex: 1 1 160px; height: 52px; }
.hr-ticks { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; font-weight: 600; font-size: 15px; color: var(--hr-navy); }
.hr-ticks span { display: inline-flex; align-items: center; gap: 8px; }
.hr-home .hr-pro-link { margin-top: 20px !important; font-size: 15px; }
.hr-home .hr-pro-link a { font-weight: 700; color: var(--hr-accent-dark); }
.hr-hero-photo { flex: 1 1 420px; min-width: 0; }
.hr-photo { min-height: 480px; border: 1px solid #D5DDE2; border-radius: 24px; overflow: hidden; background: repeating-linear-gradient(135deg, #E4E9EC 0 14px, #EBEFF1 14px 28px); }
.hr-photo img { display: block; width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.hr-photo-ph { display: flex; align-items: center; justify-content: center; min-height: 480px; padding: 28px; text-align: center; font-size: 14px; font-weight: 600; color: var(--hr-muted); }

/* Categories */
.hr-cats { display: flex; flex-wrap: wrap; gap: 16px; }
.hr-cat { flex: 1 1 170px; min-width: 0; padding: 22px 20px; background: #fff; border: 1px solid var(--hr-line); border-radius: 16px; color: inherit; }
.hr-cat:hover { border-color: var(--hr-accent); }
.hr-cat-icon { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 18px; overflow: hidden; background: var(--hr-accent-soft); color: #0B5F8A; }
.hr-cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.hr-cat h3 { margin-top: 14px; font-weight: 700; font-size: 18px; }
.hr-cat p { font-size: 14px; color: var(--hr-muted); }

/* How it works */
.hr-how { background: #fff; border-top: 1px solid var(--hr-line); border-bottom: 1px solid var(--hr-line); }
.hr-home .hr-sub { margin: 8px 0 36px !important; max-width: 620px; }
.hr-steps { display: flex; flex-wrap: wrap; gap: 20px; }
.hr-step { flex: 1 1 240px; min-width: 0; padding: 24px; background: var(--hr-ground); border-radius: 16px; }
.hr-step-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hr-num { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--hr-navy); color: #fff; font: 800 17px 'Plus Jakarta Sans', sans-serif; }
.hr-step h3 { margin-bottom: 6px; font-weight: 700; font-size: 20px; }
.hr-step p { font-size: 16px; }
.hr-home .hr-money { margin-top: 16px !important; padding-top: 14px; border-top: 1px solid var(--hr-line); font-size: 14px; font-weight: 700; color: var(--hr-muted); }
.hr-home .hr-money-safe { color: var(--hr-green); }
.hr-home .hr-money-out { color: #0B5F8A; }

/* Escrow band */
.hr-escrow { padding: 80px 0; background: var(--hr-navy); color: #D5E1E8; }
.hr-escrow-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hr-escrow-copy { flex: 1 1 440px; min-width: 0; }
.hr-escrow h2 { margin-bottom: 16px; font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.01em; color: #fff; }
.hr-home .hr-escrow-lead { margin-bottom: 28px !important; font-size: 18px; }
.hr-points { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.hr-points li { display: flex; gap: 14px; }
.hr-points svg { flex: none; margin-top: 2px; }
.hr-points strong { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; color: #fff; }
.hr-points span { font-size: 16px; }
.hr-review { flex: 1 1 400px; min-width: 0; padding: 24px; background: #fff; border-radius: 20px; color: var(--hr-ink); }
.hr-review h3 { margin-bottom: 14px; font-weight: 700; font-size: 18px; }
.hr-review-photos { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hr-review-photos .hr-photo { flex: 1 1 150px; min-height: 150px; border-radius: 12px; }
.hr-review-photos .hr-photo-ph { min-height: 150px; padding: 12px; }
.hr-review-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hr-review-actions .hr-btn { flex: 1 1 160px; min-height: 48px; font-size: 15px; }
.hr-review > p { margin-bottom: 16px !important; font-size: 15px; }

/* Popular services */
.hr-services { display: flex; flex-wrap: wrap; gap: 20px; }
.hr-service { display: flex; flex-direction: column; flex: 1 1 250px; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--hr-line); border-radius: 16px; color: inherit; }
.hr-service:hover { border-color: var(--hr-accent); }
.hr-service .hr-photo { min-height: 170px; height: 170px; border: 0; border-radius: 0; }
.hr-service .hr-photo img { min-height: 170px; height: 170px; }
.hr-service .hr-photo-ph { min-height: 170px; padding: 12px; }
.hr-service-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 18px 20px 20px; }
.hr-service-body h3 { font-weight: 700; font-size: 18px; line-height: 1.3; }
.hr-home .hr-provider { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--hr-muted); }
.hr-home .hr-from { margin-top: auto !important; padding-top: 12px; font-size: 14px; color: var(--hr-muted); }
.hr-home .hr-from b { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 20px; color: var(--hr-navy); }

/* For professionals */
.hr-pro { padding: 80px 0; }
.hr-pro-card { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 40px; background: #fff; border: 1px solid var(--hr-line); border-radius: 24px; }
.hr-pro-copy { flex: 1 1 420px; min-width: 0; }
.hr-home .hr-eyebrow { margin-bottom: 10px !important; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--hr-accent-dark); }
.hr-pro-copy h2 { margin-bottom: 14px; font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
.hr-pro-copy > p:not(.hr-eyebrow) { margin-bottom: 24px !important; }
.hr-pro-steps { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.hr-pro-steps li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--hr-ground); border-radius: 14px; font-weight: 700; color: var(--hr-navy); }
.hr-pro-steps .hr-num { width: 34px; height: 34px; font-size: 15px; background: var(--hr-accent); }

@media (max-width: 575px) {
    .hr-hero { padding: 150px 0 48px; }
    .hr-section, .hr-escrow, .hr-pro { padding: 48px 0; }
    .hr-pro-card { padding: 24px; }
    .hr-photo, .hr-photo img, .hr-photo-ph { min-height: 260px; }
}
