/* =========================================================
   PORTAL ANTÔNIO APVS
   Header público — header.css
========================================================= */

.antonio-public-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 30px rgba(15, 31, 61, 0.06);
}

.antonio-topbar {
  background: linear-gradient(90deg, var(--antonio-blue-900, #002b5c), var(--antonio-blue-800, #003b7a));
  color: #ffffff;
  font-size: 0.9rem;
}

.antonio-topbar__inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.antonio-topbar__message,
.antonio-topbar__info,
.antonio-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.antonio-topbar__message {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.antonio-topbar__info {
  gap: 20px;
  flex-wrap: wrap;
}

.antonio-topbar__item {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.antonio-topbar__item:hover {
  opacity: 0.85;
  color: #ffffff;
}

.antonio-topbar__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.antonio-topbar__social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.3s ease;
}

.antonio-topbar__social a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.antonio-main-header {
  background: #ffffff;
}

.antonio-main-header__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.antonio-brand {
  flex: 0 0 315px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.antonio-brand__logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
}

.antonio-brand__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.antonio-brand__text strong {
  font-size: 1.62rem;
  line-height: 1;
  font-weight: 900;
  color: var(--antonio-blue-900, #002b5c);
  letter-spacing: -0.6px;
}

.antonio-brand__text small {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 230px;
  font-size: 0.82rem;
  color: var(--antonio-muted, #64748b);
  font-weight: 700;
  line-height: 1.25;
}

.antonio-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.antonio-nav__link {
  position: relative;
  min-height: 52px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--antonio-blue-800, #003b7a);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.1;
  transition: all 0.3s ease;
}

.antonio-nav__link:hover {
  background: rgba(0, 74, 173, 0.08);
  color: var(--antonio-primary, #004aad);
}

.antonio-nav__link.is-active {
  background: rgba(255, 196, 0, 0.18);
  border-color: rgba(255, 196, 0, 0.35);
  color: var(--antonio-blue-900, #002b5c);
}

.antonio-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.antonio-header-login,
.antonio-header-cta {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.antonio-header-login {
  background: var(--antonio-blue-800, #003b7a);
  color: #ffffff;
}

.antonio-header-login:hover {
  background: var(--antonio-blue-900, #002b5c);
  color: #ffffff;
  transform: translateY(-1px);
}

.antonio-header-cta {
  background: var(--antonio-whatsapp, #25d366);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.22);
}

.antonio-header-cta:hover {
  background: #1fb658;
  color: #ffffff;
  transform: translateY(-1px);
}

.antonio-mobile-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: rgba(0, 74, 173, 0.08);
  color: var(--antonio-blue-800, #003b7a);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.antonio-mobile-toggle:hover {
  background: var(--antonio-blue-800, #003b7a);
  color: #ffffff;
}

.antonio-mobile-menu {
  border: 0;
}

.antonio-mobile-brand {
  display: flex;
  flex-direction: column;
}

.antonio-mobile-brand strong {
  font-size: 1.35rem;
  color: var(--antonio-blue-900, #002b5c);
}

.antonio-mobile-brand small {
  color: var(--antonio-muted, #64748b);
}

.antonio-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.antonio-mobile-nav__link,
.antonio-mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f4f6fb;
  color: var(--antonio-blue-800, #003b7a);
  text-decoration: none;
  font-weight: 850;
  transition: all 0.3s ease;
}

.antonio-mobile-nav__link:hover,
.antonio-mobile-nav a:hover {
  background: rgba(0, 74, 173, 0.08);
  color: var(--antonio-primary, #004aad);
}

.antonio-mobile-nav__link.is-active,
.antonio-mobile-nav a.is-active {
  background: rgba(255, 196, 0, 0.18);
  border-color: rgba(255, 196, 0, 0.35);
  color: var(--antonio-blue-900, #002b5c);
}

.antonio-mobile-nav__login {
  margin-top: 8px;
  justify-content: center;
  background: var(--antonio-blue-800, #003b7a) !important;
  color: #ffffff !important;
}

.antonio-mobile-nav__cta {
  justify-content: center;
  background: var(--antonio-whatsapp, #25d366) !important;
  color: #ffffff !important;
}

@media (max-width: 1199px) {
  .antonio-main-header__inner {
    min-height: 82px;
  }

  .antonio-brand {
    flex: 1;
  }

  .antonio-brand__logo {
    width: 62px;
    height: 62px;
  }

  .antonio-nav {
    display: none;
  }

  .antonio-mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 991px) {
  .antonio-topbar__inner {
    min-height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .antonio-topbar {
    display: none;
  }

  .antonio-main-header__inner {
    min-height: 74px;
    gap: 14px;
  }

  .antonio-brand__logo {
    width: 52px;
    height: 52px;
  }

  .antonio-brand__text strong {
    font-size: 1.28rem;
  }

  .antonio-brand__text small {
    font-size: 0.75rem;
  }

  .antonio-header-login,
  .antonio-header-cta {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .antonio-brand__text small {
    display: none;
  }
}

html,
body {
  overflow-x: hidden;
}
