/* ==========================================================================
   CRISTO REI IMPORT'S — LINK-IN-BIO PREMIUM
   Design System & Master Stylesheet
   Tokens derivados estritamente da identidade da marca (Ouro Nobre & Obsidian)
   ========================================================================== */

/* 1. TIPOGRAFIA SELF-HOSTED (Montserrat WOFF2) */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 2. TOKENS DA MARCA (:ROOT) — Zero cinzas/azuis de sistema */
:root {
  /* Paleta Nobre derivada da logo oficial (Ouro Imperial & Obsidian Real) */
  --brand-300: #edd7a6;
  --brand-400: #dfbe78;
  --brand-500: #c5a059; /* Cor principal de ação / Ouro */
  --brand-600: #a8843d;
  --brand-700: #886729;
  --brand-900: #382a10;

  --accent-400: #e2c88d;
  --accent-500: #bca06c;
  --accent-600: #8d7240;

  --ink-950: #08060b;   /* Fundo absoluto contínuo */
  --ink-900: #0e0b14;   /* Profundidade obsidiana com matiz púrpura nobre */
  --ink-800: #171320;
  --ink-700: #221c2d;
  --ink-600: #322b3e;

  --paper: #fbf9f4;       /* Texto display e alto contraste */
  --paper-muted: #c8c0af; /* Texto secundário com legibilidade AA */
  --paper-dark: #0e0b14;  /* Texto sobre botão dourado */

  /* Véus de transição e luminosidade calculada */
  --veil-1: color-mix(in oklab, var(--brand-500) 22%, transparent);
  --veil-2: color-mix(in oklab, var(--accent-500) 16%, transparent);
  --edge: color-mix(in oklab, var(--brand-300) 24%, transparent);
  --glow: color-mix(in oklab, var(--brand-500) 50%, transparent);

  /* Escala Tipográfica precisa (sem improviso) */
  --fs-display: clamp(2rem, 5.2vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 3.6vw, 2.4rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.45rem);
  --fs-body: 1.0625rem; /* 17px */
  --fs-small: 0.875rem; /* 14px */
  --lh-tight: 1.12;
  --lh-body: 1.6;

  /* Espaçamentos e Contêiner */
  --container-max: 1140px;
  --section-pad: clamp(56px, 7vw, 100px);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  /* WhatsApp Oficial */
  --wa-green: #25d366;
}

/* 3. RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--paper);
  background-color: var(--ink-950);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
}

body {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  color: var(--paper);
  background-color: var(--ink-950);
  line-height: var(--lh-body);
  overflow-x: hidden !important;
  padding-bottom: 96px; /* Respiro obrigatório para o CTA flutuante */
}

/* 4. CAMPO GLOBAL CONTÍNUO (Site é um só — Zero quebra de seção) */
.field-ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(65% 50% at 20% 10%, var(--veil-1), transparent 75%),
    radial-gradient(60% 45% at 80% 35%, var(--veil-2), transparent 70%),
    radial-gradient(75% 55% at 50% 90%, var(--veil-1), transparent 80%),
    var(--ink-950);
  background-size: 160% 160%;
  animation: fieldDrift 28s ease-in-out infinite alternate;
}

@keyframes fieldDrift {
  0% { background-position: 0% 0%, 100% 0%, 50% 100%; }
  100% { background-position: 25% 15%, 75% 20%, 45% 85%; }
}

@media (prefers-reduced-motion: reduce) {
  .field-ambient {
    animation: none;
  }
}

/* 5. ESTRUTURA GERAL */
.site-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(12px, 3.5vw, 24px);
}

/* Transição elegante de cor entre seções (sem linhas duras) */
.section {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-pad);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

.section::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: clamp(80px, 16vh, 180px);
  background: linear-gradient(to bottom, var(--veil-1), transparent);
  pointer-events: none;
  z-index: -1;
}

.section--alt::before {
  background: linear-gradient(to bottom, var(--veil-2), transparent);
}

/* 6. NAVBAR (Mobile ≤ 56px, Zero Vazamento) */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 56px;
  z-index: 800;
  background: color-mix(in oklab, var(--ink-950) 84%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
  transition: background-color 0.3s ease;
}

.nav-container {
  width: 100%;
  max-width: var(--container-max);
  height: 100%;
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--paper);
  min-width: 0;
  flex-shrink: 1;
}

.nav-logo-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--edge);
  box-shadow: 0 0 10px var(--glow);
  flex-shrink: 0;
}

.nav-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-cta {
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  background: var(--brand-500);
  color: var(--paper-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px var(--glow);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .nav-cta {
    padding: 0 9px;
    height: 32px;
  }
  .nav-cta span {
    font-size: 0.75rem;
  }
}

.nav-cta:hover {
  background: var(--brand-400);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--glow);
}

/* 7. HERO SECTION (Sem Badges / Above the Fold Perfeito em 390x844) */
.hero {
  position: relative;
  padding-top: clamp(24px, 5vw, 48px);
  padding-bottom: clamp(36px, 6vw, 64px);
  text-align: center;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

.hero-box {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-avatar {
  position: relative;
  width: 108px;
  height: 108px;
  margin-bottom: 20px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  box-shadow: 0 0 32px -4px var(--glow), inset 0 0 12px rgba(255, 255, 255, 0.2);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background-color: var(--ink-900);
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  color: var(--paper);
  margin-bottom: 12px;
}

.hero-editorial {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--brand-300);
}

.hero-official-bio {
  font-size: clamp(0.88rem, 2.2vw, 1.02rem);
  line-height: 1.55;
  color: var(--paper-muted);
  width: 100%;
  max-width: 540px;
  margin-bottom: 20px;
  padding-inline: 8px;
  word-break: normal;
  overflow-wrap: break-word;
}

.hero-metrics {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(6px, 2vw, 12px);
  margin-bottom: 22px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--edge);
  background: color-mix(in oklab, var(--ink-800) 50%, transparent);
  box-shadow: inset 0 1px 0 var(--edge);
  max-width: 100%;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--paper-muted);
  white-space: nowrap;
}

