/* =====================================================
   Onevision — Folha de estilo compartilhada (site3)
   Fonte única de header, rodapé, hero interno, botões e tokens.
   Carregada DEPOIS do <style> de cada página, então governa
   os componentes compartilhados.
===================================================== */

:root {
  --laranja: #e98853;
  --laranja-escuro: #cf7340;
  --laranja-link: #b5571f;      /* contraste AA (>4.5:1) p/ links em texto */
  --cinza-claro: #ebebeb;
  --cinza-fundo: #f6f6f6;
  --escuro: #212222;
  --branco: #ffffff;
  --sombra: 0 0 9px rgba(0,0,0,.18);
  --header-h: 72px;
  --whats: #25d366;
  --whats-hover: #1ebc59;
}

/* ============ HEADER UNIFICADO ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--branco);
  box-shadow: var(--sombra);
}
.site-header .header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header .site-logo img { height: 38px; width: auto; display: block; }
.site-header nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 26px;
}
.site-header nav a {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px; font-weight: 600;
  color: var(--escuro); text-decoration: none;
  transition: color .2s;
}
.site-header nav a:hover { color: var(--laranja-link); }
.site-header nav .btn-whats { color: #fff; }
.site-header nav .btn-whats:hover { color: #fff; }

/* botão hambúrguer */
.site-header .hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.site-header .hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--escuro); border-radius: 2px;
}

/* menu mobile */
.site-mobile {
  display: none;
  position: fixed; inset: 0;
  background: rgba(255,255,255,.98);
  z-index: 1001;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 30px;
}
.site-mobile.open { display: flex; }
.site-mobile a { font-size: 22px; font-weight: 700; color: var(--escuro); text-decoration: none; }
.site-mobile a:hover { color: var(--laranja-link); }
.site-mobile .close-menu {
  position: absolute; top: 22px; right: 24px;
  font-size: 32px; cursor: pointer; background: none; border: none; color: var(--escuro);
}

/* ============ BOTÃO WHATSAPP ============ */
.btn-whats {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--whats); color: #fff !important;
  font-weight: 700; font-size: 15px;
  padding: 12px 24px; border-radius: 6px;
  text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.btn-whats:hover { background: var(--whats-hover); transform: translateY(-1px); }
.btn-whats img, .btn-whats svg { width: 20px; height: 20px; }
.site-header nav .btn-whats { background: var(--laranja-escuro); padding: 9px 18px; font-size: 14px; }
.site-header nav .btn-whats:hover { background: var(--laranja-link); transform: none; }

/* ============ HERO INTERNO ============ */
.page-hero {
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.45)),
    url(../imagens/Onevision-banner-novo-1.webp) 72% 20% / cover no-repeat;
  padding: calc(var(--header-h) + 40px) 24px 44px;
  min-height: 250px;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center; color: #fff;
}
.page-hero .breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.page-hero .breadcrumb a { color: var(--laranja); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: #fff;
  background: rgba(255,255,255,.16); padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(26px, 3.5vw, 40px); font-style: italic;
  line-height: 1.2; margin: 0 auto 14px; max-width: 760px;
}
.page-hero p { font-size: 16px; color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto; }
.page-hero .article-meta { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 12px; }

/* ============ LINKS EM TEXTO (contraste AA) ============ */
.article-wrap p a, .article-wrap li a {
  color: var(--laranja-link); font-weight: 600;
  border-bottom: 1px solid rgba(181,87,31,.4);
}
.article-wrap p a:hover, .article-wrap li a:hover { color: var(--laranja-escuro); }

/* ============ CONTATO + RODAPÉ ============ */
.site-contato { background: #fefefe; padding: 72px 24px; }
.site-contato .contato-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 60px;
}
.site-contato .contato-logo { flex: 1; text-align: center; }
.site-contato .contato-logo img { max-width: 260px; margin: 0 auto; display: block; }
.site-contato .contato-texto { flex: 1; }
.site-contato .contato-texto h2 {
  font-size: clamp(22px, 2.5vw, 30px); font-style: italic;
  line-height: 1.3; margin: 0 0 14px; color: var(--escuro);
}
.site-contato .contato-texto p { font-size: 16px; color: #555; margin: 0 0 24px; }

.site-footer { background: var(--escuro); color: #fff; padding: 40px 24px; }
.site-footer .footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.site-footer img { height: 40px; width: auto; }
.site-footer p { margin: 0; font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.6; }
.site-footer a { color: var(--laranja); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: #fff; }

/* ============ RESPONSIVO ============ */
@media (max-width: 880px) {
  .site-header nav ul { display: none; }
  .site-header .hamburger { display: flex; }
  .site-contato .contato-inner { flex-direction: column; gap: 32px; text-align: center; }
  .site-footer .footer-inner { flex-direction: column; text-align: center; }
}

/* telas estreitas: reposiciona o banner do hero para manter o rosto da modelo em quadro */
@media (max-width: 600px) {
  .page-hero {
    background-position: 80% 16%;
    min-height: 200px;
    padding: calc(var(--header-h) + 28px) 18px 32px;
  }
  .page-hero h1 { font-size: clamp(22px, 6vw, 30px); }
  .page-hero p { font-size: 15px; }
}
