/* ===================================================
   Header & Navigation Shell - Pró Super
   =================================================== */
html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}
body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}
.page-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
}

.page-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  height: 78px;
  margin: auto;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.page-header .nav-logo {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}
.page-header .nav-logo:hover {
  transform: scale(1.02);
}
.page-header .nav-logo:active {
  transform: scale(0.97);
}
.page-header .nav-logo img {
  display: block;
  width: 180px;
  height: auto;
  filter: none;
}

/* Nav Links Desktop */
.page-header .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-header .nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: #382f2b;
  text-decoration: none;
  font: 800 0.76rem/1.2 Manrope, Arial, sans-serif;
  letter-spacing: -0.01em;
  border-radius: 8px;
  transition: color 0.25s ease, background-color 0.22s ease, transform 0.15s ease, box-shadow 0.2s ease;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Indicador de sublinhado animado para Desktop */
.page-header .nav-links a:not(.button)::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2.5px;
  background: var(--red);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-header .nav-links a:not(.button):hover {
  color: var(--red);
  background: rgba(181, 29, 42, 0.04);
}
.page-header .nav-links a:not(.button):hover::after {
  transform: scaleX(1);
}

/* Efeito ao clicar no link do menu */
.page-header .nav-links a:not(.button):active {
  transform: scale(0.93);
  background: rgba(181, 29, 42, 0.09);
}

.page-header .nav-links a.active:not(.button) {
  color: var(--red);
  background: rgba(181, 29, 42, 0.06);
}
.page-header .nav-links a.active:not(.button)::after {
  transform: scaleX(1);
}

.page-header .nav-links .button {
  padding: 13px 22px;
  background: var(--orange);
  color: #210d04 !important;
  border-radius: 8px;
  margin-left: 10px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.page-header .nav-links .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 122, 0, 0.38);
}
.page-header .nav-links .button:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.3);
}

/* Efeito Ondulação (Ripple) ao Clicar */
.menu-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.3);
  transform: scale(0);
  animation: rippleAnimation 0.55s ease-out;
  pointer-events: none;
}
@keyframes rippleAnimation {
  to {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* Botão Hambúrguer Animado */
.page-header .menu {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(223, 214, 202, 0.6);
  border-radius: 12px;
  background: rgba(247, 241, 233, 0.6);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, transform 0.15s cubic-bezier(0.2, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.page-header .menu:hover {
  background: rgba(255, 122, 0, 0.12);
  border-color: var(--orange);
}
.page-header .menu:active {
  transform: scale(0.90);
  background: rgba(255, 122, 0, 0.22);
}

.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  position: relative;
  pointer-events: none;
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2.2px;
  background: #382f2b;
  border-radius: 4px;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, background-color 0.25s ease;
}

/* Estado de Menu Aberto (Animação para X) */
.page-header .menu[aria-expanded="true"] {
  background: rgba(181, 29, 42, 0.1);
  border-color: var(--red);
}
.page-header .menu[aria-expanded="true"] .menu-bar {
  background: var(--red);
}
.page-header .menu[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.page-header .menu[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.page-header .menu[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===================================================
   Mobile / Responsive Menu Drawer
   =================================================== */
@media (max-width: 850px) {
  .page-header .menu {
    display: inline-flex;
  }

  .page-header .nav-links {
    position: absolute;
    top: 86px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 10px;
    padding: 22px 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(223, 214, 202, 0.85);
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(28, 12, 6, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.32s ease;
  }

  .page-header .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  /* Cascata suave de aparição dos itens no clique */
  .page-header .nav-links a {
    padding: 14px 18px;
    font-size: 0.9rem;
    border-radius: 11px;
    background: rgba(247, 241, 233, 0.5);
    border: 1px solid rgba(223, 214, 202, 0.5);
    opacity: 0;
    transform: translateY(-10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
  }

  .page-header .nav-links.open a {
    opacity: 1;
    transform: translateY(0);
  }
  .page-header .nav-links.open a:nth-child(1) { transition-delay: 40ms; }
  .page-header .nav-links.open a:nth-child(2) { transition-delay: 80ms; }
  .page-header .nav-links.open a:nth-child(3) { transition-delay: 120ms; }
  .page-header .nav-links.open a:nth-child(4) { transition-delay: 160ms; }
  .page-header .nav-links.open a:nth-child(5) { transition-delay: 200ms; }

  .page-header .nav-links a:not(.button)::after {
    display: none;
  }

  .page-header .nav-links a:hover {
    background: rgba(255, 122, 0, 0.12);
    border-color: var(--orange);
    color: var(--wine);
    transform: translateX(4px);
  }
  .page-header .nav-links a:active {
    background: rgba(255, 122, 0, 0.2);
    transform: scale(0.97);
  }

  .page-header .nav-links a.active {
    background: rgba(181, 29, 42, 0.1);
    border-color: var(--red);
    color: var(--red);
    font-weight: 800;
  }

  .page-header .nav-links .button {
    margin-left: 0;
    margin-top: 6px;
    justify-content: center;
    padding: 15px 20px;
    font-size: 0.88rem;
  }
}

@media (max-width: 540px) {
  .page-header .nav {
    width: min(100% - 28px, 1180px);
    height: 68px;
    padding: 0 16px;
  }
  .page-header .nav-logo img {
    width: 142px;
  }
  .page-header .nav-links {
    top: 76px;
    left: 14px;
    right: 14px;
    padding: 18px 15px;
  }
}

/* ===================================================
   Shared Footer Styles
   =================================================== */
.shared-footer {
  padding: 54px 0 28px;
  background: #100c0b;
  color: #a79d98;
}
.shared-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 42px;
  padding-bottom: 36px;
}
.shared-footer-logo {
  width: 155px;
  height: auto;
  filter: brightness(0) invert(1);
}
.shared-footer p {
  max-width: 385px;
  margin: 17px 0 0;
  font-size: 0.79rem;
  line-height: 1.65;
}
.shared-footer h2 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 0.8rem;
}
.shared-footer-list {
  display: grid;
  gap: 8px;
  font-size: 0.76rem;
}
.shared-footer-list a {
  color: #a79d98;
  transition: color 0.2s ease, transform 0.15s ease;
  display: inline-block;
}
.shared-footer-list a:hover {
  color: #ffae63;
  transform: translateX(3px);
}
.shared-footer-list a:active {
  transform: scale(0.96);
}
.shared-socials {
  display: flex;
  gap: 9px;
  margin-top: 21px;
}
.shared-socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #38312e;
  border-radius: 8px;
  color: #f7f3f0;
  transition: color 0.2s, border-color 0.2s, transform 0.15s ease;
}
.shared-socials a:hover {
  color: #ffae63;
  border-color: #ff7a00;
  transform: translateY(-2px);
}
.shared-socials a:active {
  transform: scale(0.92);
}
.shared-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.shared-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid #302725;
  color: #77716e;
  font-size: 0.72rem;
}
.shared-footer-bottom a {
  color: #8b8581;
  transition: color 0.2s;
}
.shared-footer-bottom a:hover {
  color: #ffae63;
}
.shared-footer-bottom a[href*="dpmidias"],
.shared-footer-bottom a.dpmidias-credit {
  color: #ff7a00;
  font-weight: 700;
}
.shared-footer-bottom a[href*="dpmidias"]:hover,
.shared-footer-bottom a.dpmidias-credit:hover {
  color: #ffffff;
}

@media (max-width: 850px) {
  .shared-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .shared-footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 540px) {
  .shared-footer {
    padding-top: 40px;
  }
  .shared-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .shared-footer-grid > div:first-child {
    grid-column: auto;
  }
  .shared-footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

