:root {
  --gold: #C9A84C;
  --gold-lt: #e0c06e;
  --dark: #0D121E;
  --dark2: #161c2d;
  --dark3: #1e2638;
  --border: rgba(201,168,76,.18);
  --text: #e8e4dc;
  --muted: rgba(232,228,220,.55);
  --white: #ffffff;
  --page-gutter: 22px;
  --field-bg: rgba(22,28,45,.72);
  --field-bg-soft: rgba(22,28,45,.58);
  --panel-bg: rgba(22,28,45,.35);
  --hero-glow: rgba(201,168,76,.08);
  --hero-wash: rgba(22,28,45,.4);
  --card-tag-bg: transparent;
  --card-tag-border: rgba(201,168,76,.22);
  --card-tag-text: rgba(232,228,220,.7);
}
[data-theme="light"] {
  --dark: #f7f6f2;
  --dark2: #ffffff;
  --dark3: #eceae4;
  --border: rgba(26,26,26,.16);
  --text: #141414;
  --muted: rgba(20,20,20,.72);
  --gold: #8A6414;
  --gold-lt: #A6791A;
  --field-bg: #ffffff;
  --field-bg-soft: #ffffff;
  --panel-bg: #f0eee8;
  --hero-glow: rgba(138,100,20,.08);
  --hero-wash: rgba(255,255,255,.55);
  --card-tag-bg: #f3f1eb;
  --card-tag-border: rgba(26,26,26,.16);
  --card-tag-text: rgba(20,20,20,.78);
}
[data-theme="light"] .logo img,
[data-theme="light"] .footer-brand img {
  filter: brightness(0) saturate(100%) invert(8%) sepia(18%) saturate(1200%) hue-rotate(355deg) brightness(95%) contrast(92%);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  font-family:'Barlow',sans-serif;
  background:var(--dark);
  color:var(--text);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  max-width:100%;
  overflow-x:hidden;
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
ul{list-style:none}

.container{
  width:100%;max-width:1160px;margin:0 auto;
  padding-left:max(var(--page-gutter), env(safe-area-inset-left, 0px));
  padding-right:max(var(--page-gutter), env(safe-area-inset-right, 0px));
}

#header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  background:rgba(13,18,30,.96);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(201,168,76,.07);
}
[data-theme="light"] #header{background:rgba(245,244,240,.97)}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;
  height:108px;
  min-width:0;
}
.logo{display:flex;align-items:center;flex:0 0 auto;min-width:0}
.logo img{height:84px;width:auto;max-width:min(340px,58vw)}
nav{
  display:flex;align-items:center;justify-content:center;
  flex:1 1 auto;min-width:0;flex-wrap:nowrap;
}
nav a{
  flex:0 0 auto;
  white-space:nowrap;
  font-size:.84rem;font-weight:500;letter-spacing:.04em;
  color:var(--muted);transition:color .2s;
  padding:0;
  margin:0;
}
nav a + a{margin-left:28px}
nav a:hover,nav a.active{color:var(--gold)}
.header-actions{
  display:flex;align-items:center;gap:12px;
  flex:0 0 auto;
}
.btn-whats{
  background:var(--gold);color:#0D121E;
  font-size:.8rem;font-weight:700;letter-spacing:.05em;
  padding:9px 18px;border-radius:4px;
  transition:background .25s,transform .2s,box-shadow .25s;
  white-space:nowrap;
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
  flex-shrink:0;
}
.btn-whats svg{width:17px;height:17px;display:none}
.btn-whats:hover{background:var(--gold-lt);transform:translateY(-2px);box-shadow:0 10px 26px rgba(201,168,76,.35)}
.theme-toggle{
  background:none;border:1px solid var(--border);
  border-radius:50%;width:38px;height:38px;padding:0;
  cursor:pointer;color:var(--text);
  display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;
}
.theme-toggle:hover{border-color:var(--gold);color:var(--gold)}
.menu-toggle{
  display:none;background:none;border:none;cursor:pointer;
  flex-direction:column;gap:5px;padding:4px;
}
.menu-toggle span{
  display:block;width:22px;height:2px;
  background:var(--text);border-radius:2px;
}

