/* =============================================================
   Broker Hosting Page — index.css
   Prefix: bh- (broker-hosting) to avoid conflicts with site globals
   ============================================================= */

/* ---------- Variables ---------- */
:root {
    --bh-dark:        #0a0e1b;
    --bh-blue:        #005da2;
    --bh-blue-cta:    #0d266e;
    --bh-orange:      #ff9c00;
    --bh-orange-dk:   #ea6c04;
    --bh-amber-bg:    #fffbeb;
    --bh-grey-bg:     #f3f6fb;
    --bh-border:      #e5e7eb;
    --bh-text:        #1f2937;
    --bh-muted:       #6b7280;
    --bh-white:       #ffffff;
    --bh-radius:      12px;
    --bh-shadow:      0 4px 24px rgba(0,0,0,0.08);
}

/* ---------- Reset helpers ---------- */
.bh-hero *, .bh-pricing *, .bh-why *, .bh-features *, .bh-built *, .bh-cta * {
    box-sizing: border-box;
}

/* ---------- Container ---------- */
.bh-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.bh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    white-space: nowrap;
    line-height: 1;
    gap: 8px;
}
.bh-btn--primary {
    background: var(--bh-orange);
    color: var(--bh-white);
    border-color: var(--bh-orange);
}
.bh-btn--primary:hover {
    background: var(--bh-orange-dk);
    border-color: var(--bh-orange-dk);
    color: var(--bh-white);
    text-decoration: none;
}
.bh-btn--ghost {
    background: transparent;
    color: var(--bh-white);
    border-color: rgba(255,255,255,0.35);
}
.bh-btn--ghost:hover {
    background: rgba(255,255,255,0.08);
    color: var(--bh-white);
    text-decoration: none;
}
.bh-btn--white {
    background: var(--bh-white);
    color: var(--bh-dark);
    border-color: var(--bh-white);
}
.bh-btn--white:hover {
    background: #f1f3f5;
    color: var(--bh-dark);
    text-decoration: none;
}
.bh-btn--full {
    width: 100%;
    display: flex;
}

/* ---------- Accent colour ---------- */
.bh-accent { color: var(--bh-orange); line-height: 1.1; }

/* ---------- Badge (hero) ---------- */
.bh-badge {
    display: inline-block;
    background: rgba(249,115,22,0.12);
    color: #fb923c;
    border: 1px solid rgba(249,115,22,0.28);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

/* ---------- Section header ---------- */
.bh-section-head {
    text-align: center;
    margin-bottom: 60px;
}
.bh-section-head h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--bh-text);
    margin: 0 0 14px;
    line-height: 1.2;
}
.bh-section-head p {
    font-size: 18px;
    color: var(--bh-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ---------- Check list ---------- */
.bh-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bh-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
    color: var(--bh-text);
    line-height: 1.45;
}
.bh-checklist li::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005da2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.bh-pc--hot .bh-checklist li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E");
}

/* =============================================================
   HERO
   ============================================================= */
.bh-hero {
    background: var(--bh-white);
    padding: 80px 0 72px;
    overflow: hidden;
}
.bh-hero .bh-container {
    position: relative;
}
.bh-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Left text */
.bh-hero__title {
    font-size: 56px;
    font-weight: 800;
    color: var(--bh-text);
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}
.bh-hero__desc {
    font-size: 18px;
    line-height: 1.7;
    color: var(--bh-muted);
    margin-bottom: 36px;
    max-width: 380px;
}
.bh-hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
/* Outline button for hero on white bg */
.bh-btn--outline {
    background: transparent;
    color: var(--bh-text);
    border: 2px solid #d1d5db;
    border-radius: 100px;
}
.bh-btn--outline:hover {
    background: #f9fafb;
    color: var(--bh-text);
    text-decoration: none;
}
/* Primary pill shape in hero */
.bh-hero .bh-btn--primary {
    border-radius: 100px;
}

