/*
Theme Name: Hora do Diploma - EJA EAD
Theme URI: https://horadodiploma.com.br
Author: Hora do Diploma
Description: Tema WordPress da Hora do Diploma para EJA Ensino Médio EAD, com prova única e atendimento pelo WhatsApp.
Version: 15.0.0
License: GNU General Public License v2 or later
Text Domain: eja-ead
*/

/* ==========================================================================
   Reset / base
   ========================================================================== */
:root {
  --navy: #16193E;
  --pink: #E61C5D;
  --pink-hover: #c2124b;
  --green: #00C853;
  --green-hover: #00a344;
  --wa-green: #00AD57;
  --bg: #ffffff;
  --secondary: #f5f6f9;
  --border: #e6e7ee;
  --muted: #6b6f85;
  --radius: 0.75rem;
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }

.container { max-width: 1152px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 768px; margin: 0 auto; padding: 0 16px; }

.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }

.section-title { font-size: 1.5rem; font-weight: 800; }
@media (min-width: 640px) { .section-title { font-size: 1.875rem; } }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }

.bg-secondary { background: var(--secondary); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-pink { background: var(--pink); color: #fff; }

/* ==========================================================================
   Icons (inline SVG helper)
   ========================================================================== */
.icon { display:block; width: 28px; height: 28px; stroke: var(--pink) !important; fill: none !important; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex:0 0 auto; }
.icon-sm { display:block; width: 18px; height: 18px; stroke: var(--green) !important; fill: none !important; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-lg { width: 36px; height: 36px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .03em;
  transition: all .2s ease; cursor: pointer; border: 0;
}
.btn:active { transform: scale(.96); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 10px 25px rgba(230,28,93,.3); }
.btn-pink:hover { background: var(--pink-hover); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 25px rgba(0,200,83,.3); }
.btn-green:hover { background: var(--green-hover); }
.btn-outline { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-block { width: 100%; }
.wa-mark { width: 22px !important; height: 22px !important; object-fit:contain; flex: 0 0 auto; display: block !important; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(22,25,62,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.site-logo img { height: 54px; width: auto; display: block; }
@media (min-width: 640px) { .site-logo img { height: 64px; } }
.header-cta { display: none; align-items: center; gap: 8px; background: var(--green); color: #fff; border-radius: 999px; padding: 10px 20px; font-size: .875rem; font-weight: 700; }
.header-cta:hover { background: var(--green-hover); }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: rgba(230,28,93,.2); filter: blur(80px); pointer-events: none;
}
.hero-grid { display: grid; gap: 28px; align-items: center; padding: 28px 0 40px; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; padding: 80px 0; } }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1);
  border-radius: 999px; padding: 6px 16px; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
}
.hero h1 { margin-top: 14px; font-size: 1.65rem; font-weight: 800; }
@media (min-width: 640px) { .hero h1 { font-size: 2.4rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3rem; } }
.hero-sub { margin-top: 12px; color: rgba(255,255,255,.8); font-size: 1.05rem; }
.price-box {
  display: inline-flex; flex-direction: column; margin-top: 16px;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05);
  border-radius: 1rem; padding: 12px 20px;
}
.price-box .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); font-weight: 600; }
.price-box .value { font-size: 2rem; font-weight: 800; }
.price-box .value span { color: var(--green); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
.hero-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: .875rem; color: rgba(255,255,255,.75); }
.hero-list li { display: flex; align-items: center; gap: 6px; }
.hero-img img { border-radius: 1.5rem; box-shadow: 0 25px 50px rgba(0,0,0,.35); width: 100%; object-fit: cover; }

/* ==========================================================================
   Grids / cards
   ========================================================================== */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .grid-md-2 { grid-template-columns: repeat(2, 1fr); } }

