/* Casa João de Barro — clone visual do site oficial (Builderall). Cores e fontes extraídas ao vivo do site em produção. */

:root {
  --preto: #212529;
  --branco: #FFFFFF;
  --cinza: #5C5850;
  --linha: #E4DED0;
  --dourado: #D6CD6E;
  --dourado-escuro: #C7BC4E;
  --marrom: #4C1E00;
  --marrom-avermelhado: #9E3F00;
  --loja-bg: #241812;
  --preto-barra: #0D0D0D;
  --shadow: 0 1px 2px rgba(10,10,10,0.05), 0 6px 20px -10px rgba(10,10,10,0.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--branco);
  color: var(--preto);
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { font-family: 'Lato', sans-serif; font-weight: 900; color: var(--marrom); line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); text-align: center; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); text-align: center; }
h3 { font-size: 1.2rem; text-align: center; }
p { margin: 0 0 1rem; max-width: 68ch; }

/* Header */
header.site-header {
  background: var(--branco);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.25rem;
  max-width: 1200px; margin: 0 auto;
  gap: 1rem;
}
.logo { flex-shrink: 0; }
.logo img { height: 64px; width: auto; }
nav.main-nav { display: none; }
nav.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.8rem; align-items: center; }
nav.main-nav a {
  display: inline-block;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--marrom);
  background: none;
  padding: 0.3rem 0;
  border-radius: 0;
  transition: color 0.15s ease;
}
nav.main-nav a:hover { color: var(--marrom-avermelhado); }
nav.main-nav .dropdown { position: relative; }
nav.main-nav .dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0; margin-top: 0; padding-top: 0.6rem;
  background: transparent; z-index: 60;
}
nav.main-nav .dropdown-menu-inner {
  background: var(--branco); border: 1px solid var(--linha); border-radius: 10px;
  box-shadow: var(--shadow); min-width: 220px; padding: 0.4rem;
}
nav.main-nav .dropdown:hover .dropdown-menu,
nav.main-nav .dropdown:focus-within .dropdown-menu { display: block; }
nav.main-nav .dropdown-menu a {
  display: block; background: none; color: var(--preto); font-weight: 500;
  padding: 0.55rem 0.75rem; border-radius: 6px;
}
nav.main-nav .dropdown-menu a:hover { background: var(--branco); color: var(--marrom-avermelhado); }
.nav-toggle {
  background: none; color: var(--preto); border: none;
  padding: 0.4rem; font-size: 1.5rem; cursor: pointer; line-height: 1;
  position: relative; z-index: 101; width: 32px; height: 28px;
}
.nav-toggle .linha { display: block; text-align: center; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  nav.main-nav { display: block; }
}
nav.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  background: var(--branco);
  position: fixed; inset: 0; z-index: 100;
  padding: 2rem;
  text-align: center;
}
nav.mobile-nav.open { display: flex; }
nav.mobile-nav a {
  text-decoration: none;
  color: var(--preto);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}
