/* =========================================================
   WE SENSE — PÁGINAS INTERNAS (consolidação visual)
   Reutiliza os tokens do design system (style.css).
   Carregar SEMPRE depois de style.css.
   ========================================================= */

main { padding-top: 74px; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    max-width: var(--container); margin: 0 auto;
    padding: 24px var(--gutter) 0; color: var(--ash); font-size: 0.9rem;
}
.breadcrumb a { color: var(--blue); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== BANNERS (page-header / blog-header) — faixa azul ===== */
.page-header, .blog-header {
    background: var(--blue); color: #fff; text-align: center;
    padding: clamp(56px, 8vw, 100px) var(--gutter);
}
.page-header h1, .blog-header h1 {
    font-family: var(--font-display); font-weight: 700; color: #fff !important;
    -webkit-text-fill-color: #fff; background: none;
    font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 16px;
}
.page-header p, .blog-header p { color: rgba(255,255,255,0.92); font-size: 1.1rem; max-width: 760px; margin: 0 auto; }

/* ===== ARTICLE HEADER (páginas de conteúdo) ===== */
.article-header { padding: clamp(40px, 6vw, 72px) 0 0; border-bottom: none; background: transparent; }
.article-container { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.article-header h1 {
    font-family: var(--font-display); font-weight: 700; color: var(--ink) !important;
    -webkit-text-fill-color: var(--ink); background: none;
    font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 16px;
}
.article-meta { color: var(--ash); font-size: 0.92rem; }

/* ===== ARTICLE CONTENT (prosa) ===== */
.article-content { max-width: 820px; margin: 0 auto; padding: clamp(28px,4vw,46px) var(--gutter) clamp(56px,8vw,96px); }
.article-content h2 { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: clamp(1.5rem,2.6vw,2.1rem); letter-spacing: -0.01em; margin: 2.4rem 0 1rem; }
.article-content h3 { font-weight: 700; color: var(--blue-deep); font-size: clamp(1.15rem,1.8vw,1.4rem); margin: 1.8rem 0 .6rem; }
.article-content p { color: var(--ash); margin-bottom: 1.1rem; line-height: 1.8; }
.article-content ul, .article-content ol { margin: 1rem 0 1.4rem 1.4rem; color: var(--ash); }
.article-content li { margin-bottom: .6rem; line-height: 1.75; }
.article-content strong { color: var(--ink); }
.article-content a { color: var(--blue); font-weight: 600; border-bottom: 1px solid var(--blue-soft); }
.article-content a:hover { border-color: var(--green); }
.article-content img { border-radius: var(--radius); margin: 1.5rem 0; }

/* ===== CALLOUT BOXES (unificadas) ===== */
.highlight-box, .formula-box, .criteria-box, .funnel-box,
.example-box, .warning-box, .comparison-box, .checklist-box {
    background: var(--mist); border: 1px solid var(--line); border-left: 5px solid var(--blue);
    border-radius: var(--radius); padding: clamp(20px,2.4vw,30px); margin: 1.8rem 0;
}
.example-box, .checklist-box, .formula-box { border-left-color: var(--green); }
.warning-box { border-left-color: var(--green-deep); background: var(--green-soft); }
.highlight-box h3, .highlight-box h4, .formula-box h3, .formula-box h4,
.criteria-box h3, .criteria-box h4, .funnel-box h3, .funnel-box h4,
.example-box h3, .example-box h4, .warning-box h3, .warning-box h4,
.comparison-box h3, .comparison-box h4, .checklist-box h3, .checklist-box h4 {
    color: var(--ink); margin: 0 0 .6rem; font-weight: 700;
}
.highlight-box p:last-child, .formula-box p:last-child, .criteria-box p:last-child,
.funnel-box p:last-child, .example-box p:last-child, .warning-box p:last-child,
.comparison-box p:last-child, .checklist-box p:last-child { margin-bottom: 0; }

/* ===== TABELA DE COMPARAÇÃO ===== */
.comparison-table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: 0.95rem; }
.comparison-table th { background: var(--blue); color: #fff; padding: 12px 14px; text-align: left; font-weight: 600; }
.comparison-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ash); }
.comparison-table tr:nth-child(even) td { background: var(--cloud); }

/* ===== RELATED ===== */
.related-box, .related-articles {
    background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(22px,3vw,32px); margin: 2.2rem 0;
}
.related-box h4, .related-articles h4 { color: var(--blue); font-size: 1rem; margin-bottom: 14px; font-weight: 700; }
.related-links { list-style: none; margin: 0; }
.related-box ul { list-style: none; margin: 0; }
.related-box li, .related-links li { margin-bottom: 10px; line-height: 1.5; }
.related-box a, .related-links a, .related-articles a { color: var(--blue); font-weight: 600; }
.related-box a:hover, .related-links a:hover, .related-articles a:hover { color: var(--green-deep); }

/* ===== CTA SECTION (faixa azul + botão verde) ===== */
.cta-section {
    background: var(--blue); color: #fff; border-radius: var(--radius);
    padding: clamp(28px,4vw,46px); text-align: center; margin: 2.6rem 0;
}
.cta-section h3 { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem,2.2vw,1.85rem); margin-bottom: 10px; }
.cta-section p { color: rgba(255,255,255,0.92); margin: 0 auto 22px; max-width: 60ch; }
.cta-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--green); color: #053D2C; font-weight: 700; font-size: 0.97rem;
    padding: 15px 30px; border-radius: 100px; text-decoration: none; border: none; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,214,143,0.35); }

