/* ==========================================================================
   Homepage v2 — ranamoneeb.com · Lahore/Pakistan funnel design
   Built on the service-funnel v3 grammar (split rail + field, card system)
   with a homepage-specific hero (photo + audit form side stack).
   Palette: navy #0f4c81 / ink #0c2d50 / amber #f59e0b / slate #42526a
   ========================================================================== */

.hv2-page {
    background: #fff;
    color: #42526a;
    font-size: 16.5px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

/* ---------- container ---------- */
.hv2-page .hv2-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
    box-sizing: border-box;
}

/* ---------- section rhythm ---------- */
.hv2-page .hv2-sec { padding: 72px 0; }
.hv2-page .hv2-sec--tint { background: #f6f8fb; }
.hv2-page .hv2-sec + .hv2-sec { border-top: 1px solid #eef2f8; }
.hv2-page .hv2-sec + .hv2-sec--tint,
.hv2-page .hv2-sec--tint + .hv2-sec { border-top: none; }

/* ---------- split layout ---------- */
.hv2-split {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}
.hv2-head { position: sticky; top: 96px; }
.hv2-eyebrow {
    display: inline-block;
    color: #b45309; background: #fef3c7;
    font-size: 12px; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase;
    padding: 6px 13px; border-radius: 999px;
    margin: 0 0 14px;
}
.hv2-head h2, .hv2-about h2, .hv2-recent h2, .hv2-cta h2 {
    font-size: clamp(24px, 2.6vw, 31px);
    line-height: 1.22;
    color: #0c2d50;
    margin: 0 0 14px;
    font-weight: 800;
    letter-spacing: -.015em;
}
.hv2-head-note { color: #64748b; font-size: 15.5px; margin: 0; }
.hv2-prose { color: #42526a; }
.hv2-prose p { margin: 0 0 14px; }
.hv2-prose a { color: #0f4c81; font-weight: 600; text-decoration: none; border-bottom: 1px solid #bcd3ea; }
.hv2-prose a:hover { color: #b45309; }

/* ================= HERO ================= */
.hv2-hero {
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(15,76,129,.10), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(245,158,11,.08), transparent 55%),
        linear-gradient(180deg, #f8fafd 0%, #fff 100%);
    padding: 84px 0 72px;
}
.hv2-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr);
    gap: 48px;
    align-items: start;
}
.hv2-kicker {
    display: inline-block;
    color: #b45309; background: #fef3c7;
    font-size: 12px; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase;
    padding: 6px 13px; border-radius: 999px;
    margin: 0 0 18px;
}
.hv2-hero h1 {
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.18;
    color: #0c2d50;
    margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.hv2-accent {
    background: linear-gradient(90deg, #0f4c81 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hv2-hero-sub { color: #42526a; font-size: 17px; margin: 0 0 26px; max-width: 640px; }
.hv2-cta-row { display: flex; gap: 14px; margin: 0 0 30px; flex-wrap: wrap; }
.hv2-btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15.5px;
    border-radius: 12px; padding: 14px 26px;
    text-decoration: none; transition: transform .18s, box-shadow .18s, background .18s;
}
.hv2-btn-primary {
    background: linear-gradient(135deg, #0f4c81 0%, #0c2d50 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(14,47,82,.30);
}
.hv2-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14,47,82,.40); }
.hv2-btn-ghost {
    background: #fff; color: #0f4c81;
    border: 1.5px solid #bcd3ea;
}
.hv2-btn-ghost:hover { border-color: #0f4c81; background: #f2f7fd; }
.hv2-trust {
    display: flex; align-items: center; gap: 18px;
    padding-top: 22px; border-top: 1px solid #e5ebf3;
    flex-wrap: wrap;
}
.hv2-trust-item { display: flex; flex-direction: column; }
.hv2-trust-item strong { color: #0f4c81; font-size: 22px; font-weight: 800; line-height: 1.15; }
.hv2-trust-item span { color: #64748b; font-size: 13px; max-width: 210px; }
.hv2-trust-sep { width: 1px; height: 36px; background: #e5ebf3; }

/* hero side: photo card + form */
.hv2-hero-side { display: flex; flex-direction: column; gap: 20px; }
.hv2-hero-photo { position: relative; width: 132px; }
.hv2-hero-photo img {
    width: 132px; height: 132px;
    border-radius: 28px;
    object-fit: cover; object-position: top;
    border: 4px solid #fff;
    box-shadow: 0 16px 40px rgba(14,47,82,.18);
    display: block;
}
.hv2-photo-badge {
    position: absolute; left: 118px; top: 50%; transform: translateY(-50%);
    background: #0c2d50; color: #fff;
    border-radius: 12px; padding: 10px 16px;
    font-size: 14px; font-weight: 800; line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(14,47,82,.25);
}
.hv2-photo-badge small { display: block; font-weight: 600; font-size: 11.5px; color: #cfe0f2; letter-spacing: .04em; }

/* ---------- forms (shared hero + CTA) ---------- */
.hv2-form-card {
    background: #fff;
    border: 1px solid #e5ebf3;
    border-radius: 20px;
    padding: 28px 26px 24px;
    box-shadow: 0 18px 50px rgba(14,47,82,.10);
}
.hv2-form-card h3 { color: #0c2d50; font-size: 20px; margin: 0 0 6px; font-weight: 800; }
.hv2-form-note { color: #64748b; font-size: 14px; margin: 0 0 16px; }
.hv2-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hv2-field { margin-bottom: 12px; }
.hv2-field input, .hv2-field select, .hv2-field textarea {
    width: 100%; box-sizing: border-box;
    border: 1.5px solid #dbe4ef; border-radius: 11px;
    padding: 12px 14px; font-size: 15px; color: #0c2d50;
    background: #fbfdff;
    font-family: inherit;
    transition: border-color .15s, background .15s;
}
.hv2-field textarea { resize: vertical; }
.hv2-field input:focus, .hv2-field select:focus, .hv2-field textarea:focus {
    outline: none; border-color: #0f4c81; background: #fff;
}
.hv2-submit {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #ea8c0c 100%);
    color: #fff; font-weight: 800; font-size: 15.5px;
    border: none; border-radius: 12px;
    padding: 14px 20px; cursor: pointer;
    font-family: inherit;
    box-shadow: 0 10px 24px rgba(245,158,11,.35), inset 0 1px 0 rgba(255,255,255,.25);
    transition: transform .18s, box-shadow .18s;
    margin-top: 4px;
}
.hv2-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(245,158,11,.45); }
.hv2-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.hv2-form-fine { text-align: center; color: #8291a6; font-size: 12.5px; margin: 12px 0 0; }
.hv2-form-msg {
    display: none; border-radius: 10px; padding: 12px 15px;
    font-size: 14px; line-height: 1.55; margin-bottom: 14px;
}
.hv2-form-msg.success { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.hv2-form-msg.error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- cards (why / trust) ---------- */
.hv2-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.hv2-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid #e5ebf3;
    border-radius: 16px;
    padding: 26px 26px 22px;
    height: 100%; box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(14,47,82,.04);
    transition: transform .22s ease, box-shadow .22s ease;
}
.hv2-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(14,47,82,.10); }
.hv2-card h3 { font-size: 1.08rem; color: #0c2d50; margin: 14px 0 8px; font-weight: 750; }
.hv2-card p { margin: 0; color: #51627a; font-size: .93rem; line-height: 1.66; }
.hv2-card-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 13px;
    background: linear-gradient(135deg, #0f4c81 0%, #2563eb 100%);
    box-shadow: 0 8px 18px rgba(15,76,129,.28);
}
.hv2-card-ic svg {
    width: 22px; height: 22px;
    fill: none; stroke: #fff;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- services grid ---------- */
.hv2-cards--svc {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.hv2-svc {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid #e5ebf3;
    border-radius: 16px;
    padding: 22px 24px 20px;
    text-decoration: none;
    height: 100%; box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(14,47,82,.04);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    position: relative;
}
.hv2-svc:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(14,47,82,.10); border-color: #bcd3ea; }
.hv2-svc-num {
    font-size: 12px; font-weight: 800; color: #b45309;
    letter-spacing: .12em;
}
.hv2-svc h3 { color: #0c2d50; font-size: 1.05rem; margin: 6px 0 8px; font-weight: 750; }
.hv2-svc p { margin: 0; color: #51627a; font-size: .9rem; line-height: 1.62; }
.hv2-svc::after {
    content: '→';
    position: absolute; right: 20px; top: 20px;
    color: #bcd3ea; font-size: 18px; font-weight: 700;
    transition: color .2s, transform .2s;
}
.hv2-svc:hover::after { color: #f59e0b; transform: translateX(3px); }

/* ---------- steps ---------- */
.hv2-steps { list-style: none; margin: 0; padding: 0; counter-reset: hv2step; }
.hv2-steps li {
    position: relative;
    padding: 0 0 26px 64px;
    counter-increment: hv2step;
}
.hv2-steps li::before {
    content: counter(hv2step);
    position: absolute; left: 0; top: 0;
    width: 44px; height: 44px; border-radius: 13px;
    background: linear-gradient(135deg, #0f4c81 0%, #2563eb 100%);
    color: #fff; font-weight: 800; font-size: 17px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px rgba(15,76,129,.25);
}
.hv2-steps li:not(:last-child)::after {
    content: '';
    position: absolute; left: 21px; top: 50px; bottom: 4px;
    width: 2px; background: linear-gradient(180deg, #bcd3ea, rgba(188,211,234,0));
}
.hv2-steps strong { display: block; color: #0c2d50; font-size: 1.06rem; margin-bottom: 4px; font-weight: 750; }
.hv2-steps span { color: #51627a; font-size: .95rem; line-height: 1.66; }

/* ---------- comparison band ---------- */
.hv2-band {
    background: linear-gradient(135deg, #0c2d50 0%, #0f4c81 100%);
    border-radius: 20px;
    padding: 34px 34px 30px;
    color: #dbe7f5;
    box-shadow: 0 24px 60px rgba(14,47,82,.30);
}
.hv2-band-lead { color: #e6eefb; font-size: 1.02rem; margin: 0 0 22px; }
.hv2-band-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 22px; }
.hv2-band-col {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    padding: 20px 22px;
}
.hv2-band-col h4 {
    margin: 0 0 10px; color: #fff; font-size: .98rem; font-weight: 800;
    letter-spacing: .01em;
}
.hv2-band-col ul { margin: 0; padding: 0; list-style: none; }
.hv2-band-col li {
    padding: 6px 0 6px 22px; position: relative;
    color: #c8d8ec; font-size: .9rem; line-height: 1.55;
}
.hv2-band-col li::before {
    content: ''; position: absolute; left: 2px; top: 13px;
    width: 8px; height: 8px; border-radius: 3px;
    background: #f59e0b;
}
.hv2-band-note { color: #c8d8ec; font-size: .95rem; margin: 0; }
.hv2-band-note strong { color: #fff; }

/* ---------- pricing table ---------- */
.hv2-table-wrap {
    border: 1px solid #e5ebf3;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(14,47,82,.04);
    margin-bottom: 22px;
}
.hv2-table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hv2-table-wrap th {
    background: linear-gradient(135deg, #0f4c81 0%, #12365c 100%);
    color: #fff; text-align: left;
    padding: 13px 18px;
    font-weight: 700; font-size: .88rem;
    letter-spacing: .02em;
}
.hv2-table-wrap td {
    padding: 13px 18px;
    border-top: 1px solid #eef2f8;
    color: #42526a;
    vertical-align: top;
}
.hv2-table-wrap tbody tr:nth-child(even) { background: #f8fafc; }
.hv2-table-wrap td:first-child { font-weight: 700; color: #0f4c81; white-space: nowrap; }

/* ---------- about ---------- */
.hv2-about {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}
.hv2-about-photo img {
    width: 220px; height: 220px;
    border-radius: 28px;
    object-fit: cover; object-position: top;
    border: 4px solid #fff;
    box-shadow: 0 18px 44px rgba(14,47,82,.16);
}
.hv2-about-copy p { color: #42526a; margin: 0 0 14px; }
.hv2-about-copy a { color: #0f4c81; font-weight: 600; text-decoration: none; border-bottom: 1px solid #bcd3ea; }
.hv2-about-copy a:hover { color: #b45309; }
.hv2-about-creds {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px;
}
.hv2-about-creds span {
    background: rgba(15,76,129,.08); color: #0f4c81;
    font-size: .8rem; font-weight: 700;
    padding: 7px 14px; border-radius: 999px;
}

/* ---------- FAQ ---------- */
.hv2-faq-item {
    background: #fff;
    border: 1px solid #e5ebf3;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.hv2-faq-item:hover { border-color: #d3e0ef; }
.hv2-faq-item[open] { border-color: #bcd3ea; box-shadow: 0 12px 30px rgba(14,47,82,.08); }
.hv2-faq-item summary {
    cursor: pointer; list-style: none; user-select: none;
    padding: 18px 56px 18px 22px;
    font-size: 16px; font-weight: 700; color: #12365c;
    line-height: 1.5; position: relative;
}
.hv2-faq-item summary::-webkit-details-marker { display: none; }
.hv2-faq-item summary::after {
    content: '+';
    position: absolute; right: 18px; top: 50%;
    transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 9px;
    background: #eef4fb; color: #0f4c81;
    font-weight: 800; font-size: 17px;
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s, background .2s;
}
.hv2-faq-item[open] summary::after { content: '−'; background: #0f4c81; color: #fff; }
.hv2-faq-answer { padding: 2px 22px 20px; color: #51627a; font-size: 15px; line-height: 1.72; }
.hv2-faq-answer p { margin: 0; }

/* ---------- recent blogs (same grammar as service pages) ---------- */
.hv2-recent { padding: 72px 0 84px; }
.hv2-rsec-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; margin-bottom: 34px;
}
.hv2-reyebrow {
    display: inline-block;
    color: #b45309; background: #fef3c7;
    font-size: 12px; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase;
    padding: 6px 13px; border-radius: 999px;
    margin: 0 0 14px;
}
.hv2-recent h2 {
    font-size: clamp(24px, 2.6vw, 31px);
    line-height: 1.22; color: #0c2d50;
    margin: 0; font-weight: 800; letter-spacing: -.015em;
}
.hv2-rall {
    flex-shrink: 0;
    color: #0f4c81; font-weight: 700; font-size: 15px;
    text-decoration: none;
    border-bottom: 2px solid #f59e0b;
    padding-bottom: 3px; white-space: nowrap;
    transition: color .18s;
}
.hv2-rall:hover { color: #b45309; }
.hv2-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hv2-rcard {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid #e5ebf3;
    border-top: 4px solid #0f4c81;
    border-radius: 16px;
    padding: 24px 24px 20px;
    box-sizing: border-box;
    height: 100%;
    box-shadow: 0 1px 2px rgba(14,47,82,.04);
    transition: transform .22s ease, box-shadow .22s ease, border-top-color .22s ease;
}
.hv2-rcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(14,47,82,.13);
    border-top-color: #f59e0b;
}
.hv2-rcard-category {
    display: inline-block; align-self: flex-start;
    background: rgba(15,76,129,.08); color: #0f4c81;
    padding: 5px 13px; border-radius: 20px;
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 14px;
}
.hv2-rcard h3 {
    font-size: 1.06rem; color: #0c2d50;
    margin: 0 0 10px; font-weight: 750; line-height: 1.4;
    transition: color .18s;
}
.hv2-rcard:hover h3 { color: #0f4c81; }
.hv2-rcard h3 a { color: inherit; text-decoration: none; }
.hv2-rcard p { margin: 0 0 18px; color: #51627a; font-size: .92rem; line-height: 1.66; }
.hv2-rcard-meta {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid #eef2f8;
    padding-top: 14px;
}
.hv2-rcard-date { font-size: .8rem; color: #8291a6; font-weight: 600; }
.hv2-rcard-link {
    font-size: .88rem; font-weight: 700; color: #0f4c81;
    text-decoration: none; white-space: nowrap;
}
.hv2-rcard-link:hover { color: #b45309; }
.hv2-rcard-link .arr { transition: transform .18s; display: inline-block; }
.hv2-rcard:hover .hv2-rcard-link .arr { transform: translateX(4px); }

/* ---------- final CTA ---------- */
.hv2-cta {
    background:
        radial-gradient(800px 400px at 110% 0%, rgba(245,158,11,.10), transparent 55%),
        linear-gradient(135deg, #0c2d50 0%, #0f4c81 100%);
    padding: 84px 0;
    color: #dbe7f5;
}
.hv2-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr);
    gap: 48px;
    align-items: start;
}
.hv2-cta h2 { color: #fff; }
.hv2-cta-copy > p { color: #c8d8ec; font-size: 1.02rem; margin: 0 0 22px; max-width: 560px; }
.hv2-cta-list { list-style: none; margin: 0 0 26px; padding: 0; }
.hv2-cta-list li {
    padding: 7px 0 7px 30px; position: relative;
    color: #e6eefb; font-size: .98rem;
}
.hv2-cta-list li::before {
    content: '✓';
    position: absolute; left: 2px; top: 7px;
    width: 20px; height: 20px; border-radius: 7px;
    background: rgba(245,158,11,.20);
    color: #fbbf24; font-weight: 800; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}
.hv2-cta .spf-contact-btns { justify-content: flex-start; }
.hv2-cta .hv2-form-card { box-shadow: 0 30px 70px rgba(0,0,0,.35); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .hv2-split { grid-template-columns: 1fr; gap: 26px; }
    .hv2-head { position: static; }
    .hv2-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hv2-hero-side { flex-direction: row; align-items: flex-start; }
    .hv2-hero-photo { width: 112px; flex-shrink: 0; }
    .hv2-hero-photo img { width: 112px; height: 112px; }
    .hv2-hero-side .hv2-form-card { flex: 1; }
    .hv2-about { grid-template-columns: 1fr; gap: 30px; }
    .hv2-cta-grid { grid-template-columns: 1fr; gap: 36px; }
    .hv2-photo-badge { left: 100px; }
}
@media (max-width: 820px) {
    .hv2-page { font-size: 16px; }
    .hv2-page .hv2-sec { padding: 52px 0; }
    .hv2-hero { padding: 96px 0 52px; }
    .hv2-hero h1 { font-size: clamp(28px, 8.2vw, 38px); }
    .hv2-hero-side { flex-direction: column; }
    .hv2-photo-badge { left: 118px; }
    .hv2-cards, .hv2-cards--svc, .hv2-band-cols { grid-template-columns: 1fr; }
    .hv2-recent-grid { grid-template-columns: 1fr; gap: 18px; }
    .hv2-recent { padding: 52px 0 60px; }
    .hv2-rsec-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
    .hv2-btn { flex: 1 1 100%; }
    .hv2-cta-row { flex-direction: column; }
    .hv2-form-card { padding: 26px 20px 22px; }
    .hv2-form-row { grid-template-columns: 1fr; gap: 0; }
    .hv2-steps li { padding-left: 58px; padding-bottom: 20px; }
    .hv2-steps li::before { width: 40px; height: 40px; font-size: 15px; border-radius: 11px; }
    .hv2-steps li:not(:last-child)::after { left: 19px; top: 46px; }
    .hv2-band { padding: 26px 20px 24px; border-radius: 16px; }
    /* pricing table scrolls horizontally inside its wrapper */
    .hv2-field { min-width: 0; max-width: 100%; }
    .hv2-table-wrap { overflow-x: auto; max-width: 100%; }
    .hv2-table-wrap table { min-width: 520px; }
    .hv2-page .hv2-wrap { padding: 0 20px; }
    .hv2-trust { gap: 14px; }
    .hv2-trust-sep { display: none; }
    .hv2-about-photo img { width: 160px; height: 160px; }
}