nav.mobile-nav .sub-label { font-size: 0.85rem; color: var(--cinza); margin-top: -0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
nav.mobile-nav .mobile-sub { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; margin-top: -0.8rem; }
nav.mobile-nav .mobile-sub a { font-size: 1rem; }
.mobile-nav-close {
  position: fixed; top: 1.1rem; right: 1.25rem; z-index: 102;
  background: none; border: none; font-size: 1.6rem; color: var(--preto); cursor: pointer; display: none;
}
.mobile-nav-close.open { display: block; }
@media (min-width: 900px) { nav.mobile-nav { display: none !important; } .mobile-nav-close { display: none !important; } }

/* Hero */
.hero-page {
  position: relative;
  background: linear-gradient(180deg, rgba(20,15,12,0.5), rgba(20,15,12,0.72)), var(--hero-img) center/cover no-repeat;
  color: var(--branco);
  padding: 3.2rem 1.25rem;
  text-align: center;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-page .hero-inner { max-width: 700px; margin: 0 auto; }
.hero-page h1 { color: var(--branco); font-weight: 500; font-family: 'Lato', sans-serif; text-align: center; }
.hero-page .destaque { color: var(--dourado); font-weight: 900; }
.hero-page p.subtitulo { color: rgba(255,255,255,0.92); font-size: 1.05rem; max-width: 50ch; margin: 0 auto; text-align: center; }

.hero-page.hero-home {
  background: linear-gradient(180deg, rgba(20,15,12,0.28), rgba(20,15,12,0.5)), var(--hero-img) center/cover no-repeat;
  padding: 6rem 0;
  text-align: left;
  min-height: 560px;
  justify-content: flex-start;
}
.hero-home .hero-inner { max-width: 1140px; width: 100%; margin: 0 auto; padding: 0 1.25rem; }
.hero-home h1 { text-align: left; font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.25; max-width: 700px; }
.hero-home p.subtitulo { text-align: left; margin: 0; max-width: 700px; }
@media (max-width: 700px) {
  .hero-page.hero-home { min-height: 380px; padding: 3rem 1.25rem; text-align: center; justify-content: center; }
  .hero-home .hero-inner { padding-left: 0; padding-right: 0; margin: 0 auto; max-width: 100%; }
  .hero-home h1 { text-align: center; font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .hero-home p.subtitulo { text-align: center; margin: 0 auto; }
  .hero-home .btn-hero { display: inline-block; }
  .hero-home .hero-inner { display: flex; flex-direction: column; align-items: center; }
}
.btn-hero {
  display: inline-block; background: var(--dourado); color: var(--preto);
  font-family: 'Lato', sans-serif; font-weight: 700; text-decoration: none;
  padding: 0.75rem 1.8rem; border-radius: 10px; margin-top: 1.2rem; font-size: 1rem;
}
.btn-hero:hover { background: var(--dourado-escuro); }

.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem;
  background: var(--dourado); color: var(--preto);
  font-family: 'Lato', sans-serif; font-weight: 900; text-decoration: none;
  padding: 0.8rem 1.8rem; border-radius: 10px;
  font-size: 1rem; margin-top: 0.5rem;
  transition: background 0.15s ease, transform 0.15s ease;
  border: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--dourado-escuro); transform: translateY(-1px); }
.btn .sub { display: block; font-family: 'Lato', sans-serif; font-weight: 400; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.85; }
.btn-whats { background: var(--marrom-avermelhado); color: var(--branco); }
.btn-whats:hover { background: #7a3000; }
.btn-secundario {
  background: transparent; color: var(--marrom); border: 1.5px solid var(--marrom);
  border-radius: 10px;
}
.btn-secundario:hover { background: var(--marrom); color: var(--branco); }

/* Sections */
.section { padding: 3rem 0; }
.section-creme { background: #FAF8F0; }
.section-branco { background: var(--branco); }
.section-escura { background: var(--loja-bg); color: var(--branco); }
.section-escura h2 { color: var(--branco); }
.section-escura p { color: rgba(255,255,255,0.85); }
.section > .container > p.lede { font-size: 1.05rem; color: var(--cinza); max-width: 66ch; margin: 0 auto 1rem; text-align: center; }
.section > .container > p.eyebrow { text-align: center; }
.section > .container > p { text-align: left; }
.eyebrow {
  font-family: 'Lato', sans-serif; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--marrom-avermelhado);
  margin: 0 auto 0.5rem; text-align: center; display: block; max-width: none; width: 100%;
}

/* Category cards, ícone + botão 2 linhas, igual ao original */
.grid-cards {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.75rem;
}
@media (min-width: 700px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-cards.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--branco); border: 2px solid var(--dourado); border-radius: 14px;
  padding: 1.75rem 1.5rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.card .icone { width: 90px; height: 90px; margin-bottom: 0.4rem; object-fit: contain; }
.card h3 { margin: 0; }
.card p { font-size: 0.92rem; color: var(--cinza); margin: 0; text-align: center; }
.card .btn { width: 100%; margin-top: 0.8rem; }

/* Diferenciais em acordeão, igual ao original */
.diferenciais { list-style: none; margin: 1.5rem auto 0; padding: 0; max-width: 700px; display: flex; flex-direction: column; gap: 0.6rem; }
.diferenciais li {
  background: var(--dourado); border-radius: 8px; overflow: hidden;
}
.diferenciais summary {
  display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
  padding: 1rem 1.3rem; cursor: pointer; list-style: none;
  font-family: 'Lato', sans-serif; font-weight: 900; color: var(--preto);
}
.diferenciais summary::-webkit-details-marker { display: none; }
.diferenciais summary::after { content: "⌄"; font-size: 1.3rem; transition: transform 0.15s ease; }
.diferenciais details[open] summary::after { transform: rotate(180deg); }
.diferenciais .conteudo { padding: 0 1.3rem 1.1rem; color: rgba(33,37,41,0.85); background: var(--branco); font-size: 0.92rem; }

.numeros-painel {
  background: var(--dourado);
  background-image: repeating-linear-gradient(135deg, rgba(76,30,0,0.05) 0, rgba(76,30,0,0.05) 1px, transparent 1px, transparent 22px);
  padding: 3rem 0;
}
.numeros { display: grid; grid-template-columns: 1fr; gap: 2.25rem; text-align: center; }
@media (min-width: 700px) {
  .numeros { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .numero-item { position: relative; padding: 0 1.5rem; }
  .numero-item:not(:last-child)::after {
    content: ""; position: absolute; top: 8px; right: 0; bottom: 8px; width: 1px;
    background: rgba(76,30,0,0.25);
  }
}
.numeros .num {
  font-family: 'Lato', sans-serif; font-size: 3.4rem; font-weight: 900; line-height: 1;
  color: var(--marrom); letter-spacing: -0.02em;
}
.numeros .num-mais, .numeros .num-estrela { font-size: 0.55em; vertical-align: super; color: var(--marrom-avermelhado); }
.numeros .num-texto { font-size: 1.7rem; line-height: 1.25; }
.numeros .rotulo {
  color: var(--marrom); font-size: 0.92rem; font-weight: 700; margin-top: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.85;
}

/* Depoimentos, seção escura */
.depoimentos { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.75rem; }
@media (min-width: 700px) { .depoimentos { grid-template-columns: repeat(3, 1fr); } }
.depoimento { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 1.4rem; }
.depoimento p { font-size: 0.92rem; color: rgba(255,255,255,0.92); font-style: italic; text-align: left; }
.depoimento .autor { font-weight: 900; color: var(--dourado); font-size: 0.9rem; margin-top: 0.6rem; font-family: 'Lato', sans-serif; }

.faixa-cta {
  background: var(--branco); border: 2px solid var(--marrom-avermelhado); border-radius: 14px;
  padding: 2.5rem 1.5rem; text-align: center; max-width: 480px; margin: 0 auto;
}
.faixa-cta .icone-whats { width: 90px; height: 90px; margin: 0 auto 1rem; color: var(--marrom-avermelhado); }
.faixa-cta h2 { color: var(--preto); font-size: 1.2rem; }
.faixa-cta .btn { width: 100%; }

.galeria-loja { border-radius: 12px; overflow: hidden; margin-top: 1.5rem; max-width: 900px; margin-left: auto; margin-right: auto; }
.galeria-loja img { width: 100%; }

.mapa-wrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--linha); box-shadow: var(--shadow); margin-top: 1.5rem; }
.mapa-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

.breadcrumb { font-size: 0.85rem; color: var(--cinza); padding: 0.9rem 0; text-align: center; }
.breadcrumb a { text-decoration: none; color: var(--marrom-avermelhado); }
.breadcrumb a:hover { text-decoration: underline; }

/* Footer, dourado com faixa de 3 colunas, igual ao original */
footer.site-footer { background: var(--dourado); color: var(--preto); padding: 2.5rem 0 0; text-align: center; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; padding-bottom: 2.5rem; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; text-align: left; align-items: start; }
}
.footer-col { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 800px) { .footer-col { align-items: flex-start; } }
.footer-logo-col { justify-content: center; gap: 1rem; }
.footer-logo-col img { height: 70px; width: auto; }
@media (min-width: 800px) { .footer-logo-col { align-items: flex-end; justify-content: flex-start; } }
footer.site-footer h4, footer.site-footer .footer-heading { font-family: 'Lato', sans-serif; font-weight: 900; font-size: 1.1rem; margin: 0 0 0.6rem; }
.footer-contatos { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.94rem; }
.footer-contatos a { text-decoration: none; color: var(--preto); display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-contatos a svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-contatos a:hover { text-decoration: underline; }
.footer-menu { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-menu a { text-decoration: none; color: var(--preto); font-weight: 700; font-family: 'Lato', sans-serif; }
.footer-menu a:hover { color: var(--marrom-avermelhado); }
.footer-copyright { margin: 0; font-size: 0.85rem; color: var(--cinza); }
.footer-social { display: flex; justify-content: center; gap: 0.6rem; }
@media (min-width: 800px) { .footer-social { justify-content: flex-end; } }
.footer-social a { width: 40px; height: 40px; background: var(--marrom); color: var(--branco); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 20px; height: 20px; }

/* Principais clientes atendidos */
.clientes-atendidos { background: var(--dourado); padding: 2.5rem 0; }
.clientes-atendidos h2 { text-align: center; }
.clientes-logos { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; justify-content: center; margin-top: 1.5rem; }
.clientes-logos img { height: 52px; width: auto; max-width: 160px; }

/* Nossos Contatos: mapa + formulário + whatsapp, igual ao original */
.contatos-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.75rem; align-items: stretch; }
@media (min-width: 900px) { .contatos-grid { grid-template-columns: 1fr 1fr 1fr; } }
.contatos-mapa { border-radius: 12px; overflow: hidden; border: 1px solid var(--linha); box-shadow: var(--shadow); min-height: 320px; }
.contatos-mapa iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.contatos-form { border: 2px solid var(--marrom-avermelhado); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
.contatos-form input, .contatos-form textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--linha); border-radius: 8px;
  font: inherit; background: var(--branco); color: var(--preto);
}
.contatos-form textarea { min-height: 90px; resize: vertical; }
.contatos-form button { align-self: flex-start; }
.contatos-whats { border: 2px solid var(--marrom-avermelhado); border-radius: 14px; padding: 1.75rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; }
.contatos-whats .icone-whats { width: 70px; height: 70px; color: var(--marrom-avermelhado); }
.contatos-whats h3 { margin: 0; }

