/* ============================================================
   CARLOS RAMADAS — estilos (mobile-first). Cores/fontes em tokens.css
   Seções: 1 base · 2 botões/utilidades · 3 header+megamenu · 4 drawer/busca
           5 hero/home · 6 cards/listagens · 7 post/prose · 8 páginas · 9 rodapé/cookie
============================================================ */

/* ===== 1. BASE ===== */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 16px);-webkit-text-size-adjust:100%}
body{font-family:var(--font);color:var(--ink);background:var(--white);line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,textarea{font-family:inherit;font-size:1rem}
ul,ol{list-style:none}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}
.container{width:min(1180px,92%);margin-inline:auto}
.narrow{width:min(780px,92%);margin-inline:auto}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.skip-link{position:absolute;left:16px;top:-70px;z-index:3000;background:var(--accent);color:var(--dark);padding:10px 16px;border-radius:10px;font-weight:700}
.skip-link:focus{top:12px}
main{padding-top:var(--header-h);display:block}
h1,h2,.section-title{font-family:var(--font-title);font-weight:700;line-height:1.15;letter-spacing:-.025em}
.progress{position:fixed;top:0;left:0;height:3px;width:0;background:var(--accent);z-index:2500}

/* ===== 2. BOTÕES E UTILIDADES ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:600;font-size:.92rem;border-radius:999px;padding:12px 24px;min-height:44px;transition:background .2s,color .2s,border-color .2s,transform .2s;text-align:center}
.btn:active{transform:translateY(1px)}
.btn-sm{padding:9px 18px;font-size:.85rem}
.btn-lg{padding:15px 30px;font-size:.98rem}
.btn-accent{background:var(--accent);color:var(--dark)}
.btn-accent:hover{background:var(--accent-hover)}
.btn-primary{background:var(--dark);color:#fff}
.btn-primary:hover{background:var(--dark-3)}
.btn-ghost{border:1.5px solid rgba(255,255,255,.35);color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.1)}
.btn-outline{border:1.5px solid var(--dark);color:var(--dark);background:#fff}
.btn-outline:hover{background:var(--gray-200)}
.eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:.8rem;font-weight:600;letter-spacing:.32em;text-transform:uppercase;color:var(--accent);margin-bottom:16px}
.eyebrow::before{content:"";width:22px;height:3px;border-radius:3px;background:var(--accent)}
.eyebrow.dark{color:var(--accent-ink)}
.eyebrow.dark::before{background:var(--accent-ink)}
.lead{font-size:1.05rem;color:var(--gray-700);line-height:1.75}
.muted{color:var(--gray-500);font-size:.9rem}
.tag{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--dark);background:var(--accent);padding:5px 12px;border-radius:999px}
.link-arrow{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--ink);border-bottom:3px solid var(--accent);padding-bottom:2px}
.link-arrow:hover{text-decoration:underline}
.icon-btn{width:44px;height:44px;display:inline-grid;place-items:center;border-radius:12px;color:inherit}
.icon-btn:hover{background:rgba(255,255,255,.1)}
.hide-sm{display:none}

/* ===== 3. HEADER + MEGAMENU ===== */
.header{position:fixed;inset:0 0 auto 0;height:var(--header-h);background:var(--dark);color:#fff;z-index:1000;border-bottom:1px solid rgba(255,255,255,.08);transition:transform .3s}
.header.hide{transform:translateY(-100%)}
.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:16px}
.logo{display:inline-flex;align-items:center;min-height:44px}
.logo-img{height:40px;width:auto}
.nav{display:none}
.header-actions{display:flex;align-items:center;gap:8px}
.menu-btn{display:inline-grid}