/* ===== SERVIÇOS (index) ===== */
.services-container { max-width: var(--container); margin: 0 auto; padding: clamp(40px,6vw,72px) var(--gutter); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: clamp(20px,2vw,28px); }
.service-card {
    position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: clamp(26px,3vw,36px); display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card::after { content: ""; position: absolute; left: 0; top: 0; height: 5px; width: 0; background: var(--green); transition: width .35s cubic-bezier(.16,1,.3,1); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(7,35,92,0.10); border-color: transparent; }
.service-card:hover::after { width: 100%; }
.service-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1rem; }
.service-card h3 { color: var(--ink); font-size: 1.25rem; margin-bottom: .6rem; font-weight: 700; }
.service-card p { color: var(--ash); flex-grow: 1; margin-bottom: 1.2rem; }
.service-link { color: var(--blue); font-weight: 700; }
.service-card:hover .service-link { color: var(--green-deep); }

/* ===== BLOG (index) ===== */
.blog-content { max-width: var(--container); margin: 0 auto; padding: clamp(40px,6vw,72px) var(--gutter); }
.article-group { margin-bottom: clamp(40px,6vw,72px); }
.article-group h2 { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: clamp(1.4rem,2.4vw,2rem); margin-bottom: 1.6rem; padding-bottom: .8rem; border-bottom: 2px solid var(--line); }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: clamp(20px,2vw,28px); }
.article-card {
    position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: clamp(24px,2.6vw,32px); display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.article-card::after { content: ""; position: absolute; left: 0; top: 0; height: 5px; width: 0; background: var(--green); transition: width .35s cubic-bezier(.16,1,.3,1); }
.article-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(7,35,92,0.10); border-color: transparent; }
.article-card:hover::after { width: 100%; }
.article-card .article-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.article-category { display: inline-block; padding: 6px 12px; background: var(--blue-soft); color: var(--blue); border-radius: 100px; font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.04em; }
.article-card h3 { color: var(--ink); font-size: 1.2rem; margin: .4rem 0 .8rem; font-weight: 700; }
.article-card p { color: var(--ash); flex-grow: 1; margin-bottom: 1.2rem; }
.article-link { color: var(--blue); font-weight: 700; }
.article-card:hover .article-link { color: var(--green-deep); }

/* ===== FILTROS (se usados) ===== */
.filters { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 2.4rem; }
.filter-btn { padding: 10px 20px; border: 1.5px solid var(--line); background: transparent; color: var(--ash); border-radius: 100px; cursor: pointer; font-weight: 600; transition: all .2s ease; }
.filter-btn:hover, .filter-btn.active { border-color: var(--blue); color: var(--blue); }

/* ===== BLOCO DE AUTOR (artigos) ===== */
.author-box {
    max-width: 820px; margin: 2.4rem auto 0; padding: clamp(20px,2.4vw,28px);
    background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius);
    display: flex; gap: 18px; align-items: flex-start;
}
.author-box__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(7,35,92,0.12); }
.author-box__kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.author-box__name { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.author-box__name a { color: var(--ink); }
.author-box__name a:hover { color: var(--blue); }
.author-box__bio { color: var(--ash); font-size: 0.92rem; line-height: 1.6; }
.author-box__bio a { color: var(--blue); font-weight: 600; }

/* ===== CARTÃO DE PERFIL (/autor) ===== */
.author-hero { display: flex; gap: 22px; align-items: center; padding: 0 0 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.author-hero__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; border: 4px solid #fff; box-shadow: 0 8px 24px rgba(7,35,92,0.14); }
.author-hero__role { color: var(--ash); font-size: 0.98rem; margin-bottom: 12px; }
.author-links { display: flex; gap: 10px; flex-wrap: wrap; }
.author-links a { font-size: 0.85rem; font-weight: 600; color: var(--blue); border: 1.5px solid var(--line); border-radius: 100px; padding: 7px 16px; }
.author-links a:hover { border-color: var(--blue); background: var(--blue-soft); }

@media (max-width: 560px) {
    .author-box { flex-direction: column; }
    .author-hero { flex-direction: column; text-align: center; align-items: center; }
    .author-links { justify-content: center; }
}

/* ===== CONTATO ===== */
.contact-cols { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px,4vw,56px); align-items: start; margin-bottom: 2.5rem; }
.contact-cols h2 { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: clamp(1.4rem,2.2vw,1.8rem); margin-bottom: 1.2rem; }
.contact-info dl { margin: 0 0 1.5rem; }
.contact-info dt { font-weight: 700; color: var(--ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 16px; }
.contact-info dd { color: var(--ash); margin: 4px 0 0; }
.contact-info dd a { color: var(--blue); font-weight: 600; }
.contact-info h3 { color: var(--ink); margin: 1.5rem 0 .5rem; font-weight: 700; }
.contact-info p { color: var(--ash); }

/* ===== RESPONSIVO ===== */
@media (max-width: 760px) {
    .articles-grid, .services-grid { grid-template-columns: 1fr; }
    .contact-cols { grid-template-columns: 1fr; }
    main { padding-top: 66px; }
}