/* Light card widget */
.bh-hero__card {
    background: var(--bh-white);
    border-radius: 16px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    padding: 24px;
}
.bh-hero__card-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}
.bh-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}
.bh-dot--r { background: #ff5f57; }
.bh-dot--y { background: #ffbd2e; }
.bh-dot--g { background: #28ca41; }
.bh-hero__card-photo {
    width: 100%;
    line-height: 0;
}
.bh-hero__card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
.bh-hero__card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
}
.bh-hero__card-stat {
    text-align: center;
    padding: 0 12px;
}
.bh-hero__card-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--bh-text);
    line-height: 1;
}
.bh-hero__card-stat span {
    display: block;
    font-size: 14px;
    color: var(--bh-muted);
    margin-top: 5px;
}

/* =============================================================
   PRICING
   ============================================================= */
.bh-pricing {
    padding: 96px 0;
    background: var(--bh-white);
}
.bh-pricing__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 860px;
    margin: 0 auto;
}

/* Card base */
.bh-pc {
    padding: 40px 36px;
    border: 1.5px solid var(--bh-border);
    border-radius: 20px;
    background: var(--bh-white);
    position: relative;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.bh-pc--hot {
    border: 2px solid var(--bh-orange);
    background: var(--bh-amber-bg);
}
/* Pill badge — replaces ribbon */
.bh-pc__badge {
    position: absolute;
    top: 16px;
    right: 20px;
    background: var(--bh-orange);
    color: var(--bh-white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 5px 16px;
    border-radius: 100px;
    white-space: nowrap;
}
/* Card icon box */
.bh-pc__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.bh-pc__icon svg {
    width: 24px;
    height: 24px;
}
.bh-pc__icon--blue {
    background: #eef0fb;
    color: #4659c9;
}
.bh-pc__icon--orange {
    background: var(--bh-orange);
    color: var(--bh-white);
}
.bh-pc__type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bh-muted);
    margin: 0 0 14px;
}
.bh-pc--hot .bh-pc__type { color: var(--bh-orange); }

.bh-pc__price {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    margin-bottom: 16px;
}
.bh-pc__sym {
    font-size: 28px;
    font-weight: 700;
    color: var(--bh-text);
    line-height: 1;
    padding-bottom: 8px;
}
.bh-pc__num {
    font-size: 68px;
    font-weight: 800;
    color: var(--bh-text);
    line-height: 0.88;
}
.bh-pc__suf {
    font-size: 14px;
    color: var(--bh-muted);
    padding-bottom: 10px;
    line-height: 1.3;
    min-width: 0;
    width: 100%;
    margin-left: 8px;
}
.bh-pc__desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--bh-muted);
    margin: 0 0 22px;
}
.bh-pc .bh-checklist {
    margin-bottom: 32px;
}

/* =============================================================
   WHY PARTNER / STEPS
   ============================================================= */
.bh-why {
    padding: 96px 0;
    background: var(--bh-white);
}
.bh-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.bh-step__img {
    border-radius: 16px;
    height: 260px;
    display: flex;
    align-items: flex-end;
    padding: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    background: #1d2235;
}
.bh-step__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}
.bh-step__img--1 { background: #3b4fd4; }
.bh-step__img--2 { background: #0284c7; }
.bh-step__img--3 { background: #059669; }
.bh-step__num {
    width: 44px;
    height: 44px;
    background: var(--bh-orange);
    color: var(--bh-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 14px;
}
.bh-step h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--bh-text);
    margin: 0 0 10px;
    line-height: 1.35;
}
.bh-step p {
    font-size: 16px;
    color: var(--bh-muted);
    line-height: 1.65;
    margin: 0;
}

/* =============================================================
   FEATURES
   ============================================================= */
.bh-features {
    padding: 96px 0;
}
.bh-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bh-feat {
    background: var(--bh-white);
    border: 1px solid #F3F4F6;
    border-radius: 16px;
    padding: 30px 28px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.18s;
}
.bh-feat:nth-child(1) {
    background-color: #FFF7ED;
}
.bh-feat__icon {
    width: 48px;
    height: 48px;
    background: rgba(249,115,22,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--bh-orange);
    transition: background-color 0.18s, color 0.18s;
}
.bh-feat:nth-child(1) .bh-feat__icon {
    background-color: var(--bh-orange);
    color: var(--bh-white);
}
.bh-feat__icon svg {
    width: 22px;
    height: 22px;
}
.bh-feat h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--bh-text);
    margin: 0 0 10px;
    line-height: 1.35;
}
.bh-feat p {
    font-size: 16px;
    color: var(--bh-muted);
    line-height: 1.65;
    margin: 0;
}

