/*
 * Shell público otimizado da Home.
 * Contém somente reset, cabeçalho, rodapé, cookies e utilidades indispensáveis.
 */
:root {
  color-scheme: dark;
  --home-shell-bg: #020816;
  --home-shell-panel: #071a3a;
  --home-shell-line: rgba(118, 173, 255, .24);
  --home-shell-text: #f7fbff;
  --home-shell-muted: #aebed6;
  --home-shell-yellow: #ffb41f;
  --home-shell-cyan: #44dcff;
  --home-shell-header-height: 104px;
  --home-shell-font: Manrope, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--home-shell-bg);
  color: var(--home-shell-text);
  font-family: var(--home-shell-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.page-main { flex: 1 0 auto; min-width: 0; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 180;
  width: 100%;
  padding: 26px 0 0;
  background: var(--home-shell-bg);
  isolation: isolate;
}
.menu-wrap {
  width: min(1520px, calc(100% - 48px));
  min-height: 96px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(47, 139, 255, .28);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(4, 16, 40, .98), rgba(5, 21, 52, .96));
  box-shadow: 0 18px 54px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .035);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { width: auto; height: 66px; object-fit: contain; }
.site-header-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 20px; flex: 1; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.5vw, 42px); flex: 1; }
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 2px;
  color: #eef4ff;
  font-size: .98rem;
  font-weight: 750;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-shell-yellow), #ffd65c);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); }
