/* =============================================
   CERTIFICADOS - STYLES
   ============================================= */

.section-title {
    margin-bottom: 40px;
}
.section-title.center {
    text-align: center;
}
.section-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0;
}
.section-line {
    width: 40px;
    height: 3px;
    background: var(--color-green);
    margin: 16px auto 0;
    border-radius: 3px;
}

/* =============================================
   HERO
   ============================================= */
.cert-hero {
    padding: 60px 0 0;
    background: #fff;
    position: relative;
}
.cert-hero-inner {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 64px;
    margin-bottom: 40px; /* Space for negative margin of stats bar */
}
.cert-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background-image: url('../img/fundo-topo-certificacoes.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.cert-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #fff 5%, rgba(255,255,255,0) 80%);
}
.cert-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
.hero-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.cert-hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: 20px;
}
.cert-hero-content h1 span {
    color: var(--color-green);
}
.cert-hero-content p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-navy);
    margin-bottom: 40px;
}

/* TEAM */
.cert-team {
    display: flex;
    gap: 40px;
    align-items: center;
}
.team-member {
    display: flex;
    align-items: center;
    gap: 16px;
}
.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f5fa;
}
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-info {
    display: flex;
    flex-direction: column;
}
.team-info strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: 4px;
}
.team-role {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-green);
    margin-bottom: 2px;
}
.team-year {
    font-size: 11px;
    color: var(--color-muted);
}

/* STATS BAR */
.cert-stats-bar {
    background: var(--color-navy);
    border-radius: 20px;
    padding: 32px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 10;
    margin-top: -80px; /* Overlap the hero */
    box-shadow: 0 16px 40px rgba(10, 25, 60, 0.15);
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-item .stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-green);
    flex-shrink: 0;
}
.stat-item .stat-icon svg {
    width: 24px;
    height: 24px;
}
.stat-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-text strong {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.stat-text span {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
}

/* =============================================
   TIMELINE
   ============================================= */
.cert-timeline-sec {
    padding: 100px 0 60px;
    background: #fff;
}
.timeline-container {
    margin-top: 60px;
}
.timeline-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 10%;
    margin-bottom: 40px;
}
.timeline-labels .label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.timeline-labels .label.green { color: var(--color-green); }
.timeline-labels .label.blue { color: var(--color-navy); }

.timeline-line-wrapper {
    position: relative;
    padding: 20px 0 40px;
}
.timeline-line {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-line, #e8edf2);
    z-index: 1;
}
.timeline-points {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}
.point-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80px;
}
.point-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-bottom: 16px;
    background: #fff;
    border: 2px solid;
}
.point-dot.green { border-color: var(--color-green); background: var(--color-green); }
.point-dot.blue { border-color: var(--color-navy); background: var(--color-navy); }
.point-col strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 8px;
}
.point-col p {
    font-size: 11px;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0 0 4px;
}
.point-col span {
    font-size: 10px;
    color: var(--color-muted);
}
.highlight-box {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 16px;
    width: 140px;
    margin-top: -24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.highlight-box strong {
    display: block;
    margin-bottom: 8px;
}

/* =============================================
   MEANING
   ============================================= */
.cert-meaning {
    padding: 60px 0;
    background: #fff;
}
.meaning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}
.meaning-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 20px;
    padding: 32px;
}
.meaning-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 181, 134, 0.08);
    color: var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.meaning-icon svg { width: 24px; height: 24px; }
.meaning-text strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 8px;
}
.meaning-text p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

/* =============================================
   RECOGNITIONS
   ============================================= */
.cert-recognitions {
    padding: 60px 0;
    background: #fff;
}
.recog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}
.recog-card {
    display: flex;
    gap: 24px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 24px;
    padding: 40px;
    align-items: center;
}
.recog-card.bronze {
    background: linear-gradient(to right, rgba(205, 127, 50, 0.05), transparent);
}
.recog-card.silver {
    background: linear-gradient(to right, rgba(192, 192, 192, 0.05), transparent);
}
.recog-medal {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}
.recog-card.bronze .recog-medal { color: #cd7f32; }
.recog-card.silver .recog-medal { color: #c0c0c0; }
.recog-medal svg { width: 100%; height: 100%; }

.recog-text h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px;
}
.recog-card.bronze .recog-text h3 { color: #b87333; }
.recog-card.silver .recog-text h3 { color: #7f8c8d; }

.recog-text p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-navy);
    margin: 0;
}

/* =============================================
   DOCUMENTS
   ============================================= */
.cert-documents {
    padding: 60px 0 100px;
    background: #fff;
}
.docs-box {
    background: var(--color-ice, #f8fbfd);
    border: 1px solid var(--color-line);
    border-radius: 32px;
    padding: 56px;
}
.docs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 32px;
}
.docs-title {
    max-width: 600px;
}
.docs-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 16px;
}
.docs-title p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}
.btn-docs-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 24px;
    border-radius: 10px;
    border: 1px solid var(--color-green);
    color: var(--color-green);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-docs-outline:hover {
    background: var(--color-green);
    color: #fff;
}
.btn-docs-outline svg { width: 18px; height: 18px; }

