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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(20, 17, 16, .96);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(145, 70, 255, .16);
  padding-block: var(--space-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--w);
  text-decoration: none;
  letter-spacing: -.02em;
  transition: opacity .2s ease;
}

.site-header__logo:hover { opacity: .75; text-decoration: none; }
.site-header__logo span  { color: var(--roxo); }

/* === Desktop nav === */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, .52);
  text-decoration: none;
  letter-spacing: .015em;
  position: relative;
  padding-bottom: 2px;
  transition: color .2s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--roxo);
  transition: width .3s cubic-bezier(.22, 1, .36, 1);
}

.site-nav a:hover                       { color: var(--w); text-decoration: none; }
.site-nav a:hover::after                { width: 100%; }
.site-nav a[aria-current="page"]        { color: var(--w); }
.site-nav a[aria-current="page"]::after { width: 100%; }

.site-nav__cta {
  background-color: var(--roxo);
  color: var(--w) !important;
  padding: .5rem 1.25rem !important;
  border-radius: var(--rB);
  font-weight: 600 !important;
  letter-spacing: .02em;
  transition: box-shadow .25s ease;
}

.site-nav__cta:hover      { box-shadow: 0 0 22px rgba(145, 70, 255, .55); }
.site-nav__cta::after     { display: none !important; }

.site-nav__interno { color: rgba(255, 255, 251, .22) !important; }
.site-nav__interno::after { display: none !important; }
.site-nav__interno:hover  { color: rgba(255, 255, 251, .48) !important; }

/* === Hamburger toggle === */
.site-header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--w);
  line-height: 0;
}

/* bars → X animation */
.site-header__toggle svg rect {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .2s ease;
}

.site-header__toggle[aria-expanded="true"] svg rect:nth-child(1) { transform: translateY(7px)  rotate(45deg);  }
.site-header__toggle[aria-expanded="true"] svg rect:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-header__toggle[aria-expanded="true"] svg rect:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Mobile nav === */
@media (max-width: 768px) {
  .site-header__toggle { display: block; margin-left: auto; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(12, 10, 9, .98);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    padding: var(--space-sm) var(--container-pad) var(--space-lg);
    border-top: 1px solid rgba(145, 70, 255, .14);
    /* closed */
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
    transition: opacity .22s ease, clip-path .36s cubic-bezier(.22, 1, .36, 1);
  }

  .site-nav.is-open {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    pointer-events: auto;
  }

  .site-nav li { width: 100%; }

  .site-nav a {
    display: block;
    padding-block: .9rem;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .62);
    font-size: var(--fs-sm);
    letter-spacing: .03em;
    text-transform: none;
  }

  .site-nav a::after { display: none; }

  .site-nav a:hover { color: var(--w); }

  .site-nav__cta {
    display: block;
    margin-top: var(--space-md);
    text-align: center;
    padding-block: .9rem;
    border-bottom: none !important;
    border-radius: var(--rB);
    box-shadow: 0 0 28px rgba(145, 70, 255, .28);
  }
}


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

.site-footer {
  background-color: var(--gd);
  color: var(--gl);
  padding-block: var(--space-xl);
  border-top: 1px solid rgba(145, 70, 255, .15);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--w);
  margin-bottom: var(--space-sm);
}

.site-footer__brand span { color: var(--roxo); }

.site-footer__tagline {
  font-size: var(--fs-sm);
  color: var(--gm);
  max-width: 28ch;
  margin: 0;
}

.site-footer__heading {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--pervinca);
  margin-bottom: var(--space-md);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-footer__links a {
  font-size: var(--fs-sm);
  color: var(--gl);
  text-decoration: none;
  transition: color var(--ease);
}

.site-footer__links a:hover { color: var(--w); }

.site-footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--gm);
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}


