/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS & VARIÁVEIS (DESIGN TOKENS)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Cores */
  --color-bg: #FAF9F6;           /* Off-white / Creme suave */
  --color-surface: #FFFFFF;      /* Branco puro para cards */
  --color-text-main: #2C2A29;    /* Grafite escuro para alta legibilidade */
  --color-text-muted: #66605C;   /* Cinza terroso para textos secundários */
  --color-accent: #8C6A53;       /* Tom terroso / Couro elegante */
  --color-accent-hover: #6E513D;
  --color-whatsapp: #25D366;     /* Verde institucional WhatsApp */
  --color-whatsapp-hover: #1EBE5A;
  --color-border: #E8E5E1;

  /* Tipografia */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Espaçamentos e Estrutura */
  --container-max-width: 1120px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset CSS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Imagens Responsivas */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* Container Global para Alinhamento */
section {
  padding: 3.5rem 1.5rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

/* Tipografia Base */
h1, h2, h3 {
  color: var(--color-text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Botões Padrão */
a[href^="#"], a[href*="wa.me"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
  margin-top: 0.5rem;
}

a[href^="#"] {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

a[href^="#"]:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

a[href*="wa.me"] {
  background-color: var(--color-whatsapp);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

a[href*="wa.me"]:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   2. SEÇÕES ESPECÍFICAS (MOBILE FIRST)
   ========================================================================== */

/* Header / Logo */
header {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

header img {
  max-height: 50px;
  width: auto;
}

/* Seção de Apresentação (#inicio) */
#inicio h1 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#inicio h2 {
  font-size: 2rem;
  color: var(--color-text-main);
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 1.5rem;
}

/* Galeria Destaque (#galeria-destaque) */
#galeria-destaque {
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

#galeria-destaque img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

#galeria-destaque img:hover {
  transform: scale(1.02);
}

/* Seções de Benefícios e Artesanal (#beneficios e #artesanal) */
#beneficios, #artesanal {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#beneficios img, #artesanal img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

#beneficios strong {
  color: var(--color-text-main);
}

/* Depoimentos (#testemunhos) */
#testemunhos {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-subtle);
}

.depoimento {
  background-color: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--color-border);
}

.depoimento blockquote {
  font-style: italic;
  color: var(--color-text-main);
}

.depoimento img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.depoimento footer {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.depoimento footer strong {
  color: var(--color-text-main);
}

/* Coleção (#colecao) */
#colecao h2 {
  font-size: 1.75rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
}

.galeria-colecao {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.galeria-colecao img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* CTA WhatsApp (#cta-whatsapp) */
#cta-whatsapp {
  text-align: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-subtle);
}

#cta-whatsapp h2 {
  font-size: 1.5rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

/* Rodapé */
footer {
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: center;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

footer img {
  max-width: 140px;
  opacity: 0.85;
}

/* ==========================================================================
   3. RESPONSIVIDADE & LAYOUTS EXPANDIDOS (DESKTOPS E TABLETS)
   ========================================================================== */

/* Tablets (A partir de 768px) */
@media (min-width: 768px) {
  section {
    padding: 5rem 2rem;
  }

  /* Grid de Galeria Destaque */
  #galeria-destaque {
    grid-template-columns: repeat(5, 1fr);
  }

  #galeria-destaque img {
    height: 260px;
  }

  /* Layout em Colunas para Benefícios e Artesanal */
  #beneficios, #artesanal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3.5rem;
  }

  /* Inverte a ordem visual da seção Artesanal para criar dinamismo */
  #artesanal img {
    order: 2;
  }

  .depoimento {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.5rem;
  }

  .depoimento blockquote {
    grid-column: 1 / -1;
  }

  .galeria-colecao {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .galeria-colecao img {
    height: 280px;
  }
}

/* Desktops e Telas Grandes (A partir de 1024px) */
@media (min-width: 1024px) {
  h3 {
    font-size: 2.25rem;
  }

  #inicio h2 {
    font-size: 2.75rem;
  }

  .galeria-colecao {
    grid-template-columns: repeat(3, 1fr);
  }

  .galeria-colecao img {
    height: 340px;
  }

  #cta-whatsapp {
    padding: 4rem 3rem;
  }
}

/* ==========================================================================
   ESTILOS DO MODAL LIGHTBOX
   ========================================================================== */
#lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  z-index: 1001;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightbox-modal.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* Ajuste na transição base das imagens */
#galeria-destaque img, .galeria-colecao img {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  will-change: transform;
}

/* ==========================================================================
   BOTÃO FLUTUANTE DO WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              background-color 0.3s ease, 
              box-shadow 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
}

/* Ícone SVG */
.whatsapp-icon {
  width: 32px;
  height: 32px;
}

/* Efeito de balanço e hover */
.whatsapp-float:hover {
  background-color: #1EBE5A;
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  animation: none; /* Pausa a animação de pulso ao passar o mouse */
}

/* Tooltip lateral */
.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background-color: #2C2A29;
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Triângulo indicador do tooltip */
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #2C2A29;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Animação suave de pulso */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Ajuste para telas pequenas (Mobile) */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }

  /* Oculta o tooltip em telas pequenas para não cobrir o conteúdo */
  .whatsapp-tooltip {
    display: none;
  }
}