.metric-item strong {
  color: var(--brand-300);
  font-weight: 700;
}

.metric-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--brand-500);
  opacity: 0.6;
}

/* 8. BOTÕES PRINCIPAIS (Sólidos + Shiny Sweep Glow) */
.hero-cta-group {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-400), var(--brand-500));
  color: var(--paper-dark);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  overflow: hidden;
  box-shadow: 0 10px 28px -6px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  text-align: center;
}

.btn-primary-action span {
  font-size: clamp(0.85rem, 2.5vw, 0.98rem);
  white-space: normal;
  text-align: center;
}

.btn-primary-action::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(25deg);
  pointer-events: none;
  animation: shinySweep 4.5s ease-in-out infinite;
}

@keyframes shinySweep {
  0% { transform: translateX(-150%) rotate(25deg); }
  25%, 100% { transform: translateX(450%) rotate(25deg); }
}

.btn-primary-action:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 34px -4px var(--glow);
}

.btn-secondary-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--ink-800) 65%, transparent);
  border: 1px solid var(--edge);
  color: var(--paper);
  text-decoration: none;
  font-size: clamp(0.82rem, 2.4vw, 0.92rem);
  font-weight: 600;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
  overflow: hidden;
}

.btn-secondary-link .link-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.btn-secondary-link .link-left span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(0.8rem, 2.3vw, 0.9rem);
}

.btn-secondary-link svg.link-icon {
  width: 18px;
  height: 18px;
  stroke: var(--brand-300);
  flex-shrink: 0;
}

.btn-secondary-link svg.arrow-icon {
  width: 14px;
  height: 14px;
  stroke: var(--paper-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.btn-secondary-link:hover {
  background: color-mix(in oklab, var(--ink-700) 80%, transparent);
  border-color: var(--brand-400);
  transform: translateY(-2px);
}

.btn-secondary-link:hover svg.arrow-icon {
  transform: translateX(3px);
  stroke: var(--brand-300);
}

/* 9. SEÇÃO DE CATEGORIAS & DIFERENCIAIS */
.section-header {
  text-align: center;
  margin-bottom: clamp(28px, 4.5vw, 44px);
}

.section-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-300);
  margin-bottom: 8px;
  font-weight: 600;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: var(--lh-tight);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.cat-card {
  position: relative;
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--ink-800) 65%, transparent);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--edge), 0 16px 36px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  overflow: hidden;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-400);
}

.cat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--brand-500) 15%, transparent);
  border: 1px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--brand-300);
}

.cat-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--paper);
}

.cat-card p {
  font-size: 0.92rem;
  color: var(--paper-muted);
  line-height: 1.55;
}

/* Faixa de Envio Nacional */
.shipping-banner {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, color-mix(in oklab, var(--ink-800) 80%, transparent), color-mix(in oklab, var(--brand-900) 40%, transparent));
  border: 1px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.5);
}

.shipping-banner svg {
  width: 24px;
  height: 24px;
  stroke: var(--brand-300);
  flex-shrink: 0;
}

.shipping-banner span {
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  font-weight: 600;
  color: var(--paper);
}

/* 10. ESTEIRA DE FEEDBACKS (Horizontal, Arraste, Zero Texto de Aviso) */
.feedback-marquee-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden !important;
  overflow-x: hidden !important;
  padding-block: 16px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  contain: paint;
}

.feedback-marquee-wrapper:active {
  cursor: grabbing;
}

.feedback-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.feedback-card {
  position: relative;
  width: 250px;
  height: 330px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--edge);
  background: var(--ink-800);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.feedback-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feedback-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--brand-400);
}

@media (max-width: 480px) {
  .feedback-card {
    width: 210px;
    height: 280px;
  }
}

/* 11. FAQ ACCORDION (Objeções Reais / Zero Promessas) */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--edge);
  background: color-mix(in oklab, var(--ink-800) 60%, transparent);
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--brand-400);
  background: color-mix(in oklab, var(--ink-700) 75%, transparent);
}

.faq-trigger {
  width: 100%;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(0.86rem, 2.4vw, 0.98rem);
  font-weight: 600;
  color: var(--paper);
}

.faq-trigger::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  stroke: var(--brand-300);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 22px 20px 22px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--paper-muted);
}

/* 12. RODAPÉ (Autêntico / Zero Menção a Terceiros) */
.footer {
  position: relative;
  padding-block: clamp(40px, 6vw, 64px) 24px;
  border-top: 1px solid var(--edge);
  text-align: center;
}

.footer-inner {
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--paper-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--brand-300);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--paper-muted);
  opacity: 0.7;
}

/* 13. WHATSAPP FLUTUANTE (Obrigatório / Redondo / Canto Inferior Direito) */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa-green);
  color: #ffffff;
  z-index: 900;
  text-decoration: none;
  box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 34px -4px rgba(37, 211, 102, 0.75);
}

.wa-float:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .wa-float {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float,
  .btn-primary-action::after,
  .cat-card,
  .btn-secondary-link {
    transition: none !important;
    animation: none !important;
  }
}
