/* ============================================================
   FLUX SHELL — Design tokens e header/footer compartilhados
   ============================================================ */

:root {
  --flux-ink:    #0A0A0A;
  --flux-green:  #00A13A;
  --bg-1:        #FFFFFF;
  --bg-2:        #F5F2EC;
  --line-1:      rgba(10, 10, 10, 0.08);
  --neutral-700: #2D2D2D;
  --neutral-500: #6B6B6B;
  --neutral-400: #888780;

  --font-display: 'Archivo Black', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui:      'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-height:  72px;
  --container-max:  1320px;
  --container-pad:  32px;
}

/* Fonts auto-hospedadas */
@font-face {
  font-family: 'Archivo Black';
  src: url('/standalone/_shared/fonts/ArchivoBlack-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/standalone/_shared/fonts/SpaceGrotesk-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/standalone/_shared/fonts/SpaceGrotesk-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/standalone/_shared/fonts/SpaceGrotesk-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

/* ============================================================
   HEADER
   ============================================================ */

.flux-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-1);
  height: var(--header-height);
  display: flex;
  align-items: center;
  font-family: var(--font-ui);
}

.flux-header__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 56px;
}

/* Logo */
.flux-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--flux-ink);
  width: 84px;
  height: 44px;
  flex-shrink: 0;
}
.flux-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Legacy text fallback (kept for back-compat se algum HTML antigo ainda usar spans) */
.flux-header__logo-mark {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -1.5px;
  line-height: 1;
}
.flux-header__logo-x {
  color: var(--flux-green);
}
.flux-header__logo-tagline {
  display: none;
}

/* Menu */
.flux-header__nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.flux-header__nav a {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--flux-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.flux-header__nav a:hover {
  color: var(--flux-green);
}

/* Lateral direita */
.flux-header__right {
  display: flex;
  align-items: center;
  gap: 32px;
}
.flux-header__tracker {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neutral-500);
  white-space: nowrap;
}
.flux-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--flux-ink);
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.flux-header__cta:hover {
  background: var(--flux-green);
}

/* Hamburger (escondido em desktop) */
.flux-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.flux-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--flux-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.flux-header__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.flux-header__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.flux-header__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile */
@media (max-width: 968px) {
  .flux-header__inner {
    grid-template-columns: auto auto;
    gap: 16px;
  }
  .flux-header__nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line-1);
    padding: 24px var(--container-pad);
    z-index: 49;
  }
  .flux-header__nav.is-open {
    display: block;
  }
  .flux-header__nav ul {
    flex-direction: column;
    gap: 0;
  }
  .flux-header__nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-1);
    font-size: 16px;
  }
  .flux-header__right .flux-header__tracker {
    display: none;
  }
  .flux-header__hamburger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .flux-header__cta {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.flux-footer {
  background: var(--flux-ink);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-ui);
  padding: 80px 0 0;
}

.flux-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad) 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.flux-footer__brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
}

.flux-footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  width: 60px;
  height: 32px;
  flex-shrink: 0;
}
.flux-footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.flux-footer__logo-mark {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -1.5px;
  line-height: 1;
  color: #FFFFFF;
}
.flux-footer__logo-x {
  color: var(--flux-green);
}

.flux-footer__nav h4 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.flux-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.flux-footer__nav li {
  margin-bottom: 12px;
}
.flux-footer__nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}
.flux-footer__nav a:hover {
  color: var(--flux-green);
}

.flux-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px var(--container-pad);
}
.flux-footer__bottom p {
  max-width: var(--container-max);
  margin: 0 auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 968px) {
  .flux-footer {
    padding-top: 56px;
  }
  .flux-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
    padding-bottom: 48px;
  }
  .flux-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .flux-footer__inner {
    grid-template-columns: 1fr;
  }
}