@media (min-width:960px){
  .nav{display:flex;align-items:center;gap:4px;margin-left:auto;margin-right:12px}
  .menu-btn{display:none}
  .hide-sm{display:inline-flex}
  .nav-item{position:static}
  .nav-link{display:inline-flex;align-items:center;gap:6px;padding:10px 14px;min-height:44px;font-size:.92rem;font-weight:600;border-radius:10px;color:rgba(255,255,255,.88)}
  .nav-link:hover,.nav-item.open>.nav-link,.nav-link[aria-current]{color:#fff;background:rgba(255,255,255,.08)}
  .chev{transition:transform .2s}
  .nav-item.open .chev{transform:rotate(180deg)}
  .megamenu{position:absolute;left:0;right:0;top:var(--header-h);background:#fff;color:var(--ink);box-shadow:0 30px 60px rgba(0,0,0,.25);opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .2s,transform .2s,visibility .2s;border-top:3px solid var(--accent)}
  .nav-item.open .megamenu{opacity:1;visibility:visible;transform:none}
  .megamenu-grid{width:min(1180px,92%);margin:0 auto;display:grid;grid-template-columns:1.1fr 1fr 300px;gap:32px;padding:28px 0 32px}
  .mm-head{display:flex;flex-direction:column;margin-bottom:12px}
  .mm-head strong{font-family:var(--font-title);font-size:1.1rem}
  .mm-head span{font-size:.82rem;color:var(--gray-500)}
  .mm-links{display:grid;gap:4px}
  .mm-item{display:flex;flex-direction:column;padding:9px 12px;border-radius:12px}
  .mm-item:hover,.mm-item:focus-visible{background:var(--accent-soft)}
  .mm-item strong{font-size:.9rem;font-weight:600;line-height:1.35}
  .mm-item span{font-size:.78rem;color:var(--gray-500)}
  .mm-feature{display:flex;flex-direction:column;gap:12px;background:var(--dark);color:#fff;border-radius:var(--r-lg);padding:16px;align-self:start}
  .mm-feature img{border-radius:var(--r-md);aspect-ratio:16/10;object-fit:cover;width:100%}
  .mm-feature strong{font-size:.95rem;line-height:1.4}
  .mm-feature .tag{align-self:flex-start}
}
@media (max-width:959px){.megamenu{display:none}}

/* ===== 4. DRAWER E BUSCA ===== */
.drawer{position:fixed;inset:0;z-index:2000;visibility:hidden}
.drawer.open{visibility:visible}
.drawer-bg{position:absolute;inset:0;background:rgba(0,0,0,.6);opacity:0;transition:opacity .25s}
.drawer.open .drawer-bg{opacity:1}
.drawer-panel{position:absolute;top:0;right:0;bottom:0;width:min(88%,360px);background:var(--dark);color:#fff;padding:16px 20px 24px;display:flex;flex-direction:column;gap:16px;transform:translateX(100%);transition:transform .3s;overflow-y:auto}
.drawer.open .drawer-panel{transform:none}
.drawer-top{display:flex;align-items:center;justify-content:space-between}
.drawer nav{display:flex;flex-direction:column}
.dr-link,.dr-btn{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 4px;min-height:48px;font-weight:600;border-bottom:1px solid rgba(255,255,255,.1);text-align:left}
.dr-btn[aria-expanded="true"] .chev{transform:rotate(180deg)}
.dr-panel{display:flex;flex-direction:column;padding:6px 0 10px 12px}
.dr-panel[hidden]{display:none}
.dr-panel a{padding:11px 4px;min-height:44px;font-size:.92rem;color:rgba(255,255,255,.82)}
.search-modal{position:fixed;inset:0;z-index:2600;background:rgba(0,0,0,.7);display:flex;align-items:flex-start;justify-content:center;padding:8vh 16px 16px}
.search-modal[hidden]{display:none}
.search-box{width:min(640px,100%);background:#fff;border-radius:var(--r-lg);box-shadow:var(--shadow-card);overflow:hidden}
.search-field{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 16px;border-bottom:1px solid var(--gray-200);color:var(--gray-500)}
.search-field input{flex:1;border:0;outline:0;padding:12px 4px;color:var(--ink);background:transparent;min-width:0}
.search-field .icon-btn:hover{background:var(--gray-200)}
.search-results{max-height:50vh;overflow-y:auto}
.search-results a{display:flex;flex-direction:column;padding:12px 18px;border-bottom:1px solid var(--gray-200)}
.search-results a:hover,.search-results a:focus-visible{background:var(--accent-soft)}
.search-results strong{font-size:.92rem;line-height:1.4}
.search-results span{font-size:.76rem;color:var(--gray-500)}
.search-hint{padding:10px 18px;font-size:.78rem;color:var(--gray-500)}
kbd{background:var(--gray-200);border-radius:5px;padding:1px 6px;font-size:.75rem;font-family:inherit}

/* ===== 5. HERO E HOME ===== */
.hero{position:relative;background:radial-gradient(1200px 500px at 85% -10%,rgba(var(--accent-rgb),.14),transparent 60%),var(--dark);color:#fff;overflow:hidden;padding:56px 0 64px}
.hero-canvas{position:absolute;inset:0;width:100%;height:100%;opacity:.7;pointer-events:none}
.hero-grid{position:relative;display:grid;gap:40px;align-items:center}
.hero h1{font-size:clamp(2rem,5vw,3.4rem);margin-bottom:20px}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero .lead{color:rgba(255,255,255,.82);max-width:56ch;margin-bottom:28px}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px}
.hero-visual{display:flex;justify-content:center}
.hero-card{width:min(460px,100%);background:linear-gradient(160deg,var(--dark-2),#000);border:1px solid rgba(255,255,255,.1);border-radius:var(--r-xl);padding:48px 28px 36px;box-shadow:0 30px 70px rgba(0,0,0,.45);display:flex;flex-direction:column;align-items:center;gap:20px;transform-style:preserve-3d}
.hero-logo{width:100%;max-width:360px;height:auto}
.hero-line{width:64px;height:6px;border-radius:0;background:var(--accent)}
@media (min-width:900px){.hero{padding:88px 0 96px}.hero-grid{grid-template-columns:1.15fr .85fr}}
.stats{background:var(--dark-2);color:#fff;padding:36px 0}
.stats-grid{display:grid;gap:24px;text-align:center}
.stat strong{display:block;font-family:var(--font-title);font-size:clamp(2.2rem,5vw,3rem);color:var(--accent);line-height:1.1}
.stat span{font-size:.9rem;color:rgba(255,255,255,.75)}
@media (min-width:700px){.stats-grid{grid-template-columns:repeat(3,1fr)}}
.section{padding:64px 0}
.section.tight{padding:32px 0 72px}
.section.alt{background:var(--bg)}
.section-title{font-size:clamp(1.6rem,3vw,2.2rem);color:var(--ink)}
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:32px}
.grid-cats{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.cat-card{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid var(--gray-200);border-radius:var(--r-lg);padding:24px;transition:transform .2s,box-shadow .2s,border-color .2s}
.cat-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-card);border-color:var(--accent)}
.cat-n{font-family:var(--font-title);font-size:2.2rem;font-weight:700;color:var(--dark);line-height:1;box-shadow:inset 0 -.32em 0 var(--accent);align-self:flex-start;padding:0 2px}
.cat-card strong{font-size:1rem}
.about-grid{display:grid;gap:32px;align-items:center}
.about-grid .lead{margin:14px 0 24px}
.about-quote{background:var(--dark);color:#fff;border-radius:var(--r-xl);padding:36px 30px;position:relative;border-left:6px solid var(--accent)}
.about-quote p{font-family:var(--font-title);font-size:clamp(1.2rem,2.2vw,1.5rem);line-height:1.45;font-weight:600}
.about-quote span{display:block;margin-top:16px;color:var(--accent);font-weight:600;font-size:.9rem}
@media (min-width:900px){.about-grid{grid-template-columns:1.1fr .9fr}}
.cta-band{background:var(--accent);color:var(--dark);padding:56px 0}
.cta-inner{display:flex;flex-direction:column;gap:24px;align-items:flex-start}
.cta-inner h2{font-size:clamp(1.5rem,3vw,2rem);margin-bottom:8px}
.cta-inner p{color:var(--gray-700);max-width:52ch}
@media (min-width:760px){.cta-inner{flex-direction:row;align-items:center;justify-content:space-between}}

/* ===== 6. CARDS E LISTAGENS ===== */
.grid-cards{display:grid;gap:24px;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr))}
.card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--gray-200);border-radius:var(--r-lg);overflow:hidden;transition:transform .2s,box-shadow .2s}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-card)}
.card[hidden]{display:none}
.card-media{display:block;aspect-ratio:16/10;background:var(--dark-2);overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.card:hover .card-media img{transform:scale(1.04)}
.ph{display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--dark),var(--dark-3))}
.card-body{display:flex;flex-direction:column;gap:10px;padding:20px;flex:1}
.card-body .tag{align-self:flex-start}
.card-title{font-size:1.02rem;font-weight:700;line-height:1.4}
.card-title a:hover{color:var(--accent-ink)}
.card-meta{font-size:.8rem;color:var(--gray-500);margin-top:auto}
.page-head{background:var(--bg);padding:48px 0 40px;border-bottom:1px solid var(--gray-200)}
.page-head h1{font-size:clamp(1.9rem,4vw,2.8rem);margin-bottom:12px}
.page-head.err{text-align:center;padding:96px 0}
.page-head.err p{margin-top:16px}
.filters{display:flex;flex-direction:column;gap:16px;margin-bottom:20px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border-radius:999px;border:1.5px solid var(--gray-300);font-size:.85rem;font-weight:600;color:var(--gray-700)}
.chip:hover{border-color:var(--accent-ink);color:var(--accent-ink)}
.chip.on{background:var(--accent);border-color:var(--accent);color:var(--dark)}
.filter-search{display:flex;align-items:center;gap:10px;border:1.5px solid var(--gray-300);border-radius:999px;padding:0 16px;min-height:48px;color:var(--gray-500);max-width:480px}
.filter-search input{flex:1;border:0;outline:0;background:transparent;min-width:0;padding:10px 0;color:var(--ink)}
.filter-search:focus-within{border-color:var(--accent-ink)}
#filter-count{margin-bottom:20px}
.empty{padding:40px 0;text-align:center;color:var(--gray-500)}
.crumbs{background:#fff;border-bottom:1px solid var(--gray-200);font-size:.82rem}
.crumbs ol{display:flex;flex-wrap:wrap;gap:4px 8px;padding:12px 0;color:var(--gray-500)}
.crumbs li+li::before{content:"›";margin-right:8px;color:var(--gray-300)}
.crumbs a:hover{color:var(--accent-ink);text-decoration:underline}
.crumbs [aria-current]{color:var(--ink);font-weight:600}

/* ===== 7. POST E TEXTO CORRIDO ===== */
.post-head{padding:44px 0 8px}
.post-head h1{font-size:clamp(1.9rem,4.2vw,2.9rem);margin:16px 0 14px}
.post-meta{font-size:.86rem;color:var(--gray-500)}
.post-cover{margin:24px 0 8px}
.post-cover img{width:100%;border-radius:var(--r-lg);aspect-ratio:16/9;object-fit:cover;background:var(--dark-2)}
.prose{font-size:1.04rem;line-height:1.85;color:#222222;padding:24px 0}
.prose>*+*{margin-top:1.2em}
.prose h2{font-size:clamp(1.5rem,3vw,1.9rem);margin-top:1.8em;color:var(--ink)}
.prose h3{font-size:1.25rem;font-weight:700;margin-top:1.6em;font-family:var(--font)}
.prose h4,.prose h5{font-size:1.05rem;margin-top:1.4em}
.prose a{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:3px;text-underline-offset:3px;overflow-wrap:anywhere}
.prose a:hover{background:var(--accent-soft)}
.prose ul,.prose ol{padding-left:1.4em}
.prose ul{list-style:disc}
.prose ol{list-style:decimal}
.prose li+li{margin-top:.5em}
.prose img{border-radius:var(--r-md);margin-inline:auto;height:auto}
.prose figure{margin:1.6em 0}
.prose figcaption{font-size:.85rem;color:var(--gray-500);text-align:center;margin-top:8px}
.prose blockquote{border-left:4px solid var(--accent);padding:4px 0 4px 18px;font-style:italic;color:var(--gray-700)}
.prose hr{border:0;border-top:1px solid var(--gray-300);margin:2em 0}
.prose table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}
.prose td,.prose th{border:1px solid var(--gray-300);padding:8px 12px}
.prose iframe{max-width:100%}
.about-prose h2:first-child{margin-top:0}
.author{display:flex;flex-direction:column;gap:6px;background:var(--bg);border-radius:var(--r-lg);padding:22px 24px;margin:16px 0 8px;border-left:4px solid var(--accent)}
.author p{color:var(--gray-700);font-size:.92rem}
.pn-wrap{display:grid;gap:12px;margin:24px 0 56px}
.pn{display:flex;flex-direction:column;gap:4px;border:1px solid var(--gray-200);border-radius:var(--r-md);padding:16px 18px;min-height:44px}
.pn:hover{border-color:var(--accent-ink)}
.pn span{font-size:.78rem;color:var(--gray-500);font-weight:600}
.pn strong{font-size:.92rem;line-height:1.4}
.pn.next{text-align:right}
@media (min-width:700px){.pn-wrap{grid-template-columns:1fr 1fr}}
.notice{background:var(--accent-soft);border:1px dashed var(--accent-ink);border-radius:var(--r-sm);padding:12px 16px;margin:16px 0;font-size:.88rem}

/* ===== 8. CONTATO ===== */
.contact-grid{display:grid;gap:32px;align-items:start}
.contact-cards{display:grid;gap:14px}
.c-card{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--gray-200);border-radius:var(--r-lg);padding:20px;min-height:44px;transition:border-color .2s,transform .2s}
.c-card:hover{border-color:var(--accent);transform:translateY(-2px)}
.c-card svg{flex-shrink:0;color:var(--accent-ink);width:26px;height:26px}
.c-card strong{display:block}
.c-card span{font-size:.88rem;color:var(--gray-500)}
.form{background:var(--bg);border-radius:var(--r-xl);padding:28px;display:flex;flex-direction:column;gap:16px}
.form h2{font-size:1.5rem}
.form label{display:flex;flex-direction:column;gap:6px;font-size:.88rem;font-weight:600}
.form input[type=text],.form input[type=email],.form textarea{border:1.5px solid var(--gray-300);border-radius:var(--r-sm);padding:12px 14px;background:#fff;min-height:48px;width:100%}
.form input:focus,.form textarea:focus{outline:0;border-color:var(--accent-ink);box-shadow:0 0 0 3px var(--accent-soft)}
.form .check{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400}
.form .check input{width:22px;height:22px;margin-top:2px;flex-shrink:0}
.form .check a{color:var(--accent-ink);text-decoration:underline}
.form .invalid{border-color:#c4122f!important}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-msg{min-height:1.4em;font-size:.92rem;font-weight:600}
.form-msg.ok{color:#0a7a3d}
.form-msg.err{color:#c4122f}
@media (min-width:900px){.contact-grid{grid-template-columns:.9fr 1.1fr}}

/* ===== 9. RODAPÉ, COOKIE, TOPO ===== */
.footer{background:var(--dark);color:rgba(255,255,255,.78);padding-top:56px}
.footer-grid{display:grid;gap:36px;padding-bottom:40px}
.f-brand p{margin:14px 0 18px;max-width:34ch;font-size:.92rem}
.social{display:flex;gap:10px}
.social a{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(255,255,255,.2)}
.social a:hover{background:var(--accent);color:var(--dark);border-color:var(--accent)}
.f-title{font-family:var(--font);font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;color:#fff;margin-bottom:14px}
.footer li a{display:inline-block;padding:6px 0;font-size:.92rem;min-height:32px}
.footer li a:hover{color:var(--accent)}
.footer-bottom{display:flex;flex-direction:column;gap:12px;border-top:1px solid rgba(255,255,255,.12);padding:20px 0 28px;font-size:.84rem}
.footer-bottom ul{display:flex;flex-wrap:wrap;gap:4px 20px}
@media (min-width:760px){.footer-grid{grid-template-columns:1.4fr 1fr 1.2fr 1.2fr}.footer-bottom{flex-direction:row;justify-content:space-between}}
.cookie{position:fixed;left:16px;right:16px;bottom:16px;z-index:2400;background:var(--dark);color:#fff;border-radius:var(--r-lg);padding:18px 20px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow-card);max-width:760px;margin-inline:auto;font-size:.88rem}
.cookie[hidden]{display:none}
.cookie a{text-decoration:underline;color:var(--accent)}
.cookie-actions{display:flex;gap:10px;justify-content:flex-end}
@media (min-width:700px){.cookie{flex-direction:row;align-items:center}}
.to-top{position:fixed;right:18px;bottom:18px;width:48px;height:48px;border-radius:50%;background:var(--accent);color:var(--dark);font-size:1.3rem;font-weight:700;z-index:1500;box-shadow:var(--shadow-soft)}
.to-top[hidden]{display:none}
.cookie:not([hidden])~.to-top{bottom:120px}

/* faixa CTA amarela: botão escuro */
.cta-band .btn-accent{background:var(--dark);color:#fff}
.cta-band .btn-accent:hover{background:var(--dark-3)}
