/* ==========================================================================
   SMOKE BLACK — LINK-IN-BIO PRIME (P2 AJUSTE DE COMPONENTES)
   Zero Barra Superior • Hero Bio Link Compacta • Galeria Esteira • Mapa Vivo
   ========================================================================== */

@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-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Tokens de Cor da Marca */
  --brand-900: #1b1612;        /* Marrom profundo */
  --brand-700: #3a2c20;        /* Marrom nobre */
  --brand-500: #96724d;        /* Marrom claro bronze elegante (Ação Principal) */
  --brand-300: #cca882;        /* Bege dourado quente */
  --accent-500: #dfd4c5;       /* Bege marfim premium (Transição) */
  --accent-300: #ece4d8;       /* Bege ultra suave */
  --ink-900: #0d0b09;          /* Fundo dominante orgânico escuro */
  --ink-700: #161310;          /* Superfície de contraste */
  --paper: #fbf8f3;            /* Branco marfim / texto sobre escuro */

  /* Derivados por color-mix */
  --veil-1: color-mix(in oklab, var(--brand-500) 22%, transparent);
  --veil-2: color-mix(in oklab, var(--accent-500) 18%, transparent);
  --edge: rgba(251, 248, 243, 0.14);
  --edge-highlight: rgba(251, 248, 243, 0.28);
  --glow: color-mix(in oklab, var(--brand-500) 50%, transparent);

  /* Tipografia */
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-display: clamp(2rem, 6.8vw, 3.1rem); /* Escala de bio link */
  --fs-h2: clamp(1.7rem, 3.5vw, 2.4rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.45rem);
  --fs-body: 1.0625rem;       /* 17px */
  --fs-small: 0.875rem;        /* 14px */
  --track-tight: -0.035em;
  --track-wide: 0.18em;

  /* Geometria Bio Link Prime */
  --container-max: 640px;      /* 520–640px mobile, até 760px desktop */
  --radius-card: 20px;
  --radius-btn: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & REGRAS GLOBAIS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--paper);
  background-color: var(--ink-900);
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  padding-top: clamp(20px, 4vw, 40px); /* Respiro inicial limpo sem navbar */
}

/* Fundo Global Contínuo com Deriva Suave (Sem divisores) */
.field {
  background:
    radial-gradient(70% 50% at 15% 10%, var(--veil-1), transparent 75%),
    radial-gradient(60% 45% at 85% 35%, var(--veil-2), transparent 72%),
    radial-gradient(75% 55% at 50% 90%, var(--veil-1), transparent 75%),
    var(--ink-900);
  background-size: 150% 150%;
  animation: fieldDrift 28s ease-in-out infinite alternate;
}

@keyframes fieldDrift {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0 0;
  }
  100% {
    background-position: 18% 12%, 82% 16%, 48% 92%, 0 0;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   TRANSIÇÃO ENTRE SEÇÕES (VÉU DE GRADIENTE, ZERO LINHAS OU DIVIDERS)
   ========================================================================== */
.section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(48px, 7vw, 84px);
}

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

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

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

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

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

/* ==========================================================================
   HERO LINK-IN-BIO (COMPACTA, COLUNA ÚNICA, ZERO BADGE)
   ========================================================================== */
.section-hero {
  padding-top: clamp(16px, 3vh, 32px);
  padding-bottom: clamp(36px, 6vh, 56px);
  text-align: center;
}

/* Camada de Atmosfera com Imagem Real ao Fundo */
.hero-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.hero-ambient-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(54px) saturate(1.2);
  opacity: 0.16;
  transform: scale(1.15);
}

.hero-ambient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, transparent 20%, var(--ink-900) 80%);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Topo de Marca: Logo Real Recortada em Círculo (72–96px, sem anel cinza) */
.bio-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.bio-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--edge-highlight);
  box-shadow: 0 12px 28px -6px var(--glow);
  background: transparent;
}

.bio-brand-name {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-top: 12px;
}

.bio-slogan {
  font-size: 0.875rem;
  color: var(--brand-300);
  font-weight: 400;
  margin-top: 2px;
}

.hero-label-caps {
  font-size: clamp(0.7rem, 2.2vw, 0.75rem);
  letter-spacing: var(--track-wide);
  font-weight: 600;
  color: var(--brand-300);
  margin-bottom: 14px;
  text-transform: uppercase;
  background: none;
  border: none;
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: var(--track-tight);
  color: var(--paper);
  margin-bottom: 16px;
  max-width: 22ch;
}

.hero-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-500);
}

.hero-description {
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  line-height: 1.6;
  color: rgba(251, 248, 243, 0.82);
  margin-bottom: 26px;
  max-width: 52ch;
}

.hero-action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

/* Botão de Ação Sólido com Shiny Sweep Glow */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  width: 100%;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  background: var(--brand-500);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  overflow: hidden;
  box-shadow: 0 12px 30px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px var(--glow);
}

.btn-primary:hover::after {
  left: 150%;
  transition: left 0.8s ease-in-out;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--edge-highlight);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.24s var(--ease);
}

.btn-ghost:hover {
  background: rgba(251, 248, 243, 0.08);
  border-color: var(--brand-300);
  transform: translateY(-1px);
}

.microcopy-human {
  font-size: 0.8125rem;
  color: rgba(251, 248, 243, 0.65);
  line-height: 1.4;
  margin-top: 12px;
}

/* ==========================================================================
   MARQUEE DISCRETO (1 FAIXA CONTÍNUA, SEM DIVIDERS)
   ========================================================================== */
