/* =============================================================
   VOLL PILATES — NOSSA HISTÓRIA
   style.css
   Fonte principal: Montserrat (Google Fonts)
   Paleta:
     --dark      fundo principal (verde-escuro quase preto)
     --teal      verde-água principal
     --teal-mid  verde-escuro médio
     --white     branco
   ============================================================= */


/* ── Variáveis globais ── */
:root {
  --dark:             #002220;
  --teal:             #00958f;
  --teal-mid:         #013029;
  --teal-dropdown:    #02a09a;
  --white:            #ffffff;
  --footer-bg:        #ffffff;
  --footer-bar:       #013029;
  --text-muted:       #b5b5b5;
  --header-height:    58px;
}


/* ── Reset básico ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  color: var(--white);
  background: var(--dark);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }




/* =============================================================
   HEADER
   Fixo no topo; começa transparente e vira branco ao rolar.
   ============================================================= */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s;
}

/* Estado após 60px de scroll */
#site-header.scrolled {
  background: #fffcfc;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* Container interno — centraliza e distribui os grupos de links */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
}

/* Grupos de links ficam juntos e centralizados */
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  flex: 0;
}

.nav-right { justify-content: flex-start; }

/* Links de navegação */
.nav-left  li a,
.nav-right li a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
  border-radius: 3px;
  white-space: nowrap;
  transition: color 0.2s;
}

/* Cor dos links quando o header está branco */
#site-header.scrolled .nav-left  li a,
#site-header.scrolled .nav-right li a {
  color: rgba(1, 48, 41, 0.85);
}

/* Link ativo (página atual) */
.nav-left li a.active,
.nav-right li a.active {
  font-weight: 800;
  color: var(--white);
}

#site-header.scrolled .nav-left li a.active,
#site-header.scrolled .nav-right li a.active {
  color: var(--teal-mid);
}

/* Hover */
.nav-left  li a:hover,
.nav-right li a:hover { color: var(--teal); }

#site-header.scrolled .nav-left  li a:hover,
#site-header.scrolled .nav-right li a:hover { color: var(--teal); }


/* ── Dropdowns ── */
.has-dropdown { position: relative; }

.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.menu-chevron {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  transform: translateY(-1px);
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-dropdown);
  border-radius: 4px;
  min-width: 200px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 100;
}

.dropdown li a {
  display: block;
  padding: 10px 18px !important;
  font-size: 11px !important;
  color: var(--white) !important;
  transition: background 0.15s;
  white-space: nowrap;
}

.dropdown li a:hover { background: rgba(255, 255, 255, 0.15) !important; }

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }


/* ── Botão hambúrguer (mobile) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 20px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.3s;
}

#site-header.scrolled .nav-toggle span { background: var(--teal-mid); }


/* ── Menu mobile ── */
.mobile-menu {
  display: none;
  background: var(--dark);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.open    { display: block; }
.mobile-menu ul      { display: flex; flex-direction: column; gap: 4px; }

.mobile-menu li a {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-menu li a:hover,
.mobile-menu li a.active { color: var(--teal); }




/* =============================================================
   HERO
   Seção de abertura com logo e título.
   ============================================================= */

.hero {
  background: var(--dark);
  padding: 160px 24px 150px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo circular da VOLL no centro do hero */
.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}




/* =============================================================
   TIMELINE
   Layout alternado esquerda/direita com badge de ano circular
   centralizado na linha vertical.
   ============================================================= */

.timeline-section {
  position: relative;
  background: var(--dark);
  padding: 20px 0 120px;
}

/* Linha vertical central */
.timeline {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 42px; /* padding simétrico: linha e badges ficam ambos em 50% */
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.75);
  transform: translateX(-50%);
}


/* ── Item da timeline ── */
/* Por padrão: conteúdo à DIREITA da linha */
.timeline-item {
  position: relative;
  display: flex;
  justify-content: flex-start;
  padding: 0 0 80px calc(50% + 60px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Itens marcados para animar ficam invisíveis até entrar na tela */
.timeline-item[data-aos] {
  opacity: 0;
  transform: translateY(24px);
}

/* Classe adicionada pelo JS ao entrar no viewport */
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Itens invertidos: conteúdo à ESQUERDA da linha */
.timeline-item.reverse {
  justify-content: flex-end;
  padding: 0 calc(50% + 60px) 80px 0;
}


/* ── Badge circular com o ano ── */
.timeline-year-badge {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 7px solid rgba(255, 255, 255, 0.85);
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  z-index: 2;
}



/* ── Conteúdo de cada item ── */
/* margin-top empurra o card para baixo do badge sem incluir espaço branco */
.timeline-content {
  width: 100%;
  max-width: 450px;
  margin-top: 120px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
}

/* Imagem colada ao topo do card, sem margens */
.timeline-image {
  margin: 0;
}

.timeline-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Texto com padding interno */
.timeline-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-body p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--teal);
}

.timeline-body p em     { color: var(--teal); font-style: italic; }
.timeline-body p strong { color: var(--teal); font-weight: 700; }

/* ── Label do ano (lado oposto ao conteúdo) ── */
.timeline-year-label {
  position: absolute;
  top: 122px;        /* alinhado com o topo do card (margin-top: 120px) */
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

/* Item normal: label à ESQUERDA — dot à DIREITA tocando a linha */
.timeline-item .timeline-year-label {
  right: calc(50% - 5px); /* dot center = line center */
  flex-direction: row;     /* texto → dot (dot fica à direita, junto à linha) */
}

.timeline-item .timeline-year-label::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* Item reverse: label à DIREITA — dot centralizado na linha */
.timeline-item.reverse .timeline-year-label {
  left: calc(50% - 5px); /* desloca 5px p/ o centro do dot (10px) ficar na linha */
  right: auto;
  flex-direction: row; /* dot | texto */
}

/* Remove o ::after herdado (só reverse usa ::before) */
.timeline-item.reverse .timeline-year-label::after { display: none; }

.timeline-item.reverse .timeline-year-label::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}




/* =============================================================
   NAVEGAÇÃO LATERAL DE ANOS
   Fixa na lateral direita; destaca o ano visível na tela.
   ============================================================= */

.year-nav {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0;
  padding: 0;
  box-shadow: -3px 0 16px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.year-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.year-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Linha vertical conectando os dots */
.year-nav ul::before {
  content: '';
  position: absolute;
  right: 17px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #888;
}

.year-nav li a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(0, 34, 32, 0.4);
  padding: 4px 14px 4px 20px;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  text-decoration: none;
}

/* Dot à direita de cada ano */
.year-nav li a::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #888;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
  position: relative;
  z-index: 1;
}

