/* ==========================================
   MBIZ CONSULTING - APPLICATION DEVELOPMENT
   Same UI system as Content Marketing / Branding
   Brand: blue #0286E7, teal #02BFC9, navy #041C4C, white
   ========================================== */

.bd-page {
    --bd-blue: #0286E7;
    --bd-teal: #02BFC9;
    --bd-navy: #041C4C;
    --bd-text: #475569;
    --bd-line: #E2E8F0;
    --bd-soft: #F5F9FD;
    --bd-chip: #DCE6F1;
    background: #fff;
    color: var(--bd-text);
    font-family: var(--font-main, 'Gilroy', 'Poppins', system-ui, sans-serif);
}

.bd-page h1,
.bd-page h2,
.bd-page h3 {
    font-family: var(--font-heading, 'Gilroy', 'Poppins', system-ui, sans-serif);
    color: var(--bd-navy);
    letter-spacing: -0.02em;
}

.bd-eyebrow,
.bd-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bd-blue);
    margin-bottom: 12px;
}

.bd-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.bd-heading-left {
    text-align: left;
    margin: 0;
}

.bd-heading h2,
.bd-overview-grid h2 {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 800;
    margin: 0;
}

.bd-heading-note {
    margin: 12px 0 0;
    font-size: 15.5px;
    line-height: 1.6;
}

/* ---------- 01 HERO ---------- */
.bd-hero {
    padding: 52px 0 40px;
    border-bottom: 1px solid var(--bd-line);
    overflow: hidden;
}

.bd-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.bd-hero h1 {
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 18px;
}

.bd-hero-copy p {
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 540px;
}

.bd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bd-hero-media {
    margin: 0;
}

.bd-hero-media > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    border-radius: 12px;
}

.bd-caption {
    margin-top: 10px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748B;
}

/* Hero fallback phones when no image uploaded */
.ad-hero-fallback {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 5 / 4;
    margin: 0 auto;
    background: linear-gradient(145deg, #f5f9fd, #e8f1f8);
    border-radius: 16px;
    border: 1px solid var(--bd-line);
}

.ad-fallback-phone {
    position: absolute;
    width: 38%;
    aspect-ratio: 9 / 17;
    border-radius: 18px;
    padding: 6px;
    background: linear-gradient(145deg, #f7fbff, #a9bfd2);
    border: 2px solid #9db4ca;
    box-shadow: 0 16px 36px rgba(4, 28, 76, 0.18);
}

.ad-fallback-back {
    left: 18%;
    top: 12%;
    transform: rotate(-8deg);
    z-index: 1;
}

.ad-fallback-front {
    right: 16%;
    top: 18%;
    transform: rotate(5deg);
    z-index: 2;
}

.ad-fallback-screen {
    height: 100%;
    border-radius: 12px;
    background: #f8fbff;
    padding: 18px 12px 12px;
}

.ad-fallback-screen span {
    display: block;
    height: 8px;
    width: 70%;
    border-radius: 4px;
    background: #c5d5e4;
    margin-bottom: 8px;
}

.ad-fallback-screen span.short {
    width: 45%;
    height: 5px;
    background: #dce6ef;
}

.ad-fallback-screen i {
    display: block;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e1f7f8, #e4f0ff);
    margin-top: 12px;
}

/* ---------- 02 OVERVIEW ---------- */
.bd-overview {
    padding: 64px 0 56px;
}

.bd-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: start;
}

.bd-overview-grid p {
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
}

/* ---------- 03 SERVICES ---------- */
.bd-services {
    background: var(--bd-soft);
    border-top: 1px solid var(--bd-line);
    border-bottom: 1px solid var(--bd-line);
    padding: 64px 0;
}

.bd-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.bd-service {
    background: #fff;
    border: 1px solid var(--bd-line);
    border-top: 3px solid var(--bd-teal);
    border-radius: 12px;
    padding: 22px 20px;
}

.bd-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #E6F3FE;
    color: var(--bd-blue);
    margin-bottom: 14px;
}

.bd-service-icon svg {
    width: 22px;
    height: 22px;
}

.bd-service h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px;
}

.bd-service p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Platforms */
.ad-platforms {
    padding: 64px 0;
}

.ad-platform-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ad-platform-card {
    border-top-color: var(--bd-blue);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 160px;
}

.ad-platform-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 72px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e1f7f8, #e4f0ff);
    color: #057ebc;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