#mobile-nav{
  display:none;position:fixed;top:108px;left:0;right:0;z-index:99;
  background:var(--dark2);border-bottom:1px solid var(--border);
  padding:20px max(var(--page-gutter), env(safe-area-inset-right, 0px));
  padding-left:max(var(--page-gutter), env(safe-area-inset-left, 0px));
  flex-direction:column;gap:4px;
}
#mobile-nav.open{display:flex}
#mobile-nav a{
  padding:12px 14px;border-radius:5px;font-size:.9rem;
  font-weight:500;color:var(--text);
}
#mobile-nav a:hover,#mobile-nav a.active{background:var(--dark3);color:var(--gold)}

.blog-page{
  padding-top:calc(108px + 1rem);
  padding-bottom:0;
  min-height:calc(100svh - 108px);
  display:flex;
  flex-direction:column;
}
.blog-hero-full{
  padding:2.5rem 0 1.75rem;
  border-bottom:1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, var(--hero-glow) 0%, transparent 55%),
    linear-gradient(180deg, var(--hero-wash) 0%, transparent 100%);
}
.blog-kicker{
  font-size:.72rem;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--gold);margin-bottom:.85rem;
}
.blog-title{
  font-size:clamp(1.85rem,4vw,2.65rem);font-weight:800;
  line-height:1.15;letter-spacing:-.02em;
  margin:0;text-wrap:balance;
}
.blog-title-full{
  max-width:none;
  width:100%;
  font-size:clamp(2rem,4.5vw,3rem);
}
.blog-title-line{display:block}
.blog-lead{
  font-size:1.05rem;line-height:1.75;color:var(--muted);
  margin-top:1rem;
  text-align:justify;text-justify:inter-word;hyphens:auto;
}
.blog-lead-full{
  max-width:52rem;
}
.blog-lead p + p{margin-top:1rem}

.blog-search{
  display:flex;align-items:center;gap:.75rem;
  margin-top:1.75rem;
  width:100%;
  max-width:none;
  padding:.95rem 1.15rem;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--field-bg);
  transition:border-color .2s, box-shadow .2s;
}
.blog-search:focus-within{
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(201,168,76,.16);
}
.blog-search-icon{color:var(--gold);display:inline-flex;flex-shrink:0}
.blog-search input{
  flex:1;min-width:0;
  background:transparent;border:0;outline:0;
  color:var(--text);font:inherit;font-size:1rem;
}
.blog-search input::placeholder{color:var(--muted);opacity:.9}
.blog-search input::-webkit-search-cancel-button{cursor:pointer}
.blog-count{
  margin-top:.85rem;
  font-size:.82rem;color:var(--muted);
}
.blog-filters-wrap{
  margin-top:1.15rem;
}
.blog-filters-toggle{
  width:100%;
  display:flex;align-items:center;gap:.65rem;
  appearance:none;cursor:pointer;
  padding:.85rem 1rem;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--field-bg-soft);
  color:var(--text);
  font:inherit;font-size:.88rem;font-weight:600;
  text-align:left;
  transition:border-color .2s, background .2s;
}
.blog-filters-toggle:hover{
  border-color:var(--gold);
}
.blog-filters-toggle-label{flex:0 0 auto}
.blog-filters-toggle-meta{
  flex:1;min-width:0;
  font-size:.78rem;font-weight:500;color:var(--muted);
}
.blog-filters-toggle-icon{
  width:.55rem;height:.55rem;
  border-right:2px solid var(--gold);
  border-bottom:2px solid var(--gold);
  transform:rotate(45deg);
  transition:transform .2s;
  margin-left:auto;
  flex-shrink:0;
}
.blog-filters-toggle[aria-expanded="true"] .blog-filters-toggle-icon{
  transform:rotate(-135deg);
  margin-top:.2rem;
}
.blog-filters-panel{
  margin-top:.75rem;
  padding:.85rem .9rem;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--panel-bg);
}
.blog-filters-panel[hidden]{display:none}
.blog-filters{
  display:flex;flex-wrap:wrap;gap:.5rem;
  margin-top:0;
}
.blog-filter{
  appearance:none;border:1px solid var(--border);
  background:transparent;color:var(--muted);
  font:inherit;font-size:.78rem;font-weight:600;
  letter-spacing:.02em;
  padding:.45rem .8rem;border-radius:999px;
  cursor:pointer;
  transition:border-color .2s, color .2s, background .2s;
}
.blog-filter:hover{
  border-color:rgba(201,168,76,.45);color:var(--text);
}
.blog-filter.is-active{
  border-color:rgba(201,168,76,.65);
  background:rgba(201,168,76,.14);
  color:var(--gold);
}

