/* ==========================================================================
   CO-WORK CUTELARIA ARTESANAL — DESIGN SYSTEM (PRETO & BRANCO PREMIUM)
   ========================================================================== */

/* 1. Self-hosted Fonts */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-semibold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-bold.woff2') format('woff2');
}

/* 2. Custom Properties (Pure Black & White) */
:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-dark-surface: #0a0a0a;
  --color-light-surface: #f7f7f7;
  
  --border-light-subtle: rgba(255, 255, 255, 0.14);
  --border-light-strong: rgba(255, 255, 255, 0.35);
  --border-dark-subtle: rgba(0, 0, 0, 0.12);
  --border-dark-strong: rgba(0, 0, 0, 0.85);

  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max-width: 1240px;
  --nav-height-mobile: 56px;
  --nav-height-desktop: 72px;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Global Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family-base);
  background-color: var(--color-black);
  color: var(--color-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden !important;
}

body {
  width: 100%;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden !important;
  position: relative;
  background-color: var(--color-black);
}

/* Lenis Recommended CSS */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

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

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

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

/* 4. Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 480px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* 5. Minimalist Sticky Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height-desktop);
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light-subtle);
  transition: transform 0.4s var(--ease-smooth), background-color 0.4s ease;
}

.nav-container {
  max-width: var(--container-max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link-subtle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link-subtle:hover {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-nav-cta {
  height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-black);
  background-color: var(--color-white);
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .site-header {
    height: var(--nav-height-mobile);
  }
  .nav-container {
    padding: 0 16px;
  }
  .nav-logo {
    height: 28px;
  }
  .nav-link-text {
    display: none;
  }
  .nav-link-subtle {
    padding: 8px;
  }
  .btn-nav-cta {
    height: 36px;
    padding: 0 14px;
    font-size: 0.8125rem;
  }
}

/* 6. Section Archetypes: Dark & Light */
.section-dark {
  background-color: var(--color-black);
  color: var(--color-white);
  position: relative;
}

.section-light {
  background-color: var(--color-white);
  color: var(--color-black);
  position: relative;
}

/* 7. Seam Transitions (Smooth movement between Dark and Light) */
.seam-transition {
  width: 100%;
  height: 140px;
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.seam-dark-to-light {
  background: linear-gradient(180deg, var(--color-black) 0%, #151515 25%, #454545 60%, var(--color-white) 100%);
}

.seam-light-to-dark {
  background: linear-gradient(180deg, var(--color-white) 0%, #454545 40%, #151515 75%, var(--color-black) 100%);
}

@media (max-width: 768px) {
  .seam-transition {
    height: 90px;
  }
}

/* 8. Button Canônico & Shiny Sweep Glow */
.btn-shiny {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
  will-change: transform;
}

/* Shiny Sweep Line Running Smoothly in Loop */
.btn-shiny::before {
  content: '';
  position: absolute;
  top: 0;
  left: -160%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.05) 80%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: shinySweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shinySweep {
  0% { left: -160%; }
  35%, 100% { left: 160%; }
}

.btn-shiny:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-shiny:active {
  transform: translateY(1px) scale(0.99);
}

/* 9. SECTION 1: HERO */
.section-hero {
  padding-top: calc(var(--nav-height-desktop) + 50px);
  padding-bottom: 70px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-brand-wrap {
  margin-bottom: 24px;
}

.hero-logo {
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(255, 255, 255, 0.1));
}

.hero-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light-subtle);
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.badge-pill {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.badge-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: 880px;
  margin-bottom: 20px;
  color: var(--color-white);
}

.hero-subtext {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 440px;
}

.btn-hero-primary {
  width: 100%;
  padding: 16px 28px;
  background-color: var(--color-white);
  color: var(--color-black);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
  border: 1px solid #ffffff;
}

.btn-hero-primary .btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.btn-hero-primary strong {
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.btn-hero-primary small {
  font-size: 0.75rem;
  opacity: 0.7;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--border-light-subtle);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 600px) {
  .section-hero {
    padding-top: calc(var(--nav-height-mobile) + 30px);
    padding-bottom: 50px;
    min-height: auto;
  }
  .hero-logo {
    max-width: 280px;
  }
  .hero-badges {
    padding: 8px 14px;
    gap: 6px;
  }
  .hero-cta-group {
    max-width: 100%;
  }
}

/* 10. SECTION HEADERS */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  opacity: 0.65;
}

.section-title {
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.125rem);
  line-height: 1.55;
  opacity: 0.75;
}