/* =============================================================
   BUILT FOR BROKERS
   ============================================================= */
.bh-built {
    padding: 96px 0;
    background: var(--bh-white);
}
.bh-built__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}
.bh-built__text h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--bh-text);
    line-height: 1.15;
    margin: 0 0 16px;
}
.bh-built__text > p {
    font-size: 18px;
    color: var(--bh-muted);
    line-height: 1.75;
    margin: 0 0 28px;
}
.bh-built__cta {
    border-radius: 100px;
    margin-bottom: 36px;
}

/* Accordion feature list */
.bh-built__features {
    border-top: 1px solid var(--bh-border);
}
.bh-built__feat {
    border-bottom: 1px solid var(--bh-border);
}
.bh-built__feat-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 20px;
    font-weight: 500;
    color: var(--bh-muted);
    transition: color 0.15s;
}
.bh-built__feat-trigger:hover {
    color: var(--bh-text);
}
.bh-built__feat--open .bh-built__feat-trigger {
    font-weight: 700;
    color: var(--bh-text);
}
.bh-built__feat-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.22s ease;
    color: var(--bh-muted);
}
.bh-built__feat--open .bh-built__feat-icon {
    transform: rotate(180deg);
    color: var(--bh-orange);
}
.bh-built__feat-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
    overflow: hidden;
    padding-bottom: 0;
    transition: padding-bottom 0.25s ease;
}
.bh-built__feat--open .bh-built__feat-body {
    grid-template-rows: 1fr;
    padding-bottom: 16px;
}
.bh-built__feat-body > p {
    min-height: 0;
    font-size: 16px;
    color: var(--bh-muted);
    line-height: 1.65;
}

/* Right image */
.bh-built__img {
    border-radius: 20px;
    overflow: hidden;
    background: #f3f4f6;
}
.bh-built__box {
    background: #f0f1f5;
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
/* Photo stack — all images pre-rendered, toggled by opacity */
.bh-built__photo-stack {
    display: grid;
    width: 100%;
    max-width: 400px;
}
.bh-built__photo-img {
    grid-area: 1 / 1;
    width: 100%;
    display: block;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.bh-built__photo-img.bh-built__photo--active {
    opacity: 1;
}

.bh-modal-open,
.bh-modal-open body {
    overflow: hidden;
}

/* =============================================================
   ENQUIRY MODAL
   ============================================================= */
.bh-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    overflow-y: auto;
    padding: 40px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.bh-modal[hidden] {
    display: none;
}
.bh-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}
.bh-modal__wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    margin: auto;
}
.bh-modal__panel {
    background: var(--bh-white);
    border-radius: 20px;
    padding: 36px 36px 32px;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
}
/* Animate in */
.bh-modal:not([hidden]) .bh-modal__panel {
    animation: bh-modal-in 0.22s ease;
}
@keyframes bh-modal-in {
    from { opacity: 0; transform: translateY(-12px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
.bh-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bh-muted);
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}
.bh-modal__close:hover {
    background: var(--bh-grey-bg);
    color: var(--bh-text);
}
.bh-modal__close svg {
    width: 18px;
    height: 18px;
}
.bh-modal__title {
    font-size: 26px;
    font-weight: 800;
    color: var(--bh-text);
    margin: 0 0 10px;
    line-height: 1.2;
    padding-right: 36px;
}
.bh-modal__subtitle {
    font-size: 15px;
    color: var(--bh-muted);
    line-height: 1.65;
    margin: 0 0 28px;
}
.bh-modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bh-modal__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.bh-modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bh-modal__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--bh-text);
    line-height: 1;
}
.bh-modal__req {
    color: var(--bh-orange);
}
.bh-modal__input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--bh-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--bh-text);
    background: var(--bh-white);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s;
    font-family: inherit;
}
.bh-modal__input::placeholder {
    color: #b0b7c3;
}
.bh-modal__input:focus {
    border-color: var(--bh-orange);
    box-shadow: 0 0 0 3px rgba(255,156,0,0.15);
}
.bh-modal__input.bh-modal__input--error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.bh-modal__textarea {
    resize: vertical;
    min-height: 96px;
}
/* Radio group */
.bh-modal__radios {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}
.bh-modal__radio {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1.5px solid var(--bh-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bh-text);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}
.bh-modal__radio:hover {
    border-color: var(--bh-orange);
}
.bh-modal__radio input[type="radio"] {
    accent-color: var(--bh-orange);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
}
.bh-modal__radio:has(input:checked) {
    border-color: var(--bh-orange);
    background: rgba(255,156,0,0.07);
}
/* Submit */
.bh-modal__submit {
    border-radius: 100px;
    padding: 16px 28px;
    font-size: 16px;
    margin-top: 4px;
}
.bh-modal__note {
    text-align: center;
    font-size: 13px;
    color: var(--bh-muted);
    margin: 0;
    line-height: 1.4;
}