.login-btn, .quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 25px;
  border-radius: 13px;
  font-size: .96rem;
  font-weight: 850;
  white-space: nowrap;
}
.login-btn { border: 1px solid rgba(96, 164, 255, .38); background: rgba(4, 18, 46, .72); }
.quote-btn { color: #07101e; background: linear-gradient(135deg, #ffc13b, #ff9f0f); box-shadow: 0 10px 24px rgba(255, 159, 15, .22); }
.site-nav-toggle, .site-header-backdrop { display: none; }
.site-nav-toggle {
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(122, 180, 255, .3);
  border-radius: 15px;
  background: #081d43;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.site-nav-toggle span { width: 21px; height: 2px; border-radius: 99px; background: #f5f9ff; transition: transform .18s ease, opacity .18s ease; }
.site-header-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  border: 0;
  background: rgba(0, 5, 18, .72);
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  flex: 0 0 auto;
  border-top: 1px solid rgba(111, 164, 246, .18);
  background: linear-gradient(180deg, #04122c 0%, #020817 100%);
}
.footer-shell { width: min(1260px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 24px; }
.footer-top { display: grid; grid-template-columns: 1.2fr .9fr .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); }
.footer-brand-col { max-width: 350px; }
.footer-brand-link { display: inline-flex; }
.footer-logo { width: min(280px, 100%); height: auto; }
.footer-brand-text { margin: 18px 0 0; color: #a9bad2; font-size: .96rem; line-height: 1.65; }
.footer-col h3 { margin: 0; color: #f4f8ff; font-size: .86rem; font-weight: 850; letter-spacing: .1em; }
.footer-col ul { margin: 18px 0 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.footer-col a { color: #adbed7; font-size: .94rem; line-height: 1.45; }
.footer-col a:hover, .footer-col a:focus-visible { color: #fff; }
.footer-contact-list a { display: flex; align-items: flex-start; gap: 9px; }
.footer-contact-list i { width: 18px; margin-top: 3px; color: #65dfff; text-align: center; }
.footer-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 16px;
  border-radius: 13px;
  background: #20c66a;
  color: #04170d !important;
  font-weight: 850;
}
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(126, 177, 255, .25); border-radius: 11px; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(111, 164, 246, .16); }
.footer-bottom p { margin: 0; color: #8497b4; font-size: .84rem; }

.whatsapp-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 190;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: #20c66a;
  color: #03140a;
  font-size: 1.5rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}

.cookie-consent-banner,
.cookie-consent-modal { position: fixed; inset: 0; z-index: 10000; font-family: var(--home-shell-font); }
.cookie-consent-banner { inset: auto 0 0; padding: 14px; pointer-events: none; }
.cookie-consent-banner-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(108, 172, 255, .38);
  border-radius: 18px;
  background: #071a3a;
  color: #f7fbff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .46);
  pointer-events: auto;
}
.cookie-consent-banner-copy strong { display: block; font-size: 1rem; }
.cookie-consent-banner-copy p { margin: 5px 0 0; color: #b7c8df; font-size: .86rem; line-height: 1.5; }
.cookie-consent-banner-actions, .cookie-consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.cookie-consent-btn {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(116, 176, 255, .3);
  border-radius: 12px;
  background: #0a2450;
  color: #f5f9ff;
  font-size: .83rem;
  font-weight: 800;
  cursor: pointer;
}
.cookie-consent-btn.is-primary { border-color: transparent; background: linear-gradient(135deg, #ffc13b, #ff9f0f); color: #07101e; }
.cookie-consent-modal { display: grid; place-items: center; padding: 18px; }
.cookie-consent-backdrop { position: absolute; inset: 0; background: rgba(0, 5, 18, .78); backdrop-filter: blur(5px); }
.cookie-consent-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(112, 177, 255, .34);
  border-radius: 20px;
  background: #071a3a;
  color: #f7fbff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}
.cookie-consent-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-consent-head strong { font-size: 1.15rem; }
.cookie-consent-x { width: 40px; height: 40px; border: 1px solid rgba(120, 178, 255, .25); border-radius: 11px; background: #0a2450; cursor: pointer; }
.cookie-consent-copy { margin: 13px 0 0; color: #b4c6de; font-size: .9rem; line-height: 1.58; }
.cookie-consent-options { display: grid; gap: 10px; margin-top: 18px; }
.cookie-consent-option { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border: 1px solid rgba(111, 170, 247, .2); border-radius: 14px; background: #081f46; }
.cookie-consent-option input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: #ffb41f; }
.cookie-consent-option strong, .cookie-consent-option small { display: block; }
.cookie-consent-option small { margin-top: 3px; color: #a9bad2; line-height: 1.4; }
.cookie-consent-actions { margin-top: 18px; }
.cookie-consent-footnote { margin: 15px 0 0; color: #8fa4c2; font-size: .78rem; }
.cookie-consent-footnote a { color: #7fe8ff; text-decoration: underline; }

:focus-visible { outline: 3px solid #8cecff; outline-offset: 3px; }

@media (max-width: 980px) {
  .site-header { padding-top: 10px; }
  .menu-wrap { width: min(100% - 24px, 920px); min-height: 72px; padding: 8px 12px 8px 16px; border-radius: 18px; box-shadow: none; }
  .brand-logo { height: 52px; }
  .site-nav-toggle { display: inline-flex; flex: 0 0 auto; }
  .site-header-actions {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 201;
    width: min(88vw, 380px);
    height: 100dvh;
    padding: 82px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    overflow-y: auto;
    background: #061630;
    border-left: 1px solid rgba(111, 174, 255, .24);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .2s ease, visibility .2s ease;
  }
  .main-nav { display: grid; justify-content: stretch; gap: 6px; }
  .main-nav a { min-height: 50px; padding: 0 14px; border-radius: 12px; background: rgba(116, 176, 255, .06); }
  .main-nav a::after { display: none; }
  .login-btn, .quote-btn { width: 100%; min-height: 52px; }
  .site-header-backdrop { display: block; z-index: 199; }
  body.site-nav-open { overflow: hidden; }
  body.site-nav-open .site-header-actions { transform: translateX(0); visibility: visible; }
  body.site-nav-open .site-header-backdrop { opacity: 1; pointer-events: auto; }
  body.site-nav-open .site-nav-toggle { position: fixed; top: 20px; right: 20px; z-index: 203; }
  body.site-nav-open .site-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.site-nav-open .site-nav-toggle span:nth-child(2) { opacity: 0; }
  body.site-nav-open .site-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .footer-shell { width: min(100% - 32px, 560px); padding-top: 40px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand-col { max-width: none; }
  .footer-logo { width: 220px; }
  .cookie-consent-banner { padding: 10px; }
  .cookie-consent-banner-card { padding: 15px; display: grid; gap: 14px; }
  .cookie-consent-banner-actions { justify-content: stretch; display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-consent-banner-actions .is-primary { grid-column: 1 / -1; }
  .cookie-consent-btn { width: 100%; }
  .cookie-consent-card { padding: 18px; }
  .cookie-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .whatsapp-widget { right: 12px; bottom: 12px; width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
