/* ==========================================================================
   ANPECI - PORTAL INSTITUCIONAL & SISTEMA
   Arquivo: layout.css (Header, Mobile Drawer, Hero Interno, Breadcrumbs & Footer)
   ========================================================================== */

/* ==========================================================================
   1. HEADER GLOBAL
   ========================================================================== */
.site-header {
  background: linear-gradient(180deg, var(--color-dark-teal) 0%, var(--color-dark-teal-medium) 100%);
  height: 114px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner,
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Logomarca no Cabeçalho */
.header-logo,
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img,
.brand-logo img,
.logo-img {
  height: 84px !important;
  max-height: 84px !important;
  width: auto !important;
  max-width: 330px !important;
  object-fit: contain !important;
  display: block;
}

/* Navegação Desktop */
.nav-desktop,
.main-nav {
  display: flex;
  align-items: center;
}

.nav-desktop .nav-menu,
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-desktop .nav-link,
.main-nav a {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: var(--font-semibold);
  letter-spacing: 0.25px;
  opacity: 0.88;
  position: relative;
  padding: 6px 0;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-desktop .nav-link:hover,
.nav-desktop .nav-link.active,
.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  color: #FFFFFF;
}

.nav-desktop .nav-link.active::after,
.nav-desktop .nav-link:hover::after,
.main-nav a.active::after,
.main-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: #48CBB0;
  border-radius: 2px;
}

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

.mobile-toggle-btn,
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  border-radius: var(--radius-sm);
}

.mobile-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   2. MOBILE NAV DRAWER
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  transition: visibility var(--transition-normal);
}

.mobile-drawer.is-open {
  visibility: visible;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(7, 34, 28, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-drawer.is-open .drawer-overlay {
  opacity: 1;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background-color: var(--color-dark-teal);
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.4);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

.mobile-drawer.is-open .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-drawer-btn {
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 6px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.mobile-nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: var(--font-semibold);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: #48CBB0;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 20px;
}

/* ==========================================================================
   3. HERO INTERNO PADRÃO E SUAS 3 FAMÍLIAS (PAGE HERO)
   ========================================================================== */
.page-hero,
.page-hero-section {
  position: relative;
  background-color: var(--color-dark-teal);
  color: var(--color-white);
  padding: 56px 0 50px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* TIPO A — HERO INSTITUCIONAL COM IMAGEM INTEGRADA */
.page-hero-type-a {
  background: linear-gradient(90deg, #07221C 0%, rgba(7, 34, 28, 0.94) 45%, rgba(7, 34, 28, 0.65) 75%, rgba(7, 34, 28, 0.35) 100%),
              url('../assets/hero-reuniao.jpg') right center / cover no-repeat;
  padding: 64px 0 58px 0;
  min-height: 260px;
}

.page-hero-type-a.hero-diretoria {
  background: linear-gradient(90deg, #07221C 0%, rgba(7, 34, 28, 0.94) 45%, rgba(7, 34, 28, 0.65) 75%, rgba(7, 34, 28, 0.35) 100%),
              url('../assets/representacao-dialogo.jpg') right center / cover no-repeat;
}

.page-hero-type-a.hero-associado {
  background: linear-gradient(90deg, #07221C 0%, rgba(7, 34, 28, 0.94) 45%, rgba(7, 34, 28, 0.65) 75%, rgba(7, 34, 28, 0.35) 100%),
              url('../assets/forum-nacional.jpg') right center / cover no-repeat;
}

/* TIPO B — HERO TÉCNICO / EDITORIAL */
.page-hero-type-b {
  background: linear-gradient(90deg, #07221C 0%, rgba(7, 34, 28, 0.94) 50%, rgba(7, 34, 28, 0.70) 80%, rgba(7, 34, 28, 0.40) 100%),
              url('../assets/posto-ensaio.jpg') right center / cover no-repeat;
  padding: 58px 0 52px 0;
  min-height: 240px;
}

.page-hero-type-b.hero-noticias {
  background: linear-gradient(90deg, #07221C 0%, rgba(7, 34, 28, 0.94) 50%, rgba(7, 34, 28, 0.70) 80%, rgba(7, 34, 28, 0.40) 100%),
              url('../assets/hero-setor-tecnologia.jpg') right center / cover no-repeat;
}

/* TIPO C — HERO FUNCIONAL COMPACTO */
.page-hero-type-c {
  background: linear-gradient(135deg, var(--color-dark-teal) 0%, var(--color-dark-teal-medium) 60%, #0D3E35 100%);
  padding: 44px 0 40px 0;
  min-height: 180px;
}

.page-hero-inner {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.page-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(7, 34, 28, 0.7);
  border: 1px solid #1B8A75;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--font-bold);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #80CBC4;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #B2DFDB;
  margin-bottom: 12px;
  font-family: var(--font-body);
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: #E0F2F1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs a:hover {
  color: #FFFFFF;
}

.breadcrumbs .current {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.page-hero-title {
  font-size: 36px;
  font-weight: var(--font-extrabold);
  color: var(--color-white);
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.page-hero-desc,
.page-hero-description {
  font-size: 16px;
  color: #EBF5F3;
  max-width: 740px;
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ==========================================================================
   4. FOOTER GLOBAL
   ========================================================================== */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 52px 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 38px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: var(--font-bold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.footer-text {
  font-size: 13.5px;
  color: #B0B0B0;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13.5px;
  color: #B0B0B0;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: #888888;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #B0B0B0;
}

.footer-bottom-links a:hover {
  color: var(--color-white);
}

.production-credit {
  font-size: 12px;
  color: #888888;
}

.production-credit a {
  color: #B0B0B0;
  text-decoration: underline;
}

.production-credit a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   RESPONSIVIDADE DO LAYOUT
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }
  .mobile-toggle-btn,
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 80px;
  }
  .header-logo img,
  .brand-logo img,
  .logo-img {
    height: 52px !important;
    max-height: 52px !important;
    max-width: 220px !important;
  }
  .page-hero,
  .page-hero-section {
    padding: 44px 0 38px 0;
  }
  .page-hero-type-a,
  .page-hero-type-b,
  .page-hero-type-c {
    padding: 44px 0 38px 0;
    min-height: auto;
  }
  .page-hero-title {
    font-size: 24px;
  }
  .page-hero-desc {
    font-size: 14px;
    line-height: 1.55;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .site-header {
    height: 74px;
  }
  .header-logo img,
  .brand-logo img,
  .logo-img {
    height: 46px !important;
    max-height: 46px !important;
    max-width: 190px !important;
  }
  .page-hero-title {
    font-size: 22px;
  }
  .header-actions .btn-header span {
    display: none;
  }
  .header-actions .btn-header {
    padding: 8px 10px;
  }
}