/* =============================================================
   CTA STRIP
   ============================================================= */
.bh-cta {
    background: #2d6cc4;
    padding: 80px 24px;
    text-align: center;
}
.bh-cta h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--bh-white);
    margin: 0 0 16px;
}
.bh-cta p {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    margin: 0 0 36px;
}
.bh-cta .bh-btn--white {
    border-radius: 12px;
    padding: 16px 36px;
    font-size: 16px;
    color: #111827;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* =============================================================
   RESPONSIVE — Tablet ≤ 1024px
   ============================================================= */
@media (max-width: 1024px) {
    .bh-hero__title  { font-size: 42px; }
    .bh-features__grid { grid-template-columns: repeat(2, 1fr); }
    .bh-built__inner { gap: 48px; }
    .bh-built__text h2 { font-size: 34px; }
}

/* =============================================================
   RESPONSIVE — Mobile ≤ 768px
   ============================================================= */
@media (max-width: 768px) {
    .bh-hero { padding: 60px 0 48px; }
    .bh-hero__inner   { grid-template-columns: 1fr; gap: 40px; }
    .bh-hero__title   { font-size: 42px; }
    .bh-hero__desc    { max-width: 100%; }

    .bh-pricing       { padding: 64px 0; }
    .bh-pricing__grid { grid-template-columns: 1fr; max-width: 480px; }

    .bh-why    { padding: 64px 0; }
    .bh-steps  { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

    .bh-features       { padding: 64px 0; }
    .bh-features__grid { grid-template-columns: repeat(2, 1fr); }

    .bh-built       { padding: 64px 0; }
    .bh-built__inner { grid-template-columns: 1fr; gap: 40px; }
    .bh-built__text h2 { font-size: 30px; }

    .bh-section-head h2 { font-size: 28px; }

    .bh-modal__panel  { padding: 28px 24px 24px; }
    .bh-modal__row    { grid-template-columns: 1fr; gap: 16px; }
    .bh-modal__title  { font-size: 22px; }
}

/* =============================================================
   RESPONSIVE — Small mobile ≤ 480px
   ============================================================= */
@media (max-width: 480px) {
    .bh-container { padding: 0 16px; }

    .bh-hero__title { font-size: 32px; }
    .bh-hero__cta { flex-direction: column; }
    .bh-hero__cta .bh-btn { width: 100%; }

    .bh-pc        { padding: 28px 22px; }
    .bh-pc__num   { font-size: 52px; }

    .bh-features__grid { grid-template-columns: 1fr; }

    .bh-section-head h2 { font-size: 24px; }
    .bh-cta h2 { font-size: 22px; }

    .bh-hero__card-img { height: 200px; }

    .bh-modal__panel  { padding: 24px 16px 20px; border-radius: 16px; }
    .bh-modal__title  { font-size: 20px; }
    .bh-modal__radios { gap: 8px; }
    .bh-modal__radio  { font-size: 12px; padding: 7px 12px; }
    .bh-modal__submit { font-size: 15px; padding: 14px 24px; }
}



