/* ConsumidorBH.com.br — Patch v1.2 (páginas, sem tracking/stats)
   Objetivo: layout leve, institucional, com ícones + fundo SVG.
   Fonte: system-ui (zero downloads). */

:root{
  --bg: #0b1f2a;
  --bg2:#0d2b3a;
  --card:#0f3040;
  --text:#eaf2f6;
  --muted:#b7c7d3;
  --line: rgba(255,255,255,.10);
  --accent:#37a06a;
  --accent2:#2f8a5c;
  --warn:#ffcf5c;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --radius: 16px;
  --max: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth; background:#071720}
body{
  margin:0;
  min-height:100vh;
  overflow-x:hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(55,160,106,.18), transparent 55%),
              radial-gradient(900px 500px at 85% 10%, rgba(90,140,255,.16), transparent 55%),
              linear-gradient(180deg, var(--bg) 0%, #071720 100%);
  line-height:1.55;
}

a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%; height:auto}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:20px; top:20px; width:auto; height:auto; padding:10px 12px;
  background:#000; color:#fff; border-radius:10px; z-index:9999;
}

.header{
  position:sticky; top:0; z-index:50;
  background: rgba(7,23,32,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  position:relative;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  padding:12px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{
  width:34px; height:34px; border-radius:10px;
}
.brand .t1{font-weight:750; letter-spacing:.2px; line-height:1.05}
.brand .t2{font-size:12px; color:var(--muted); margin-top:2px}

.nav{
  display:flex; align-items:center; gap:14px;
  font-size:14px;
}
.nav a{
  padding:10px 10px;
  border-radius:10px;
  color:var(--muted);
}
.nav a[aria-current="page"]{color:var(--text); background:rgba(255,255,255,.06)}
.nav a:hover{background:rgba(255,255,255,.06); text-decoration:none; color:var(--text)}

/* Mobile menu (hambúrguer + dropdown) */
.nav-toggle{
  display:none;
  align-items:center; justify-content:center;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}
.nav-toggle:hover{background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18)}

.header-actions{display:flex; gap:10px; align-items:center;}

.badge-row{display:flex; flex-wrap:wrap; gap:8px;}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
  text-decoration:none !important;
  cursor:pointer;
  font-weight:650;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.18); transform: translateY(-1px)}
.btn:active{transform: translateY(0)}
.btn.primary{
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  border-color: rgba(0,0,0,.18);
  color:#06140e;
}
.btn.primary:hover{filter:brightness(1.03)}
.btn.ghost{background:transparent}
.btn.small{padding:10px 12px; font-size:14px}

.hero{
  position:relative;
  padding:52px 0 26px;
  overflow:hidden;
}
.hero:before{
  content:"";
  position:absolute; inset:0;
  background: url("/assets/img/hero-art.svg") center top / cover no-repeat;
  opacity:.20;
  pointer-events:none;
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:26px;
  align-items:start;
}
.kicker{
  color:var(--muted);
  font-size:14px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin:0 0 10px;
}
.h1{
  font-size: clamp(28px, 3.4vw, 44px);
  line-height:1.1;
  margin:0 0 10px;
  letter-spacing:-.02em;
}
.lead{color:rgba(234,242,246,.90); margin:0 0 18px; font-size:17px}
.hero-actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}