/* 11. SECTION 2: VENDEDORES (WHITE / LIGHT) */
.section-vendedores {
  padding: 80px 0;
}

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

@media (max-width: 1024px) {
  .sellers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sellers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.seller-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-dark-subtle);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth), border-color 0.35s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.seller-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-dark-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.seller-photo-wrap {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.seller-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.seller-info {
  margin-bottom: 20px;
}

.seller-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-black);
  margin-bottom: 4px;
}

.seller-role {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
}

.btn-seller {
  width: 100%;
  height: 46px;
  background-color: var(--color-black);
  color: var(--color-white);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 12. SECTION 3: ESTEIRA DE PORTFÓLIO (BLACK / DARK) */
.section-portfolio {
  padding: 80px 0 90px;
  overflow: hidden;
}

.marquee-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  cursor: grab;
  padding: 20px 0 10px;
  outline: none;
  touch-action: pan-y;
}

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

/* Fade masks on the edges */
.marquee-viewport::before,
.marquee-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-black) 0%, transparent 100%);
}

.marquee-viewport::after {
  right: 0;
  background: linear-gradient(-90deg, var(--color-black) 0%, transparent 100%);
}

@media (max-width: 600px) {
  .marquee-viewport::before,
  .marquee-viewport::after {
    width: 30px;
  }
}

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

.marquee-card {
  flex-shrink: 0;
  width: 280px;
  background-color: #0d0d0d;
  border: 1px solid var(--border-light-subtle);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s var(--ease-smooth), border-color 0.35s ease;
}

.marquee-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.45);
}

.marquee-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.marquee-caption {
  padding: 14px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.9);
  background: #0d0d0d;
  border-top: 1px solid var(--border-light-subtle);
}

.marquee-hint-wrap {
  text-align: center;
  margin-top: 16px;
}

.marquee-hint {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.marquee-cta-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.btn-portfolio-cta {
  padding: 16px 36px;
  background-color: var(--color-white);
  color: var(--color-black);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
}

@media (max-width: 600px) {
  .marquee-card {
    width: 220px;
  }
  .marquee-img {
    height: 300px;
  }
}

/* 13. SECTION 4: PROCEDÊNCIA & PILARES (WHITE / LIGHT) */
.section-procedencia {
  padding: 80px 0 40px;
}

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

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-dark-subtle);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.pillar-number {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(0, 0, 0, 0.15);
  margin-bottom: 16px;
  line-height: 1;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--color-black);
}

.pillar-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
}

/* 14. SECTION 5: FAQ ACCORDION (WHITE / LIGHT) */
.section-faq {
  padding: 40px 0 90px;
}

.faq-container {
  max-width: 800px;
}

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

.faq-item {
  border: 1px solid var(--border-dark-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--color-white);
}

.faq-item[open] {
  border-color: var(--color-black);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-black);
  user-select: none;
  transition: background-color 0.25s ease;
}

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

.faq-summary:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.faq-icon {
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s var(--ease-smooth);
}

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

.faq-answer {
  padding: 0 24px 22px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
}

/* 15. FOOTER (BLACK / DARK) */
.site-footer {
  padding-top: 70px;
  background-color: var(--color-black);
  color: var(--color-white);
  border-top: 1px solid var(--border-light-subtle);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  padding-bottom: 60px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.footer-logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 440px;
}

.footer-heading {
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  color: var(--color-white);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease;
}

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

.footer-bottom-bar {
  border-top: 1px solid var(--border-light-subtle);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  transition: color 0.25s ease;
}

.back-to-top:hover {
  color: var(--color-white);
}

@media (max-width: 600px) {
  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* 16. MOTION & GSAP REVEALS */
.gsap-reveal {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
  transition: opacity 0.5s ease, transform 0.5s var(--ease-smooth);
}

/* First fold (Hero) paints immediately for instant LCP */
.section-hero .gsap-reveal {
  opacity: 1;
  transform: none;
}

.gsap-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* If JavaScript is disabled or fails to load, make everything visible */
.no-js .gsap-reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* 17. PREFERS-REDUCED-MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn-shiny::before {
    display: none !important;
  }
  .gsap-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee-track {
    animation: none !important;
    transform: none !important;
  }
  .marquee-viewport {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
  }
  .marquee-card {
    scroll-snap-align: start;
  }
}
