/* ==========================================================================
   1. VARIÁVEIS DE DESIGN, PALETA DE CORES (UI/UX) E CONFIGURAÇÕES DE FONTES
   ========================================================================== */
:root {
  --primary: #ff8c42; /* Laranja quente para apetite, botões de ação e CTAs */
  --secondary: #2e8b57; /* Verde clássico para remeter a grãos, empório e natural */
  --dark: #2b2d42; /* Tom escuro industrial para textos de alto contraste e legibilidade */
  --light: #c1b69cba; /* Fundo cinza claro para quebra de seções visuais */
  --white: #ffffff; /* Branco puro para blocos limpos, cards e fundos principais */
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Sombra leve para efeito de profundidade */
  --transition: all 0.3s ease-in-out; /* Transição padrão para microinterações suaves */
}
.testimonial-card {
  background: #eaeaea !important;
}

/* ==========================================================================
   2. RESETS GERAIS E ESTRUTURA BASE DO PROJETO
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth; /* Rolagem suave nativa ao navegar pelas âncoras do menu */
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden; /* Evita quebras de layout na rolagem horizontal no mobile */
}

h1,
h2,
h3 {
  font-family:
    "Playfair Display", serif; /* Fonte com serifa elegante para títulos */
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   3. CLASSES UTILITÁRIAS E REUTILIZÁVEIS (COMPONENTES)
   ========================================================================== */
.section-padding {
  padding: 100px 20px; /* Espaçamento interno padrão para respiro das seções */
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 15px; /* Redução do respiro em telas menores */
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 50px;
  position: relative;
}

/* Detalhe estético (linha abaixo do título da seção) */
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  margin: 15px auto 0;
}

/* Estilização Geral de Botões */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(255, 140, 66, 0.3);
}

/* Microinteração de Hover no Botão Principal */
.btn-primary:hover {
  background-color: #e07430;
  transform: translateY(-3px); /* Efeito flutuante */
  box-shadow: 0 6px 15px rgba(255, 140, 66, 0.4);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

/* Microinteração de Hover no Botão do WhatsApp */
.btn-whatsapp:hover {
  background-color: #1ebd54;
  transform: translateY(-2px);
}

/* ==========================================================================
   4. HEADER, NAVBAR E SISTEMA DE LOGO REDONDA
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Forçando o formato perfeitamente redondo pedido no briefing */
.logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
}

/* Menu de Navegação Desktop */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Linha animada abaixo dos links do menu no hover */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Menu Hamburguer Oculto no Desktop */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--secondary);
}

/* ==========================================================================
   5. HERO SECTION (IMAGEM GRANDE EM BACKGROUND DE ALTO PADRÃO)
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  /* Aplicação do background "gringo" caprichado com overlay escuro para contraste de leitura */
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("img/vidaloca.png.jpg") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s ease-out; /* Entrada suave ao carregar a página */
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 35px;
  font-weight: 400;
  letter-spacing: 1px;
}

/* ==========================================================================
   6. SEÇÃO SERVIÇOS (CARDS EXCLUSIVOS)
   ========================================================================== */
.services {
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 10px;
}

.service-card {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

/* Animação estrutural e alteração de borda no foco do card */
.service-card:hover {
  transform: translateY(-10px);
  border-bottom: 4px solid var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img {
  transform: scale(1.1); /* Efeito Zoom sutil na imagem do bolo/café */
}

/* Badge redondo flutuante com o ícone do serviço */
.service-icon-badge {
  position: absolute;
  bottom: -25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
}

.service-info {
  padding: 40px 25px 25px;
}

.service-name {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-description {
  font-size: 0.95rem;
  color: #666;
}

/* ==========================================================================
   7. SEÇÃO SOBRE NÓS (INSTITUCIONAL DE DUAS COLUNAS)
   ========================================================================== */
.about {
  background-color: var(--light);
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  height: 450px;
  object-fit: cover;
  width: 100%;
}

.about-text h3 {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  color: #555;
  font-size: 1.05rem;
}

/* ==========================================================================
   8. SEÇÃO DEPOIMENTOS DE CLIENTES
   ========================================================================== */
.testimonials {
  background-color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--light);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
}

.testimonial-stars {
  color: #ffd700; /* Cor amarela ouro para classificação de 5 estrelas */
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.testimonial-text {
  font-style: italic;
  color: #444;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}

/* ==========================================================================
   9. SEÇÃO CONTATO, FORMULÁRIO E MAPA INTEGRADO
   ========================================================================== */
.contact {
  background-color: var(--light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form-container {
  background-color: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

/* Efeito ativo no foco dos inputs para experiência otimizada */
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(255, 140, 66, 0.3);
}

.contact-info-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-details {
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.info-item i {
  color: var(--primary);
  font-size: 1.3rem;
  margin-top: 4px;
}

.info-item p {
  font-size: 1.05rem;
}

/* Wrapper responsivo para englobar a caixa do Google Maps */
.map-wrapper {
  width: 100%;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   10. FOOTER (RODAPÉ DO EMPÓRIO)
   ========================================================================== */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 60px 20px 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
  margin-bottom: 20px;
}

.footer-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
}

/* ==========================================================================
   11. KEYFRAMES E CLASSES DE ANIMAÇÃO NO SCROLL (MICROINTERAÇÕES)
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Classes controladas dinamicamente via JS para efeito de surgimento na tela */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   12. MEDIA QUERIES (SISTEMA DE RESPONSIVIDADE COMPLETO)
   ========================================================================== */
@media (max-width: 992px) {
  /* Conversão de layouts em duas colunas para grade única estruturada */
  .about-wrapper,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img {
    height: 350px;
    order: -1; /* Força a imagem a anteceder o texto na leitura em telas menores */
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block; /* Revela o botão sanduíche em smartphones e tablets */
  }

  /* Transformação do menu horizontal fixo para menu mobile retrátil lateral */
  .nav-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    gap: 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transition: 0.4s ease;
  }

  /* Gatilho disparado via JavaScript */
  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
  }

  .nav-link::after {
    display: none; /* Desativa a barra horizontal do desktop no design mobile */
  }

  .section-title {
    font-size: 2rem;
  }
}
