/* =============================================
   PAGE: CONTROLE DE QUALIDADE
   ============================================= */

/* Globals */
.cq-section {
    padding: 64px 0;
}

.cq-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 48px;
}

/* =============================================
   HERO
   ============================================= */
.cq-hero {
    position: relative;
    padding: 80px 64px;
    color: #fff;
    overflow: hidden;
    border-radius: 24px;
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cq-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.cq-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 34, 61, 0.95) 0%, rgba(6, 34, 61, 0.8) 60%, rgba(6, 34, 61, 0.2) 100%);
    z-index: 2;
}

.cq-hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
}

.cq-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-teal);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.cq-hero-content h1 {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.1;
}

.cq-hero-content h1 span {
    color: var(--color-teal);
}

.cq-hero-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 32px;
}

.cq-hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--color-teal);
}

.cq-hero-feature .feature-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--color-teal);
    color: var(--color-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cq-hero-feature .feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-text strong {
    display: block;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.feature-text span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    display: block;
}

.cq-hero-seal {
    position: relative;
    z-index: 3;
    width: 200px;
    height: 200px;
    background: rgba(6, 34, 61, 0.6);
    border: 2px dashed rgba(255,255,255,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(4px);
}

.seal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.seal-inner svg {
    width: 32px;
    height: 32px;
    color: var(--color-teal);
}

.seal-inner span {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* =============================================
   CONFIABILIDADE
   ============================================= */
.cq-conf-grid {
    display: flex;
    gap: 48px;
    align-items: center;
}

.cq-conf-image {
    flex: 0 0 400px;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
}

.cq-conf-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cq-conf-content {
    flex: 1;
}

.cq-conf-content h2 {
    text-align: left;
    margin-bottom: 40px;
}

.cq-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cq-card {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.cq-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    border-color: rgba(0, 181, 134, 0.3);
    transform: translateY(-2px);
}

.cq-card .card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 181, 134, 0.08);
    color: var(--color-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cq-card .card-icon svg {
    width: 24px;
    height: 24px;
}

.card-text strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 6px;
}

.card-text p {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0;
}

/* =============================================
   TRAJETÓRIA
   ============================================= */
.traj-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.traj-line {
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 2px;
    border-top: 2px dashed #e1e8ed;
    z-index: 1;
}

.traj-step {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
}

.traj-icon {
    width: 64px;
    height: 64px;
    background: #fff;
    border: 2px solid #e1e8ed;
    color: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.traj-step:hover .traj-icon {
    border-color: var(--color-green);
    background: var(--color-green);
    color: #fff;
}

.traj-icon svg {
    width: 28px;
    height: 28px;
}

.traj-step strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 8px;
    display: block;
}

.traj-step p {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0;
}

/* =============================================
   ESTATÍSTICAS
   ============================================= */
.cq-stats {
    padding-top: 0;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    background: #f8fbfd;
    border-radius: 24px;
    padding: 40px;
    gap: 24px;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    color: var(--color-teal);
    margin-bottom: 12px;
}

.stat-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}

.stat-info strong {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.stat-info strong span {
    font-size: 16px;
}

.stat-info p {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0;
}

/* =============================================
   PASSO A PASSO
   ============================================= */
.steps-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.steps-line {
    position: absolute;
    top: 32px;
    left: 8%;
    right: 8%;
    height: 2px;
    border-top: 2px dashed #e1e8ed;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 8px;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: #fff;
    border: 2px solid var(--color-teal);
    color: var(--color-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background: var(--color-teal);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.step-icon svg {
    width: 28px;
    height: 28px;
}

.step-item strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 8px;
    display: block;
}

.step-item p {
    font-size: 12px;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0;
}

/* =============================================
   CERTIFICAÇÕES
   ============================================= */
.cert-box {
    border: 1px solid var(--color-line);
    border-radius: 24px;
    padding: 48px;
    background: #fff;
}

.cert-box h2 {
    margin-bottom: 40px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.cert-item img, .cert-item svg {
    width: 44px;
    height: 44px;
    color: var(--color-navy);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.cert-item svg {
    stroke-width: 1 !important; /* Força a linha fina e elegante */
}

.cert-item:hover img, .cert-item:hover svg {
    transform: translateY(-3px);
    opacity: 1;
    color: var(--color-teal);
}

.cert-item strong {
    font-size: 13px;
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.4;
}

.cert-link {
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--color-teal);
    color: var(--color-teal);
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--color-teal);
    color: #fff;
}

/* =============================================
   FOOTER BANNER
   ============================================= */
.cq-footer-banner {
    background: linear-gradient(135deg, rgba(6, 34, 61, 1) 0%, rgba(6, 34, 61, 0.9) 100%);
    color: #fff;
    padding: 40px 64px;
    border-radius: 24px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.footer-icon {
    width: 64px;
    height: 64px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.footer-icon svg {
    width: 32px;
    height: 32px;
}

.footer-text h2 {
    text-align: left;
    margin: 0 0 8px;
    color: #fff;
}

.footer-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1199px) {
    .cert-grid { grid-template-columns: repeat(3, 1fr); }
    .cq-conf-grid { gap: 24px; }
    .cq-conf-image { flex: 0 0 300px; }
}

@media (max-width: 991px) {
    .cq-hero { flex-direction: column; text-align: center; gap: 40px; }
    .cq-hero-feature { text-align: left; }
    
    .cq-conf-grid { flex-direction: column; }
    .cq-conf-image { height: 300px; width: 100%; }
    
    .traj-timeline { flex-direction: column; gap: 32px; }
    .traj-line { left: 32px; top: 0; bottom: 0; width: 2px; height: auto; border-top: none; border-left: 2px dashed #e1e8ed; }
    .traj-step { flex-direction: row; text-align: left; gap: 24px; }
    .traj-icon { margin-bottom: 0; }
    
    .stats-grid { flex-wrap: wrap; }
    .stat-item { min-width: 40%; }
    
    .steps-wrapper { flex-direction: column; gap: 32px; }
    .steps-line { left: 40px; top: 0; bottom: 0; width: 2px; height: auto; border-top: none; border-left: 2px dashed #e1e8ed; }
    .step-item { flex-direction: row; text-align: left; gap: 24px; }
    .step-icon { margin-bottom: 0; }
    
    .cq-footer-banner { flex-direction: column; text-align: center; }
    .footer-text h2 { text-align: center; }
}

@media (max-width: 767px) {
    .cq-cards-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .cq-hero { padding: 40px 24px; }
    .cq-hero-content h1 { font-size: 32px; }
}
