/* Design System variables for CB Digital page */
:root {
    --bg: #05060e;
    --surface: #0b0e1f;
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.68);
    --border: rgba(255,255,255,0.12);
    --primary: #00d4ff;
    --primaryHover: #00b7e0;
    --focusRing: #0061ff;
}

/* Containers and spacing */
.section { padding: 72px 0; }
@media (max-width: 768px) { .section { padding: 48px 0; } }
.section-content { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 840px; }

/* Accessible focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 3px solid var(--focusRing); outline-offset: 2px; border-radius: 6px; }

/* Cards */
.glow-card,
.service-card,
.neo-card,
.case-card,
.work-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 28px rgba(5,10,40,0.35); }
.glow-card, .neo-card, .case-card, .work-card { padding: 16px; }
.glow-card .card-tag { font-size: 0.8rem; color: var(--primary); font-weight: 600; }

/* Buttons */
.btn.primary { background: var(--primary); color: #06101a; border: 1px solid transparent; }
.btn.primary:hover { background: var(--primaryHover); }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Hero: panel as 3-col grid on desktop, 2-col tablet, 1-col mobile */
.hero-panel { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); align-items: start; }
@media (max-width: 1200px) { .hero-panel { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .hero-panel { grid-template-columns: 1fr; } }
.hero-copy { max-width: 840px; }
.hero-copy .hero-subtitle { color: var(--muted); font-size: 0.95rem; }
.hero-copy .hero-highlights { margin: 12px 0; }
.hero-copy .hero-highlights li { margin-bottom: 6px; color: var(--muted); }

/* Overall hero grid layout: two columns on desktop, stacked on mobile */
.hero-digital .hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .hero-digital .hero-grid { grid-template-columns: 1fr; } }
/* Fit hero to viewport height minus header */
.hero-digital.section .section-content { min-height: calc(100vh - 120px); display: grid; align-items: center; }

/* Solutions grid */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }
.service-card .service-icon { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(0,212,255,0.12); border: 1px solid var(--border); border-radius: 10px; color: var(--primary); font-weight: 700; }
.service-card h3 { color: var(--text); font-size: 1rem; margin: 8px 0; }
.service-card p { color: var(--muted); font-size: 0.85rem; }

/* Two-column info blocks */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Lists */
.bullet-list { display: grid; gap: 8px; color: var(--muted); }
.bullet-list li { line-height: 1.5; }

/* Footer grid responsive */
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-column h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 8px; }
.footer-column a, .footer-column span { color: var(--muted); line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; }

/* Footer meta inline: regulatory + copyright */
.footer-bottom .footer-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }
.footer-bottom .footer-meta .compliance-inline { color: var(--muted); }
.footer-bottom .footer-meta .copyright-inline { color: var(--muted); }

/* Footer links inline with wrap */
.footer-bottom .footer-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.footer-bottom .footer-links a { color: var(--muted); text-decoration: none; }
.footer-bottom .footer-links a:hover { color: var(--primary); }

/* Footer socials: icon + name inline */
.footer-socials .social-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-socials .social-links li { margin: 0; }
.footer-socials .social-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); }
.footer-socials .social-links a:hover { color: var(--primary); }
.footer-socials .social-links svg { width: 20px; height: 20px; flex: 0 0 20px; }

/* Hero panel: 2-col desktop, 1-col mobile with better spacing */
.hero-panel { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); align-items: stretch; }
@media (max-width: 1200px) { .hero-panel { grid-template-columns: 1fr; } }

/* Hero card wrappers for flexible positioning */
.hero-card-wrapper { display: flex; flex-direction: column; }
.hero-panel > .hero-card-wrapper:nth-child(3) { grid-column: 1 / -1; max-width: 100%; }
@media (max-width: 1200px) { .hero-panel > .hero-card-wrapper:nth-child(3) { grid-column: auto; } }

/* Hero cards with generous padding and clear structure */
.hero-card { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
    padding: 2rem;
    min-height: 100%;
}
.hero-card .hero-card-title { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--text); 
    margin: 0; 
    padding: 0;
    line-height: 1.2;
}
.hero-card-items { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    gap: 1.2rem;
}
.hero-card-items li { 
    margin: 0; 
    padding: 0; 
    line-height: 1.6; 
    color: var(--muted); 
    font-size: 0.95rem;
}
.hero-card-items strong { 
    display: block; 
    color: var(--text); 
    font-weight: 700; 
    font-size: 0.95rem; 
    margin-bottom: 0.4rem;
}

/* Results list with checkmarks */
.hero-card-items.hero-results { gap: 1rem; }
.hero-card-items.hero-results li { 
    display: flex; 
    align-items: flex-start; 
    gap: 0.8rem; 
    margin: 0; 
    padding: 0;
}
.hero-card-items.hero-results .check { 
    display: inline-flex; 
    flex-shrink: 0; 
    width: 20px; 
    height: 20px; 
    align-items: center; 
    justify-content: center; 
    background: rgba(0, 212, 255, 0.15); 
    border: 1px solid var(--primary); 
    border-radius: 3px; 
    color: var(--primary); 
    font-weight: 700; 
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

/* Hidden utility and toast */
.is-hidden { display: none !important; }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; box-shadow: 0 18px 42px rgba(5,10,40,0.5); z-index: 999; }
.toast.success { border-color: #1fdd66; }

/* ========== CB Digital - Novas Seções ========== */

/* Stack Tecnológico */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-category {
    background: rgba(15, 25, 55, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tech-category:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
    transform: translateY(-3px);
}

.tech-category h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #00d4ff;
    font-weight: 600;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tech-badge:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.6);
    transform: scale(1.05);
}

/* Testimonials Digital */
.testimonials-grid-digital {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card-digital {
    background: rgba(15, 25, 55, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.testimonial-card-digital:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

.testimonial-rating {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.25rem;
}

.testimonial-card-digital blockquote {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.5rem 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.4);
}

.testimonial-author strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Equipe */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: rgba(15, 25, 55, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.team-member:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
    transform: translateY(-8px);
}

.team-member__photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.team-member__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.team-member__role {
    display: block;
    color: #00d4ff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.team-member__badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-member__badges span {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: rgba(15, 25, 55, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.blog-card__image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card__content {
    padding: 1.5rem;
}

.blog-card__category {
    display: inline-block;
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #fff;
    line-height: 1.3;
}

.blog-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.blog-card__meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.blog-card__link {
    display: inline-block;
    color: #00d4ff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-card__link:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Ferramentas */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: rgba(15, 25, 55, 0.6);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.tool-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.tool-card > p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
}

.tool-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.tool-card__features li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.tool-card__features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
}

.tool-card .btn {
    width: 100%;
}

/* Responsivo */
@media (max-width: 768px) {
    .tech-stack-grid,
    .testimonials-grid-digital,
    .team-grid,
    .blog-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-badges {
        gap: 0.4rem;
    }
    
    .tech-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
}

/* ========== Fim CB Digital Novas Seções ========== */
