/* ==========================================================================
   AM.Griffes — Design System & Stylesheet (Moda & Luxo)
   Tríade Cromática: Preto, Branco & Cinza Claro Nobre
   ========================================================================== */

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

@font-face {
  font-family: 'LuxuryText';
  src: url('../fonts/text-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Tríade de Luxo */
  --brand-900: #060607;
  --brand-700: #121215;
  --brand-500: #ffffff;
  --brand-300: #f2f3f5;
  --brand-200: #e5e7eb;
  --accent-500: #d4d7dd;
  --ink-900: #050506;
  --ink-700: #0d0e10;
  --paper: #ffffff;
  --paper-muted: #c2c6cf;
  
  /* Véus & Profundidade sem caixas cinzas */
  --veil-1: rgba(242, 243, 245, 0.07);
  --veil-2: rgba(212, 215, 221, 0.05);
  --edge: rgba(255, 255, 255, 0.14);
  --edge-subtle: rgba(255, 255, 255, 0.07);
  --glow: rgba(255, 255, 255, 0.12);
  --surface-glass: rgba(18, 18, 21, 0.65);
  
  /* Tipografia Uncut */
  --ff-display: 'LuxuryDisplay', Georgia, serif;
  --ff-text: 'LuxuryText', serif;
  
  /* Escala Tipográfica Rigorosa */
  --fs-display: clamp(2.4rem, 6.2vw, 4.4rem);
  --fs-h2: clamp(1.85rem, 3.8vw, 2.9rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.55rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-meta: 0.72rem;
  
  /* Container e Ritmo */
  --max-w-bio: 640px;
  --max-w-content: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Universal & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--ink-900);
  color: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink-900);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Fundo Global Contínuo com Deriva Suave */
.ambient-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 18% 12%, var(--veil-1), transparent 75%),
    radial-gradient(50% 40% at 82% 35%, var(--veil-2), transparent 78%),
    radial-gradient(65% 55% at 50% 90%, var(--veil-1), transparent 80%),
    var(--ink-900);
  background-size: 150% 150%;
  animation: fieldDrift 28s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes fieldDrift {
  from { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  to   { background-position: 15% 10%, 85% 15%, 48% 90%, 0 0; }
}

/* Canvas Three.js de Fundo */
#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.5s ease;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-w-bio);
  margin-inline: auto;
  padding-inline: 20px;
}

.container-wide {
  width: 100%;
  max-width: var(--max-w-content);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ==========================================================================
   Navbar Minimalista
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(5, 5, 6, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge-subtle);
  z-index: 800;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}

.nav-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--edge);
}

.nav-brand-name {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 14px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-900);
  background: var(--brand-500);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.24s var(--ease), box-shadow 0.24s;
  white-space: nowrap;
}

.nav-action:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Hero Section — Sem Badges, Ponto Focal Monumental
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 84px;
  padding-bottom: 24px;
  text-align: center;
}

.hero-logo-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent 60%);
  border: 1px solid var(--edge);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Linha caps fina autorizada (sem fundo, sem borda) */
.hero-eyebrow {
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--paper-muted);
  margin-bottom: 12px;
}

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

.hero-title .serif-accent {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-300);
}

.hero-subtitle {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--paper-muted);
  max-width: 480px;
  margin: 0 auto 24px;
}

/* Botão Principal com Shiny Sweep Glow */
.hero-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  min-height: 52px;
  padding: 14px 28px;
  font-family: var(--ff-text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-900);
  background: var(--brand-500);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.hero-cta-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: rotate(25deg);
  animation: shinySweep 6s infinite ease-in-out;
}

@keyframes shinySweep {
  0%, 70% { transform: translateX(0) rotate(25deg); }
  100% { transform: translateX(500%) rotate(25deg); }
}

.hero-cta-btn:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.25);
}

.hero-microcopy {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--paper-muted);
  margin-top: 10px;
}

/* ==========================================================================
   Bending Marquee — Faixa Curva Contínua
   ========================================================================== */
.marquee-container {
  width: 100%;
  overflow: hidden;
  padding-block: 18px;
  position: relative;
  margin-block: 20px;
  border-top: 1px solid var(--edge-subtle);
  border-bottom: 1px solid var(--edge-subtle);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeRun 24s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-family: var(--ff-display);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-300);
  padding-inline: 28px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.marquee-item::after {
  content: "✦";
  font-size: 0.65rem;
  opacity: 0.6;
}

@keyframes marqueeRun {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Esteira Inteligente Infinita (Galeria da Coleção)
   ========================================================================== */
.gallery-section {
  position: relative;
  padding-block: 28px 20px;
  overflow: hidden;
  width: 100%;
}

.gallery-header {
  margin-bottom: 16px;
}

.gallery-heading {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  color: var(--brand-300);
}

.gallery-viewport {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  padding-block: 8px;
}

.gallery-viewport:active {
  cursor: grabbing;
}

.gallery-viewport:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 4px;
}

.gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
  padding-inline: 20px;
}

.gallery-card {
  flex: 0 0 clamp(190px, 26vw, 300px);
  height: clamp(240px, 34vw, 380px);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--edge);
  background: var(--surface-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 36px -12px rgba(0, 0, 0, 0.85);
  transition: transform 0.36s var(--ease), border-color 0.36s var(--ease);
}

.gallery-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.45);
}

.gallery-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.gallery-card:hover .gallery-card__img {
  transform: scale(1.04);
}

