/* ==========================================================================
   Brisa Ferramentas — modo claro opcional (leitura sob luz do sol).
   Camada ADITIVA: nada aqui roda sem html[data-theme="light"], que é ligado
   pelo botão flutuante (theme-toggle.js) e persistido em localStorage.
   O escuro continua sendo o padrão e premium-dark.css/chrome.css ficam intactos.
   Cores claras vêm do próprio theme.json: Base #FFFFFF, Cinza claro #F6F6F3,
   Cinza #5A5A5A; dourado em texto usa --gold-dark para manter contraste.
   ========================================================================== */

html[data-theme="light"]{
  --premium-bg:#f6f6f3;
  --premium-surface:#ffffff;
  --premium-card:#ffffff;
  --premium-card-2:#ffffff;
  --premium-border:#dfddd3;
  --premium-text:#111111;
  --premium-muted:#5a5a5a;
  --premium-shadow:0 18px 44px rgba(17,17,17,.1);
  --border-dark:#dfddd3;
  --text-muted-dark:#5a5a5a;
}

/* ---------- Base ---------- */
html[data-theme="light"] body,
html[data-theme="light"] body.brisa-landing-page{color:#111}
html[data-theme="light"] body:not(.wp-admin) main{color:#111}

/* ---------- Hero / carrossel ---------- */
html[data-theme="light"] .brisa-landing-page .hero{
  background:radial-gradient(circle at 73% 48%,rgba(var(--gold-rgb),.2),transparent 31%),#efeee8!important;
  border-bottom:1px solid #e0ded4;
}
html[data-theme="light"] .brisa-hero-slide{color:#111}
html[data-theme="light"] .hero-copy>p{color:#3d3d3d}
html[data-theme="light"] .btn-outline{border-color:#8a8a82;color:#111}
html[data-theme="light"] .btn-outline:hover{background:#111;color:#fff;border-color:#111}
html[data-theme="light"] .eyebrow{color:var(--gold-dark)}
html[data-theme="light"] .hero h1 em,
html[data-theme="light"] .offer-copy h2 em{color:var(--gold-dark)!important}
html[data-theme="light"] .hero-trust{color:#5a5a5a}
html[data-theme="light"] .hero-trust b{color:#111}
html[data-theme="light"] .hero-trust i{background:#c9c6ba}
html[data-theme="light"] .hero-brisito img{filter:drop-shadow(0 22px 24px rgba(17,17,17,.35))}
html[data-theme="light"] .hero-slide-main{
  background:radial-gradient(circle at 73% 48%,rgba(var(--gold-rgb),.22),transparent 31%),#efeee8;
}
html[data-theme="light"] .hero-slide-workshop{
  background:
    linear-gradient(90deg,rgba(246,246,243,.97) 0%,rgba(246,246,243,.86) 42%,rgba(246,246,243,.24) 72%,rgba(246,246,243,.1) 100%),
    url('../images/hero-ferramentas.webp') 68% center/cover no-repeat;
}
html[data-theme="light"] .hero-slide-product{
  background:radial-gradient(circle at 78% 48%,rgba(var(--gold-rgb),.24),transparent 28%),linear-gradient(125deg,#f6f6f3 0%,#efeee8 58%,#f4ecd8 100%);
}
html[data-theme="light"] .hero-slide-support{
  background:radial-gradient(circle at 76% 45%,rgba(var(--whats-green-rgb),.12),transparent 28%),radial-gradient(circle at 68% 65%,rgba(var(--gold-rgb),.18),transparent 36%),#f2f1ea;
}
html[data-theme="light"] .hero-slide-social{
  background:
    linear-gradient(90deg,#f6f6f3 0%,rgba(246,246,243,.98) 30%,rgba(246,246,243,.8) 44%,rgba(246,246,243,.1) 63%,transparent 100%),
    url('../images/hero-social-premium-v2.webp') right center/auto 100% no-repeat,
    #f6f6f3;
}
@media (max-width:700px){
  html[data-theme="light"] .hero-slide-workshop{
    background-image:linear-gradient(90deg,rgba(246,246,243,.98) 0%,rgba(246,246,243,.92) 55%,rgba(246,246,243,.34) 100%),url('../images/hero-ferramentas.webp');
  }
  html[data-theme="light"] .hero-slide-social{
    background-image:linear-gradient(90deg,#f6f6f3 0%,rgba(246,246,243,.96) 52%,rgba(246,246,243,.4) 76%,rgba(246,246,243,.08) 100%),url('../images/hero-social-premium-v2.webp');
  }
}
html[data-theme="light"] .hero-product-media{
  border-color:rgba(201,143,0,.5);
  box-shadow:0 24px 55px rgba(17,17,17,.22),0 0 0 7px rgba(17,17,17,.03);
}
html[data-theme="light"] .brisa-hero-controls{background:#fff;border-color:#d5d3c8}
html[data-theme="light"] .brisa-hero-controls button{color:#555}
html[data-theme="light"] .brisa-hero-dots button::before{background:#a7a49a}
html[data-theme="light"] .brisa-hero-dots button.is-active::before{background:var(--gold-dark)}
html[data-theme="light"] .brisa-hero-dots button:focus-visible{outline-color:#111}
html[data-theme="light"] .brisa-hero-toggle{color:var(--gold-dark)!important}

/* ---------- Seções, títulos e cartões ---------- */
html[data-theme="light"] .section,
html[data-theme="light"] .categories,
html[data-theme="light"] .products-section,
html[data-theme="light"] .brands,
html[data-theme="light"] .newsletter,
html[data-theme="light"] .store-cta,
html[data-theme="light"] .offer-strip{color:#111}
html[data-theme="light"] .section h2,
html[data-theme="light"] .section-heading h2,
html[data-theme="light"] .offer-copy h2,
html[data-theme="light"] .newsletter h2{color:#111!important}
html[data-theme="light"] .section-heading>a:hover,
html[data-theme="light"] .section-heading a:hover{color:var(--gold-dark)}

html[data-theme="light"] .category-card,
html[data-theme="light"] .product-card,
html[data-theme="light"] .woocommerce ul.products li.product{
  background:#fff!important;
  border:1px solid #e2e0d6!important;
  color:#111!important;
  box-shadow:0 8px 22px rgba(17,17,17,.05)!important;
}
html[data-theme="light"] .category-card:hover,
html[data-theme="light"] .product-card:hover,
html[data-theme="light"] .woocommerce ul.products li.product:hover{border-color:var(--gold-dark)!important}
html[data-theme="light"] .category-card span,
html[data-theme="light"] .category-card small,
html[data-theme="light"] .product-info>small{color:var(--gold-dark)!important}
html[data-theme="light"] .category-card h3,
html[data-theme="light"] .product-card h3,
html[data-theme="light"] .product-card h3 a,
html[data-theme="light"] .woocommerce ul.products li.product .woocommerce-loop-product__title,
html[data-theme="light"] .woocommerce ul.products li.product h2{color:#111!important}
html[data-theme="light"] .product-image,
html[data-theme="light"] .woocommerce ul.products li.product a img{background:#fff!important}
html[data-theme="light"] .product-card .product-image{background:radial-gradient(circle at 50% 48%,#fff,#f0efe8 72%)!important}
html[data-theme="light"] .product-info p{color:#666!important}
html[data-theme="light"] .quote-price,
html[data-theme="light"] .woocommerce ul.products li.product .price{color:#111!important}
html[data-theme="light"] .woocommerce .woocommerce-breadcrumb a{color:#555!important}
html[data-theme="light"] .woocommerce .woocommerce-breadcrumb a:hover{color:var(--gold-dark)!important}

html[data-theme="light"] .category-card>span{
  color:var(--gold-dark)!important;
  background:radial-gradient(circle at 35% 28%,#fff 0,#f4f3ec 46%,#e9e7db 100%)!important;
  box-shadow:
    0 0 0 6px rgba(var(--gold-rgb),.12),
    0 10px 22px rgba(17,17,17,.14),
    inset 0 1px 0 #fff;
}
html[data-theme="light"] .category-card>span svg{filter:drop-shadow(0 2px 3px rgba(17,17,17,.25))}

/* ---------- Botões de orçamento / tabs ---------- */
html[data-theme="light"] .tabs{background:#fff;border-color:#e2e0d6}
html[data-theme="light"] .tabs button{color:#5a5a5a}
html[data-theme="light"] .quote-button,
html[data-theme="light"] .woocommerce a.button.product_type_external,
html[data-theme="light"] main a.product_type_external,
html[data-theme="light"] .wc-block-components-product-button__button{
  background:#fff!important;color:#111!important;border-color:#c9c6ba!important;
}
html[data-theme="light"] .quote-button:hover,
html[data-theme="light"] .woocommerce a.button.product_type_external:hover,
html[data-theme="light"] main a.product_type_external:hover,
html[data-theme="light"] .wc-block-components-product-button__button:hover{
  background:var(--premium-green)!important;border-color:var(--premium-green)!important;color:#fff!important;
}
@media (max-width:700px){
  html[data-theme="light"] .woocommerce ul.products li.product .button.product_type_external,
  html[data-theme="light"] .woocommerce ul.products li.product .button.product_type_external:hover,
  html[data-theme="light"] .woocommerce ul.products li.product .button.product_type_external:focus{
    background:#fff!important;border-color:#c9c6ba!important;color:#111!important;
  }
}

/* ---------- Catálogo, produto, formulários ---------- */
html[data-theme="light"] .wp-site-blocks,
html[data-theme="light"] .wp-block-post-content,
html[data-theme="light"] .woocommerce,
html[data-theme="light"] .woocommerce-page{color:#111}
html[data-theme="light"] .wp-block-post-title,
html[data-theme="light"] .woocommerce-products-header__title,
html[data-theme="light"] .woocommerce div.product .product_title,
html[data-theme="light"] .woocommerce h1,
html[data-theme="light"] .woocommerce h2,
html[data-theme="light"] .woocommerce h3{color:#111!important}
html[data-theme="light"] .brisa-sidebar{background:#fff!important}
html[data-theme="light"] .brisa-sidebar h3,
html[data-theme="light"] .brisa-sidebar a,
html[data-theme="light"] .wc-block-product-categories-list>li>a{color:#111!important}
html[data-theme="light"] .brisa-sidebar a:hover,
html[data-theme="light"] .wc-block-product-categories-list a:hover{color:var(--gold-dark)!important}
html[data-theme="light"] .brisa-cat-toggle{color:var(--gold-dark)}
html[data-theme="light"] .woocommerce div.product div.summary,
html[data-theme="light"] .woocommerce-tabs,
html[data-theme="light"] .woocommerce-Tabs-panel,
html[data-theme="light"] .woocommerce table.shop_attributes,
html[data-theme="light"] .woocommerce table.shop_attributes td,
html[data-theme="light"] .woocommerce table.shop_attributes th{color:#333!important}
html[data-theme="light"] .single-product .wp-block-woocommerce-product-meta>.wp-block-group{background:#efeee8}
html[data-theme="light"] .single-product .wp-block-woocommerce-product-meta .wp-block-woocommerce-product-sku,
html[data-theme="light"] .single-product .wp-block-woocommerce-product-meta .taxonomy-product_cat{color:#555!important}
html[data-theme="light"] .single-product .wp-block-woocommerce-product-meta a{color:#111!important}

html[data-theme="light"] .brisa-product-description{
  background:#fff;
  border-color:#e2e0d6;
  border-left-color:var(--gold-dark);
  box-shadow:0 12px 28px rgba(17,17,17,.08);
}
html[data-theme="light"] .brisa-product-description-label{color:var(--gold-dark)!important}
html[data-theme="light"] .woocommerce .brisa-product-description h2{color:#111!important}
html[data-theme="light"] .brisa-product-description-content p{color:#444}
html[data-theme="light"] .brisa-product-description-content>h3{color:#111!important}
html[data-theme="light"] .brisa-product-description-content>ul{color:#333}
html[data-theme="light"] .brisa-product-description-content>p:last-child:not(:first-child){border-top-color:#e2e0d6;color:#666}
html[data-theme="light"] .brisa-product-description-cta{background:#fff!important;color:#111!important;border-color:#c9c6ba!important}
html[data-theme="light"] .brisa-product-description-cta:hover,
html[data-theme="light"] .brisa-product-description-cta:focus-visible{background:var(--premium-green)!important;border-color:var(--premium-green)!important;color:#fff!important}

html[data-theme="light"] body:not(.wp-admin) input:not([type=submit]),
html[data-theme="light"] body:not(.wp-admin) textarea,
html[data-theme="light"] body:not(.wp-admin) select{background:#fff!important;color:#111!important}

/* ---------- Páginas institucionais (Sobre/Contato) ---------- */
html[data-theme="light"] .page-id-12 .entry-content>.wp-block-columns>.wp-block-column{background:#fff!important;color:#111}
html[data-theme="light"] .page-id-12 .entry-content>.wp-block-columns>.wp-block-column:last-child{background:#efeee8!important}
html[data-theme="light"] .page-id-12 .entry-content h3{color:#111!important}
html[data-theme="light"] .page-id-12 .entry-content p a{color:var(--gold-dark)!important}
html[data-theme="light"] .page-id-12 #mapa{filter:saturate(.82) contrast(1.03)}
html[data-theme="light"] .page-id-11 .entry-content{background:#fff}
html[data-theme="light"] .brisa-404{background:radial-gradient(circle at 78% 42%,rgba(var(--gold-rgb),.16),transparent 28%),#f6f6f3!important}
html[data-theme="light"] .brisa-404-card{background:#fff;border-color:#e2e0d6}
html[data-theme="light"] .brisa-404 h1{color:#111!important}
html[data-theme="light"] .brisa-404-code{color:rgba(201,143,0,.18)}
html[data-theme="light"] .brisa-404-secondary{color:#111!important;border-color:#b8b5a9}
html[data-theme="light"] .brisa-404-mascot img{filter:drop-shadow(0 20px 22px rgba(17,17,17,.3))}

/* ---------- Banner de atendimento (offer-strip) ---------- */
html[data-theme="light"] .offer-strip{
  border-top:1px solid rgba(201,143,0,.45)!important;
  border-bottom:1px solid rgba(201,143,0,.45)!important;
  background:
    radial-gradient(circle at 68% 50%,rgba(var(--gold-rgb),.18),transparent 27%),
    linear-gradient(105deg,#f6f6f3 0 66%,#f3ecd8 100%)!important;
}
html[data-theme="light"] .offer-copy .offer-callout{color:#111!important}
html[data-theme="light"] .offer-copy>p:not(.offer-callout){color:#5a5a5a!important}
html[data-theme="light"] .offer-brisito-stage .offer-brisito{filter:drop-shadow(0 22px 22px rgba(17,17,17,.3))!important}
html[data-theme="light"] .brand-grid{background:#fff!important}
html[data-theme="light"] .brand-grid span{color:#555!important}

/* ---------- Chat ---------- */
html[data-theme="light"] .chat-window,
html[data-theme="light"] .chat-layout{background:#fff!important;color:#111!important;border-color:#dcd9cd!important}
html[data-theme="light"] .chat-window-toggle::after{background:radial-gradient(circle at 12px 50%,var(--whats-green) 0 3.5px,transparent 4.5px),#fff;border-color:#c9c6ba;color:#111;box-shadow:0 6px 16px rgba(17,17,17,.18)}

/* ---------- Cabeçalho (chrome.css) ---------- */
html[data-theme="light"] .brisa-header{background:rgba(255,255,255,.97);box-shadow:0 8px 26px rgba(17,17,17,.1)}
html[data-theme="light"] .brisa-global-topbar{background:#eceade;color:#666}
html[data-theme="light"] .brisa-global-topbar strong{color:#111}
html[data-theme="light"] .brisa-marca{color:#111}
html[data-theme="light"] .brisa-marca-txt strong{color:#111}
html[data-theme="light"] .brisa-marca-txt em{color:var(--gold-dark)}
html[data-theme="light"] .brisa-busca{background:#fff;border-color:#d5d3c8;box-shadow:inset 0 1px rgba(17,17,17,.03)}
html[data-theme="light"] .brisa-busca input[type=search]{color:#111}
html[data-theme="light"] .brisa-busca input::placeholder{color:#8a8a82}
html[data-theme="light"] .brisa-busca button svg{fill:var(--gold-dark)}
html[data-theme="light"] .brisa-header-specialist{color:#111}
html[data-theme="light"] .brisa-header-specialist > svg{stroke:#111}
html[data-theme="light"] .brisa-header-specialist strong{color:#111}
html[data-theme="light"] .brisa-header-specialist:hover strong{color:var(--gold-dark)}
html[data-theme="light"] .brisa-mobile-menu{color:#111}
html[data-theme="light"] .brisa-nav{background:#efeee8}
html[data-theme="light"] .brisa-nav a{color:#333}
html[data-theme="light"] .brisa-nav a:hover{color:var(--gold-dark)}
html[data-theme="light"] .brisa-nav a.brisa-ativo{color:var(--gold-dark);box-shadow:inset 0 -3px 0 var(--gold-dark)}

/* ---------- Benefícios ---------- */
html[data-theme="light"] .brisa-beneficios{background:#efeee8}
html[data-theme="light"] .brisa-beneficios .brisa-item{color:#111}
html[data-theme="light"] .brisa-beneficios .brisa-item > svg{background:#fff;border-color:var(--gold-dark);fill:var(--gold-dark)}

/* ---------- Rodapé ---------- */
html[data-theme="light"] .brisa-footer{background:#eceade;color:#5a5a5a}
html[data-theme="light"] .brisa-footer h3,
html[data-theme="light"] .brisa-footer strong{color:#111}
html[data-theme="light"] .brisa-footer a:hover{color:var(--gold-dark)}
html[data-theme="light"] .brisa-servicos{background:#fff;color:#111}
html[data-theme="light"] .brisa-servicos .brisa-item{color:#111}
html[data-theme="light"] .brisa-servicos .brisa-item span{color:#555}
html[data-theme="light"] .brisa-servicos .brisa-item svg{fill:var(--gold-dark);border-color:rgba(201,143,0,.55)}
html[data-theme="light"] .brisa-footer-main{background:#fff;border-color:#ddd;box-shadow:0 16px 38px rgba(17,17,17,.08)}
html[data-theme="light"] .brisa-footer-kicker{color:var(--gold-dark)}
html[data-theme="light"] .brisa-footer-brand strong{color:#111}
html[data-theme="light"] .brisa-footer-brand small{color:var(--gold-dark)}
html[data-theme="light"] .brisa-footer-brand-panel > p{color:#5a5a5a}
html[data-theme="light"] .brisa-footer-column a{color:#555;border-bottom-color:#e6e4d9}
html[data-theme="light"] .brisa-footer-column a span{color:var(--gold-dark)}
html[data-theme="light"] .brisa-footer-column a:hover{color:#111}
html[data-theme="light"] .brisa-footer-contact > p{color:#555}
html[data-theme="light"] .brisa-footer-contact > p svg{stroke:var(--gold-dark)}
html[data-theme="light"] .brisa-footer-contact > p a{color:#111}
html[data-theme="light"] .brisa-social a{background:#fff;border-color:rgba(201,143,0,.62);color:var(--gold-dark)}
html[data-theme="light"] .brisa-social a svg{fill:var(--gold-dark)}
html[data-theme="light"] .brisa-social a:hover{background:var(--gold);border-color:var(--gold)}
html[data-theme="light"] .brisa-social a:hover svg{fill:#111}
html[data-theme="light"] .brisa-footer-bottom-modern{color:#666;border-top-color:#dcd9cd}
html[data-theme="light"] .brisa-back-to-top:focus-visible{outline-color:#111}

/* ---------- Botão flutuante de tema (os dois modos) ---------- */
.brisa-theme-toggle{
  position:fixed;
  left:18px;
  bottom:46px;
  z-index:40;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid #353535;
  border-radius:50%;
  background:#0b0b0b;
  color:var(--gold);
  cursor:pointer;
  box-shadow:0 10px 26px rgba(0,0,0,.45);
  transition:background-color .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;
}
.brisa-theme-toggle:hover{transform:translateY(-2px);border-color:var(--gold)}
.brisa-theme-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.brisa-theme-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.brisa-theme-toggle .brisa-icon-sun{display:block}
.brisa-theme-toggle .brisa-icon-moon{display:none}
html[data-theme="light"] .brisa-theme-toggle{background:#fff;border-color:#c9c6ba;color:#7a5c00;box-shadow:0 10px 24px rgba(17,17,17,.18)}
html[data-theme="light"] .brisa-theme-toggle .brisa-icon-sun{display:none}
html[data-theme="light"] .brisa-theme-toggle .brisa-icon-moon{display:block}
@media (max-width:700px){
  .brisa-theme-toggle{left:14px;bottom:18px;width:40px;height:40px}
}
