/* ============================================
   Embutidos Chapadão - Landing Page
   Tema: escuro + dourado (identidade da marca)
   ============================================ */

:root {
  --bg-dark: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-section: #141414;
  --gold: #c9a227;
  --gold-light: #e0c04a;
  --gold-dim: #8b7312;
  --text: #e8e8e8;
  --text-muted: #a0a0a0;
  --border: rgba(201, 162, 39, 0.2);
  --overlay: rgba(0, 0, 0, 0.6);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --container: min(1200px, 92vw);
  --radius: 8px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--gold-light);
}

.container {
  width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 15, 15, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold);
}
.logo.has-fallback .logo-img,
.footer-logo.has-fallback .logo-img {
  display: none;
}
.logo.has-fallback .logo-text,
.footer-logo.has-fallback .logo-text {
  display: inline;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--gold);
}

.header-cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg-dark);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.btn-whatsapp:hover {
  background: #20bd5a;
  border-color: #20bd5a;
  color: #fff;
}

.btn-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
  border: none;
}
.btn-instagram:hover {
  opacity: 0.9;
  color: #fff;
  filter: brightness(1.1);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-section);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--overlay) 0%, rgba(0,0,0,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons,
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.header-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero .btn-primary,
.hero .btn-instagram {
  margin-top: 0;
}

/* ----- Sections ----- */
.section {
  padding: 4rem 0;
}

.section:nth-child(even) {
  background: var(--bg-section);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 1rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ----- História ----- */
.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.historia-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--bg-card);
}

.historia-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.historia-texto p {
  margin: 0 0 1rem;
}
.historia-texto p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .historia-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .historia-img-wrap {
    order: -1;
  }
}

/* ----- Produtos ----- */
.produtos-grid {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.produto-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.produto-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

.produto-img-wrap {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--bg-section);
}

.produto-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.produto-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.produto-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.produtos-cta-texto {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.section-produtos .btn {
  display: block;
  margin: 0 auto;
}

/* ----- Diferenciais ----- */
.diferenciais-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.diferenciais-grid li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.diferencial-icon {
  color: var(--gold);
  font-size: 0.75rem;
}

/* ----- Certificações ----- */
.certificacoes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.certificacoes-list li {
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ----- Onde nos encontrar ----- */
.onde-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.onde-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.onde-card.destaque {
  border-color: var(--gold-dim);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(201, 162, 39, 0.06) 100%);
}

.onde-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.onde-card p {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.onde-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.75rem !important;
}

.link-mapa {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
}

@media (max-width: 700px) {
  .onde-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Avaliações ----- */
.avaliacoes-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.rating-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.rating-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.rating-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
}

.rating-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-review {
  flex-shrink: 0;
}

.depoimentos-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.depoimento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.depoimento-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.5rem;
}

.depoimento-card blockquote {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
}

.depoimento-card cite {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ----- CTA final ----- */
.cta-section {
  background: linear-gradient(135deg, var(--bg-section) 0%, rgba(201, 162, 39, 0.08) 100%);
  border-top: 1px solid var(--border);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold);
  margin: 0 0 0.5rem;
  text-align: center;
}

.cta-texto {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.cta-section .cta-buttons {
  margin-bottom: 0;
}

/* ----- Footer ----- */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 44px;
  width: auto;
  opacity: 0.9;
}

.footer-contato p,
.footer-empresa p {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-contato a,
.footer-empresa a {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo {
    display: flex;
    justify-content: center;
  }
}

/* ----- WhatsApp flutuante ----- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #fff;
}

/* ----- Mobile menu ----- */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 90;
  }
  .nav.is-open {
    transform: translateX(0);
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
  }
  .nav li {
    border-bottom: 1px solid var(--border);
  }
  .nav a {
    display: block;
    padding: 1rem 0;
  }
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
    z-index: 101;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .menu-toggle span {
    transition: transform var(--transition), opacity var(--transition);
  }
}

/* Placeholder quando imagem não carrega */
img[src*="assets/"]:not([src=""]) {
  min-height: 120px;
  background: var(--bg-section);
}