.trust { padding: 40px 0; border-bottom: 1px solid var(--border); }
.trust-card { display: flex; gap: 12px; background: #fff; border-radius: 1rem; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.trust-card h3 { font-size: .875rem; font-weight: 700; }
.trust-card p { margin-top: 4px; font-size: .75rem; color: var(--muted); }

.step-card { border: 1px solid var(--border); border-radius: 1rem; padding: 24px; transition: box-shadow .2s; }
.step-card:hover { box-shadow: 0 15px 30px rgba(22,25,62,.08); }
.step-card h3 { margin-top: 16px; font-weight: 700; }
.step-card p { margin-top: 8px; font-size: .875rem; color: var(--muted); }

.check-list { display: grid; gap: 12px; background: var(--secondary); border-radius: 1.5rem; padding: 24px; }
@media (min-width: 640px) { .check-list { grid-template-columns: repeat(2, 1fr); } }
.check-list li, .benefit-list li { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; font-weight: 500; }

.course-card { display: flex; flex-direction: column; background: #fff; border-radius: 1.5rem; padding: 28px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.course-card h3 { margin-top: 16px; font-size: 1.25rem; font-weight: 800; }
.course-card p { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.course-card ul { margin-top: 16px; display: grid; gap: 8px; }
.course-card ul li { display: flex; align-items: center; gap: 8px; font-size: .875rem; }
.course-price { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.course-price strong { font-size: 1.5rem; font-weight: 800; }
.course-card .btn { margin-top: 16px; }

.audience-card { background: transparent; border-radius: 0; padding: 8px 0; }
.audience-card h3 { margin-top: 12px; font-size: .875rem; font-weight: 700; }
.audience-card p { margin-top: 8px; font-size: .75rem; color: var(--muted); }

.benefit-list { display: grid; gap: 12px; margin-top: 24px; color: rgba(255,255,255,.85); }
.benefit-list .icon-sm { margin-top: 3px; }
.price-card { border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); border-radius: 1.5rem; padding: 32px; text-align: center; }
.price-card .amount { margin-top: 4px; font-size: 2.4rem; font-weight: 800; }
.price-card .amount span { color: var(--green); }

/* ==========================================================================
   FAQ (accordion sem JS)
   ========================================================================== */
.faq { margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--pink); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--muted); font-size: .95rem; }

/* ==========================================================================
   Footer + WhatsApp flutuante
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 40px 0; text-align: center; }
.site-footer img { height: 76px; width: auto; margin: 0 auto; }
.site-footer .partner { margin-top: 12px; font-size: .875rem; font-weight: 600; color: #fff; }
.site-footer .legal { max-width: 680px; margin: 16px auto 0; font-size: .75rem; line-height: 1.6; }
.site-footer .copy { margin-top: 20px; font-size: .75rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 22px auto; font-size: .8rem; font-weight: 600; color: #fff; }
.footer-links a { text-decoration: underline; text-underline-offset: 4px; }
.footer-links a:hover { color: var(--green); }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999;
  width: 84px; height: 84px; display: flex; align-items: center; justify-content: center;
  background: var(--wa-green); border-radius: 100%; box-shadow: 0 12px 28px rgba(0,0,0,.25);
  transition: opacity .2s;
}
.wa-float:hover { opacity: .9; }
.wa-float .wa-mark-float { width: 76px !important; height: 76px !important; display:block !important; object-fit:contain; }

/* Atualização EJA EAD v9 */
.hero-benefits { display:grid; gap:8px; margin:20px 0; font-size:.9rem; color:rgba(255,255,255,.85); }
.hero-benefits li { display:flex; align-items:center; gap:8px; }
.price-box strong { font-size:.78rem; }
.price-box .normal { letter-spacing:0; text-transform:none; }
.hero-note { margin:18px 0 14px; color:rgba(255,255,255,.78); font-size:.88rem; }
.section-copy { margin:14px auto 20px; line-height:1.7; }
.offer-line { margin:16px 0; color:var(--pink); font-weight:700; font-size:.9rem; }
.steps-grid, .benefits-grid, .role-grid { margin-top:40px; }
.step-top { display:flex; justify-content:space-between; align-items:center; }
.step-top b { color:#e7e8ee; font-size:2rem; }
.cta-row { margin-top:32px; }
.eyebrow { color:var(--pink); text-transform:uppercase; font-size:.8rem; font-weight:800; }
.institution-card { display:grid; margin-top:36px; overflow:hidden; border:1px solid var(--border); border-radius:var(--radius); background:#fff; }
.institution-card > a { padding:20px; background:var(--secondary); }
.institution-card > a img { max-height:560px; margin:auto; border:1px solid var(--border); object-fit:contain; }
.institution-card > div { padding:28px; }
.institution-card h3 { font-size:1.3rem; }
.institution-card dl { display:grid; gap:16px; margin:24px 0; font-size:.88rem; }
.institution-card dt { font-weight:700; }
.institution-card dd { margin:3px 0 0; color:var(--muted); }
.verification { border-left:4px solid var(--green); padding:14px; background:var(--secondary); font-size:.85rem; }
.verification p { margin-top:7px; color:var(--muted); }
.doc-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.btn-outline-dark { border:2px solid var(--navy); color:var(--navy); }
.transparency-section { background:var(--bg); color:var(--navy); }
.role-grid > div, .info-card { padding:28px 24px; border:1px solid var(--border); border-radius:var(--radius); }
.role-grid > div { min-height:250px; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; }
.role-grid h3 { margin-top:4px; font-size:1.1rem; }
.role-grid p, .info-card p { margin-top:12px; font-size:.85rem; line-height:1.65; color:var(--muted); }
.role-grid .role-label { margin-top:16px; color:var(--pink); font-size:.75rem; font-weight:800; text-transform:uppercase; }
.role-grid + .btn { margin-top:28px; }
.info-card { background:var(--navy); color:#fff; }
.dark-list { color:var(--navy); }
.price-card .btn { margin-top:20px; }
.refund-band { padding:40px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--secondary); }
.refund-section { display:flex; flex-direction:column; gap:24px; }
.refund-section > div { max-width:760px; }
.refund-title { font-size:1.25rem; font-weight:800; }
.refund-section p { margin-top:8px; color:var(--muted); font-size:.875rem; line-height:1.7; }
.refund-section .btn { flex:0 0 auto; align-self:flex-start; font-size:.85rem; }
@media (min-width:768px) {
  .institution-card { grid-template-columns:.8fr 1.2fr; }
  .institution-card dl { grid-template-columns:repeat(2,1fr); }
  .grid-3 { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:639px) {
  body { padding-bottom:64px; }
  .hero-grid { padding-left:16px; padding-right:16px; }
  .btn { width:100%; padding-left:18px; padding-right:18px; font-size:.85rem; }
  .doc-actions { flex-direction:column; }
  .wa-float { right:12px; bottom:76px; width:64px; height:64px; }
  .wa-float .wa-mark-float { width:58px !important; height:58px !important; }
}

/* Proteção contra estilos globais de plugins e do editor do WordPress. */
.site-header svg, main svg, section svg, .site-footer svg { overflow:visible; }
.btn img.wa-mark, .header-cta img.wa-mark, .wa-float img.wa-mark { margin:0 !important; max-width:none !important; opacity:1 !important; visibility:visible !important; }
.benefits-grid { align-items:start; }
.benefits-grid .audience-card { min-width:0; }
.benefits-grid .audience-card h3 { margin-top:14px; }
.benefits-grid .audience-card p { margin-top:10px; line-height:1.65; }
@media (min-width:1024px) {
  .role-grid { gap:28px; }
  .benefits-grid { gap:40px; }
  .refund-section { flex-direction:row; align-items:center; justify-content:space-between; }
}

.document-note { margin-top:16px; color:var(--muted); font-size:.875rem; line-height:1.6; }

/* Páginas institucionais */
.legal-page { min-height: 62vh; padding: 52px 0 72px; }
.legal-page h1 { margin-top: 28px; font-size: 2rem; font-weight: 800; }
.legal-page > .container-narrow > p { margin-top: 18px; color: var(--muted); line-height: 1.75; }
.legal-page section { margin-top: 34px; }
.legal-page section h2 { font-size: 1.25rem; }
.legal-page section p { margin-top: 10px; color: var(--muted); line-height: 1.75; }
.legal-page section .btn, .legal-page > .container-narrow > p .btn { color: #fff; }
.legal-back { font-size: .85rem; font-weight: 700; color: var(--pink); }
@media (min-width: 640px) { .legal-page h1 { font-size: 2.5rem; } }


/* Seções comerciais v15 */
.commercial-grid { margin-top:40px; align-items:stretch; }
.commercial-card { padding:24px; border:1px solid var(--border); border-radius:var(--radius); background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.commercial-card h3 { margin-top:16px; font-size:1rem; font-weight:700; }
.commercial-card p { margin-top:8px; color:var(--muted); font-size:.875rem; line-height:1.65; }
.document-help { padding:56px 0; background:var(--navy); color:#fff; }
.document-help-grid { display:grid; gap:32px; align-items:center; }
.document-help-label { color:var(--green); text-transform:uppercase; font-size:.8rem; font-weight:800; }
.document-help h2 { margin-top:8px; }
.document-help p:not(.document-help-label) { margin-top:16px; color:rgba(255,255,255,.8); line-height:1.7; }
.document-help .btn { margin-top:24px; }
.document-help ul { display:grid; gap:14px; padding:24px; border-radius:var(--radius); background:rgba(255,255,255,.1); }
.document-help li { display:flex; align-items:center; gap:10px; font-weight:600; }
@media (min-width:768px) { .document-help { padding:64px 0; } .document-help-grid { grid-template-columns:1.1fr .9fr; } }