/* ============================
   BOTÕES
   ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: .75rem 1.75rem;
  border-radius: var(--rB);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: opacity var(--ease), background-color var(--ease), color var(--ease), border-color var(--ease);
}

.btn:hover { text-decoration: none; }

.btn--primary { background-color: var(--roxo); color: var(--w); }
.btn--primary:hover { opacity: .85; }

.btn--ghost { background-color: transparent; color: var(--roxo); border-color: var(--roxo); }
.btn--ghost:hover { background-color: var(--roxo); color: var(--w); }

.btn--ghost-light { background-color: transparent; color: var(--w); border-color: rgba(255, 255, 255, .3); }
.btn--ghost-light:hover { border-color: var(--w); }

.btn--lg { padding: 1rem 2.25rem; font-size: var(--fs-base); }


/* ============================
   TAGS / BADGES
   ============================ */

.tag {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1;
}

.tag--roxo  { background-color: rgba(145, 70, 255, .15); color: var(--pervinca); }
.tag--verde { background-color: rgba(123, 240, 127, .15); color: var(--verde); }
.tag--dark  { background-color: rgba(255, 255, 255, .08); color: var(--gl); }


/* ============================
   WHATSAPP FLUTUANTE
   ============================ */

#wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}

#wa-float__bubble {
  display: none;
  background-color: var(--gd);
  border: 1px solid rgba(145, 70, 255, .3);
  color: var(--gl);
  font-size: var(--fs-sm);
  padding: .75rem 1rem;
  border-radius: var(--rL) var(--rL) var(--rB) var(--rL);
  max-width: 220px;
  line-height: var(--lh-base);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
  animation: wa-fadeIn .3s ease forwards;
}

#wa-float__bubble.is-visible { display: block; }

#wa-float__btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--gd);
  border: 1px solid rgba(145, 70, 255, .35);
  border-radius: 999px;
  padding: .6rem 1.1rem .6rem .6rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
  transition: transform var(--ease), box-shadow var(--ease);
  cursor: pointer;
}

#wa-float__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, .45);
  text-decoration: none;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #25D366;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wa-label__main {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--w);
  white-space: nowrap;
}

.wa-label__sub {
  font-size: .7rem;
  color: var(--verde);
  white-space: nowrap;
}

@media (max-width: 768px) {
  #wa-float {
    bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
    right: 1.25rem;
  }

  #wa-float__btn {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .wa-avatar { width: 32px; height: 32px; }
  .wa-label  { display: none; }
}

@keyframes wa-fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   COOKIE BAR
   ============================================================ */

#cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 980;
  transform: translateY(100%);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

#cookie-bar.is-visible {
  transform: translateY(0);
}

#cookie-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .9rem 2rem;
  background: rgba(20, 17, 16, .96);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid rgba(145, 70, 255, .22);
  box-shadow: 0 -8px 48px rgba(0, 0, 0, .5);
}

#cookie-bar__copy {
  font-size: .82rem;
  color: rgba(255, 255, 255, .52);
  margin: 0;
  line-height: 1.5;
  max-width: 56ch;
}

#cookie-bar__link {
  color: var(--pervinca);
  text-decoration: none;
  font-weight: 500;
  margin-left: .4rem;
  white-space: nowrap;
  transition: color .15s ease;
}

#cookie-bar__link:hover { color: var(--w); }

#cookie-bar__actions {
  display: flex;
  gap: .55rem;
  flex-shrink: 0;
  align-items: center;
}

#cookie-bar__reject {
  padding: .4rem .95rem;
  font-size: .78rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: rgba(255, 255, 255, .42);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
  line-height: 1;
}

#cookie-bar__reject:hover {
  color: rgba(255, 255, 255, .75);
  border-color: rgba(255, 255, 255, .28);
}

#cookie-bar__accept {
  padding: .44rem 1.15rem;
  font-size: .78rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--w);
  background: var(--roxo);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 14px rgba(145, 70, 255, .38);
  transition: box-shadow .2s ease, transform .12s ease;
  line-height: 1;
}

#cookie-bar__accept:hover {
  box-shadow: 0 4px 22px rgba(145, 70, 255, .6);
  transform: translateY(-1px);
}

#cookie-bar__accept:active { transform: translateY(0); }

@media (max-width: 640px) {
  #cookie-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
    padding: 1rem 1.25rem 1.25rem;
  }

  #cookie-bar__actions {
    width: 100%;
    justify-content: flex-end;
  }

  #cookie-bar__copy { max-width: none; }
}
