/* ==========================================================================
   SOLLIÁ SEMIJOIAS — DESIGN SYSTEM & ESTILOS PRINCIPAIS
   ========================================================================== */

/* 1. FONTES LOCAIS (CATÁLOGO UNCUT - TETO ≤ 90KB) */
@font-face {
  font-family: 'Ortica';
  src: url('fonts/ortica-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

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

/* 2. TOKENS DA MARCA (VERDE ABACATE CLARINHO + BEGE + BRANCO SOFISTICADO) */
:root {
  /* Identidade Visual - Cores Puras */
  --brand-900: #182313;
  --brand-700: #354728;
  --brand-500: #7b9968; /* Verde abacate clarinho */
  --brand-300: #a9c198;
  --brand-100: #dce7d2;

  --accent-700: #7d654d;
  --accent-500: #c8b59d; /* Bege refinado */
  --accent-300: #dfd4c3;
  --accent-100: #f4eee6;

  --paper: #faf8f5;     /* Branco linho sofisticado */
  --paper-pure: #ffffff;
  --ink-900: #0f130c;   /* Oliva escuro profundo (sem cinza de sistema) */
  --ink-800: #171d13;
  --ink-700: #222b1c;
  --ink-400: #49563f;
  --ink-200: #7a8a70;

  /* Derivações Oklab - Transições e Acabamentos */
  --veil-1: color-mix(in oklab, var(--brand-500) 24%, transparent);
  --veil-2: color-mix(in oklab, var(--accent-500) 22%, transparent);
  --veil-3: color-mix(in oklab, var(--paper) 15%, transparent);
  --edge: color-mix(in oklab, var(--accent-300) 20%, transparent);
  --edge-active: color-mix(in oklab, var(--brand-300) 50%, transparent);
  --glow: color-mix(in oklab, var(--brand-500) 40%, transparent);
  --glow-accent: color-mix(in oklab, var(--accent-500) 35%, transparent);

  /* Famílias Tipográficas */
  --ff-display: 'Ortica', serif;
  --ff-text: 'Hedvig Letters Sans', serif;

  /* Escala Tipográfica */
  --fs-display: clamp(2.5rem, 6.2vw, 4.8rem);
  --fs-h2: clamp(1.9rem, 3.8vw, 3.1rem);
  --fs-h3: clamp(1.2rem, 1.9vw, 1.55rem);
  --fs-body: 1.0625rem; /* 17px */
  --fs-small: 0.875rem; /* 14px */
  --track-wide: 0.18em;

  /* Ritmo e Layout */
  --container-max: 780px;
  --section-pad: clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--ink-900);
}

body {
  font-family: var(--ff-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--paper);
  background-color: var(--ink-900);
  overflow-x: hidden !important;
  width: 100%;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 4. CAMPO GLOBAL CONTÍNUO & ANIMAÇÃO DE DERIVA */
.field {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(65% 50% at 20% 10%, var(--veil-1), transparent 70%),
    radial-gradient(55% 45% at 80% 35%, var(--veil-2), transparent 72%),
    radial-gradient(70% 55% at 50% 90%, var(--veil-1), transparent 75%),
    var(--ink-900);
  background-size: 160% 160%;
  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; }
}

/* 5. ESTRUTURA GERAL */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 36px);
}

.section {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-pad);
}

.section::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: clamp(120px, 20vh, 260px);
  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. TOPO DE MARCA */
.brand-header {
  padding-top: clamp(28px, 5vw, 48px);
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo-frame {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 20px -6px var(--glow);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ink-800);
}

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

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-wordmark {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
  line-height: 1.1;
}

.brand-subtext {
  font-size: 0.8125rem;
  color: var(--accent-500);
  letter-spacing: 0.04em;
}

.brand-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  transition: transform 0.28s var(--ease), border-color 0.28s, background 0.28s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brand-social-link:hover {
  transform: translateY(-2px);
  border-color: var(--brand-300);
  background: var(--veil-1);
}

/* 7. HERO SECTION (L1: SEM NENHUM BADGE OU SELO) */
.hero {
  padding-top: clamp(24px, 4vw, 44px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.hero-caps-label {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 18px;
  line-height: 1.4;
}

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

.hero-headline em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent-300);
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--accent-100);
  max-width: 580px;
  margin-bottom: 32px;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 8. BOTÕES COM SHINY SWEEP GLOW */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 16px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%);
  color: var(--paper-pure);
  text-decoration: none;
  font-family: var(--ff-text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--brand-300);
  box-shadow: 0 14px 32px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.42) 50%, transparent 80%);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary:hover::before {
  left: 140%;
}

.btn-primary:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 3px;
}

.cta-microcopy {
  display: block;
  font-size: 0.8125rem;
  color: var(--accent-300);
  opacity: 0.85;
  text-align: center;
  margin-top: 4px;
  letter-spacing: 0.01em;
}

/* 9. CARDS DE CONVERSÃO (BIO LINK PRIME) */
.links-section {
  padding-block: clamp(36px, 5vw, 64px);
}

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

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  min-height: 74px;
  border-radius: 18px;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--paper);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.32s var(--ease), border-color 0.32s, box-shadow 0.32s;
  overflow: hidden;
}