.docs-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.doc-item {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 20px;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.doc-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.doc-icon.green { background: rgba(0, 181, 134, 0.08); color: var(--color-green); }
.doc-icon.bronze { background: rgba(205, 127, 50, 0.08); color: #cd7f32; }
.doc-icon.silver { background: rgba(192, 192, 192, 0.08); color: #c0c0c0; }
.doc-icon svg { width: 24px; height: 24px; }
.doc-item strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.3;
    margin-bottom: 8px;
}
.doc-item span {
    font-size: 12px;
    color: var(--color-muted);
}

.docs-footer {
    text-align: center;
    border-top: 1px solid var(--color-line);
    padding-top: 32px;
}
.docs-footer p {
    font-size: 11px;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0;
}

/* =============================================
   MODAL CERTIFICADOS
   ============================================= */
@keyframes modalPopIn {
    0% { opacity: 0; transform: scale(0.97) translateY(15px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-certificados {
    width: min(95vw, 1100px) !important;
    margin: 4vh auto !important;
    padding: 0 !important;
    background: #fff;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    overflow: hidden;
    animation: modalPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.modal-certificados .close {
    position: absolute;
    top: 24px;
    right: 24px;
    left: auto;
    z-index: 50;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--color-line);
    border-radius: 50%;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-cert-layout {
    display: flex;
}
.modal-cert-sidebar {
    width: 260px;
    background: #f4f7f9;
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}
.sidebar-medal {
    width: 90px;
    height: 90px;
    margin-bottom: 16px;
}
.sidebar-medal svg,
.sidebar-medal img { width: 100%; height: 100%; object-fit: contain; }
.sidebar-badge {
    background: #e1e8ed;
    color: var(--color-navy);
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.modal-cert-sidebar h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-navy);
    margin: 0 0 16px;
    line-height: 1.2;
    font-family: Georgia, serif;
}
.modal-cert-sidebar h3 span {
    display: block;
    font-size: 40px;
    font-weight: 700;
    margin-top: 4px;
}
.sidebar-subtitle {
    font-size: 13px;
    color: var(--color-navy);
    margin-bottom: 24px;
    line-height: 1.4;
}
.sidebar-subtitle strong { display: block; margin-bottom: 4px; }
.sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
    text-align: left;
}
.sidebar-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.sidebar-stat-item .stat-icon {
    width: 32px;
    height: 32px;
    background: transparent;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-stat-item .stat-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.sidebar-stat-item:nth-child(2) .stat-icon { background: rgba(0, 181, 134, 0.08); color: var(--color-green); border-radius: 50%; }
.sidebar-stat-item:nth-child(3) .stat-icon { background: rgba(0, 181, 134, 0.08); color: var(--color-green); border-radius: 50%; }
.sidebar-stat-item .stat-info {
    display: flex;
    flex-direction: column;
}
.sidebar-stat-item .stat-info span { font-size: 10px; color: var(--color-text); margin-bottom: 2px; }
.sidebar-stat-item .stat-info strong { font-size: 13px; font-weight: 800; color: var(--color-navy); }
.sidebar-stat-item .stat-info strong.green { color: var(--color-green); }
.sidebar-stat-item .stat-info small { font-size: 9px; color: var(--color-text); line-height: 1.2; margin-top: 2px;}

.sidebar-dark-box {
    background: #0a193c;
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    text-align: left;
    margin-top: 32px;
}
.sidebar-dark-box .box-icon { color: var(--color-green); flex-shrink: 0; }
.sidebar-dark-box .box-icon svg { width: 20px; height: 20px; }
.sidebar-dark-box strong { font-size: 11px; display: block; margin-bottom: 2px; }
.sidebar-dark-box p { font-size: 10px; color: rgba(255,255,255,0.7); margin: 0; line-height: 1.3; }

.modal-cert-main {
    padding: 32px 40px;
    flex: 1;
}
.main-header { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--color-line); }
.cert-label { font-size: 11px; font-weight: 800; color: var(--color-green); letter-spacing: 1px; display: block; margin-bottom: 8px; text-transform: uppercase; }
.main-header h2 { font-family: Georgia, serif; font-size: 20px; font-weight: 600; color: var(--color-navy); margin: 0 0 12px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-header p { font-size: 13px; color: var(--color-text); line-height: 1.6; margin: 0; }

.main-split {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}
.split-col { flex: 1; }
.split-line { width: 1px; background: var(--color-line); }
.split-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.split-icon { width: 44px; height: 44px; border: 1px solid var(--color-green); background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-green); }
.split-icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.split-title strong { font-size: 15px; font-weight: 800; color: var(--color-green); }
.split-col p { font-size: 13px; color: var(--color-navy); line-height: 1.6; margin: 0; }
.cert-benefits-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.cert-benefits-list li { font-size: 13px; color: var(--color-navy); display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.cert-benefits-list li svg { width: 16px; height: 16px; color: var(--color-green); flex-shrink: 0; margin-top: 2px; }

.main-history {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 24px 32px;
    margin-bottom: 24px;
}
.main-history h3 { font-size: 15px; font-weight: 800; color: var(--color-green); margin: 0 0 24px; text-align: left; }
.history-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.history-timeline .timeline-line {
    position: absolute;
    top: 24px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: #e1e8ed;
    z-index: 1;
}
.history-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
    padding: 0 4px;
}
.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 4px solid #fff;
}
.step-icon.bronze { background: #b87333; }
.step-icon.silver { background: #e1e8ed; color: #a0aab2; }
.step-icon svg { width: 20px; height: 20px; stroke-width: 1.5; }
.history-step strong { font-size: 13px; font-weight: 800; color: var(--color-navy); margin-bottom: 8px; }
.history-step strong.green { color: var(--color-green); }
.history-step strong.bronze { color: #b87333; }
.history-step strong.silver { color: #a0aab2; }
.history-step p { font-size: 11px; color: var(--color-text); line-height: 1.4; margin: 0; }

.main-footer {
    display: flex;
    align-items: center;
    gap: 20px;
}
.quote-box {
    flex: 1;
    position: relative;
    padding-left: 32px;
}
.quote-mark {
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 32px;
    font-family: Georgia, serif;
    color: var(--color-green);
    line-height: 1;
}
.quote-box p {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}
.pncq-logo-footer { width: 100px; flex-shrink: 0; }
.pncq-logo-footer img { width: 100%; height: auto; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
    .timeline-points {
        overflow-x: auto;
        padding-bottom: 20px;
        gap: 32px;
    }
    .timeline-line { width: 1000px; }
    .timeline-labels { display: none; }
}
@media (max-width: 991px) {
    .cert-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .meaning-grid { grid-template-columns: 1fr; }
    .recog-grid { grid-template-columns: 1fr; }
    .docs-header { flex-direction: column; align-items: flex-start; }
    .docs-grid { grid-template-columns: repeat(3, 1fr); }
    
    /* Modal responsive */
    .modal-cert-layout { flex-direction: column; max-height: 85vh; }
    .modal-cert-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--color-line); overflow: visible; padding: 32px 24px 24px; }
    .main-split { flex-direction: column; gap: 24px; }
    .split-line { width: 100%; height: 1px; }
    .history-timeline { overflow-x: auto; justify-content: flex-start; gap: 24px; padding-bottom: 12px; }
    .history-timeline .timeline-line { width: 500px; left: 0; right: 0; }
    .main-footer { flex-direction: column; text-align: center; }
    .quote-box { padding-left: 0; text-align: center; }
    .quote-mark { position: relative; display: block; left: 0; margin-bottom: 4px; top: 0; }
}
@media (max-width: 767px) {
    .cert-hero-inner { padding: 32px 24px; }
    .cert-hero-content h1 { font-size: 36px; }
    .cert-team { flex-direction: column; align-items: flex-start; gap: 24px; }
    .cert-stats-bar { grid-template-columns: 1fr; margin-top: -20px; padding: 24px; }
    .cert-hero-bg { width: 100%; opacity: 0.15; }
    .docs-box { padding: 32px 24px; }
    .docs-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Modal responsive mobile */
    .modal-cert-main { padding: 24px; }
    .main-header h2 { font-size: 24px; }
}