.blog-list-section{
  padding-top:2rem;
  padding-bottom:2.5rem;
  flex:1;
}
.blog-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:1rem;
}
.blog-card{
  display:flex;flex-direction:column;gap:.7rem;
  height:100%;
  padding:1.45rem 1.35rem 1.35rem;
  border:1px solid var(--border);
  border-radius:10px;
  background:
    linear-gradient(160deg, rgba(201,168,76,.07) 0%, transparent 45%),
    var(--dark2);
  transition:border-color .2s, transform .2s, box-shadow .2s;
}
.blog-card:hover{
  border-color:rgba(201,168,76,.45);
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(0,0,0,.18);
}
.blog-card-top{
  display:flex;align-items:center;justify-content:flex-start;gap:.75rem;
  margin-bottom:.1rem;
}
.blog-card-tag{
  font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--gold);font-weight:700;
}
.blog-card-date{display:none}
.blog-card h2{
  font-size:clamp(1rem,1.6vw,1.12rem);font-weight:800;line-height:1.35;
  text-wrap:balance;margin:0;
}
.blog-card-sub{
  font-size:.84rem;color:var(--text);opacity:.82;line-height:1.55;
  margin:0;
}
.blog-card > p{
  font-size:.84rem;color:var(--muted);line-height:1.65;margin:0;
}
.blog-card-link{
  display:inline-flex;align-items:center;
  margin-top:.45rem;
  font-size:.82rem;font-weight:700;color:var(--gold);
}
.blog-card-link:hover{color:var(--gold-lt)}
.blog-card-tags{
  display:flex;flex-wrap:wrap;gap:.4rem;
  margin-top:.2rem;
}
.blog-card-mini-tag{
  font-size:.68rem;color:var(--card-tag-text);
  background:var(--card-tag-bg);
  border:1px solid var(--card-tag-border);
  border-radius:999px;padding:.28rem .55rem;
}

.blog-empty{padding:2rem 0}
.blog-empty-msg{
  color:var(--muted);font-size:1rem;line-height:1.6;
  text-align:center;max-width:28rem;margin:0 auto;
}

.blog-cta-band{
  margin-top:auto;
  padding:3rem 0;
  text-align:center;
  border-top:1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, var(--hero-glow) 0%, transparent 55%),
    var(--dark2);
}
.blog-cta-band h2{
  font-size:clamp(1.3rem,2.5vw,1.7rem);font-weight:800;
  margin-bottom:.65rem;
}
.blog-cta-band p{
  color:var(--muted);margin:0 auto 1.35rem;
  max-width:32rem;line-height:1.65;
  text-align:justify;text-justify:inter-word;hyphens:auto;
}

/* article page shell */
.blog-shell{
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}

