/* ============================================================
   CRM DEBUGZONE — Home / Ads landing page (LIGHT, conversion-focused)
   Scoped under .hm-revamp. Reuses real data; preserves #ContactUs form.
   ============================================================ */
.hm-revamp {
    --h-blue: #1d6cff; --h-blue-2: #1558d6; --h-cyan: #06b6d4; --h-cyan-2: #22d3ee;
    --h-navy: #0a2540; --h-ink: #16273f; --h-muted: #5a6b82;
    --h-bg: #f6f9fe; --h-bg-2: #eef5ff; --h-line: #e5edf7; --h-card: #fff;
    --h-radius: 18px; --h-radius-sm: 12px;
    --h-shadow: 0 22px 54px rgba(17, 66, 126, .12); --h-shadow-sm: 0 8px 24px rgba(17, 66, 126, .07);
    --h-font: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--h-ink); font-family: var(--h-font); background: #fff; overflow-x: hidden;
}
.hm-revamp p { color: var(--h-muted); line-height: 1.75; }
.hm-revamp a { text-decoration: none; }
.hm-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--h-blue); background: rgba(29, 108, 255, .08); padding: 7px 16px; border-radius: 999px; margin-bottom: 16px; }
.hm-eyebrow.on-dark { color: var(--h-cyan-2); background: rgba(34, 211, 238, .12); }
.hm-title { font-size: clamp(27px, 3.4vw, 40px); font-weight: 800; color: var(--h-navy); line-height: 1.15; margin: 0 0 14px; }
.hm-title .grad, .hm-hero h1 .grad { background: linear-gradient(90deg, var(--h-blue), var(--h-cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hm-sub { font-size: 16.5px; max-width: 720px; }
.hm-center { text-align: center; } .hm-center .hm-sub { margin: 0 auto; }
.hm-head { margin-bottom: 46px; }
.hm-section { padding: 78px 0; }
.hm-section.tint { background: var(--h-bg); }

/* buttons */
.hm-btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; padding: 14px 28px; border-radius: 999px; transition: transform .15s ease, box-shadow .18s ease, background .18s ease; cursor: pointer; border: none; }
.hm-btn-primary { background: linear-gradient(135deg, var(--h-blue), var(--h-cyan)); color: #fff; box-shadow: 0 12px 26px rgba(29, 108, 255, .30); }
.hm-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(29, 108, 255, .38); }
.hm-btn-ghost { background: #fff; color: var(--h-navy); border: 1.5px solid var(--h-line); }
.hm-btn-ghost:hover { border-color: var(--h-blue); color: var(--h-blue); }

/* ---------------- Hero ---------------- */
.hm-hero { position: relative; padding: 66px 0 74px; overflow: hidden; border-bottom: 1px solid var(--h-line);
    background:
        radial-gradient(900px 460px at 92% -10%, rgba(34, 211, 238, .18), transparent 62%),
        radial-gradient(820px 440px at -5% 120%, rgba(29, 108, 255, .13), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--h-bg-2) 100%); }
.hm-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(29, 108, 255, .05) 1px, transparent 1px); background-size: 26px 26px; }
.hm-hero > .hm-container { position: relative; z-index: 2; }
.hm-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hm-hero h1 { font-size: clamp(32px, 4.3vw, 52px); font-weight: 800; color: var(--h-navy); line-height: 1.08; margin: 0 0 18px; }
.hm-hero-sub { font-size: 18px; max-width: 560px; margin-bottom: 26px; }
.hm-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hm-trust { display: flex; flex-wrap: wrap; gap: 20px; }
.hm-trust div { display: flex; flex-direction: column; }
.hm-trust .n { font-size: 22px; font-weight: 800; color: var(--h-navy); line-height: 1; }
.hm-trust .n .u { background: linear-gradient(135deg, var(--h-blue), var(--h-cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hm-trust .l { font-size: 12.5px; color: var(--h-muted); font-weight: 600; margin-top: 3px; }

/* lead form card (hero) */
.hm-leadcard { background: #fff; border: 1px solid var(--h-line); border-radius: 22px; box-shadow: var(--h-shadow); padding: 30px 28px; position: relative; }
.hm-leadcard::before { content: ""; position: absolute; inset: 0; border-radius: 22px; padding: 2px; background: linear-gradient(135deg, rgba(29, 108, 255, .5), rgba(34, 211, 238, .5)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .0; transition: opacity .25s ease; }
.hm-leadcard:focus-within::before { opacity: 1; }
.hm-leadcard h3 { font-size: 22px; font-weight: 800; color: var(--h-navy); margin: 0 0 4px; }
.hm-leadcard .lead-sub { font-size: 14px; margin: 0 0 18px; }
.hm-leadcard .row { margin: 0 -8px; }
.hm-leadcard .form-grp { margin-bottom: 12px; padding: 0 8px; }
.hm-leadcard .form-control { width: 100%; border: 1.5px solid #dbe3ec; border-radius: 11px; padding: 12px 14px; font-size: 15px; color: var(--h-ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; font-family: inherit; }
.hm-leadcard .form-control:focus { outline: none; border-color: var(--h-cyan); box-shadow: 0 0 0 4px rgba(6, 182, 212, .14); }
.hm-leadcard textarea.form-control { min-height: 92px; resize: vertical; }
.hm-leadcard .iti { width: 100%; }
.hm-leadcard label.error { color: #e11d48 !important; font-size: 12.5px; font-weight: 600; display: block; margin-top: 4px; }
.hm-leadcard button[type=submit] { width: 100%; margin-top: 4px; justify-content: center; }
.hm-leadcard .lead-note { text-align: center; font-size: 12.5px; color: var(--h-muted); margin: 12px 0 0; }
.hm-leadcard .lead-note i { color: var(--h-cyan); }
#loaderest { display: block; text-align: center; color: var(--h-blue); margin-top: 8px; }

/* ---------------- Stats bar ---------------- */
.hm-stats { background: linear-gradient(135deg, #ffffff, var(--h-bg-2)); border-bottom: 1px solid var(--h-line); }
.hm-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 46px 0; }
.hm-stat { text-align: center; }
.hm-stat .num { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; color: var(--h-navy); line-height: 1; }
.hm-stat .num .u { background: linear-gradient(135deg, var(--h-blue), var(--h-cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hm-stat .lbl { margin-top: 10px; font-size: 14px; color: var(--h-muted); font-weight: 600; }

/* ---------------- Law firm / Litify feature ---------------- */
.hm-law { background: var(--h-bg); }
.hm-law-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.hm-law-media { position: relative; }
.hm-law-media img { width: 100%; border-radius: 20px; display: block; object-fit: cover; aspect-ratio: 5 / 4; border: 1px solid var(--h-line); box-shadow: var(--h-shadow); }
.hm-law-badge { position: absolute; left: -16px; bottom: -18px; background: #fff; border: 1px solid var(--h-line); border-radius: 16px; padding: 16px 20px; box-shadow: var(--h-shadow); display: flex; align-items: center; gap: 12px; }
.hm-law-badge .ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 18px; background: linear-gradient(135deg, var(--h-blue), var(--h-cyan)); }
.hm-law-badge .t { font-size: 13px; font-weight: 700; color: var(--h-navy); line-height: 1.25; }
.hm-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(29, 108, 255, .09); color: var(--h-blue); font-weight: 800; font-size: 13px; letter-spacing: .5px; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.hm-law-list { list-style: none; margin: 20px 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hm-law-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--h-ink); font-weight: 600; }
.hm-law-list li i { color: var(--h-cyan); margin-top: 3px; }

/* ---------------- Services grid ---------------- */
.hm-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hm-svc-card { position: relative; display: block; background: #fff; border: 1px solid var(--h-line); border-radius: 16px; padding: 28px 24px; box-shadow: var(--h-shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; overflow: hidden; }
.hm-svc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--h-blue), var(--h-cyan)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.hm-svc-card:hover { transform: translateY(-6px); box-shadow: var(--h-shadow); border-color: #cfe0f5; }
.hm-svc-card:hover::before { transform: scaleX(1); }
.hm-svc-card .ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: linear-gradient(135deg, var(--h-bg-2), #fff); border: 1px solid var(--h-line); }
.hm-svc-card .ic img { max-width: 30px; max-height: 30px; }
.hm-svc-card .ic i { font-size: 22px; color: var(--h-blue); }
.hm-svc-card h3 { font-size: 18px; font-weight: 800; color: var(--h-navy); margin: 0 0 8px; }
.hm-svc-card p { font-size: 14px; margin: 0 0 14px; color: var(--h-muted); line-height: 1.6; }
.hm-svc-card .more { font-size: 14px; font-weight: 700; color: var(--h-blue); display: inline-flex; align-items: center; gap: 7px; }
.hm-svc-card:hover .more i { transform: translateX(3px); }
.hm-svc-card .more i { transition: transform .15s ease; }

/* ---------------- Why choose ---------------- */
.hm-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hm-why { background: #fff; border: 1px solid var(--h-line); border-radius: 16px; padding: 28px 24px; box-shadow: var(--h-shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.hm-why:hover { transform: translateY(-6px); box-shadow: var(--h-shadow); }
.hm-why .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #fff; margin-bottom: 16px; background: linear-gradient(135deg, var(--h-navy), var(--h-blue)); }
.hm-why:nth-child(2) .ic { background: linear-gradient(135deg, var(--h-blue), var(--h-cyan)); }
.hm-why:nth-child(3) .ic { background: linear-gradient(135deg, var(--h-cyan), #0891b2); }
.hm-why:nth-child(4) .ic { background: linear-gradient(135deg, #7c3aed, var(--h-blue)); }
.hm-why h3 { font-size: 17px; font-weight: 800; color: var(--h-navy); margin: 0 0 8px; }
.hm-why p { font-size: 14px; margin: 0; }

/* ---------------- Process ---------------- */
.hm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hm-step { position: relative; background: #fff; border: 1px solid var(--h-line); border-radius: 16px; padding: 30px 24px 26px; box-shadow: var(--h-shadow-sm); }
.hm-step .num { position: absolute; top: -18px; left: 24px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--h-blue), var(--h-cyan)); box-shadow: 0 10px 20px rgba(29, 108, 255, .3); }
.hm-step h3 { font-size: 17px; font-weight: 800; color: var(--h-navy); margin: 22px 0 8px; }
.hm-step p { font-size: 14px; margin: 0; }

/* ---------------- Testimonials ---------------- */
.hm-tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hm-tst { background: #fff; border: 1px solid var(--h-line); border-radius: 16px; padding: 28px 26px; box-shadow: var(--h-shadow-sm); display: flex; flex-direction: column; }
.hm-tst__stars { color: #f5a623; font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.hm-tst__stars .off { color: #d8e0ea; }
.hm-tst__text { font-size: 15px; color: var(--h-ink); line-height: 1.7; margin: 0 0 20px; flex: 1; }
.hm-tst__who { display: flex; align-items: center; gap: 12px; }
.hm-tst__who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--h-bg-2); }
.hm-tst__who .nm { font-weight: 800; color: var(--h-navy); font-size: 15px; }
.hm-tst__who .rl { font-size: 12.5px; color: var(--h-muted); }

/* ---------------- Estimate promo ---------------- */
.hm-est { padding: 0 0 78px; }
.hm-est__inner { background: linear-gradient(135deg, var(--h-navy), #113a67); border-radius: 24px; padding: 46px; display: grid; grid-template-columns: 1.4fr .6fr; gap: 30px; align-items: center; color: #fff; position: relative; overflow: hidden; box-shadow: var(--h-shadow); }
.hm-est__inner::after { content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 70%); }
.hm-est__inner h2 { color: #fff; font-size: clamp(23px, 2.6vw, 32px); font-weight: 800; margin: 0 0 8px; position: relative; z-index: 2; }
.hm-est__inner p { color: #cfe0f2; font-size: 16px; margin: 0; position: relative; z-index: 2; }
.hm-est__cta { position: relative; z-index: 2; text-align: right; }
.hm-est .hm-btn-white { background: #fff; color: var(--h-blue); }
.hm-est .hm-btn-white:hover { color: var(--h-blue-2); transform: translateY(-2px); }

/* ---------------- Blog ---------------- */
.hm-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hm-blog { background: #fff; border: 1px solid var(--h-line); border-radius: 16px; overflow: hidden; box-shadow: var(--h-shadow-sm); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; }
.hm-blog:hover { transform: translateY(-6px); box-shadow: var(--h-shadow); }
.hm-blog__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--h-bg); }
.hm-blog__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.hm-blog:hover .hm-blog__thumb img { transform: scale(1.05); }
.hm-blog__tag { position: absolute; top: 14px; left: 14px; background: rgba(10, 37, 64, .82); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.hm-blog__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.hm-blog__body h3 { font-size: 18px; font-weight: 800; line-height: 1.35; margin: 0 0 14px; }
.hm-blog__body h3 a { color: var(--h-navy); } .hm-blog__body h3 a:hover { color: var(--h-blue); }
.hm-blog__meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--h-line); font-size: 13px; color: var(--h-muted); }
.hm-blog__meta .more { color: var(--h-blue); font-weight: 700; }
.hm-blog__meta i { color: var(--h-cyan); margin-right: 5px; }

/* ---------------- CTA band ---------------- */
.hm-cta { padding: 0 0 84px; }
.hm-cta__inner { background: linear-gradient(135deg, var(--h-blue), var(--h-cyan)); border-radius: 24px; padding: 52px 46px; text-align: center; color: #fff; position: relative; overflow: hidden; box-shadow: 0 26px 60px rgba(29, 108, 255, .30); }
.hm-cta__inner::after { content: ""; position: absolute; width: 320px; height: 320px; left: -90px; bottom: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%); }
.hm-cta__inner h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin: 0 0 12px; position: relative; z-index: 2; }
.hm-cta__inner p { color: #eaf4ff; font-size: 17px; max-width: 640px; margin: 0 auto 26px; position: relative; z-index: 2; }
.hm-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; z-index: 2; }
.hm-cta .hm-btn-white { background: #fff; color: var(--h-blue); } .hm-cta .hm-btn-white:hover { color: var(--h-blue-2); transform: translateY(-2px); }
.hm-cta .hm-btn-outline { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); } .hm-cta .hm-btn-outline:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------------- Animations ---------------- */
@keyframes hmUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hm-hero-grid > * { animation: hmUp .6s ease both; }
.hm-hero-grid > *:nth-child(2) { animation-delay: .12s; }
.hm-revamp.js-anim .hm-reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.hm-revamp.js-anim .hm-reveal.in { opacity: 1; transform: none; }
.hm-revamp.js-anim .hm-stagger.in > * { animation: hmUp .5s ease both; }
.hm-revamp.js-anim .hm-stagger.in > *:nth-child(2) { animation-delay: .07s; }
.hm-revamp.js-anim .hm-stagger.in > *:nth-child(3) { animation-delay: .14s; }
.hm-revamp.js-anim .hm-stagger.in > *:nth-child(4) { animation-delay: .21s; }

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
    .hm-hero-grid, .hm-law-grid { grid-template-columns: 1fr; gap: 40px; }
    .hm-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
    .hm-svc-grid, .hm-tst-grid, .hm-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .hm-why-grid, .hm-steps { grid-template-columns: repeat(2, 1fr); gap: 30px 22px; }
    .hm-est__inner { grid-template-columns: 1fr; text-align: center; }
    .hm-est__cta { text-align: center; }
}
@media (max-width: 767px) {
    .hm-section { padding: 54px 0; } .hm-hero { padding: 48px 0 56px; }
    .hm-svc-grid, .hm-tst-grid, .hm-blog-grid, .hm-why-grid, .hm-steps, .hm-law-list { grid-template-columns: 1fr; }
    .hm-cta__inner, .hm-est__inner { padding: 34px 22px; }
    .hm-law-badge { left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-revamp *, .hm-revamp *::before, .hm-revamp *::after { animation: none !important; transition: none !important; }
    .hm-revamp.js-anim .hm-reveal { opacity: 1 !important; transform: none !important; }
}