.marquee-strip {
  width: 100%;
  overflow: hidden;
  padding: 16px 0;
  background: rgba(27, 22, 18, 0.45);
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

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

.marquee-item {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--brand-300);
  padding: 0 20px;
}

.marquee-item .dot {
  color: var(--brand-500);
  margin-left: 16px;
}

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

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

/* ==========================================================================
   CARDS DE LINK / SERVIÇOS
   ========================================================================== */
.section-header {
  margin-bottom: 28px;
}

.section-label-caps {
  font-size: 0.75rem;
  letter-spacing: var(--track-wide);
  font-weight: 600;
  color: var(--brand-300);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: var(--track-tight);
  color: var(--paper);
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  min-height: 74px;
  border-radius: var(--radius-card);
  border: 1px solid var(--edge);
  background: rgba(22, 19, 16, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.32s var(--ease), border-color 0.32s, box-shadow 0.32s;
  text-decoration: none;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-500);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 20px 40px -20px var(--glow);
}

.link-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--brand-500) 18%, transparent);
  color: var(--brand-300);
}

.link-card__content {
  flex: 1;
}

.link-card__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 2px;
}

.link-card__desc {
  font-size: 0.8125rem;
  color: rgba(251, 248, 243, 0.7);
  line-height: 1.4;
}

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

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

/* Card Featured Invertido (Item Principal) */
.link-card--featured {
  background: var(--paper);
  color: var(--ink-900);
  border-color: transparent;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.link-card--featured .link-card__title {
  color: var(--ink-900);
}

.link-card--featured .link-card__desc {
  color: rgba(13, 11, 9, 0.72);
}

.link-card--featured .link-card__icon {
  background: color-mix(in oklab, var(--brand-900) 12%, transparent);
  color: var(--brand-700);
}

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

.link-card--featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 #ffffff;
}

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

/* ==========================================================================
   GALERIA EM ESTEIRA HORIZONTAL CONTÍNUA (AUTOPLAY + SWIPE/GESTO)
   ========================================================================== */
.gallery-conveyor-wrap {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding: 12px 20px 24px;
}

.gallery-conveyor-wrap:active {
  cursor: grabbing;
}

.gallery-conveyor-wrap::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  align-items: stretch;
}

.gallery-card {
  flex: 0 0 clamp(240px, 68vw, 300px);
  scroll-snap-align: center;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 36px -12px rgba(0, 0, 0, 0.5);
  background: rgba(22, 19, 16, 0.5);
  transition: transform 0.32s var(--ease), border-color 0.32s;
}

.gallery-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-500);
}

.gallery-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(13, 11, 9, 0.94) 0%, rgba(13, 11, 9, 0.6) 65%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.gallery-card__category {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-300);
  font-weight: 600;
}

.gallery-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--paper);
}

/* ==========================================================================
   MAPA AO VIVO E INTERATIVO (GOOGLE MAPS EMBED + FALLBACK VISÍVEL)
   ========================================================================== */
.map-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.map-frame {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 48px -16px var(--glow);
  overflow: hidden;
  aspect-ratio: 16/9;
  min-height: 280px;
  background: rgba(22, 19, 16, 0.6);
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-fallback {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--edge);
  background: rgba(27, 22, 18, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.map-fallback__label {
  font-size: 0.72rem;
  letter-spacing: var(--track-wide);
  font-weight: 600;
  color: var(--brand-300);
  text-transform: uppercase;
}

.map-fallback__address {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--paper);
  margin-top: 4px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--edge-highlight);
  background: rgba(251, 248, 243, 0.06);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.24s var(--ease);
}

.btn-secondary:hover {
  background: rgba(251, 248, 243, 0.12);
  border-color: var(--brand-300);
  transform: translateY(-2px);
}

/* ==========================================================================
   FAQ (ACORDEÃO ACESSÍVEL)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid var(--edge);
  background: rgba(22, 19, 16, 0.4);
  overflow: hidden;
  transition: border-color 0.24s ease;
}

.faq-item:focus-within {
  border-color: var(--brand-300);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
  text-align: left;
  min-height: 48px;
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brand-300);
  transition: transform 0.28s var(--ease);
}

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

.faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 0.9375rem;
  color: rgba(251, 248, 243, 0.78);
  line-height: 1.6;
}

/* ==========================================================================
   RODAPÉ (EMPILHADO EM COLUNA ÚNICA NO MOBILE, SEM DIVIDER)
   ========================================================================== */
.footer {
  padding: 48px 0 64px;
  background: rgba(13, 11, 9, 0.85);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

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

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

.footer-slogan {
  font-size: 0.875rem;
  color: var(--brand-300);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  color: rgba(251, 248, 243, 0.65);
  line-height: 1.5;
}

/* ==========================================================================
   WHATSAPP FLUTUANTE OFICIAL (REGRA 16 §3)
   ========================================================================== */
.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 cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s;
}

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

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

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

@media (max-width: 480px) {
  .wa-float {
    width: 54px;
    height: 54px;
    right: 16px;
  }
  .wa-float svg {
    width: 26px;
    height: 26px;
  }
  body {
    padding-bottom: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float {
    transition: none;
  }
}

/* ==========================================================================
   RESPONSIVIDADE DESKTOP (> 640px)
   ========================================================================== */
@media (min-width: 640px) {
  .btn-cta {
    min-height: 56px;
  }
  .map-fallback {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer-meta {
    text-align: right;
  }
}
