/* ==========================================================================
   FOZ FITWEAR — VESTUÁRIO DE CICLISMO
   PREMIUM MONOCHROME DESIGN SYSTEM & INTERACTION TOKENS
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans.woff2') format('woff2-variations');
}

:root {
  /* Brand Monochromatic Ramp */
  --bg-primary: #050505;
  --bg-secondary: #0c0c0c;
  --bg-surface: #121212;
  --bg-light: #ffffff;
  --bg-light-alt: #f7f7f7;

  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-faint: rgba(255, 255, 255, 0.4);

  --text-dark: #050505;
  --text-dark-muted: rgba(5, 5, 5, 0.68);
  --text-dark-faint: rgba(5, 5, 5, 0.42);

  /* Borders & Hairlines */
  --border-light: rgba(255, 255, 255, 0.12);
  --border-light-strong: rgba(255, 255, 255, 0.28);
  --border-dark: rgba(0, 0, 0, 0.09);
  --border-dark-strong: rgba(0, 0, 0, 0.22);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Containers */
  --container-max: 1180px;
  --header-height: 56px;
}

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

html {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
}

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

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

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

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #ffffff;
}

.brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #ffffff;
  text-transform: uppercase;
}

.brand-tagline {
  display: none;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  padding-left: 10px;
  border-left: 1px solid var(--border-light);
}

@media (min-width: 640px) {
  .brand-tagline {
    display: inline-block;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #050505;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.btn-header-wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.btn-header-wa svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================================================
   BUTTONS & SHINY SWEEP GLOW
   ========================================================================== */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #050505;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

/* Shiny Sweep Glow Effect */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: shinySweep 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes shinySweep {
  0% {
    left: -60%;
  }
  25% {
    left: 140%;
  }
  100% {
    left: 140%;
  }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  border: 1px solid var(--border-light);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-light-strong);
  transform: translateY(-1px);
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Inverted buttons for light section */
.btn-primary-dark {
  background: #050505;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary-dark::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.btn-primary-dark:hover {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
   HERO SECTION (DARK)
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 70px;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.hero-aura {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, rgba(5, 5, 5, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: pulseIndicator 2.2s infinite ease-in-out;
}

@keyframes pulseIndicator {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.hero-headline {
  font-size: 36px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.6px;
  color: #ffffff;
  max-width: 780px;
  margin-bottom: 18px;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .hero-headline {
    font-size: 58px;
    letter-spacing: -2.4px;
  }
}

.hero-subhead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 32px;
  font-weight: 400;
}

@media (min-width: 768px) {
  .hero-subhead {
    font-size: 19px;
  }
}

.hero-headline,
.hero-subhead,
.hero-actions,
.hero-actions .btn-primary,
.hero-actions .btn-secondary,
.hero-badges-row {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin-bottom: 40px;
}

@media (max-width: 480px) {
  .hero-actions {
    width: 100%;
    max-width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    gap: 8px;
    justify-content: center;
  }
}

@media (min-width: 540px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    max-width: 600px;
  }
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  width: 100%;
  max-width: 640px;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: -0.2px;
}

.badge-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ==========================================================================
   VIDEO SHOWCASE SECTION (DARK)
   ========================================================================== */
.showcase-section {
  position: relative;
  padding: 40px 0 90px;
  background-color: var(--bg-primary);
}

.showcase-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 125%; /* 4:5 portrait ratio */
  background: #000;
}

@media (min-width: 640px) {
  .video-container {
    padding-bottom: 75%; /* 4:3 on wider displays */
  }
}

.showcase-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 24px 24px;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.94) 75%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .video-overlay-info {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 36px 32px 30px;
  }
}

.video-meta-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.video-meta-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.6px;
}

.video-meta-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   PORTFOLIO CAROUSEL / ESTEIRA EM LOOP (LIGHT THEME)
   ========================================================================== */
.portfolio-section {
  position: relative;
  padding: 90px 0 100px;
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dark-faint);
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--text-dark);
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 46px;
    letter-spacing: -1.8px;
  }
}

.section-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-dark-muted);
}

/* Marquee / Esteira Container */
.marquee-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  padding: 10px 0 30px;
}

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

/* Fade gradients on edges */
.marquee-fade-left,
.marquee-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.marquee-fade-left {
  left: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-fade-right {
  right: 0;
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

@media (min-width: 768px) {
  .marquee-fade-left,
  .marquee-fade-right {
    width: 140px;
  }
}

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

.portfolio-card {
  flex: 0 0 280px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 768px) {
  .portfolio-card {
    flex: 0 0 340px;
  }
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.card-media {
  position: relative;
  width: 100%;
  height: 380px;
  background: #eaeaea;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .card-img {
  transform: scale(1.04);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-dark);
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-dark-muted);
}

.card-action {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 44px;
}

.card-action svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.card-action:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   LINKS & ATENDIMENTO HUB (DARK THEME)
   ========================================================================== */
.links-section {
  position: relative;
  padding: 90px 0 80px;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}

.links-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto 50px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 72px;
}

.link-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.link-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.link-icon-box svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.link-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.link-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.link-arrow {
  width: 20px;
  height: 20px;
  color: var(--text-faint);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.link-card:hover .link-arrow {
  transform: translateX(4px);
  color: #ffffff;
}

/* ==========================================================================
   FAQ SECTION (DARK THEME)
   ========================================================================== */
.faq-section {
  position: relative;
  padding: 60px 0 90px;
  background-color: var(--bg-primary);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-light-strong);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  min-height: 48px;
}

.faq-toggle-icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.3s ease;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.faq-toggle-icon::before {
  width: 12px;
  height: 2px;
}

.faq-toggle-icon::after {
  width: 2px;
  height: 12px;
}

.faq-item.is-open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   FINAL CTA & FOOTER
   ========================================================================== */
.final-cta-section {
  position: relative;
  padding: 90px 0 80px;
  background-color: var(--bg-primary);
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.cta-box {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-headline {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: #ffffff;
}

@media (min-width: 768px) {
  .cta-headline {
    font-size: 42px;
  }
}

.cta-text {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
}

.site-footer {
  padding: 40px 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

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

.footer-link {
  color: var(--text-muted);
  transition: color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   GSAP & REDUCED MOTION GUARDS
   ========================================================================== */
.gsap-reveal {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

/* Fallback if JS is disabled or during reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  
  .gsap-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn-primary::after {
    display: none !important;
  }

  .marquee-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