.year-nav li a:hover         { color: var(--teal); }
.year-nav li a:hover::after  { background: var(--teal); }

/* Ano ativo (em destaque) */
.year-nav li a.active        { color: var(--teal); font-size: 12px; }
.year-nav li a.active::after { background: var(--teal); transform: scale(1.3); }




/* =============================================================
   FOOTER
   Fundo branco; barra inferior escura.
   ============================================================= */

.site-footer {
  background: var(--footer-bg);
  color: var(--teal-mid);
}

/* Grade de 4 colunas */
.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* Primeira coluna do footer fica centralizada */
.footer-col:first-child {
  text-align: center;
}

.footer-col h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--teal-mid);
  margin-bottom: 20px;
}

/* Logo no rodapé — centralizado com o texto acima */
.footer-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Logos de parceiros */
.partner-logos {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.partner-logos img {
  max-height: 34px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

/* Handle do Instagram */
.instagram-handle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--teal-mid);
}

.ig-icon { width: 24px; height: 24px; }
.instagram-handle a:hover { color: var(--teal); }

/* Ícones sociais — ícones simples sem fundo colorido */
.social-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-mid);
  transition: color 0.2s, transform 0.2s;
}

.social-links a:hover {
  color: var(--teal);
  transform: translateY(-2px);
}

.social-links svg { width: 28px; height: 28px; }

/* Links de ajuda — centralizados igual ao original */
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.footer-col:last-child { text-align: center; }

.footer-links li a {
  font-size: 18px;
  color: var(--teal-mid);
  text-decoration: underline;
  transition: color 0.2s;
}

.footer-links li a:hover { color: var(--teal); }

/* Barra inferior do footer */
.footer-bottom {
  background: var(--footer-bar);
  padding: 16px 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}




/* =============================================================
   BOTÃO FLUTUANTE WHATSAPP
   ============================================================= */

@keyframes wpp-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: wpp-pulse 2s ease-out infinite;
}

.whatsapp-float:hover {
  animation-play-state: paused;
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

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


/* =============================================================
   RESPONSIVO
   ============================================================= */

/* Tablet: esconde nav desktop, mostra hambúrguer */
@media (max-width: 1100px) {
  .nav-left,
  .nav-right    { display: none; }
  .nav-toggle   { display: flex; }
  .nav-container { justify-content: flex-start; }

  .timeline     { padding: 0 40px 0 20px; }
  .year-nav     { right: 4px; }
  .footer-top   { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: linha da timeline vai para a esquerda */
@media (max-width: 768px) {
  .hero h1   { font-size: 20px; }
  .hero-logo { width: 90px; height: 90px; }

  /* Linha centralizada no badge (centro em 36px) */
  .timeline { padding: 0 16px 0 52px; }
  .timeline::before { left: 36px; width: 3px; transform: none; }

  /* Todos os itens ficam à direita da linha */
  .timeline-item,
  .timeline-item.reverse {
    padding: 0 0 60px 0;
    justify-content: flex-start;
  }

  /* Badge fica sobre a linha à esquerda — centro em 36px */
  .timeline-year-badge {
    left: 36px;
    transform: translateX(-50%);
    width: 68px;
    height: 68px;
    font-size: 12px;
    font-weight: 800;
    border-width: 4px;
  }

  /* Card aparece abaixo do badge e do label */
  .timeline-content {
    max-width: 100%;
    margin-top: 110px;
    width: 100%;
  }

  /* Label do ano: dot na linha + texto acima do card */
  .timeline-item .timeline-year-label,
  .timeline-item.reverse .timeline-year-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    position: absolute;
    top: 82px;
    left: -19px;
    right: auto;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    z-index: 3;
    white-space: nowrap;
  }

  /* Dot teal centralizado na linha */
  .timeline-item .timeline-year-label::after,
  .timeline-item.reverse .timeline-year-label::before {
    display: block;
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
    order: -1;
  }

  /* Remove dot duplicado no reverse */
  .timeline-item.reverse .timeline-year-label::after { display: none; }

  /* Esconde nav lateral de anos no mobile */
  .year-nav { display: none; }

  /* Footer em coluna única */
  .footer-top {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    background: #ffffff;
  }

  .site-footer { background: #ffffff; }

  .footer-col:last-child { text-align: center; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 14px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .timeline-item[data-aos] {
    opacity: 1;
    transform: none;
  }
}
