/**
 * Single Service — Standard Template Stylesheet
 * Elegant, restrained, human-crafted agency editorial design.
 * Matches exact Elementor global tokens and Universal Inner Hero.
 */

:root {
    --bbg-container: 1240px;
    --bbg-gutter: clamp(16px, 3.5vw, 36px);
    --bbg-radius-hero: 28px;
    --bbg-radius-card: 24px;
    --bbg-radius-sm: 16px;
    --bbg-radius-btn: var(--e-global-button-border-radius, 10px);
    --bbg-obsidian: var(--e-global-color-primary, #0B0F17);
    --bbg-slate: var(--e-global-color-secondary, #4A4D57);
    --bbg-body: var(--e-global-color-text, #555865);
    --bbg-emerald: var(--e-global-color-accent, #14B866);
    --bbg-emerald-hover: #10B981;
    --bbg-surface: #FFFFFF;
    --bbg-warm: #FAFBFA;
    --bbg-border: #E5E5DF;
    --bbg-border-sub: rgba(15, 17, 21, 0.08);
}

.bbg-service-wrap {
    width: 100%;
    overflow-x: clip;
    color: var(--bbg-body);
    font-family: Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    background: var(--bbg-surface);
    padding: 0;
}
.bbg-service-wrap *, .bbg-service-wrap *::before, .bbg-service-wrap *::after { box-sizing: border-box; }

.bbg-container {
    max-width: var(--bbg-container);
    width: calc(100% - var(--bbg-gutter) * 2);
    margin-left: auto;
    margin-right: auto;
}

/* ── Global Typography ── */
.bbg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Apoc', Georgia, serif;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--bbg-emerald);
    margin-bottom: 14px;
}
.bbg-eyebrow__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.bbg-h2 {
    font-family: Helvetica, -apple-system, sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.028em;
    color: var(--bbg-obsidian);
    margin: 0 0 18px 0;
}

.bbg-editorial-p {
    font-size: clamp(15.5px, 1.15vw, 17px);
    line-height: 1.72;
    color: var(--bbg-body);
    margin: 0 0 16px 0;
}
.bbg-editorial-p:last-child { margin-bottom: 0; }

/* ── Section 02: Three Clarity Boxes ── */
.bbg-clarity-section {
    padding: clamp(24px, 3.5vw, 44px) 0 clamp(48px, 6vw, 80px) 0;
}
.bbg-clarity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 24px);
}
.bbg-clarity-card {
    background: #FFFFFF;
    border-radius: var(--bbg-radius-card);
    padding: clamp(28px, 3vw, 36px);
    border: 1px solid var(--bbg-border);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.bbg-clarity-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20,184,102,0.32);
    box-shadow: 0 14px 34px rgba(11,15,23,0.06);
}
.bbg-clarity-card__num {
    font-family: 'Apoc', Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--bbg-emerald);
    margin-bottom: 14px;
    text-transform: uppercase;
}
.bbg-clarity-card__title {
    font-family: Helvetica, -apple-system, sans-serif;
    font-size: clamp(18px, 1.5vw, 21px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--bbg-obsidian);
    margin: 0 0 12px 0;
}
.bbg-clarity-card__desc {
    font-size: 14.5px;
    line-height: 1.62;
    color: var(--bbg-slate);
    margin: 0;
}

/* ── Section 03 & 04: Editorial Blocks (Left-Right, Right-Left) NO POINTS ── */
.bbg-story-section {
    padding: clamp(54px, 7vw, 92px) 0;
    border-top: 1px solid var(--bbg-border);
}
.bbg-story-section--warm { background: var(--bbg-warm); }

.bbg-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 5.5vw, 72px);
    align-items: center;
}
.bbg-story-grid--reverse { direction: rtl; }
.bbg-story-grid--reverse > * { direction: ltr; }

.bbg-story-media {
    border-radius: var(--bbg-radius-card);
    overflow: hidden;
    border: 1px solid var(--bbg-border);
    background: #0B0F17;
    box-shadow: 0 16px 42px rgba(11,15,23,0.08);
}
.bbg-story-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.bbg-story-media:hover .bbg-story-img { transform: scale(1.02); }

.bbg-tech-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}
.bbg-tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(20,184,102,0.08);
    color: #0F8A4B;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(20,184,102,0.18);
}

