/* ==========================================================================
   Components — home hero, tabs, schedule table, timeline, flow, contact panel
   Loaded on every page after style.css.
   ========================================================================== */

/* ---------- Hero ---------- */
.b-hero {
    position: relative;
    --blueprint: rgba(11, 37, 89, .055);
    padding-top: 48px;
    background-color: var(--grey-soft);
    background-image:
        linear-gradient(var(--blueprint) 1px, transparent 1px),
        linear-gradient(90deg, var(--blueprint) 1px, transparent 1px),
        linear-gradient(rgba(11, 37, 89, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 37, 89, .03) 1px, transparent 1px);
    background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
    background-position: center top;
}
.b-hero::after {
    /* fade the grid into the white section below */
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 140px;
    background: linear-gradient(transparent, var(--white));
    pointer-events: none;
}
.b-hero > .container { position: relative; z-index: 1; }

.b-hero-inner { max-width: 920px; text-align: center; }

.b-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1.4rem;
    padding: .4rem .95rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--primary);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    box-shadow: var(--shadow-sm);
}
.b-pill-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 4px rgba(245, 130, 32, .2);
}

.b-hero h1 {
    margin-bottom: 1.6rem;
    color: var(--navy);
    font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
    line-height: 1.12;
}
.b-accent { position: relative; color: var(--primary); white-space: nowrap; }
.b-accent::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -.08em;
    height: .14em;
    border-radius: 4px;
    background: var(--orange);
}

.b-lead { max-width: 660px; margin: 0 auto 2rem; font-size: 1.1rem; }

.b-hero-actions { justify-content: center; }

.b-hero-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem .9rem;
    margin-top: 1.75rem;
    color: var(--muted);
    font-size: .925rem;
}
.b-hero-facts li { display: block; white-space: nowrap; }
.b-hero-facts li + li::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 5px; height: 5px;
    margin-right: .9rem;
    border-radius: 50%;
    background: var(--orange);
}
.b-hero-facts strong { color: var(--navy); font-weight: 600; }

/* Pillars overlap the section edge */
.b-pillars {
    display: grid;
    gap: 1rem;
    margin-top: 48px;
    transform: translateY(40px);
    margin-bottom: -8px;
}
.b-pillar {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem 1.4rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
    color: var(--slate);
    text-decoration: none;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.b-pillar:hover { transform: translateY(-4px); border-color: var(--orange); }
.b-pillar-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
}
.b-pillar-icon .icon { width: 26px; height: 26px; }
.b-pillar:nth-child(2) .b-pillar-icon { background: var(--orange); color: var(--navy); }
.b-pillar-body { display: grid; gap: .3rem; }
.b-pillar-body strong { color: var(--navy); font-family: var(--font-head); font-size: 1.1rem; }
.b-pillar-body span { font-size: .925rem; line-height: 1.5; }
.b-pillar-arrow { margin-left: auto; margin-top: .2rem; color: var(--orange-ink); transition: transform .2s; }
.b-pillar:hover .b-pillar-arrow { transform: translateX(4px); }

/* ---------- Services tabs ---------- */
.b-services { padding-top: 120px; }

.b-head-row { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.b-head-row .section-head { margin-bottom: 0; }

.b-tabs {
    display: inline-flex;
    align-self: end;
    justify-self: start;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--grey-soft);
    max-width: 100%;
}
.b-tab {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .55rem 1rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--slate);
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s, color .2s, box-shadow .2s;
}
.b-tab:hover { color: var(--primary); }
.b-tab[aria-selected="true"] { background: var(--white); color: var(--primary); box-shadow: 0 2px 8px -2px rgba(11, 29, 48, .18); }
.b-tab[aria-selected="true"] .icon { color: var(--orange-ink); }

.b-panel { display: grid; gap: 1.5rem; }
.b-panel + .b-panel { margin-top: 3rem; }        /* both visible without JS */
.js-tabs .b-panel + .b-panel { margin-top: 0; }
.b-panel[hidden] { display: none; }

.b-service-list { display: grid; align-content: start; border-top: 1px solid var(--border); }
.b-service {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: start;
    padding: 1.4rem .25rem;
    border-bottom: 1px solid var(--border);
}
.b-service h3 { margin-bottom: .3rem; color: var(--navy); font-size: 1.1rem; }
.b-service p { margin: 0; font-size: .95rem; }
.b-service .b-service-meta { margin-top: .5rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
.b-service-icon {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--orange-soft);
    color: var(--orange-ink);
}
.b-service-link {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
    transition: background-color .2s, color .2s, border-color .2s;
}
.b-service-link:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }

.b-panel-visual {
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--grey-soft);
}
.b-panel-visual img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.b-panel-visual figcaption { margin-top: .9rem; color: var(--muted); font-size: .875rem; text-align: center; }

.b-report { padding: 1.6rem; background: var(--white); box-shadow: var(--shadow); }
.b-report-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; padding-bottom: 1.1rem; border-bottom: 1px dashed var(--border); }
.b-report-head h3 { margin: 0; color: var(--navy); font-size: 1.15rem; }
.b-report-icon {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
}
.b-report-kicker {
    margin: 0;
    color: var(--orange-ink);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.b-report-list { display: grid; gap: .5rem; }
.b-report-list li {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .85rem;
    border-radius: 10px;
    background: var(--grey-soft);
    color: var(--navy);
    font-size: .95rem;
    font-weight: 500;
}
.b-report-list .icon {
    width: 22px; height: 22px;
    padding: 4px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--navy);
    stroke-width: 3;
}
.b-report-note { margin: 1.1rem 0 0; color: var(--muted); font-size: .85rem; }

/* ---------- About ---------- */
.b-about { display: grid; gap: 2rem; align-items: center; }
.b-about-figure {
    display: grid;
    place-items: center;
    align-content: center;
    gap: .25rem;
    aspect-ratio: 1;
    max-width: 260px;
    width: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--white) 58%, transparent 59%),
        conic-gradient(var(--orange) 0 25%, var(--primary) 25% 100%);
    box-shadow: var(--shadow);
    text-align: center;
}
.b-about-figure strong {
    color: var(--primary);
    font-family: var(--font-head);
    font-size: clamp(3.5rem, 2.5rem + 4vw, 5rem);
    font-weight: 800;
    line-height: 1;
}
.b-about-figure span { max-width: 9rem; color: var(--slate); font-weight: 600; line-height: 1.3; }
.b-about-copy p:not(.eyebrow) { font-size: 1.025rem; }

.b-flow { display: grid; gap: .75rem; margin-top: 3rem; }
.b-flow-step {
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
}
.b-flow-step h3 { margin: .55rem 0 .35rem; color: var(--navy); font-size: 1.05rem; }
.b-flow-step p { margin: 0; font-size: .925rem; }
.b-flow-step--accent { border-color: transparent; background: var(--primary); color: #D6DEE8; }
.b-flow-step--accent h3 { color: var(--white); }
.b-flow-tag {
    display: inline-block;
    padding: .15rem .6rem;
    border-radius: 999px;
    background: var(--orange-soft);
    color: var(--orange-ink);
    font-size: .75rem;
    font-weight: 700;
}
.b-flow-tag--alt { background: rgba(11, 37, 89, .08); color: var(--primary); }
.b-flow-tag--light { background: rgba(255, 255, 255, .14); color: var(--white); }
.b-flow-arrow { display: grid; place-items: center; color: var(--orange); }
.b-flow-arrow .icon { transform: rotate(90deg); width: 24px; height: 24px; }

/* ---------- Split layout (Why / Process) ---------- */
.b-split { display: grid; gap: 2.5rem; }
.b-split .section-head { margin-bottom: 0; }
.b-split .section-head .btn { margin-top: 1.5rem; }

.b-why { counter-reset: why; }
.b-why li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}
.b-why li:first-child { border-top: 1px solid var(--border); }
.b-why h3 { margin-bottom: .3rem; color: var(--navy); font-size: 1.15rem; }
.b-why p { margin: 0; }
.b-why-num {
    color: var(--orange);
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    min-width: 2.2ch;
}