.link-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-500);
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-300);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 36px -16px var(--glow);
}

.link-card:hover::before {
  opacity: 1;
}

.link-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.link-card-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--brand-500) 18%, transparent);
  color: var(--brand-300);
  border: 1px solid var(--edge);
}

.link-card-content {
  display: flex;
  flex-direction: column;
}

.link-card-title {
  font-size: 1.025rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
  line-height: 1.25;
}

.link-card-desc {
  font-size: 0.8125rem;
  color: var(--accent-300);
  opacity: 0.88;
  line-height: 1.4;
  margin-top: 3px;
}

.link-card-arrow {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--edge);
  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(--paper-pure);
  border-color: var(--brand-500);
}

/* Card Invertido de Destaque */
.link-card--featured {
  background: var(--paper);
  color: var(--ink-900);
  border-color: transparent;
  box-shadow: 0 18px 44px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.link-card--featured .link-card-title {
  color: var(--ink-900);
  font-weight: 700;
}

.link-card--featured .link-card-desc {
  color: var(--ink-700);
  opacity: 0.95;
}

.link-card--featured .link-card-icon-box {
  background: var(--brand-900);
  color: var(--brand-100);
  border-color: transparent;
}

.link-card--featured .link-card-arrow {
  border-color: var(--ink-400);
  color: var(--ink-900);
}

.link-card--featured:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 24px 50px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

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

/* 10. BENDING MARQUEE */
.marquee-container {
  width: 100%;
  overflow: hidden;
  padding-block: 22px;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--ff-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--accent-300);
  white-space: nowrap;
  padding-right: 28px;
}

.marquee-item span {
  color: var(--brand-300);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 11. SCROLL STACK & GALERIA EDITORIAL DE PEÇAS REAIS */
.gallery-section {
  padding-block: clamp(48px, 7vw, 92px);
}

.section-head {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--accent-500);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.pieces-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.piece-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--edge);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 40px -20px var(--glow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  background-color: var(--ink-800);
}

.piece-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 28px 56px -16px var(--glow);
}

.piece-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}

.piece-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  display: block;
}

.piece-card:hover .piece-img {
  transform: scale(1.05);
}

.piece-info {
  padding: 18px 20px;
  background: linear-gradient(to top, var(--ink-900) 0%, transparent 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.piece-category {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-300);
  display: block;
  margin-bottom: 4px;
}

.piece-title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  color: var(--paper);
  line-height: 1.2;
}

/* 12. PILARES FATUAIS (VENDA & CONSIGNADO) */
.pillars-section {
  padding-block: clamp(48px, 7vw, 92px);
}

.pillars-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-item {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s;
}

.pillar-item:hover {
  border-color: var(--accent-500);
}

.pillar-title {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  color: var(--paper);
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--accent-100);
  line-height: 1.6;
  opacity: 0.9;
}

/* 13. FAQ ACESSÍVEL (GRID TEMPLATE ROWS) */
.faq-section {
  padding-block: clamp(48px, 7vw, 92px);
}

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

.faq-item {
  border-radius: 16px;
  border: 1px solid var(--edge);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: transparent;
  border: none;
  color: var(--paper);
  font-family: var(--ff-text);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.28s;
}

.faq-trigger:hover {
  color: var(--accent-300);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--brand-300);
  outline-offset: -2px;
}

.faq-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  transition: transform 0.32s var(--ease);
  color: var(--accent-500);
}

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

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

.faq-content-inner {
  overflow: hidden;
  padding-inline: 22px;
}

.faq-trigger[aria-expanded="true"] + .faq-content {
  grid-template-rows: 1fr;
}

.faq-trigger[aria-expanded="true"] + .faq-content .faq-content-inner {
  padding-bottom: 20px;
}

.faq-answer {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--accent-100);
  opacity: 0.9;
}

/* 14. RODAPÉ CURTO */
.site-footer {
  padding-block: 48px 36px;
  border-top: 1px solid var(--edge);
  text-align: center;
}

.footer-brand {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  color: var(--paper);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-link {
  color: var(--accent-300);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.8125rem;
  color: var(--ink-200);
}

/* 15. WHATSAPP FLUTUANTE (L6 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.4);
  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 36px -6px rgba(37, 211, 102, 0.65);
}

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

/* 16. MOBILE-FIRST & RESPONSIVIDADE RIGOROSA */
@media (max-width: 480px) {
  body {
    padding-bottom: 84px; /* Espaço para o botão flutuante não cobrir rodapé */
  }

  .wa-float {
    width: 54px;
    height: 54px;
    right: 16px;
  }

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

  .btn-primary {
    min-height: 50px;
    font-size: 0.98rem;
    padding: 14px 20px;
  }

  .link-card {
    padding: 16px;
    min-height: 68px;
  }

  .link-card-left {
    gap: 12px;
  }

  .link-card-title {
    font-size: 0.975rem;
  }

  .link-card-desc {
    font-size: 0.775rem;
  }
}

/* 17. 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;
  }

  .field {
    animation: none !important;
  }

  .marquee-track {
    animation: none !important;
  }
}
