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

/* ===== VARIÁVEIS ===== */
:root {
  --bg: #f9f6f1;
  --fg: #2e2318;
  --primary: #a07830;
  --secondary: #ede5d8;
  --muted: #8c7a66;
  --border: #ddd2c2;
  --radius: 0.5rem;
}

/* ===== BASE ===== */
body {
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  background: #fff;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #097405;
  font-weight: 800;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

header nav a {
  color: #333;
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: .9rem;
  font-weight: 600;
}

header nav a:hover {
  color: #097405;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-bg-layer.active {
  opacity: 1;
}

/* picture precisa de display:contents para não quebrar height:100% do img */
.hero-bg-layer picture {
  display: contents;
}

.hero-bg-layer picture img,
.hero-bg-layer > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.55), rgba(0,0,0,.2), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
  padding: 6rem 2rem 2rem;
}

.hero-content .tag {
  color: rgba(255, 255, 255, .7);
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-content h1 span {
  color: #097405;
  font-style: italic;
}

.hero-content p {
  color: rgba(255, 255, 255, .8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-content .btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: #097405;
  color: #fff;
  border: none;
  padding: .9rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
  padding: .9rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: .6rem;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, .4);
  transition: all .3s;
}

.hero-dots button.active {
  background: #097405;
  transform: scale(1.3);
}

/* ===== CATÁLOGO ===== */
.catalog {
  padding: 5rem 2rem;
  text-align: center;
  background: #faf9f6;
}

.catalog h2 {
  font-size: 2.2rem;
  margin-bottom: .5rem;
}

.catalog .sub {
  color: #888;
  margin-bottom: 3rem;
}

/* FILTROS */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2.5rem;
}

.catalog-filters button {
  padding: .5rem 1.4rem;
  border-radius: 50px;
  border: none;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  background: #e8e4dc;
  color: #555;
}

.catalog-filters button.active {
  background: #fa8602;
  color: #fff;
}

.catalog-filters button:hover:not(.active) {
  background: #ddd;
}

/* GRID */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  align-items: stretch;
}

/* ===== CARD ===== */
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  transition: transform .3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card-img {
  width: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  min-height: 260px;
}

.card-img img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
}

.card-body {
  padding: 1.2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.category {
  font-size: .8rem;
  color: var(--muted);
}

/* BOTÃO WHATSAPP */
.card-body a.btn-whatsapp,
.card-body > div > a {
  display: inline-block !important;
  background-color: #25D366 !important;
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 6px !important;
  text-align: center !important;
  font-weight: 600 !important;
  margin-top: auto;
  align-self: center;
}

/* ===== DIFERENCIAIS ===== */
.features {
  padding: 5rem 2rem;
  text-align: center;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.feat {
  padding: 2rem;
  border-radius: 12px;
  background: #faf9f6;
}

.feat h3 {
  margin-top: 1rem;
  margin-bottom: .5rem;
  font-size: 1.1rem;
}

.feat p {
  color: #666;
  font-size: .9rem;
}

/* ===== FOOTER ===== */
footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 3rem 2rem;
  text-align: center;
  font-size: .85rem;
}

footer a {
  color: #d4a853;
  text-decoration: none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  header nav { display: none; }

  .hero {
    height: 100vh;
    height: 100svh;
    align-items: flex-end;
  }

  /* mobile: imagens são retrato — ancora no topo e deixa o conteúdo embaixo */
  .hero-bg-layer picture img,
  .hero-bg-layer > img {
    object-position: center top;
  }

  .hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
  }

  .hero-content {
    padding: 1.5rem 1.2rem 4rem;
    max-width: 100%;
  }

  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: .9rem; margin-bottom: 1rem; }
  .hero-content .btns { flex-direction: column; gap: .5rem; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }

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

  .card-img { min-height: 160px; }
  .card-img img { height: 160px; }
  .card-body h3 { font-size: .9rem; }
}

@media (max-width: 390px) {
  .hero-content h1 { font-size: 1.7rem; }
  .catalog-grid { grid-template-columns: 1fr; }
}