/* ================================================================
   COMPONENTS.CSS — Botões, Form Submit, Cookie, Toast, CTA Bar, WhatsApp
   AVRA Prime
   ================================================================ */

/* ── Botões base ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
  transition: all 500ms var(--ease);
  position: relative;
}

.btn-primary {
  background: var(--soft-white);
  color: var(--space);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--champagne);
  color: var(--space);
  box-shadow: 0 24px 60px -20px rgba(200, 169, 106, 0.4);
}

.btn-primary .arrow {
  width: 18px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 400ms var(--ease);
}

.btn-primary .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

.btn-primary:hover .arrow {
  width: 26px;
}

.btn-ghost {
  background: transparent;
  color: var(--soft-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -24px rgba(0, 212, 255, 0.5);
}

/* ── Botão Submit (formulário) ── */
.btn-submit {
  background: var(--space);
  color: var(--soft-white);
  padding: 22px 40px;
  border: 1px solid var(--space);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: all 600ms var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--champagne);
  transform: translateX(-101%);
  transition: transform 600ms var(--ease);
  z-index: 0;
}

.btn-submit span {
  position: relative;
  z-index: 1;
  transition: color 400ms var(--ease);
}

.btn-submit:hover {
  border-color: var(--champagne);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -16px rgba(200, 169, 106, 0.3);
}

.btn-submit:hover::before {
  transform: translateX(0);
}

.btn-submit:hover span {
  color: var(--space);
}

.btn-submit .arrow {
  width: 18px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 400ms var(--ease);
  z-index: 1;
}

.btn-submit .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

.btn-submit:hover .arrow {
  width: 26px;
}

/* ── WhatsApp Float ── */
@keyframes wa-pulse-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.65); opacity: 0; }
}
@keyframes wa-glow {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.6); }
  50%       { box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 0 0 18px rgba(37,211,102,0); }
}

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 998;
  overflow: visible;
  transition: transform 0.3s;
  animation: wa-glow 2s ease-out infinite;
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.5);
  animation: wa-pulse-ring 2s ease-out infinite;
  z-index: -1;
  pointer-events: none;
}

.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: wa-pulse-ring 2s ease-out 0.6s infinite;
  z-index: -1;
  pointer-events: none;
}

.wa-float:hover {
  transform: scale(1.1);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  position: relative;
  z-index: 1;
}

/* ── Smart CTA Bar ── */
.smart-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid rgba(200, 169, 106, 0.2);
  padding: 14px 48px;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 600ms var(--ease);
}

.smart-cta-bar.visible {
  transform: translateY(0);
}

.smart-cta-text {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--soft-white);
}

.smart-cta-text em {
  color: var(--champagne);
  font-style: italic;
}

.smart-cta-btn {
  background: var(--champagne);
  color: var(--space);
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 400ms var(--ease);
}

.smart-cta-btn:hover {
  background: var(--soft-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(200, 169, 106, 0.4);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: rgba(27, 38, 56, 0.95);
  backdrop-filter: blur(12px);
  color: var(--soft-white);
  padding: 24px 32px;
  border: 1px solid var(--cyan);
  z-index: 10000;
  max-width: 380px;
  transform: translateX(120%);
  transition: transform 600ms var(--ease);
  display: flex;
  align-items: start;
  gap: 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--cyan);
  stroke-width: 2;
  fill: none;
}

.toast-title {
  font-family: var(--serif);
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--soft-white);
}

.toast-body {
  font-size: 13px;
  color: var(--cool-gray);
  line-height: 1.5;
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(11, 18, 32, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(200, 169, 106, 0.15);
  padding: 20px 48px;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-banner.show {
  display: flex;
}

.cookie-text {
  font-size: 13px;
  color: var(--cool-gray);
  line-height: 1.6;
  max-width: 700px;
}

.cookie-text a {
  color: var(--champagne);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  background: var(--champagne);
  color: var(--space);
  border: none;
  padding: 10px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--sans);
}

.cookie-btn:hover {
  background: var(--soft-white);
  transform: translateY(-2px);
}

.cookie-btn--ghost {
  background: transparent;
  color: var(--cool-gray);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft-white);
  transform: none;
}