/*
   Strategy Blueprint — Page-Specific Styles
   Uses shared design tokens from styles.css
*/

/* ─── Virio Dot Background ─── */
.bg-virio-dots {
    background-image: radial-gradient(circle, rgba(213, 180, 115, 0.10) 1px, transparent 1px);
    background-size: 26px 26px;
}

/* ─── Section 1: Hero Dark-to-Light ─── */
.sb-hero {
    background: linear-gradient(160deg, #45523E 0%, #2A3226 100%);
    position: relative;
}

.sb-hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    background: linear-gradient(to bottom, transparent, #FAF9F6);
    pointer-events: none;
    z-index: 1;
}

/* ─── Section 2: Architectural Grid ─── */
.sb-grid-col {
    padding: 3rem;
}

@media (min-width: 1024px) {
    .sb-grid-col {
        padding: 4rem;
    }
}

@media (max-width: 1023px) {
    .sb-grid-col {
        padding: 2rem 1.5rem;
    }
}

/* ─── Cinematic Scroll Classes removed in favor of standard HTML/CSS DOM structure ─── */


/* ─── Section 4: JSON Mockup ─── */
.sb-json-mockup {
    background: rgba(26, 32, 44, 0.95);
    border: 1px solid rgba(213, 180, 115, 0.25);
    border-radius: 1.5rem;
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #D5B473;
    position: relative;
    overflow: hidden;
}

.sb-json-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5rem;
    background: rgba(26, 32, 44, 1);
    border-bottom: 1px solid rgba(213, 180, 115, 0.15);
    border-radius: 1.5rem 1.5rem 0 0;
}

.sb-json-mockup .json-chrome {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.sb-json-mockup .json-chrome .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.sb-json-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background-color: #D5B473;
    animation: sb-blink 1s steps(1) infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

@keyframes sb-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.json-key { color: #FAF9F6; opacity: 0.7; }
.json-string { color: #D5B473; }
.json-number { color: #B87333; }

/* ─── Section 5: FAQ Split-Card Layout ─── */

/* Question buttons (left card) */
.sb-faq-q-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #1A202C;
    letter-spacing: 0.08em;
    opacity: 0.5;
}

.sb-faq-q-btn:hover {
    background: rgba(213, 180, 115, 0.08);
    opacity: 0.8;
}

.sb-faq-q-btn.is-active {
    opacity: 1;
    font-weight: 600;
}

.sb-faq-q-arrow {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #D5B473;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sb-faq-q-btn.is-active .sb-faq-q-arrow {
    opacity: 1;
}

.sb-faq-q-label {
    flex: 1;
}

/* Answer panels (right card) */
#sb-faq-panels {
    display: flex;
    width: 100%;
}

.sb-faq-panel {
    flex: 0 0 100%;
    display: none;
    animation: sb-fade-in 0.3s ease;
}

.sb-faq-panel.is-active {
    display: block;
}

@keyframes sb-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Section 6: CTA Button ─── */
.sb-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    background-color: #D5B473;
    color: #1A202C;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    border: 2px solid #D5B473;
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border-radius: 9999px;
}

.sb-cta-btn .btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #D5B473;
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
    z-index: 0;
    border-radius: 9999px;
}

.sb-cta-btn:hover .btn-bg {
    transform: translateX(100%);
}

.sb-cta-btn:hover {
    color: #FAF9F6;
}

.sb-cta-btn .btn-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sb-cta-btn .btn-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.sb-cta-btn:hover .btn-arrow {
    transform: translateX(6px);
}

/* ─── Entry Animations ─── */
.sb-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sb-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── AEO Section rounded corners (dark card) ─── */
#sb-aeo-section .w-\[90vw\] {
    border-radius: 2rem;
}

/* ─── Marquee Animation ─── */
@keyframes sb-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes sb-marquee-scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.sb-marquee-track {
    animation: sb-marquee-scroll 40s linear infinite;
}

.sb-marquee-track-reverse {
    animation: sb-marquee-scroll-reverse 45s linear infinite;
}

/* ─── FAQ Mobile Carousel Refinement ─── */
@media (max-width: 1023px) {
    #sb-faq-panels {
        flex-wrap: nowrap;
    }
    .sb-faq-panel {
        display: block !important;
        animation: none !important;
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }
}

/* ─── Post-CTA Marquee Refinement ─── */
.sb-marquee-track, .sb-marquee-track-reverse {
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

/* ─── Scrub Marquee Style ─── */
#sb-scrub-marquee span {
    display: inline-block;
}
