/* Estrutura comum a todas as paginas: faixa superior, cabecalho, menu, rodape e WhatsApp flutuante. */

/* --- Link de pular para o conteudo --- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* --- Faixa superior --- */
.topbar { background: var(--navy); color: #FFFFFF; font-size: 13px; }
.topbar__inner {
  padding-top: 9px;
  padding-bottom: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}
.topbar__address { display: inline-flex; align-items: center; gap: 8px; color: var(--on-navy-muted); text-decoration: none; }
.topbar__address:hover { color: #FFFFFF; text-decoration: underline; }
.topbar__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.topbar__link { color: #FFFFFF; text-decoration: none; }
.topbar__link--student { color: var(--gold); font-weight: 600; }
.topbar__whats { color: var(--on-navy-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar__link:hover, .topbar__whats:hover { text-decoration: underline; }

/* --- Cabecalho fixo --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px -20px rgba(13, 1, 53, .5);
}
.site-header__bar { padding-top: 12px; padding-bottom: 12px; display: flex; align-items: center; gap: 20px; }
.site-header__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.site-header__logo { width: 52px; height: 52px; display: block; }
.site-header__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.site-header__name { font-family: var(--font-title); font-weight: 800; font-size: 18px; }
.site-header__tagline { font-size: 12px; color: var(--muted); }

.nav-links { display: flex; gap: 2px; align-items: center; flex: 1; justify-content: center; font-size: 15px; font-weight: 600; }
.dd { position: relative; }
.dd-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.dd-menu { position: absolute; top: 100%; left: 0; padding-top: 10px; min-width: 260px; z-index: 70; }
.dd-panel {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -20px rgba(13, 1, 53, .35);
}
.dd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.dd-count { font-size: 12px; font-weight: 600; color: var(--muted); }

.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-header__cart {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--navy);
}
.site-header__cta {
  height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.site-header__menu-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #FFFFFF;
  color: var(--navy);
  cursor: pointer;
}

/* --- Menu movel (aberto pelo botao, so abaixo de 1120px) --- */
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) 20px;
  border-top: 1px solid var(--line);
  background: #FFFFFF;
  max-height: 70vh;
  overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
@media (min-width: 1121px) { .mobile-nav { display: none; } }
.mobile-nav__group { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-soft); padding: 6px 0; }
.mobile-nav__area { padding: 10px 0; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 16px; }
.mobile-nav__sub { padding: 9px 0 9px 14px; color: var(--muted); text-decoration: none; font-size: 15px; border-left: 2px solid var(--gold); }
.mobile-nav__link { padding: 14px 0 6px; color: var(--navy); text-decoration: none; font-weight: 600; }
.mobile-nav__student { padding: 8px 0; color: var(--gold-ink); text-decoration: none; font-weight: 600; }

/* --- Avisos (flash) --- */
.flash { padding-top: 14px; padding-bottom: 14px; font-size: 15px; font-weight: 500; }
.flash--success { background: #E6F4EC; color: #16613A; }
.flash--error { background: #FDECEC; color: #8A1F1F; }

/* --- Rodape --- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); }
.site-footer__inner { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; }
.site-footer__about { display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__logo { width: 56px; height: 56px; display: block; }
.site-footer__brand-text { display: flex; flex-direction: column; }
.site-footer__name { font-family: var(--font-title); font-weight: 800; font-size: 18px; color: #FFFFFF; }
.site-footer__tagline { font-size: 13px; color: var(--gold); }
.site-footer__address { font-size: 14px; line-height: 1.6; color: var(--on-navy-muted); text-decoration: none; }
.site-footer__address:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer__whats {
  align-self: flex-start;
  white-space: nowrap;
  height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.site-footer__nav { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.site-footer__heading { font-weight: 600; color: #FFFFFF; padding-bottom: 4px; }
.site-footer__link { color: var(--on-navy-muted); text-decoration: none; }
.site-footer__link:hover { color: #FFFFFF; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: #A9B4C4;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.site-footer__credit-link { color: #FFFFFF; font-weight: 600; text-decoration: none; }
.site-footer__credit-link:hover { color: var(--gold); text-decoration: underline; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social-link {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  color: #FFFFFF;
}

/* --- WhatsApp flutuante --- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -10px rgba(13, 1, 53, .5);
}

/* --- Pagina nao encontrada --- */
.not-found { padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); text-align: center; }
.not-found h1 { margin: 0 0 12px; font-family: var(--font-title); font-weight: 800; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }
.not-found p { margin: 0 0 24px; color: var(--muted); font-size: 17px; }
.not-found .btn { display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; }

/* --- Aviso de cookies (so aparece quando ha marcacao de terceiros configurada; ver consent.js) --- */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg);
  color: var(--navy);
  box-shadow: 0 18px 44px -16px rgba(13, 1, 53, .45);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent__inner { display: flex; align-items: center; gap: 18px; }
.cookie-consent__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cookie-consent__text a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.cookie-consent__actions { display: flex; gap: 10px; flex: none; }
/* Os dois botoes sao iguais: recusar e tao facil quanto aceitar. */
.cookie-consent__button {
  min-width: 112px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--bg);
  color: var(--navy);
  font: 600 14px/1 var(--font-body);
  cursor: pointer;
}
.cookie-consent__button:hover { background: var(--tint); }
.cookie-consent__button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 640px) {
  .cookie-consent__inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-consent__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-consent__button { min-width: 0; }
}

/* Faixa promocional do topo (Configuracoes -> Promocoes): dourada, acima da faixa de endereco. */
.promo-strip { background: var(--gold); color: var(--navy); font-size: 14px; line-height: 1.4; }
.promo-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.promo-strip__tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--navy); color: #FFFFFF; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.promo-strip__text { font-weight: 600; overflow-wrap: anywhere; }
.promo-strip__link { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.promo-strip__link:hover { text-decoration-thickness: 2px; }
