/* =========================================
   BOTÕES[cite: 8, 9, 11]
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-weight: 600; /* SemiBold */
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  font-size: var(--font-size-body);
}

.btn--primary {
  background-color: #023568;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 16px 24px;
  border-radius: 6px;
}

.btn--primary:hover {
  background-color: #022d58;
}

@property --cta-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 135deg;
}

.cta {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-decoration: none;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 11px;
  padding: 1px;
  background: linear-gradient(var(--cta-angle), #023568, #e6ebf0);
  transition: --cta-angle 0.4s ease;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.cta:hover::before { --cta-angle: 315deg; }

.cta__inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cta--navy .cta__inner {
  background: #023568;
  color: #fff;
}

.cta--light .cta__inner {
  background: #f5f7f9;
  color: #023568;
}

.cta--light:hover .cta__inner {
  background: #023568;
  color: #ae7d32;
}

.cta:hover .cta__inner {
  color: #ae7d32;
}

.cta--outline .cta__inner {
  background: transparent;
  color: #023568;
  border: 1px solid #9aaec3;
}

.cta--block {
  display: flex;
  width: 100%;
}

.cta__icon {
  flex-shrink: 0;
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-inverse);
  border: 1px solid var(--text-inverse);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* =========================================
   HEADER (Fixo, Glass Effect e Scroll)
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 12px 0;
  z-index: 100;
  transition: all 0.3s ease;
  background-color: rgba(1, 16, 31, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(154, 174, 195, 0.24);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  padding: 0 80px;
}

.site-header .logo-img {
  width: 53px;
  height: 56px;
  object-fit: contain;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 40px; 
}

.site-nav ul {
  display: flex;
  gap: 24px;
  color: #e2e2e2;
  font-weight: 400;
  font-size: 14px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.site-nav .has-dropdown {
  position: relative;
}

.site-nav .nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 196px;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(2, 53, 104, 0.16);
  color: #023568;
}

.site-nav .nav-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.site-nav .has-dropdown:hover > .nav-dropdown,
.site-nav .has-dropdown:focus-within > .nav-dropdown {
  display: flex;
}

.site-nav .nav-dropdown a {
  padding: 10px 16px;
  color: #023568;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav .nav-dropdown a:hover {
  color: #ae7d32;
}

.site-nav a.is-active {
  color: #fcfaf7;
  font-weight: 600;
}

/* -----------------------------------------
   ESTADO: HEADER APÓS O SCROLL
   ----------------------------------------- */
.site-header.is-scrolled {
  background-color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: 0 4px 16px rgba(2, 53, 104, 0.16);
}

.site-header.is-scrolled .site-nav ul {
  color: #757575;
}

.site-header.is-scrolled .site-nav a:hover {
  color: var(--brand-primary);
}

.site-header.is-scrolled .site-nav a.is-active {
  color: #ae7d32;
  font-weight: 600;
}

.site-header.is-scrolled .site-nav .nav-dropdown a {
  color: #023568;
  font-weight: 500;
}

.site-header.is-scrolled .site-nav .nav-dropdown a:hover {
  color: #ae7d32;
}

/* =========================================
   FOOTER SECTION
   ========================================= */
.site-footer {
  background-image: linear-gradient(180deg, rgba(1, 16, 31, 0) 0%, #01101f40 100%), url('../assets/photos/footer.png');
  background-size: cover;
  background-position: center;
  background-color: #01101f;
  color: var(--color-white);
  padding: 96px 0 40px;
}

.site-footer .container {
  max-width: 1440px;
  padding: 0 80px;
}

.footer__top {
  display: grid;
  grid-template-columns: 360px 1fr 1fr 360px;
  gap: 64px;
  margin-bottom: 64px;
}

.footer__brand {
  width: 360px;
  max-width: 360px;
}

.footer__logo-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.footer__logo {
  height: 72px;
  width: auto;
}

.footer__logo-text {
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 1px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: var(--spacing-md);
  color: var(--midnight-blue-100);
}

.footer__tagline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--midnight-blue-200);
  margin-bottom: var(--spacing-xl);
}

.footer__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
}

/* =========================================
   TÍTULOS E LINHA DOURADA
   ========================================= */
.footer__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fcfaf7;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 16px;
}

.footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 1px;
  background-color: var(--brand-secondary);
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__links a {
  color: #c8c8c8;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--brand-secondary);
}

/* =========================================
   INFORMAÇÕES DE CONTATO E REDES SOCIAIS
   ========================================= */
.footer__contact {
  display: flex;
  flex-direction: column;
}

.footer__contact .contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: 40px;
}

.footer__contact .contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
}

.footer__contact .contact-list svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__social {
  display: flex;
  gap: 24px;
  margin-top: auto;
}

.footer__social a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fcfaf7;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.2s;
}