.gallery-card__glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 0.65s var(--ease);
}

.gallery-card:hover .gallery-card__glare {
  transform: translateX(100%);
}

.gallery-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 14px;
  background: linear-gradient(to top, rgba(5, 5, 6, 0.88) 0%, transparent 100%);
  pointer-events: none;
}

.gallery-card__tag {
  display: inline-block;
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-300);
}

/* Reduced motion: scroll manual sem autoplay */
@media (prefers-reduced-motion: reduce) {
  .gallery-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    cursor: default;
    scrollbar-width: thin;
    scrollbar-color: var(--edge) transparent;
  }
  .gallery-card {
    scroll-snap-align: start;
    transition: none !important;
  }
  .gallery-card:hover {
    transform: none !important;
  }
  .gallery-card__img, .gallery-card__glare {
    transition: none !important;
  }
}

@media (max-width: 480px) {
  .gallery-card {
    flex: 0 0 200px;
    height: 250px;
  }
}

/* ==========================================================================
   Link Cards — Bio Link Prime (1 Invertido)
   ========================================================================== */
.links-section {
  position: relative;
  padding-block: 16px;
}

.section-label {
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--paper-muted);
  margin-bottom: 16px;
  display: block;
  text-align: left;
}

.links-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  min-height: 72px;
  border-radius: 18px;
  border: 1px solid var(--edge);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: var(--paper);
  transition: transform 0.32s var(--ease), border-color 0.32s, box-shadow 0.32s;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 36px -12px rgba(0, 0, 0, 0.8);
}

.link-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--edge-subtle);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--brand-500);
}

.link-card__content {
  flex: 1;
  text-align: left;
}

.link-card__title {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: block;
}

.link-card__desc {
  font-size: 0.82rem;
  color: var(--paper-muted);
  line-height: 1.35;
  margin-top: 2px;
  display: block;
}

.link-card__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--edge);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--paper);
  transition: transform 0.32s var(--ease), background 0.32s, color 0.32s;
}

.link-card:hover .link-card__arrow {
  transform: translateX(3px) rotate(-45deg);
  background: var(--brand-500);
  color: var(--ink-900);
  border-color: var(--brand-500);
}

/* Card Invertido — Destaque Superior */
.link-card--featured {
  background: var(--brand-500);
  color: var(--ink-900);
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.12);
}

.link-card--featured .link-card__icon {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--ink-900);
}

.link-card--featured .link-card__desc {
  color: rgba(6, 6, 7, 0.72);
}

.link-card--featured .link-card__arrow {
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--ink-900);
}

.link-card--featured:hover .link-card__arrow {
  background: var(--ink-900);
  color: var(--brand-500);
  border-color: var(--ink-900);
}

/* ==========================================================================
   Blocos de Dados Reais — Pilares Fatuais de Luxo
   ========================================================================== */
.pillars-section {
  position: relative;
  padding-block: 28px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pillar-card {
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--edge);
  background: var(--surface-glass);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pillar-value {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--brand-500);
  display: block;
  margin-bottom: 4px;
}

.pillar-label {
  font-size: 0.76rem;
  color: var(--paper-muted);
  line-height: 1.3;
}

/* ==========================================================================
   Scroll Mask & Seção Curadoria
   ========================================================================== */
.curation-section {
  position: relative;
  padding-block: 32px;
}

.curation-box {
  padding: 26px 22px;
  border-radius: 20px;
  border: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.curation-title {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--brand-300);
}

.curation-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--paper-muted);
}

/* ==========================================================================
   FAQ Acordeão Acessível
   ========================================================================== */
.faq-section {
  position: relative;
  padding-block: 28px;
}

.faq-title {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-align: left;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--surface-glass);
  overflow: hidden;
  transition: border-color 0.28s;
}

.faq-item:focus-within {
  border-color: rgba(255, 255, 255, 0.45);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: transparent;
  border: none;
  color: var(--paper);
  font-family: var(--ff-text);
  font-size: 0.94rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}

.faq-panel[aria-hidden="false"] {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
  padding-inline: 18px;
}

.faq-panel-content {
  padding-bottom: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--paper-muted);
}

/* ==========================================================================
   Rodapé Curto
   ========================================================================== */
.site-footer {
  padding-block: 36px 24px;
  border-top: 1px solid var(--edge-subtle);
  text-align: center;
}

.footer-brand {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--paper);
}

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

/* ==========================================================================
   Botão Flutuante do WhatsApp (Obrigatório)
   ========================================================================== */
.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: #25D366;
  color: #ffffff;
  z-index: 900;
  text-decoration: none;
  box-shadow: 0 12px 32px -8px rgba(37, 211, 102, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.28s var(--ease), box-shadow 0.28s;
}

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

.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 38px -6px rgba(37, 211, 102, 0.7);
}

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

/* ==========================================================================
   Responsividade Mobile-First Rigorosa
   ========================================================================== */
@media (max-width: 480px) {
  body {
    padding-bottom: 84px;
  }
  .wa-float {
    width: 54px;
    height: 54px;
    right: 16px;
  }
  .wa-float svg {
    width: 26px;
    height: 26px;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 104px;
  }
}

/* Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ambient-field, .marquee-track, .hero-cta-btn::after {
    animation: none !important;
  }
}

/* Impressão */
@media print {
  .wa-float, #webgl-canvas, .site-nav {
    display: none !important;
  }
}