/* ---------- 05 BENEFITS / FEATURES ---------- */
.bd-benefits {
    background: var(--bd-navy);
    padding: 64px 0;
}

.bd-benefits .bd-kicker {
    color: var(--bd-teal);
}

.bd-benefits h2 {
    color: #fff;
}

.bd-benefit-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 20px;
}

.bd-benefit-grid li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.bd-benefit-grid svg {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: var(--bd-teal);
}

/* ---------- 06 PROCESS ---------- */
.bd-process {
    background: var(--bd-soft);
    padding: 64px 0;
}

.bd-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    position: relative;
}

.ad-timeline-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
}

.ad-timeline-6::before {
    display: none;
}

.bd-timeline::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--bd-line);
}

.bd-timeline li {
    position: relative;
    text-align: center;
    padding: 0 6px;
}

.ad-timeline-6 li {
    text-align: left;
    padding: 0;
    background: #fff;
    border: 1px solid var(--bd-line);
    border-radius: 12px;
    padding: 22px 20px;
}

.bd-step-num {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bd-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 0 0 6px var(--bd-soft);
}

.ad-timeline-6 .bd-step-num {
    box-shadow: none;
}

.bd-timeline h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 8px;
}

.bd-timeline p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.bd-related {
    margin: 40px auto 0;
    max-width: 700px;
    text-align: center;
    font-size: 15.5px;
    line-height: 1.7;
}

.bd-related a {
    color: var(--bd-blue);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.bd-related a:hover,
.bd-related a:focus-visible {
    color: #0269B8;
}

/* ---------- 07 FAQ ---------- */
.bd-faq {
    background: #fff;
    padding: 64px 0;
}

.bd-faq-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
}

.bd-faq-item {
    border-bottom: 1px solid var(--bd-line);
}

.bd-faq-item:first-child {
    border-top: 1px solid var(--bd-line);
}

.bd-faq-item summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding: 18px 36px 18px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--bd-navy);
}

.bd-faq-item summary::-webkit-details-marker {
    display: none;
}

.bd-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 14px;
    font-size: 24px;
    font-weight: 400;
    color: var(--bd-blue);
}

.bd-faq-item[open] summary::after {
    content: "\2212";
}

.bd-faq-item summary:focus-visible {
    outline: 2px solid var(--bd-blue);
    outline-offset: 2px;
}

.bd-faq-item p {
    margin: 0;
    padding: 0 0 18px;
    font-size: 15.5px;
    line-height: 1.7;
}

/* ---------- 08 BANNER ---------- */
.bd-page .bd-banner {
    background: var(--bd-navy);
    padding: 52px 0;
}

.bd-page .bd-banner h2 {
    color: #fff;
}

/* ---------- TABLET ---------- */
@media (max-width: 1024px) {
    .bd-service-grid,
    .ad-platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bd-benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bd-overview-grid {
        gap: 36px;
    }
    .bd-faq-inner {
        gap: 32px;
    }
    .ad-timeline-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- MOBILE ---------- */
@media (max-width: 860px) {
    .bd-hero {
        padding: 34px 0 28px;
    }
    .bd-hero-grid,
    .bd-faq-inner,
    .bd-overview-grid {
        grid-template-columns: 1fr;
    }
    .bd-overview-grid {
        gap: 18px;
    }
    .bd-hero-media > img {
        max-height: 320px;
    }
    .bd-overview,
    .bd-services,
    .ad-platforms,
    .bd-benefits,
    .bd-process,
    .bd-faq {
        padding: 44px 0;
    }
    .bd-heading {
        margin-bottom: 28px;
    }
    .ad-timeline-6 {
        grid-template-columns: 1fr;
    }
    .bd-related {
        margin-top: 32px;
    }
}

@media (max-width: 560px) {
    .bd-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .bd-service-grid,
    .ad-platform-grid {
        gap: 12px;
    }
    .bd-service {
        padding: 16px 14px;
    }
    .bd-service-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
    }
    .bd-service-icon svg {
        width: 20px;
        height: 20px;
    }
    .bd-service h3 {
        font-size: 16px;
    }
    .bd-service p {
        font-size: 14px;
    }
    .bd-benefit-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .bd-faq-item summary {
        font-size: 16px;
    }
}

@media (max-width: 340px) {
    .bd-service-grid,
    .ad-platform-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bd-page * {
        transition: none !important;
    }
}
