@import url('https://fonts.googleapis.com/css2?family=Clicker+Script&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Playfair Display', serif;
  /* Evita que o conteúdo "pule" quando o overflow é mudado */
  overflow-x: hidden; 
}

.home {
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('assets/coffee_image.png');
  background-size: cover;
  background-position: center;

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;

  padding: 2rem;
  box-sizing: border-box;
}

.home-logo {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  padding-left: 2rem;
}

.home-texto {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  align-self: center;
}

.home-botoes {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
  justify-self: end;
  display: flex;
  gap: 1rem;
}

.home-texto h1 {
  font-family: 'Clicker Script', cursive;
  font-size: 5.5rem;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow:
    3px 3px 6px rgba(0, 0, 0, 0.6),
    1px 1px 2px rgba(0, 0, 0, 0.3);
  align-self: center;
  padding-left: 2rem;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 195px;
  height: 65px;
  border-radius: 24px;
  
  /* AQUI ESTÁ A CORREÇÃO: #B46AE -> #B46A4E */
  background: linear-gradient(135deg, #7A3E2B, #B46A4E); 
  
  border: none;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-decoration: none;
  color: #FFFFFF;
  font-size: 1rem; 
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: scale(1.03); 
  opacity: 0.9; 
}

/*MENU */
.menu {
  width: 100%;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.menu-header {
  text-align: center;
  margin-bottom: 3rem;
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.menu-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: #7A3E2B;
  margin-bottom: 0.5rem;
}

.menu-header p {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #666;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.menu-card {
  background-color: #FFFBF5;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-5px);
}

.menu-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.menu-card-content {
  padding: 1.5rem 1rem;
  text-align: center;
}

.menu-card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #5D3A2A;
}

.menu::before,
.menu::after {
  content: '';
  position: absolute;
  width: 299px;
  height: 300px;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}

.menu::before {
  background-image: url('assets/splash-esquerda.svg');
  top: 0;
  left: 0;
}

.menu::after {
  background-image: url('assets/splash-direita.svg');
  bottom: 0;
  right: 0;
}

/* BLOCO GRÃOS (corrigido - removido duplicado) */
.bloco-fundo-graos {
  background-image: url('assets/graos-fundo.svg');
  background-size: 60% auto;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 2rem 0;
}

.secao-header {
  text-align: center;
  margin-bottom: 3rem;
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.secao-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: #7A3E2B;
  margin-bottom: 0.5rem;
}

.secao-header p {
  font-size: 1.5rem;
  color: #666;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
}

.diferencial-card {
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.diferencial-card:hover {
  background-color: #FFFBF5;
  border-color: #e0e0e0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px); /* <- Corrigido (removido /) */
}

.diferencial-card img {
  height: 50px;
  margin-bottom: 1rem;
}

.diferencial-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #5D3A2A;
  margin-bottom: 0.5rem;
}

.diferencial-card p {
  font-size: 1rem;
  color: #777;
  line-height: 1.5;
}

.diferenciais-cta-wrapper {
  text-align: center;
  margin-top: 4rem;
}

.diferenciais-cta-wrapper p {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.diferenciais-cta-wrapper h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #5D3A2A;
  margin-bottom: 1.5rem;
}

.diferenciais-cta-wrapper .btn {
  display: inline-flex;
}

/* SEÇÃO 2: LOCALIZAÇÃO */
.localizacao {
  text-align: center;
  padding-top: 4rem;
}

.mapa-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.mapa-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

.localizacao .endereco {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #5D3A2A;
  margin-top: 2rem;
}

.localizacao .horario {
  font-size: 1rem;
  color: #666;
  margin-top: 0.5rem;
}

/* FOOTER */
.footer-main {
  /* Corrigido gradiente para usar 'rgba' em ambas as cores */
  background-image: linear-gradient(rgba(185, 109, 22, 0.6), rgba(63, 37, 6, 0.6)),
    url('../assets/rodape.svg');
  background-size: cover;
  background-position: center;
  padding: 2rem 2rem;
  text-align: center;
  color: #FFFFFF;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.footer-social img {
  height: 30px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(1) brightness(100);
}

.footer-social a:hover img {
  transform: scale(1.1);
  filter: grayscale(1) brightness(80);
}

.footer-main p {
  font-size: 0.9rem;
  color: #FFFFFF;
  opacity: 0.8;
  margin-top: 2rem;
}

/* 
  BLOCO DE RESPONSIVIDADE 
 */
@media (max-width: 1500px) {
  .menu::before {
    background-image: none; /* Desativa o splash da esquerda */
  }

}


@media (max-width: 768px) {

  /* --- GERAL --- */
  h2 {
    font-size: 2.5rem;
  }
  .secao-header p,
  .menu-header p {
    font-size: 1.1rem;
  }

  /* --- HOME (HERO) --- */
  .home {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 2rem 1rem;
    text-align: center;
  }

  .home-logo,
  .home-texto,
  .home-botoes {
    grid-column: 1 / -1;
    justify-self: center;
    padding-left: 0;
  }

  .home-logo { grid-row: 1; }
  .home-texto { grid-row: 2; align-self: center; }
  .home-botoes { grid-row: 3; align-self: end; }
  
  .home-texto h1 {
    font-size: 4rem;
  }

  .home-botoes {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }

  .home-botoes .btn {
      max-width: 180px;
  }


  /* --- MENU --- */
  .menu {
    padding: 3rem 0;
  }
  .menu-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colunas */
    gap: 1.5rem;
    width: 95%;
  }
  .menu-card img {
    height: 150px;
  }
  
  
  .menu::after {
    width: 150px;
    height: 150px;
  }


  /* --- BLOCO GRÃOS (DIFERENCIAIS & LOCAL) --- */
  .bloco-fundo-graos {
    background-size: cover;
    padding: 2rem 0;
  }
  
  .diferenciais,
  .localizacao {
    padding: 2rem 1.5rem;
  }

  .diferenciais-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colunas */
    gap: 1.5rem;
    width: 100%;
  }
  
  /* --- AJUSTE: DIMINUIR CONTEÚDO DOS CARDS --- */
  .diferencial-card {
     padding: 1.5rem 1rem; /* Espaçamento interno menor */
  }
  .diferencial-card h3 {
    font-size: 1.2rem; /* Fonte do título menor */
  }
  .diferencial-card p {
    font-size: 0.9rem; /* Fonte do parágrafo menor */
  }
  /* --- FIM DO AJUSTE --- */


  .localizacao {
    padding-top: 2rem;
    margin-top: 2rem;
  }
  .mapa-container {
    width: 100%;
  }
  .mapa-container iframe {
    height: 300px;
  }
  .diferenciais-cta-wrapper p { font-size: 1rem; }
  .diferenciais-cta-wrapper h3 { font-size: 1.25rem; }

  /* --- FOOTER --- */
  .footer-main {
    padding: 2rem 1rem;
  }
}