.card{
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-box{
  padding:18px;
}
.hero-box .box-title{
  margin:0 0 6px;
  font-weight:750;
  font-size:16px;
}
.hero-box .box-text{margin:0; color:var(--muted); font-size:14px}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  padding: 18px 0 32px;
}
.theme-card{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height: 190px;
}
.theme-head{
  display:flex; gap:12px; align-items:flex-start;
}
.theme-icon{
  width:72px; height:72px;
  border-radius:16px;
  background: rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.14);
}
.theme-icon img{
  width:46px; height:46px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.theme-title{margin:0; font-weight:800; font-size:16px; line-height:1.25}
.theme-desc{margin:0; color:var(--muted); font-size:14px}
.theme-actions{margin-top:auto; display:flex; flex-wrap:wrap; gap:10px}

.section-title{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  margin:24px 0 12px;
}
.section-title h2{margin:0; font-size:20px}
.badge{
  font-size:12px;
  color: rgba(234,242,246,.88);
  background: rgba(255,255,255,.08);
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
}

.content{
  padding: 16px 0 40px;
}
.prose{
  background: rgba(255,255,255,.05);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.prose h2{margin:18px 0 10px; font-size:20px}
.prose h3{margin:16px 0 8px; font-size:16px}
.prose p{margin:10px 0; color: rgba(234,242,246,.92)}
.prose ul{margin:10px 0 10px 18px; color: rgba(234,242,246,.92)}
.prose li{margin:6px 0}
.prose .note{
  margin-top:14px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(234,242,246,.92);
}

.faq{
  border-top:1px solid var(--line);
  margin-top:14px; padding-top:14px;
}
details{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  border-radius:12px;
  padding:10px 12px;
  margin:10px 0;
}
summary{cursor:pointer; font-weight:700}
details p{margin:10px 0 0; color: rgba(234,242,246,.90)}

.footer{
  border-top:1px solid var(--line);
  padding: 26px 0;
  color: rgba(234,242,246,.90);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:start;
}
.footer small{color:var(--muted)}
.footer a{color: rgba(234,242,246,.92)}
.footer-links{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px}
.legalbar{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
  display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between;
  font-size:12px;
  color: var(--muted);
}

/* Modal */
.modal{
  position:fixed; inset:0;
  display:none;
  align-items:center; justify-content:center;
  padding:18px;
  z-index:120;
}
.modal[aria-hidden="false"]{display:flex}
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.modal-panel{
  position:relative;
  width: min(720px, 100%);
  max-height: min(84vh, 860px);
  overflow:auto;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(8,24,33,.96);
  box-shadow: var(--shadow);
}
.modal-head{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
}
.modal-title{margin:0; font-size:16px; font-weight:850}
.modal-sub{margin:4px 0 0; color:var(--muted); font-size:13px}
.iconbtn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding:10px 12px;
  cursor:pointer;
}
.iconbtn:hover{background: rgba(255,255,255,.10)}
.modal-body{padding:14px 16px}
.field{margin:12px 0}
label{display:block; font-weight:700; margin-bottom:6px}
select, input[type="text"], input[type="number"], textarea{
  width:100%;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding:12px 12px;
  font-size:15px;
  outline:none;
}
textarea{min-height:84px; resize:vertical}
.hint{margin-top:6px; color:var(--muted); font-size:12px}
.modal-actions{
  padding:14px 16px;
  border-top:1px solid var(--line);
  display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end;
}
.alert{
  display:none;
  margin-top:12px;
  border-radius:12px;
  padding:12px 12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(234,242,246,.92);
}
.alert a{font-weight:800}
.alert.show{display:block}

/* Responsive */
@media (max-width: 940px){
  .hero-inner{grid-template-columns: 1fr}
  .grid{grid-template-columns: repeat(2, 1fr)}
  .footer-grid{grid-template-columns:1fr}
}
@media (max-width: 620px){
  .grid{grid-template-columns: 1fr}
  .hero{padding-top:42px}
  .theme-icon{width:64px; height:64px}
  .theme-icon img{width:42px; height:42px}

  .nav-toggle{display:inline-flex}
  .nav{
    display:none;
    position:absolute;
    top:56px;
    right:0;
    flex-direction:column;
    gap:6px;
    width:min(280px, 92vw);
    padding:10px;
    background: rgba(7,23,32,.96);
    border:1px solid var(--line);
    border-radius:14px;
    box-shadow: var(--shadow);
  }
  .nav.open{display:flex}
  .nav a{width:100%}
}

/* Accessibility */
:focus-visible{outline: 2px solid rgba(55,160,106,.85); outline-offset: 3px}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .btn{transition:none}
}
/* --- v1.2.x FIX: Dropdown (select/option) legível no desktop (Windows/Chrome) --- */
#triageModal select{
  background: rgba(10, 30, 40, .65);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
}

/* IMPORTANTE: o dropdown nativo do Windows pode abrir branco.
   Então garantimos que as OPTIONs tenham texto escuro em fundo claro. */
#triageModal select option{
  background: #ffffff;
  color: #0b1f2a;
}

/* Placeholder "Selecione..." (quando aparece no topo) */
#triageModal select option[disabled]{
  color: #6b7280;
}
/* Ícone grande ao lado do título nas páginas-tema */
.theme-hero-icon{
  width:200px;
  height:200px;
  border-radius:18px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  padding:10px;
  display:block;
  object-fit: scale-down;
  object-position: center;
}


