/* Estrutura comum: cabeçalho, navegação, seletor de idioma e rodapé. */
.site-header { position: relative; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 108px; }
.brand { display: block; flex: none; width: 158px; }
.brand img { width: 100%; height: auto; }
/* O logótipo tem fundo branco: no modo escuro inverte-se e funde-se com o cabeçalho. */
:root[data-theme="dark"] .brand img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }

.main-nav { position: relative; display: flex; align-items: center; gap: clamp(12px, 1.7vw, 26px); font-size: .83rem; font-weight: 600; }
.main-nav a { padding: 10px 0; text-decoration: none; transition: color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }
.nav-arrow { padding-left: 6px; color: var(--accent); }
.nav-indicator { position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--accent); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.4, 0, .2, 1), width .35s cubic-bezier(.4, 0, .2, 1), opacity .2s; }

@media (prefers-reduced-motion: reduce) {
  .nav-indicator { transition: none; }
}

.language-switch { display: flex; align-items: center; gap: 5px; flex: none; padding-left: 9px; border-left: 1px solid var(--line); }
.language-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 7px;
  border: 1px solid transparent; border-radius: 4px; text-decoration: none;
}
.language-switch a:hover, .language-switch a[aria-current="page"] { background: var(--tint); border-color: var(--line-strong); border-bottom-color: var(--accent); }
.language-switch span { font-size: 1.45rem; line-height: 1; }
.language-switch img { width: 28px; height: 19px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px #0002; }

/* Botão claro/escuro: símbolo discreto no canto superior direito. */
.theme-toggle { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 4px; background: none; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.theme-toggle:hover { background: var(--tint); color: var(--ink); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.site-footer { background: var(--footer); color: #d5dfe8; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 120px; }
.footer-corporate { display: block; flex: none; padding: 5px; background: #fff; border-radius: 3px; line-height: 0; }
.footer-corporate img { width: 100px; height: auto; }
.footer-inner small { font-size: .78rem; color: #b2c2d2; }
.footer-inner a { font-size: .8rem; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

.page-action { padding: 0 0 105px; }
.page-action p { margin: 0 0 18px; font-size: 1.12rem; line-height: 1.6; }
.page-action .button { min-width: 200px; }

@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; padding-block: 12px; }
  .main-nav { margin-left: auto; }
  .language-switch { order: 3; flex-basis: 100%; justify-content: center; padding: 4px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 700px) {
  .header-inner { min-height: 90px; }
  .brand { width: 128px; margin-right: auto; }
  .main-nav { order: 2; flex-basis: 100%; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; font-size: .84rem; }
  .main-nav a { padding: 7px 0; }
  .language-switch { gap: 9px; }
  .footer-inner { flex-wrap: wrap; gap: 14px; padding-block: 30px; }
  .footer-inner small { order: 3; width: 100%; }
  .footer-corporate img { width: 88px; }
  .page-action { padding-bottom: 75px; }
}
