/**
 * shared-layout.css — topbar + footer unificados das páginas de serviço
 *
 * Inclui em qualquer página HTML estática:
 *   <link rel="stylesheet" href="/assets/shared-layout.css">
 *
 * Depois cole o <nav class="shared-nav">…</nav> logo após <body>
 * e o <footer class="shared-footer">…</footer> antes de </body>.
 *
 * Estilo: dark · matching site principal (laranja FF6B00 + preto 0D0D0D)
 */

:root {
  --shared-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shared-container: 1280px;
}

/* ═══════════════ NAV ═══════════════ */
.shared-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 80; height: 72px;
  display: flex; align-items: center;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.shared-nav__inner {
  max-width: var(--shared-container); width: 100%;
  margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.shared-nav__logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.shared-nav__logo img {
  height: 32px; width: auto;
  filter: brightness(0) invert(1);
}
.shared-nav__logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 17px;
  letter-spacing: -0.02em;
  color: #F8F8F8;
}
.shared-nav__logo-text span { color: #FF6B00; }

.shared-nav__links {
  display: flex; align-items: center; gap: 28px;
}
.shared-nav__link {
  font-size: 13.5px; font-weight: 500;
  color: #C7C7C7;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--shared-ease), border-color .15s;
  font-family: 'Inter', sans-serif;
  background: none; border-top: 0; border-left: 0; border-right: 0;
  cursor: pointer;
}
.shared-nav__link:hover { color: #F8F8F8; border-bottom-color: #FF6B00; }
.shared-nav__link.shared-nav__link--active {
  color: #FF6B00; border-bottom-color: #FF6B00;
}

.shared-nav__cta {
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 14px;
  background: #FF6B00; color: #0D0D0D;
  border: 0; border-radius: 999px;
  padding: 11px 20px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
              0 6px 20px -6px rgba(255, 107, 0, 0.5);
  transition: background .2s, transform .15s;
  white-space: nowrap; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.shared-nav__cta:hover { background: #FF8024; transform: translateY(-1px); }

/* Dropdown Serviços */
.shared-nav__group { position: relative; display: inline-flex; align-items: center; }
.shared-nav__link--has-menu {
  display: inline-flex; align-items: center; gap: 5px;
}
.shared-nav__link--has-menu svg {
  transition: transform .2s var(--shared-ease);
}
.shared-nav__group:hover .shared-nav__link--has-menu svg {
  transform: rotate(180deg);
}
.shared-nav__menu {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px; min-width: 200px;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0; visibility: hidden;
  transition: opacity .18s var(--shared-ease),
              transform .18s var(--shared-ease),
              visibility .18s;
  z-index: 100;
}
.shared-nav__group:hover .shared-nav__menu,
.shared-nav__group:focus-within .shared-nav__menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.shared-nav__menu::before {
  content: ''; position: absolute; bottom: 100%; left: 0; right: 0; height: 10px;
}
.shared-nav__menu-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: transparent; border: 0;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  color: #C7C7C7; padding: 11px 14px;
  border-radius: 8px; cursor: pointer;
  text-align: left; letter-spacing: .04em;
  transition: all .15s var(--shared-ease);
  text-decoration: none;
}
.shared-nav__menu-item:hover {
  background: rgba(255, 107, 0, 0.1);
  color: #FF8024; padding-left: 18px;
}
.shared-nav__menu-item-arrow {
  opacity: 0; transition: opacity .15s var(--shared-ease); color: #FF6B00;
}
.shared-nav__menu-item:hover .shared-nav__menu-item-arrow { opacity: 1; }
.shared-nav__menu-divider {
  height: 1px; background: rgba(255, 255, 255, 0.06); margin: 6px 4px;
}

/* Hamburger mobile */
.shared-nav__burger {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; width: 40px; height: 40px;
  position: relative; z-index: 101;
}
.shared-nav__burger span {
  display: block; width: 22px; height: 2px;
  background: #F8F8F8; margin: 5px auto; border-radius: 2px;
  transition: all .25s var(--shared-ease);
  transform-origin: center;
}
.shared-nav__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.shared-nav__burger.open span:nth-child(2) { opacity: 0; }
.shared-nav__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  .shared-nav__inner { padding: 0 20px; gap: 12px; }
  .shared-nav__burger { display: block; }
  .shared-nav__links {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column; justify-content: flex-start; gap: 14px;
    padding: 96px 32px 40px; overflow-y: auto;
    transform: translateY(-100%);
    transition: transform .35s var(--shared-ease);
    z-index: 90;
  }
  .shared-nav__links.open { transform: translateY(0); }
  .shared-nav__link {
    font-size: 20px; font-weight: 600; color: #F8F8F8 !important;
    border: 0 !important; padding: 6px 0;
  }
  .shared-nav__link:hover,
  .shared-nav__link.shared-nav__link--active {
    color: #FF6B00 !important; border: 0 !important;
  }
  .shared-nav__cta {
    font-size: 16px; padding: 14px 28px; margin-top: 12px;
  }
  .shared-nav__logo-text { font-size: 16px; }
  .shared-nav__group {
    flex-direction: column; align-items: flex-start; gap: 8px; width: 100%;
  }
  .shared-nav__link--has-menu svg { display: none; }
  .shared-nav__menu {
    position: static; transform: none;
    opacity: 1; visibility: visible;
    background: transparent;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border: 0; padding: 0 0 0 18px;
    box-shadow: none;
    border-left: 2px solid rgba(255, 107, 0, 0.3);
    margin-top: 4px;
  }
  .shared-nav__menu-item {
    font-size: 16px; color: #C7C7C7 !important; padding: 6px 0;
  }
}

/* ═══════════════ FOOTER ═══════════════ */
.shared-footer {
  background: #0D0D0D;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 56px 40px 28px;
  position: relative;
  font-family: 'Inter', sans-serif;
}
.shared-footer__grid {
  max-width: var(--shared-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.shared-footer__brand-row {
  display: flex; align-items: center; gap: 10px;
}
.shared-footer__brand-row img {
  height: 30px; filter: brightness(0) invert(1);
}
.shared-footer__brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 16px;
  color: #F8F8F8;
}
.shared-footer__brand-text span { color: #FF6B00; }
.shared-footer__brand p {
  font-size: 14px; color: #9A9A9A;
  margin-top: 14px; max-width: 270px;
  line-height: 1.6;
}
.shared-footer__col h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #FF6B00; margin-bottom: 14px;
}
.shared-footer__col a {
  display: block; font-size: 14px;
  color: #C7C7C7; text-decoration: none;
  margin-bottom: 8px;
  transition: color .15s;
}
.shared-footer__col a:hover { color: #F8F8F8; }
.shared-footer__wm {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 10vw, 150px);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  text-align: center;
  margin-top: 56px;
  line-height: 1;
  max-width: var(--shared-container);
  margin-left: auto; margin-right: auto;
  user-select: none;
}
.shared-footer__bottom {
  max-width: var(--shared-container);
  margin: 18px auto 0;
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
  font-size: 12px; color: #6B6B6B;
}

@media (max-width: 780px) {
  .shared-footer { padding: 40px 20px 20px; }
  .shared-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .shared-footer__brand { grid-column: 1 / -1; }
  .shared-footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* ═══════════════ SPACER (offset pro nav fixo) ═══════════════ */
body.shared-nav-spacer { padding-top: 72px; }