/* ======================================================
  AJUSTE FINO PARA CELULARES PEQUENOS
====================================================== */
@media (max-width: 480px) {

  /* ... seus outros códigos ... */
  .home-texto h1 { font-size: 3rem; }
  .home-botoes { width: 100%; }
  .home-botoes .btn { max-width: 150px; }

  .menu-grid,
  .diferenciais-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colunas */
    width: 95%; /* Aumentei um pouco para dar mais espaço aos cards */
    gap: 0.5rem; /* Gap menor para evitar quebra em telas muito estreitas */
    margin: 0 auto; /* Centralizar a grid */
  }

  .menu-header h2,
  .secao-header h2 { font-size: 2rem; }
  
  /* --- CORREÇÃO DO CARD --- */
  .diferencial-card {
    padding: 0.8rem;
    
    /* O SEGREDO ESTÁ AQUI: */
    height: auto;      /* Remove altura fixa do desktop */
    min-height: 0;     /* Remove altura mínima do desktop */
    
    /* Opcional: Flex para garantir centralização vertical se sobrar espaço */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
  }

   .diferencial-card h3 {
    font-size: 1rem; /* Ajuste fino */
    margin: 0.5rem 0; /* Espaçamento controlado */
  }
  
  .diferencial-card p {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  /* Se tiver ícone/img dentro do card, as vezes precisa ajustar também */
  .diferencial-card img, 
  .diferencial-card svg {
      max-width: 40px; /* Reduz ícones se estiverem muito grandes */
      height: auto;
      margin-bottom: 0.5rem;
  }
  /* --- FIM DO AJUSTE --- */

  .localizacao .endereco { font-size: 1rem; }
}