/* CSS da Página Inicial */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: auto;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #111111;
  background-color: #e5e0d8;
  width: auto;
  max-width: 100%;
  overflow-x: hidden;
}

/* Header Overlay (Homepage Specific) */
/* Header Overlay (Homepage Specific) */
/* Header Overlay (Homepage Specific) */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  backdrop-filter: none;
  border-bottom: none;
  z-index: 100;
  padding-top: 32px;
}

/* Força o texto do header a ser branco nesta página para contraste */
.site-header .logo,
.site-header .main-nav a {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.site-header .main-nav a::after {
  background-color: #ffffff !important;
}

/* Estado Scrolled (Sticky do JS) */
.site-header.header-scrolled {
  position: fixed;
  background: rgba(250, 249, 246, 0.95); /* Ivory Glass Premium */
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding-top: 24px;
  padding-bottom: 24px;
  background-color: rgba(250, 249, 246, 0.9) !important;
  transition: all 0.3s ease;
}

.site-header.header-scrolled .logo,
.site-header.header-scrolled .main-nav a {
  color: var(--color-text) !important; /* Volta para cor escura */
  text-shadow: none;
}

.site-header.header-scrolled .logo-icon {
  content: url("src/assets/logo/SVG/SÍMBOLO-4.svg");
}

.site-header.header-scrolled .main-nav a::after {
  background-color: var(--color-secondary) !important;
}

/* Hero Section Personalizada */
/* Hero Section Personalizada (Updated to match Product Page Hero) */
.hero {
  position: relative;
  width: 100%;
  min-height: 600px;
  padding: 240px 0 140px; /* More spacing for elegance */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Stronger gradient for ultimate text contrast */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("src/assets/Pagina Inicial/Moveis-inicio.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #ffffff;
  margin-top: 0;
  max-width: 100%;
  overflow: hidden;
}

/* Hide previous implementation elements */
.hero::after {
  display: none;
}

.hero-image {
  display: none;
}

.hero-text {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
  color: #ffffff;
  margin-top: 0;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-text p {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Faixa Divisória */
/* Faixa Divisória (Marquee) */
.section-divider {
  width: 100%;
  background-color: var(--color-primary); /* Verde Sálvia */
  padding: 32px 0;
  margin: 0px 0 100px; /* Remove margin-top to touch hero */
  overflow: hidden; /* Essencial para o marquee */
  position: relative;
  white-space: nowrap;
  display: flex; /* Garante que o track flua corretamente */
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 60px; /* Espaço entre os itens */
  /* Largura é automática baseada no conteúdo */
  animation: scrollText 40s linear infinite;
  padding-left: 60px;
}

/* Duplicado para loop infinito */
.marquee-track span {
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 300;
  flex-shrink: 0;
}

.divider-bullet {
  opacity: 0.5;
  font-size: 10px;
  color: #ffffff;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Move metade (o loop completo) */
  }
}

/* Ajuste Responsivo */
@media (max-width: 768px) {
  .marquee-track {
    gap: 32px;
    animation-duration: 30s;
  }

  .marquee-track span {
    font-size: 12px;
  }
}

/* Seção de Categorias */
.categories-section {
  max-width: 1120px;
  margin: 0 auto 100px;
  padding: 0 24px;
}

.categories-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  padding-bottom: 20px;
  border-bottom: 1px solid transparent;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.small-line {
  width: 60px;
  height: 2px;
  background-color: var(--color-primary);
  display: block;
  margin-bottom: 8px;
}

.header-left h2 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin: 0;
  text-transform: uppercase;
}

.header-left p {
  font-size: 14px;
  color: #666666;
  font-weight: 300;
}

.header-right {
  text-align: right;
  color: var(
    --color-primary
  ); /* Destaque na cor da marca (Sálvia/Marrom conforme ajuste) */
}

.big-number {
  display: block;
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
}

.number-label {
  font-size: 16px;
  font-weight: 300;
  color: #666666;
}

/* Grid de Produtos */
/* Grid de Produtos - Estilo Clean */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Tenta forçar 5 colunas */
  gap: 60px 20px; /* Mais espaço vertical, menos horizontal */
}

@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

/* Novo Container de Imagem (Estilo Recortado/Clean) */
.cat-image-container {
  width: 100%;
  aspect-ratio: 4/3; /* Levemente retangular horizontal para móveis */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.4s ease;
  overflow: hidden; /* Garante que a imagem respeite o container */
  border-radius: 4px; /* Suave arredondamento */
  background-color: #f9f9f9; /* Fundo padrão caso a imagem demore */
}

.cat-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Preenche todo o espaço uniformemente */
  object-position: center;
  transition: transform 0.5s ease;
}

.category-item:hover .cat-image-container,
.category-item:hover h3 {
  transform: translateY(-8px);
}

.category-item:hover .cat-image-container img {
  transform: scale(1.05); /* Zoom suave na imagem ao passar o mouse */
}

.category-item h3 {
  font-size: 13px;
  font-weight: 400; /* Mais leve */
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #666666;
  margin: 0;
  transition:
    color 0.3s,
    transform 0.4s ease;
}

.category-item:hover h3 {
  color: var(--color-primary); /* Destaque sutil na cor da marca */
}

/* Animação ao Scroll */
.fade-up-element {
  opacity: 0;
  transform: translateY(60px); /* Movimento mais longo */
  filter: blur(4px); /* Começa levemente desfocado */
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1); /* Transição mais suave e elegante */
}

.fade-up-element.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(-50px);
  filter: blur(4px);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(50px);
  filter: blur(4px);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* Wrapper com Fundo Diferenciado (Quebra Visual) */