.footer__social a:hover {
  color: var(--brand-secondary);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--midnight-blue-200);
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl);
}

.footer__bottom-links a {
  color: var(--midnight-blue-200);
  transition: color 0.2s;
}

.footer__bottom-links a:hover {
  color: var(--brand-secondary);
}

.dev-credits {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================================
   SEGUNDO NÍVEL (Créditos e Direitos)[cite: 30]
   ========================================= */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08); 
  padding-top: var(--spacing-2xl);
  margin-top: var(--spacing-3xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--midnight-blue-100);
}

.footer__bottom p {
  color: var(--midnight-blue-100);
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer__bottom-links a {
  color: var(--midnight-blue-100);
  transition: color 0.2s;
}

.footer__bottom-links a:hover {
  color: var(--brand-secondary);
}

.dev-credits {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-multiverso {
  --btn-border-color: #9AAEC3;
  --btn-fill: rgba(240, 248, 255, 0.08);

  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 28px;
  padding: 0 11px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-white) !important;
  text-decoration: none;
  background: none;
  border: 0;
  transition: color 0.3s ease;
}

.btn-multiverso::before,
.btn-multiverso::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

.btn-multiverso::before {
  background: var(--btn-fill);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 87 28' preserveAspectRatio='none'%3E%3Cpath d='M7.44 2.06Q9.00 0.50 11.20 0.50L81.50 0.50Q86.50 0.50 86.50 5.50L86.50 16.80Q86.50 19.00 84.94 20.56L79.56 25.94Q78.00 27.50 75.80 27.50L5.50 27.50Q0.50 27.50 0.50 22.50L0.50 11.20Q0.50 9.00 2.06 7.44Z' fill='%23000'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 87 28' preserveAspectRatio='none'%3E%3Cpath d='M7.44 2.06Q9.00 0.50 11.20 0.50L81.50 0.50Q86.50 0.50 86.50 5.50L86.50 16.80Q86.50 19.00 84.94 20.56L79.56 25.94Q78.00 27.50 75.80 27.50L5.50 27.50Q0.50 27.50 0.50 22.50L0.50 11.20Q0.50 9.00 2.06 7.44Z' fill='%23000'/%3E%3C/svg%3E");
}

.btn-multiverso::after {
  background: var(--btn-border-color);
  transition: background-color 0.3s ease;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 87 28' preserveAspectRatio='none'%3E%3Cpath d='M7.44 2.06Q9.00 0.50 11.20 0.50L81.50 0.50Q86.50 0.50 86.50 5.50L86.50 16.80Q86.50 19.00 84.94 20.56L79.56 25.94Q78.00 27.50 75.80 27.50L5.50 27.50Q0.50 27.50 0.50 22.50L0.50 11.20Q0.50 9.00 2.06 7.44Z' fill='none' stroke='%23000' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 87 28' preserveAspectRatio='none'%3E%3Cpath d='M7.44 2.06Q9.00 0.50 11.20 0.50L81.50 0.50Q86.50 0.50 86.50 5.50L86.50 16.80Q86.50 19.00 84.94 20.56L79.56 25.94Q78.00 27.50 75.80 27.50L5.50 27.50Q0.50 27.50 0.50 22.50L0.50 11.20Q0.50 9.00 2.06 7.44Z' fill='none' stroke='%23000' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

.btn-multiverso:hover {
  --btn-border-color: var(--brand-secondary);
  color: var(--brand-secondary) !important;
}

/* =========================================
   CARDS DE BLOG (COMPONENTES)
   ========================================= */

.category-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--color-white, #ffffff);
  color: var(--brand-secondary, #ae7d32); 
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.post-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #F5F7F9; 
  border: 10px solid #ffffff; 
  box-shadow: 0 0 0 1px #E6EBF0; 
  border-radius: 24px;
  padding: 24px;
}

.post-card:hover {
  box-shadow: 0 16px 32px rgba(1, 24, 48, 0.08), 0 0 0 1px #E6EBF0;
  transform: translateY(-4px);
}

.post-card__image {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card__image img {
  transform: scale(1.05);
}

.post-card__content {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: flex-start;
}

.post-card__title {
  color: var(--midnight-blue-900, #011830);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__excerpt {
  color: var(--text-light, #718096);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   COMPONENTES GERAIS
   ========================================= */
.breadcrumb {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--color-white, #ffffff);
}

.breadcrumb span {
  color: var(--color-white, #ffffff);
}

.btn--outline {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  color: var(--midnight-blue-900, #011830);
  border: 1px solid rgba(1, 24, 48, 0.15);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn--outline:hover {
  border-color: var(--midnight-blue-900, #011830);
  background-color: var(--midnight-blue-900, #011830);
  color: var(--color-white, #ffffff);
}

.nav-toggle,
.nav-kicker {
  display: none;
}

@media (max-width: 1100px) {
  .site-header {
    padding: 16px 0;
  }

  .site-header .container {
    padding: 0 24px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
  }

  .nav-toggle__icon,
  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
    transition: all 0.3s ease;
  }

  .nav-toggle__icon {
    position: relative;
  }

  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle__icon::before {
    top: -5px;
  }

  .nav-toggle__icon::after {
    top: 5px;
  }

  .site-header.is-scrolled:not(.is-menu-open) .nav-toggle {
    border-color: rgba(2, 53, 104, 0.16);
    background: #f5f7f9;
  }

  .site-header.is-scrolled:not(.is-menu-open) .nav-toggle__icon,
  .site-header.is-scrolled:not(.is-menu-open) .nav-toggle__icon::before,
  .site-header.is-scrolled:not(.is-menu-open) .nav-toggle__icon::after {
    background: #023568;
  }

  .site-header.is-menu-open .nav-toggle__icon {
    background: transparent !important; /* Esconde a linha do meio */
  }

  .site-header.is-menu-open .nav-toggle__icon::before,
  .site-header.is-menu-open .nav-toggle__icon::after {
    top: 0;
    left: 0;
    width: 16px;
    height: 2px;
  }

  .site-header.is-menu-open .nav-toggle__icon::before {
    transform: rotate(45deg);
  }

  .site-header.is-menu-open .nav-toggle__icon::after {
    transform: rotate(-45deg);
  }

  .site-header.is-menu-open,
  .site-header.is-menu-open.is-scrolled {
    background: #01101f;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header__right {
    display: none;
  }

  .site-header.is-menu-open .header__right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    padding: 28px 24px 24px;
    background: #011830;
    overflow: auto;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  .nav-kicker {
    display: none;
    margin: 0 0 8px;
    color: #9aaec3;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul,
  .site-header.is-menu-open .site-nav ul,
  .site-header.is-scrolled.is-menu-open .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    color: #e6ebf0;
  }

  .site-nav > ul > li > a {
    min-height: 56px;
    justify-content: flex-start;
    color: #e6ebf0;
    font-size: 16px;
    font-weight: 500;
  }

  .site-nav > ul > li > a svg {
    margin-left: auto;
    transition: transform 0.2s ease;
  }

  .site-nav .has-dropdown.is-open > a svg {
    transform: rotate(180deg);
  }

  .site-nav > ul > li > a.is-active {
    color: #ae7d32;
    font-weight: 600;
  }

  .site-nav > ul > li > a.is-active::before {
    content: "";
    width: 3px;
    height: 24px;
    margin-right: 12px;
    border-radius: 1px;
    background: #ae7d32;
  }

  .site-nav .has-dropdown:hover > .nav-dropdown,
  .site-nav .has-dropdown:focus-within > .nav-dropdown {
    display: none;
  }

  .site-nav .has-dropdown > .nav-dropdown {
    display: flex; /* Mantém sempre aberto */
    position: static;
    min-width: 0;
    padding: 0 0 8px 18px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
  
  .site-nav > ul > li > a svg {
    display: none;
  }

  .site-nav .nav-dropdown a,
  .site-header.is-scrolled .site-nav .nav-dropdown a {
    padding: 10px 0;
    color: #c7d3de;
    font-weight: 500;
    white-space: normal;
  }

  .header__actions,
  .header__actions .cta {
    width: 100%;
  }

  .header__actions .cta {
    display: flex;
  }

  .header__actions .cta__inner {
    flex: 1;
    justify-content: center;
  }

  .site-footer {
    padding: 64px 0 32px;
  }

  .site-footer .container {
    padding: 0 24px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 40px;
  }

  .footer__brand {
    width: 100%;
    max-width: none;
  }

  .footer__logo {
    height: 48px;
  }

  .footer__social {
    flex-wrap: wrap;
    margin-top: 32px;
  }

  .footer__bottom,
  .footer__bottom-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-nav .nav-dropdown,
  .site-nav .has-dropdown > .nav-dropdown,
  .site-nav .has-dropdown:hover > .nav-dropdown,
  .site-nav .has-dropdown:focus-within > .nav-dropdown {
    display: flex !important;
    position: static !important;
    min-width: 0;
    padding: 0 0 8px 18px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
}

/* =========================================
   ANIMAÇÕES DE ENTRADA (SCROLL)
   ========================================= */
.eml-animate {
  opacity: 0;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.eml-animate[data-animation="fade-right"] {
  transform: translateX(-40px);
}
.eml-animate[data-animation="fade-left"] {
  transform: translateX(40px);
}
.eml-animate[data-animation="fade-up"] {
  transform: translateY(40px);
}
.eml-animate[data-animation="fade-down"] {
  transform: translateY(-40px);
}
.eml-animate[data-animation="fade-in"] {
  transform: translate(0);
}
.eml-animate.is-animated {
  opacity: 1;
  transform: translate(0);
}
