/* ==========================================================================
   FACOTAN — Estilos Específicos de Páginas & Componentes Dinâmicos
   ========================================================================== */

/* ── Hero Carousel ── */
.facotan-hero {
  position: relative;
  background-color: var(--brand-green);
  color: #FFFFFF;
  overflow: hidden;
  padding: 5rem 0 6rem;
  min-height: 540px;
  display: flex;
  align-items: center;
}

.hero-pattern-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(#FFF5E0 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.hero-blob-orange {
  position: absolute;
  bottom: -6rem;
  right: -6rem;
  width: 22rem;
  height: 22rem;
  background-color: var(--brand-orange);
  opacity: 0.35;
  border-radius: 71% 29% 58% 42% / 44% 63% 37% 56%;
  pointer-events: none;
  transition: transform 0.8s ease;
}

.hero-blob-light {
  position: absolute;
  top: -4rem;
  left: -4rem;
  width: 16rem;
  height: 16rem;
  background-color: var(--brand-white);
  opacity: 0.12;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  pointer-events: none;
}

.hero-carousel-container {
  overflow: hidden;
  width: 100%;
}

.hero-slides-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide-item {
  width: 100%;
  flex-shrink: 0;
}

.hero-slide-content {
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-title .highlight {
  color: var(--brand-orange);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 245, 224, 0.9);
  margin: 0;
}

.hero-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
}

.hero-indicators {
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  height: 0.5rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.3);
  width: 0.5rem;
  transition: all 0.3s ease;
}

.hero-dot.is-active {
  width: 2rem;
  background-color: var(--brand-orange);
}

.hero-nav-arrows {
  display: none;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .hero-nav-arrows {
    display: flex;
  }
}

.hero-arrow-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.hero-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ── Seção Quem Somos (Home) ── */
.home-quem-somos {
  padding: 5rem 0;
  background-color: var(--brand-white);
}

.qs-card-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.qs-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

.qs-icon-green {
  background-color: var(--brand-green);
}

.qs-icon-orange {
  background-color: var(--brand-orange);
}

.qs-sede-panel {
  position: relative;
  height: 24rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background-color: var(--brand-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: #FFFFFF;
}

.qs-sede-logo {
  height: 4.5rem;
  width: auto;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

/* ── Seção Unificada Feira + Projetos em Ação (Home) ── */
.home-feira-projetos {
  position: relative;
  background-color: var(--brand-green-dark);
  color: #FFFFFF;
  overflow: hidden;
  padding: 4rem 0 5rem;
}

.home-feira-projetos .feira-col-logo {
  display: flex;
  justify-content: center;
}

.home-feira-projetos .feira-col-logo img {
  max-width: 180px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.feira-stats-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.feira-stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.feira-stat-label {
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

.feira-stat-divider {
  width: 1px;
  height: 2rem;
  background-color: rgba(255, 255, 255, 0.2);
}

/* Card Produto em Destaque */
.featured-product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  color: #FFFFFF;
}

.featured-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.featured-product-thumb {
  position: relative;
  height: 12rem;
  background-color: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

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

.featured-product-card:hover .featured-product-thumb img {
  transform: scale(1.05);
}

.featured-product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--brand-orange);
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
}

.featured-product-body {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.featured-product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-orange);
}

/* Projetos em Ação Cards */
.card-projeto-home {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--surface);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .card-projeto-home {
    flex-direction: row;
  }
}

.card-projeto-home-sidebar {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .card-projeto-home-sidebar {
    width: 35%;
  }
}

.card-projeto-home-sidebar.bg-black {
  background-color: var(--brand-black);
}

.card-projeto-home-sidebar.bg-orange {
  background-color: var(--brand-orange);
}

.card-projeto-home-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--brand-black);
}

/* ── Faixa de Parcerias (Marquee) ── */
.marquee-section {
  padding: 3rem 0 2rem;
  background-color: var(--brand-white);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.marquee-gradient-left,
.marquee-gradient-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5rem;
  pointer-events: none;
  z-index: 10;
}

.marquee-gradient-left {
  left: 0;
  background: linear-gradient(to right, var(--brand-white), transparent);
}

.marquee-gradient-right {
  right: 0;
  background: linear-gradient(to left, var(--brand-white), transparent);
}

.marquee-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: facotanMarquee 25s linear infinite;
}

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

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

.partner-logo-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  opacity: 0.85;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.partner-logo-pill:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Timeline "Nossa Caminhada" (Página Sobre) ── */
.timeline-wrapper {
  position: relative;
  padding-left: 1rem;
}

.timeline-line {
  position: absolute;
  left: 2.25rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-green), var(--border), var(--brand-orange));
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.timeline-badge {
  position: relative;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  outline: 4px solid var(--brand-white);
  transition: transform 0.2s ease;
}

.timeline-item:hover .timeline-badge {
  transform: scale(1.1);
}

.timeline-card {
  flex: 1;
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.timeline-item:hover .timeline-card {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.timeline-card-green {
  background-color: var(--brand-green);
  color: #FFFFFF;
  border: none;
}

.timeline-card-green h3,
.timeline-card-green p {
  color: #FFFFFF;
}

/* ── Página Transparência & Tabelas ── */
.transparencia-table-wrapper {
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.transparencia-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.transparencia-table th {
  background-color: var(--surface);
  color: var(--brand-black);
  font-weight: 700;
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.transparencia-table td {
  padding: 1.15rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--surface-warm);
}

.transparencia-table tr:hover td {
  background-color: var(--surface);
}

/* ── Página Estatuto Social ── */
.estatuto-capitulo {
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.estatuto-capitulo-header {
  border-bottom: 2px solid var(--surface-warm);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.artigo-bloco {
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.artigo-num {
  font-weight: 700;
  color: var(--brand-green);
  margin-right: 0.5rem;
}

/* ── WooCommerce Custom Styles ── */
.facotan-shop-container {
  padding: 3rem 0 5rem;
}

.woocommerce .products ul,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 1.5rem !important;
  margin: 2rem 0 !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product {
  background-color: #FFFFFF !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
  padding: 1rem !important;
  transition: all 0.25s ease !important;
  box-shadow: var(--shadow-sm) !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-md) !important;
  border-color: var(--brand-green) !important;
}

.woocommerce ul.products li.product .button {
  background-color: var(--brand-green) !important;
  color: #FFFFFF !important;
  border-radius: var(--radius-md) !important;
  font-weight: 700 !important;
  padding: 0.65rem 1rem !important;
  transition: background 0.2s ease !important;
}

.woocommerce ul.products li.product .button:hover {
  background-color: var(--brand-orange) !important;
}

.woocommerce ul.products li.product .price {
  color: var(--brand-orange) !important;
  font-weight: 800 !important;
  font-size: 1.125rem !important;
}
