/* =====================================================================
   Vitae Shell — header, footer, drawer, announcement bar
   Aplica a TODO o site (carregado em todas as páginas).
   ===================================================================== */

:root {
  --v-purple:       #7C3AED;
  --v-purple-dk:    #5B21B6;
  --v-purple-deep:  #1a0a2e;
  --v-purple-soft:  #f8f5ff;
  --v-text:         #1a0a2e;
  --v-text-soft:    #555;
  --v-border:       #e5e5e5;
  --v-radius:       6px;
  --v-shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --v-shadow-md:    0 4px 16px rgba(0,0,0,.08);
  --v-shadow-lg:    0 8px 32px rgba(0,0,0,.18);
}

/* Esconde header/footer ORIGINAIS do Storefront (substituídos pelos nossos) */
.site-header { display: none !important; }
.site-footer { display: none !important; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

/* ==================== Announcement bar ==================== */
.vitae-announcement {
  background: var(--v-purple);
  color: #fff;
  overflow: hidden;
  position: relative;
  height: 36px;
}
.vitae-announcement__track {
  display: flex;
  width: max-content;
  /* Duração proporcional ao tamanho do track. 45s funciona bem com 8 items duplicados (4 originais × 2). */
  animation: vitae-marquee 45s linear infinite;
  align-items: center;
  height: 100%;
  will-change: transform;
}
.vitae-announcement:hover .vitae-announcement__track { animation-play-state: paused; }
.vitae-announcement__item {
  flex: 0 0 auto;
  padding: 0 40px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  color: #fff !important;
}
.vitae-announcement__item a,
.vitae-announcement__item a:visited,
.vitae-announcement__item a:hover {
  color: #fff !important;
  text-decoration: none;
}
.vitae-announcement__item::after {
  content: '·';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: .5;
  font-size: 16px;
}
/* Loop seamless: track contém 2× a lista; -50% leva exatamente ao começo */
@keyframes vitae-marquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

/* ==================== HEADER ==================== */
.vitae-shell-header {
  background: #fff;
  border-bottom: 1px solid var(--v-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--v-shadow-sm);
}
.vitae-shell-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  gap: 16px;
}
.vitae-shell-header__brand { display: inline-flex; align-items: center; text-decoration: none; }
.vitae-shell-header__brand .vitae-logo { display: block; }
.vitae-shell-header__actions { display: flex; align-items: center; gap: 4px; }

.vitae-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  color: var(--v-text);
  cursor: pointer;
  border-radius: var(--v-radius);
  transition: background .15s;
  text-decoration: none;
  padding: 0;
}
.vitae-icon-btn:hover { background: var(--v-purple-soft); }
.vitae-icon-btn__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--v-purple);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Hamburger */
.vitae-hamburger { flex-direction: column; gap: 4px; }
.vitae-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--v-text);
  border-radius: 1px;
}

/* Search panel (dropdown) */
.vitae-search-panel {
  background: #fff;
  border-bottom: 1px solid var(--v-border);
  padding: 16px 20px;
  box-shadow: var(--v-shadow-md);
}
.vitae-search-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  border: 2px solid var(--v-purple);
  border-radius: var(--v-radius);
  overflow: hidden;
}
.vitae-search-form input {
  flex: 1;
  border: 0;
  padding: 12px 16px;
  font-size: 15px;
  outline: none;
  background: transparent;
}
.vitae-search-form button {
  background: var(--v-purple);
  color: #fff;
  border: 0;
  padding: 0 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== DRAWER (CSS-only, checkbox + label) ==================== */
.vitae-drawer-toggle { position: absolute; left: -9999px; }

.vitae-drawer__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
  z-index: 200;
  cursor: pointer;
}
.vitae-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 90vw);
  height: 100vh;
  background: #fff;
  z-index: 201;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--v-shadow-lg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.vitae-drawer-toggle:checked ~ .vitae-drawer { transform: translateX(0); }
.vitae-drawer-toggle:checked ~ .vitae-drawer__backdrop { opacity: 1; visibility: visible; }

.vitae-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--v-border);
}
.vitae-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--v-radius);
  cursor: pointer;
  color: var(--v-text);
}
.vitae-drawer__close:hover { background: var(--v-purple-soft); }

.vitae-drawer__menu {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.vitae-drawer__menu li { margin: 0; }
.vitae-drawer__menu a {
  display: block;
  padding: 14px 24px;
  color: var(--v-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
}
.vitae-drawer__menu a:hover {
  background: var(--v-purple-soft);
  border-left-color: var(--v-purple);
}
.vitae-drawer__menu--small a { font-weight: 400; font-size: 14px; padding: 10px 24px; color: var(--v-text-soft); }

.vitae-drawer__group-title {
  padding: 18px 24px 6px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  color: #999;
  border-top: 1px solid var(--v-border);
  margin-top: 8px;
}

.vitae-drawer__contact {
  margin-top: auto;
  padding: 20px 24px;
  border-top: 1px solid var(--v-border);
  background: var(--v-purple-soft);
}
.vitae-drawer__wa {
  display: block;
  background: #25D366;
  color: #fff !important;
  text-align: center;
  padding: 14px;
  border-radius: var(--v-radius);
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 8px;
}
.vitae-drawer__wa:hover { background: #1ebe5a; }
.vitae-drawer__contact small {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--v-text-soft);
}

/* ==================== FOOTER ==================== */
.vitae-shell-footer {
  background: var(--v-purple-deep);
  color: #e8e0ff;
  margin-top: 64px;
}
.vitae-shell-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 40px;
}
.vitae-shell-footer__brand .vitae-logo { display: block; margin-bottom: 16px; }
.vitae-shell-footer__brand p {
  color: #c0b3e0;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.vitae-shell-footer__col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.vitae-shell-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vitae-shell-footer__col li { margin: 0 0 10px; }
.vitae-shell-footer__col a,
.vitae-shell-footer__col span {
  color: #c0b3e0;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: color .15s;
  display: inline-block;
}
.vitae-shell-footer__col a:hover { color: #fff; }

.vitae-shell-footer__trust {
  background: rgba(0,0,0,.25);
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.vitae-trust-row {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
}
.vitae-trust-item {
  font-size: 13px;
  color: #c0b3e0;
}
.vitae-trust-item strong { color: #fff; font-weight: 700; }

.vitae-shell-footer__bottom {
  text-align: center;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.vitae-shell-footer__bottom small {
  color: #8b7ab3;
  font-size: 12px;
}

@media (max-width: 900px) {
  .vitae-shell-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 24px 24px;
  }
  .vitae-shell-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .vitae-shell-footer__inner { grid-template-columns: 1fr; }
  .vitae-trust-row { flex-direction: column; align-items: center; gap: 12px; }
}
