/* ============================================================
   components.css — Botões, toggle, burger, drawer, floats
   ============================================================ */

/* ---------------- BOTÕES ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.btn i {
  width: 18px;
  height: 18px;
}
.btn--wa {
  background: linear-gradient(135deg, var(--wa), var(--wa-2));
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.32);
}
.btn--wa:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(37, 211, 102, 0.45);
}
.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--border-strong);
  background: var(--accent-soft);
  transform: translateY(-3px);
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px var(--accent-glow);
}

/* ---------------- THEME TOGGLE ---------------- */
.theme-toggle {
  width: 60px;
  height: 32px;
  flex-shrink: 0;
}
.theme-toggle__track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.4s var(--ease);
}
.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s var(--ease-out);
  box-shadow: 0 2px 8px var(--accent-glow);
}
[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(28px);
}
.theme-toggle__ic {
  position: absolute;
  width: 15px;
  height: 15px;
  color: #fff;
  transition:
    opacity 0.3s var(--ease),
    transform 0.4s var(--ease);
}
.theme-toggle__ic--sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
.theme-toggle__ic--moon {
  opacity: 1;
}
[data-theme="light"] .theme-toggle__ic--sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
[data-theme="light"] .theme-toggle__ic--moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* ---------------- BURGER ---------------- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0 11px;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.35s var(--ease),
    opacity 0.35s var(--ease);
}
.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- DRAWER ---------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 380px);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  z-index: var(--z-drawer);
  transform: translateX(105%);
  transition: transform 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: calc(var(--header-h) + 24px) 32px 40px;
  box-shadow: var(--shadow);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.drawer.is-open {
  transform: translateX(0);
}
.drawer__nav {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition:
    color 0.25s var(--ease),
    padding-left 0.3s var(--ease);
}
.drawer__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}
.drawer__link:hover,
.drawer__link:active {
  color: var(--accent);
  padding-left: 8px;
}
.drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  width: 100%;
  padding: 16px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--wa), var(--wa-2));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}
.drawer__cta i {
  width: 18px;
  height: 18px;
}

/* ---------------- VALORES ---------------- */
.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.value {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.value:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-s);
}
.value__ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.value__ic i {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.value__txt {
  display: flex;
  flex-direction: column;
}
.value__txt strong {
  font-size: 0.92rem;
  font-weight: 700;
}
.value__txt small {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---------------- FLOATS ---------------- */
.floats {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.float {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease);
}
.float i {
  width: 24px;
  height: 24px;
}
.float__tip {
  position: absolute;
  right: 66px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
  box-shadow: var(--shadow-s);
}
.float:hover .float__tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.float--wa {
  background: linear-gradient(135deg, var(--wa), var(--wa-2));
  animation: floatBounce 3s var(--ease) infinite;
}
.float--ig {
  background: linear-gradient(135deg, #f09433, #dc2743 50%, #bc1888);
  animation: floatBounce 3s var(--ease) infinite 0.4s;
}
.float--email {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  animation: floatBounce 3s var(--ease) infinite 0.8s;
}
.float:hover {
  transform: scale(1.12) translateY(-4px);
}

/* ============================================================
   HEADER LOGIN — botão "Entrar" + dropdown com mini-form
   ============================================================ */
.hlogin {
  position: relative;
}
.hlogin__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.hlogin__trigger:hover {
  border-color: var(--border-strong);
  color: var(--accent);
}
.hlogin__trigger i {
  width: 16px;
  height: 16px;
}
.hlogin__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 300px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 20px;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
  z-index: 60;
}
.hlogin.open .hlogin__panel {
  opacity: 1;
  transform: none;
  pointer-events: all;
}
.hlogin__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.hlogin__panel input {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 10px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.hlogin__panel input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hlogin__submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.hlogin__error {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  margin-bottom: 10px;
}
.hlogin__error.show {
  display: block;
}
.hlogin__full {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 12px;
  transition: color 0.2s var(--ease);
}
.hlogin__full:hover {
  color: var(--accent);
}

@media (max-width: 920px) {
  .hlogin__trigger span {
    display: none;
  }
  .hlogin__trigger {
    padding: 0;
    width: 44px;
    height: 44px;
    justify-content: center;
    border-radius: 12px;
  }
  .hlogin__panel {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: 12px;
    left: 12px;
    width: auto;
  }
}