.article-wrap{max-width:760px;margin:0 auto}
.article-meta{
  display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;
  font-size:.82rem;color:var(--muted);margin-bottom:1.25rem;
}
.article-disclaimer{
  margin:0 0 2rem;
  padding:1rem 1.15rem;
  border-left:3px solid var(--gold);
  background:rgba(201,168,76,.08);
  border-radius:0 8px 8px 0;
  font-size:.88rem;line-height:1.65;color:var(--muted);
}
.article-body h2{
  font-size:clamp(1.25rem,2.5vw,1.55rem);font-weight:800;
  margin:2.25rem 0 .9rem;line-height:1.25;color:var(--text);
  text-wrap:balance;
}
.article-body h3{
  font-size:1.05rem;font-weight:700;margin:1.5rem 0 .65rem;color:var(--text);
}
.article-body p{
  font-size:1.02rem;line-height:1.8;color:var(--muted);margin-bottom:1rem;
  text-align:justify;text-justify:inter-word;hyphens:auto;
}
.article-body strong{color:var(--text);font-weight:600}
.article-body ul,.article-body ol{
  margin:0 0 1.15rem 1.2rem;color:var(--muted);
}
.article-body ul{list-style:disc}
.article-body ol{list-style:decimal}
.article-body li{
  font-size:1.02rem;line-height:1.7;margin-bottom:.45rem;
  padding-left:.25rem;
  text-align:justify;text-justify:inter-word;hyphens:auto;
}
.article-body li::marker{color:var(--gold)}
.article-tags{
  display:flex;flex-wrap:wrap;gap:.5rem;margin:2rem 0 0;
}
.article-tags span{
  font-size:.75rem;padding:.35rem .7rem;border-radius:999px;
  border:1px solid var(--border);color:var(--muted);
}
.article-cta{
  margin-top:2.75rem;padding:1.75rem 1.5rem;text-align:center;
  border:1px solid var(--border);border-radius:10px;
  background:linear-gradient(160deg,rgba(201,168,76,.08),transparent 60%);
}
.article-cta h2{font-size:1.35rem;font-weight:800;margin-bottom:.5rem}
.article-cta p{color:var(--muted);margin-bottom:1.15rem;max-width:32rem;margin-left:auto;margin-right:auto}
.article-cta-inline{
  margin:1.75rem 0 2rem;
  padding:1.15rem 1.2rem;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1rem 1.25rem;
  border-left:3px solid var(--gold);
  border-radius:0 10px 10px 0;
  background:linear-gradient(90deg, rgba(201,168,76,.1), transparent 70%);
}
.article-cta-inline p{
  margin:0;
  flex:1 1 16rem;
  font-size:.95rem;
  line-height:1.55;
  color:var(--text);
  text-align:justify;
  text-justify:inter-word;
  hyphens:auto;
}
.article-cta-inline .btn-primary{
  flex:0 0 auto;
  padding:10px 16px;
  font-size:.84rem;
}
@media (max-width:560px){
  .article-cta-inline{align-items:stretch}
  .article-cta-inline .btn-primary{width:100%;text-align:center}
}
.btn-primary{
  position:relative;overflow:hidden;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--gold);color:#0D121E;
  font-size:.88rem;font-weight:700;letter-spacing:.04em;
  padding:12px 22px;border-radius:4px;
  transition:background .25s,transform .2s;
}
.btn-primary:hover{background:var(--gold-lt);transform:translateY(-2px)}
.back-blog{
  display:inline-block;font-size:.85rem;color:var(--muted);
  margin-bottom:1.25rem;
}
.back-blog:hover{color:var(--gold)}

#footer{
  border-top:1px solid var(--border);
  background:var(--dark2);
  padding:48px 0 28px;margin-top:2rem;
}
.footer-inner{
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:36px;
}
.footer-brand p{font-size:.8rem;color:var(--muted);line-height:1.65;max-width:300px;text-align:justify;text-justify:inter-word;hyphens:auto}
.footer-brand .footer-cnpj{margin-top:6px;font-size:.75rem}
.footer-col h5{
  font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--text);margin-bottom:14px;font-weight:700;
}
.footer-col ul{display:flex;flex-direction:column;gap:8px}
.footer-col li a{font-size:.82rem;color:var(--muted);transition:color .2s}
.footer-col li a:hover{color:var(--gold)}
.footer-social{display:flex;gap:10px;margin-top:20px}
.social-btn{
  width:36px;height:36px;border:1px solid var(--border);border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;color:var(--muted);
}
.social-btn svg{width:16px;height:16px}
.social-btn:hover{border-color:var(--gold);color:var(--gold)}
.footer-bottom{
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  margin-top:36px;padding-top:20px;border-top:1px solid var(--border);
}
.footer-bottom p{font-size:.74rem;color:var(--muted)}
.footer-bottom a{color:var(--gold);font-weight:600}

@media (min-width:1025px) and (max-width:1360px){
  .logo img{height:72px;max-width:min(280px,30vw)}
  nav a{font-size:.8rem}
  nav a + a{margin-left:22px}
  .btn-whats{font-size:.74rem;padding:8px 14px}
  .header-inner{gap:14px}
}
@media (max-width:1024px){
  nav{display:none}
  .menu-toggle{display:flex}
  .btn-whats span{display:none}
  .btn-whats svg{display:block}
  .btn-whats{padding:9px 12px;width:40px;height:40px;border-radius:50%;min-width:40px}
  .header-inner{height:92px}
  .logo img{height:64px}
  #mobile-nav{top:92px}
  .blog-page{padding-top:calc(92px + 1rem);min-height:calc(100svh - 92px)}
  .blog-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .footer-inner{grid-template-columns:1fr 1fr;gap:28px}
}
@media (max-width:560px){
  .blog-grid{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;text-align:center}
}