/* ── Section 05: Solution in Three Boxes ── */
.bbg-solution-section {
    padding: clamp(60px, 8vw, 100px) 0;
    border-top: 1px solid var(--bbg-border);
    background: #FFFFFF;
}
.bbg-solution-header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto clamp(36px, 4.5vw, 56px) auto;
}
.bbg-solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2.5vw, 28px);
}
.bbg-solution-card {
    background: var(--bbg-warm);
    border-radius: var(--bbg-radius-card);
    padding: clamp(28px, 3.2vw, 40px);
    border: 1px solid var(--bbg-border);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.bbg-solution-card:hover {
    border-color: rgba(20,184,102,0.35);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(11,15,23,0.05);
}
.bbg-solution-card__step {
    font-family: 'Apoc', Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--bbg-emerald);
    letter-spacing: 0.10em;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.bbg-solution-card__title {
    font-family: Helvetica, -apple-system, sans-serif;
    font-size: clamp(19px, 1.6vw, 22px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--bbg-obsidian);
    margin: 0 0 12px 0;
}
.bbg-solution-card__desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--bbg-body);
    margin: 0;
}

/* ── Section 06: Smoothly Expanding FAQ ── */
.bbg-faq-section {
    padding: clamp(60px, 8vw, 100px) 0;
    border-top: 1px solid var(--bbg-border);
    background: var(--bbg-warm);
}
.bbg-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(36px, 5.5vw, 72px);
    align-items: flex-start;
}
.bbg-faq-intro {
    position: sticky;
    top: 120px;
}
.bbg-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bbg-faq-item {
    background: #FFFFFF;
    border-radius: var(--bbg-radius-sm);
    border: 1px solid var(--bbg-border);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.bbg-faq-item[open] {
    border-color: rgba(20,184,102,0.40);
    box-shadow: 0 8px 24px rgba(11,15,23,0.04);
}
.bbg-faq-q {
    padding: 22px 26px;
    font-family: Helvetica, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--bbg-obsidian);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
    transition: color 0.2s ease;
}
.bbg-faq-q::-webkit-details-marker { display: none; }
.bbg-faq-item:hover .bbg-faq-q { color: var(--bbg-emerald); }
.bbg-faq-chevron {
    width: 18px; height: 18px;
    color: var(--bbg-slate);
    transition: transform 0.28s cubic-bezier(0.16,1,0.3,1);
    flex-shrink: 0;
}
.bbg-faq-item[open] .bbg-faq-chevron {
    transform: rotate(180deg);
    color: var(--bbg-emerald);
}
.bbg-faq-a {
    padding: 0 26px 22px 26px;
    font-size: 14.5px;
    line-height: 1.68;
    color: var(--bbg-body);
}

/* ── Section 07: Powerful Boxed-Width Small CTA (Only ONE button) ── */
.bbg-cta-section {
    padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 8vw, 100px) 0;
    background: var(--bbg-warm);
}
.bbg-cta-box {
    background: var(--bbg-obsidian);
    border-radius: var(--bbg-radius-hero);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: clamp(48px, 6vw, 76px) clamp(24px, 4vw, 56px);
    text-align: center;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    max-width: var(--bbg-container);
    margin: 0 auto;
}
.bbg-cta-glow {
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 350px;
    background: radial-gradient(circle, rgba(20,184,102,0.22) 0%, transparent 70%);
    pointer-events: none;
}
.bbg-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}
.bbg-cta-title {
    font-family: Helvetica, -apple-system, sans-serif;
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    margin: 0 0 16px 0;
}
.bbg-cta-desc {
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 32px 0;
}
.bbg-cta-actions {
    display: flex;
    justify-content: center;
}
/* Reuses .aui-cta-btn.aui-cta-btn--primary for 100% brand consistency */

/* ── Responsive Ergonomics ── */
@media (max-width: 1024px) {
    .bbg-clarity-grid,
    .bbg-solution-grid { grid-template-columns: 1fr; gap: 16px; }
    .bbg-story-grid,
    .bbg-faq-grid { grid-template-columns: 1fr; gap: 36px; }
    .bbg-story-grid--reverse { direction: ltr; }
    .bbg-faq-intro { position: static; }
}
@media (max-width: 768px) {
    :root {
        --bbg-radius-hero: 22px;
        --bbg-radius-card: 18px;
    }
    .bbg-clarity-card,
    .bbg-solution-card { padding: 24px 20px; }
    .bbg-faq-q { padding: 18px 20px; font-size: 15px; }
    .bbg-faq-a { padding: 0 20px 18px 20px; }
    .bbg-cta-box { padding: 40px 20px; }
}