.dol-rodape { background: var(--preto-barra); color: var(--dourado); padding: 1rem 0; }
.dol-rodape .container { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.dol-rodape__esq { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.dol-legal { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; font-size: 0.78rem; color: rgba(214,205,110,0.75); }
.dol-legal a { text-decoration: none; color: rgba(214,205,110,0.75); }
.dol-legal a:hover { color: var(--dourado); }
.dol-legal button.cookie-settings { background: none; border: none; color: rgba(214,205,110,0.75); font: inherit; cursor: pointer; padding: 0; }
.dol-assinatura { font-size: 0.78rem; color: rgba(214,205,110,0.65); margin: 0; }
.dol-assinatura a { color: var(--dourado); text-decoration: none; font-weight: 600; }
@media (min-width: 800px) {
  .dol-rodape .container { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .dol-rodape__esq { align-items: flex-start; }
}

.whatsapp-float {
  position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 80;
  background: #25D366; color: #fff; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  text-decoration: none;
}
.whatsapp-float svg { width: 28px; height: 28px; }

/* Cookie banner */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--preto-barra); color: rgba(255,255,255,0.92);
  padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; justify-content: space-between;
}
#cookie-banner p { margin: 0; font-size: 0.88rem; max-width: 62ch; color: rgba(255,255,255,0.85); }
#cookie-banner .cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
#cookie-banner button { border-radius: 999px; padding: 0.55rem 1.1rem; font-weight: 700; font-size: 0.88rem; cursor: pointer; border: 1.5px solid var(--dourado); }
#cookie-banner .aceitar { background: var(--dourado); color: var(--preto); border-color: var(--dourado); }
#cookie-banner .rejeitar { background: transparent; color: var(--branco); }
#cookie-banner[hidden] { display: none; }

/* Legal pages */
.legal-content { padding: 2.5rem 0 4rem; }
.legal-content h2 { text-align: left; margin-top: 2rem; }
.legal-content p { margin-left: 0; margin-right: auto; max-width: 68ch; }
.legal-content ul { padding-left: 1.3rem; }