.concept-wrapper {
  width: 100%;
  background-color: #f5f5f0; /* Tom Areia/Cinza Quente Sofisticado */
  padding: 100px 0;
  margin-top: 100px; /* Distância da grid de produtos */
}

.design-wrapper {
  width: 100%;
  background-color: #e5e0d8; /* Fundo Branco para alternar */
  padding: 100px 0;
}

/* Seção Conceito (Split Layout) */
.concept-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto; /* Centralizado no wrapper */
  padding: 0 24px;
  gap: 80px;
}

.concept-image {
  flex: 1;
  height: 600px;
  position: relative;
}

.concept-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* Sombra suave para profundidade */
}

.concept-text {
  flex: 1;
  max-width: 500px;
}

.concept-text h2 {
  font-size: 36px;
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 1.2;
}

.concept-text p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 32px;
}

.btn-link {
  display: inline-block;
  padding-bottom: 4px;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}

.btn-link:hover {
  opacity: 0.7;
  padding-bottom: 8px; /* Efeito visual de 'levantar' */
}

/* Seção CTA (Chamada para Ação) */
.cta-section {
  background-color: var(--color-primary); /* Fundo Verde Sálvia */
  padding: 100px 24px;
  text-align: center;
  color: #ffffff;
  margin-bottom: 0; /* Cola no footer */
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 42px;
  font-weight: 300;
  margin-bottom: 16px;
  color: #ffffff;
}

.cta-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 40px;
  font-weight: 300;
}

.btn-primary {
  display: inline-block;
  background-color: #ffffff;
  color: var(--color-primary);
  padding: 16px 40px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #ffffff;
}

.btn-primary:hover {
  background-color: transparent;
  color: #ffffff;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  /* Remove o gradiente do header no mobile */
  .site-header {
    background: none !important;
  }

  /* Hero Section Mobile - Imagem maior e texto centralizado */
  .hero {
    height: 100vh; /* Cobre toda a tela */
    min-height: 600px;
    background-attachment: scroll; /* Remove parallax no mobile */
    background-position: center center; /* Centraliza a imagem */
    background-size: cover; /* Mantém o cover mas sem zoom */
    padding: 180px 0 100px; /* Ajusta padding para melhor visualização */
  }

  .hero-text {
    padding: 0 32px;
  }

  .hero-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  /* Categories Section Mobile - Grid 2 colunas garantido */
  .categories-section {
    margin-bottom: 60px;
    padding: 0 20px;
  }

  .categories-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    gap: 24px;
  }

  .header-left {
    align-items: center;
  }

  .header-left h2 {
    font-size: 20px;
  }

  .header-left p {
    font-size: 14px;
  }

  .header-right {
    text-align: center;
  }

  .big-number {
    font-size: 44px;
  }

  .number-label {
    font-size: 15px;
  }

  /* Grid 2 colunas forçado */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px 16px;
  }

  .category-item h3 {
    font-size: 12px;
  }

  /* Concept Sections Mobile - Foto primeiro, texto centralizado */
  .concept-wrapper,
  .design-wrapper {
    padding: 60px 0;
    margin-top: 0;
  }

  .concept-wrapper {
    margin-top: 60px;
  }

  .concept-section {
    flex-direction: column !important; /* Força sempre foto no topo */
    gap: 32px;
    padding: 0 20px;
  }

  /* Remove o reverse para garantir foto sempre primeiro */
  .concept-section.reverse {
    flex-direction: column !important;
  }

  .concept-image {
    width: 100%;
    height: 320px;
  }

  .concept-text {
    text-align: center;
  }

  .concept-text h2 {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .concept-text p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  .btn-link {
    font-size: 13px;
  }

  /* CTA Section Mobile */
  .cta-section {
    padding: 60px 20px;
  }

  .cta-content h2 {
    font-size: 30px;
    margin-bottom: 16px;
  }

  .cta-content p {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .btn-primary {
    padding: 16px 36px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  /* Hero Section Small Mobile */
  .hero {
    height: 100vh;
    min-height: 550px;
    background-attachment: scroll; /* Remove parallax no mobile */
    background-position: center center; /* Centraliza a imagem */
    background-size: cover; /* Mantém proporção sem zoom */
    padding: 160px 0 80px; /* Ajusta padding para telas menores */
  }

  .hero-text {
    padding: 0 20px;
  }

  .hero-text h1 {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .hero-text p {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  /* Categories Section Small Mobile */
  .categories-section {
    padding: 0 16px;
  }

  .header-left h2 {
    font-size: 18px;
  }

  .header-left p {
    font-size: 13px;
  }

  .big-number {
    font-size: 36px;
  }

  .number-label {
    font-size: 14px;
  }

  .categories-grid {
    gap: 32px 12px;
  }

  .category-item h3 {
    font-size: 11px;
  }

  /* Concept Sections Small Mobile */
  .concept-wrapper,
  .design-wrapper {
    padding: 48px 0;
  }

  .concept-section {
    padding: 0 16px;
    gap: 24px;
  }

  .concept-image {
    height: 260px;
  }

  .concept-text h2 {
    font-size: 24px;
  }

  .concept-text p {
    font-size: 14px;
  }

  /* CTA Section Small Mobile */
  .cta-section {
    padding: 48px 16px;
  }

  .cta-content h2 {
    font-size: 26px;
  }

  .cta-content p {
    font-size: 15px;
  }

  .btn-primary {
    padding: 14px 28px;
    font-size: 13px;
  }
}

/* Ajuste específico para dispositivos móveis em modo paisagem */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    height: 100vh;
    min-height: 450px;
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
    padding: 120px 0 60px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 13px;
  }
}

.site-footer {
  padding: 40px 0;
}

