/* ==========================================================================
   Mozzai — Componentes
   ========================================================================== */

/* ---------- Botões ---------- */
.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding-inline: 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    background-color var(--dur-micro) var(--ease-out),
    box-shadow var(--dur-micro) var(--ease-out),
    border-color var(--dur-micro) var(--ease-out),
    color var(--dur-micro) var(--ease-out),
    translate var(--dur-micro) var(--ease-out),
    scale var(--dur-micro) var(--ease-out);
}

.btn--lg {
  --btn-h: 52px;
  padding-inline: 28px;
  font-size: 16px;
}

@media (max-width: 767px) {
  .btn {
    --btn-h: 52px;
  }
}

.btn:active {
  scale: 0.98;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--orange-500);
  color: var(--on-orange);
  box-shadow: var(--glow-btn);
}

/* Reflexo de vidro no topo do botão */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 55%);
  opacity: 0.55;
  pointer-events: none;
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--orange-400);
    box-shadow: var(--glow-btn-hover);
    translate: 0 -1px;
  }
}

.btn--link {
  height: auto;
  padding: 14px 6px;
  color: var(--text);
}

.btn__arrow {
  width: 18px;
  height: 18px;
  transition: translate var(--dur-micro) var(--ease-out);
}

@media (hover: hover) {
  .btn--link:hover .btn__arrow {
    translate: 4px 0;
  }
}

.btn--ghost {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

@media (hover: hover) {
  .btn--ghost:hover {
    border-color: var(--border-glow);
    background: rgba(255, 140, 60, 0.05);
  }
}

/* ---------- Pílula / badge ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 16px 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}

/* Ponto de brasa pulsante */
.ember {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 10px 2px rgba(255, 107, 26, 0.6);
}

.ember::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 138, 61, 0.6);
  animation: ember-ring 2.4s var(--ease-out) infinite;
}

@keyframes ember-ring {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  line-height: 1.4;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.eyebrow .brand {
  color: var(--text);
  font-size: 1.3em;
  line-height: 0;
}

/* ---------- Cabeçalho de seção ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: var(--container-narrow);
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
}

.section-head h2 {
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-head__lead {
  max-width: 560px;
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

/* ---------- Cards de vidro ---------- */
.card {
  --mx: 50%;
  --my: -20%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 122, 36, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition:
    border-color var(--dur-short) var(--ease-out),
    translate var(--dur-short) var(--ease-out),
    box-shadow var(--dur-short) var(--ease-out);
}

/* Spotlight que segue o cursor */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 138, 61, 0.13), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur-short) var(--ease-out);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .card[data-spotlight]:hover {
    border-color: var(--border-glow);
    translate: 0 -4px;
  }

  .card[data-spotlight]:hover::after {
    opacity: 1;
  }
}