/* ---------- Coverage schedule ---------- */
.b-schedule {
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
}
.b-schedule-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .25rem 1rem;
    padding: .8rem 1.1rem;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.b-schedule-title span:last-child { color: #F9B57C; }   /* light brand orange: AA on #0B2559 */

.b-table-wrap { overflow-x: auto; }
.b-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.b-table th, .b-table td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--grey); text-align: left; vertical-align: top; }
.b-table thead th {
    background: var(--grey-soft);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.b-table tbody tr:last-child > * { border-bottom: 0; }
.b-table tbody tr:hover { background: #FBFCFD; }
.b-table tbody th { color: var(--navy); font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.b-ref { color: var(--orange-ink); font-family: var(--font-head); font-weight: 700; width: 1%; white-space: nowrap; }

.b-sub { margin: 2.75rem 0 1.1rem; color: var(--navy); font-size: 1rem; text-align: center; }

.b-industries { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.b-industries li {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font-size: .925rem;
    font-weight: 600;
}
.b-industries .icon { color: var(--orange-ink); }

/* ---------- Timeline ---------- */
.b-timeline { position: relative; display: grid; gap: 1.25rem; }
.b-timeline::before {
    content: "";
    position: absolute;
    left: 21px; top: 10px; bottom: 10px;
    width: 2px;
    background: repeating-linear-gradient(var(--orange) 0 6px, transparent 6px 12px);
}
.b-timeline li {
    position: relative;
    padding: 1.3rem 1.4rem 1.3rem 1.4rem;
    margin-left: 64px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
}
.b-timeline h3 { margin-bottom: .3rem; color: var(--navy); font-size: 1.1rem; }
.b-timeline p { margin: 0; }
.b-timeline-dot {
    position: absolute;
    left: -64px; top: 1.1rem;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border: 2px solid var(--orange);
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    font-family: var(--font-head);
    font-weight: 800;
}

/* ---------- FAQ (two columns) ---------- */
.b-faq { display: grid; gap: .75rem; align-items: start; }

/* ---------- CTA + contact ---------- */
.b-contact {
    display: grid;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.b-contact-cta {
    position: relative;
    padding: 2.25rem 1.5rem;
    background: linear-gradient(140deg, var(--navy), var(--primary));
    color: #D6DEE8;
    overflow: hidden;
}
.b-contact-cta::after {
    content: "";
    position: absolute;
    right: -60px; top: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: repeating-linear-gradient(-45deg, rgba(245, 130, 32, .2) 0 3px, transparent 3px 16px);
    pointer-events: none;
}
.b-contact-cta > * { position: relative; }
.b-contact-cta h2 { color: var(--white); }
.b-quote {
    margin-bottom: 1.25rem;
    padding-left: 1rem;
    border-left: 3px solid var(--orange);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    font-style: italic;
}
.b-send { display: grid; gap: .6rem; margin-top: 1.5rem; }
.b-send li {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .85rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    color: var(--white);
    font-size: .925rem;
}
.b-send .icon { color: var(--orange); }

.b-contact-details {
    display: grid;
    gap: .85rem;
    align-content: start;
    padding: 2rem 1.5rem;
    background: var(--white);
}
.b-contact-details h3 { margin-bottom: .25rem; color: var(--navy); }
.b-contact-btn { justify-self: start; margin-top: .5rem; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 600px) {
    .b-send { grid-template-columns: 1fr 1fr; }
    .b-contact-cta, .b-contact-details { padding: 2.75rem; }
}

@media (min-width: 900px) {
    .b-hero { padding-top: 80px; }
    .b-pillars { grid-template-columns: repeat(3, 1fr); margin-top: 64px; }
    .b-services { padding-top: 136px; }

    .b-head-row { grid-template-columns: 1fr auto; align-items: end; gap: 3rem; }
    .b-tabs { justify-self: end; }

    .b-panel { grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; }

    .b-about { grid-template-columns: auto 1fr; gap: 4rem; }
    .b-about-figure { width: 260px; }

    .b-flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; }
    .b-flow-arrow .icon { transform: none; }

    .b-split { grid-template-columns: 1fr 1.35fr; gap: 4.5rem; align-items: start; }
    .b-sticky { position: sticky; top: calc(var(--header-h) + 40px); }

    .b-faq { grid-template-columns: 1fr 1fr; gap: 1.25rem; }

    .b-contact { grid-template-columns: 1.15fr 1fr; }
    .b-contact-cta, .b-contact-details { padding: 3.25rem; }
}

@media (max-width: 479px) {
    .b-accent { white-space: normal; }
    .b-tabs { display: flex; width: 100%; }
    .b-tab { flex: 1; justify-content: center; padding-inline: .5rem; font-size: .875rem; }
    .b-tab .icon { display: none; }
    .b-hero-facts { flex-direction: column; align-items: center; }
    .b-hero-facts li + li::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .b-pillar:hover { transform: none; }
}