/* Borda em gradiente (vidro nível 3) */
.card--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 178, 122, 0.4), rgba(255, 138, 61, 0.06) 45%, rgba(255, 255, 255, 0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

@media (max-width: 767px) {
  .card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------- Ícone de vidro ---------- */
.g-icon {
  --size: 56px;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  flex: none;
  border-radius: calc(var(--size) * 0.3);
  border: 1px solid rgba(255, 178, 122, 0.3);
  background: linear-gradient(160deg, rgba(255, 178, 122, 0.24), rgba(255, 107, 26, 0.08) 45%, rgba(194, 65, 12, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -10px 20px rgba(194, 65, 12, 0.28),
    0 10px 30px -10px rgba(255, 107, 26, 0.55);
  color: var(--orange-300);
}

/* Reflexo superior */
.g-icon::after {
  content: "";
  position: absolute;
  inset: 1px 1px 52% 1px;
  border-radius: calc(var(--size) * 0.3 - 1px) calc(var(--size) * 0.3 - 1px) 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.g-icon svg {
  position: relative;
  width: calc(var(--size) * 0.46);
  height: calc(var(--size) * 0.46);
  filter: drop-shadow(0 0 6px rgba(255, 138, 61, 0.7));
}

/* Halo que "acende" na animação */
.g-icon__glow {
  position: absolute;
  inset: -60%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 26, 0.35), rgba(255, 107, 26, 0));
  pointer-events: none;
  z-index: -1;
}

.g-icon--sm {
  --size: 48px;
}

.g-icon--dim {
  border-color: var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.g-icon--dim svg {
  filter: none;
  opacity: 0.8;
}

/* Ícone pequeno em moldura (microbenefícios) */
.mini-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--orange-300);
}

.mini-icon svg {
  width: 16px;
  height: 16px;
}

/* ---------- Chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.chip svg {
  width: 12px;
  height: 12px;
}

.chip--brand {
  border-color: rgba(255, 138, 61, 0.3);
  background: rgba(255, 107, 26, 0.12);
  color: var(--orange-300);
}

/* ---------- Logo (provisório: wordmark) ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--text);
}

.logo__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 10px 2px rgba(255, 107, 26, 0.65);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out),
    -webkit-backdrop-filter var(--dur-short) var(--ease-out),
    backdrop-filter var(--dur-short) var(--ease-out);
}

.header.is-scrolled,
.header.is-menu-open {
  background: rgba(9, 7, 10, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header__cta {
  display: none;
}

.nav {
  display: none;
}

.nav a {
  position: relative;
  padding-block: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur-micro) var(--ease-out);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--orange-500);
  box-shadow: 0 0 8px rgba(255, 107, 26, 0.8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-short) var(--ease-out);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.menu-toggle .icon {
  grid-area: 1 / 1;
  transition: opacity var(--dur-micro), rotate var(--dur-short) var(--ease-out);
}

.menu-toggle__close {
  opacity: 0;
  rotate: -90deg;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  opacity: 0;
  rotate: 90deg;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  opacity: 1;
  rotate: 0deg;
}

@media (min-width: 768px) {
  .header__cta {
    display: inline-flex;
    --btn-h: 42px;
    padding-inline: 18px;
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .header__inner {
    grid-template-columns: 1fr auto 1fr;
  }

  .nav {
    display: flex;
    gap: 32px;
  }

  .menu-toggle {
    display: none;
  }
}

/* ---------- Menu mobile ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: rgba(9, 7, 10, 0.9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short);
}

.menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-short) var(--ease-out);
}

.menu__links a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.menu__cta {
  width: 100%;
  margin-top: auto;
}

@media (min-width: 1024px) {
  .menu {
    display: none;
  }
}

/* ---------- Accordion (FAQ) ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin-inline: auto;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}

.faq__item.is-open {
  border-color: rgba(255, 138, 61, 0.28);
  background: rgba(255, 140, 60, 0.035);
}

.faq__h {
  font-size: inherit;
  font-weight: inherit;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 72px;
  padding: 18px 20px 18px 24px;
  text-align: left;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--radius-lg);
}

.faq__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  transition:
    rotate var(--dur-short) var(--ease-out),
    background-color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out),
    color var(--dur-short) var(--ease-out);
}

.faq__icon svg {
  width: 16px;
  height: 16px;
}

.faq__item.is-open .faq__icon {
  rotate: 45deg;
  border-color: transparent;
  background: var(--orange-500);
  color: var(--on-orange);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-short) var(--ease-in-out);
}

.faq__a > div {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear var(--dur-short);
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__item.is-open .faq__a > div {
  visibility: visible;
  transition: visibility 0s;
}

.faq__a p {
  max-width: 62ch;
  padding: 0 24px 24px;
  color: var(--text-muted);
}

/* ---------- Botão flutuante de WhatsApp (mobile) ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--on-orange);
  box-shadow: var(--glow-btn);
  opacity: 0;
  translate: 0 16px;
  pointer-events: none;
  transition: opacity var(--dur-short) var(--ease-out), translate var(--dur-short) var(--ease-out);
}

.wa-float svg {
  width: 26px;
  height: 26px;
}

.wa-float.is-visible {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .wa-float {
    display: none;
  }
}
