/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #efe6d8;
  color: #2b2b2b;
  line-height: 1.6;
}

a { text-decoration: none; color: #a8741a; }
a:hover { color: #d4a34a; }

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(90deg,#6b4526,#3e2713);
  color: #fff;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 80px;
}

.logo h1 {
  font-family: 'Georgia', serif;
  font-size: 28px;
  color: #ffebcd;
  text-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

nav ul {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  list-style: none;
}

nav a {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
}

nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* Espaço para o header fixo */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 160px 20px 40px; /* topo para header fixo */
}

/* Banners e seções */
.banner {
  background-image: url('../img/fazenda.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  border-radius: 8px;
  margin-bottom: 20px;
}

.section {
  background: rgba(255,255,255,0.95);
  padding: 20px;
  margin-bottom: 18px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
}

.card img { width:100%; border-radius:6px; }
.card { overflow:hidden; border-radius:6px; }

/* Caixa de idade */
.caixa {
  background: rgba(0,0,0,0.6);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

button {
  background: #a8741a;
  color: #fff;
  padding: 12px 20px;
  margin: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

button:hover { background: #d4a34a; }

/* Footer */
footer {
  text-align: center;
  padding: 16px;
  color: #5b4a3b;
  font-size: 0.9em;
  margin-top: 40px;
}

/* Pop-up imagens */
#popup {
  display: none;
  position: fixed;
  z-index: 10000;
  left:0; top:0;
  width:100%; height:100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

#popup img {
  max-width: 80%;
  max-height: 80%;
  border: 5px solid white;
  border-radius: 5px;
}

#close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* Responsividade */
@media (max-width: 1024px) {
  main { padding-top: 140px; }
  .banner { padding: 60px 15px; }
}

@media (max-width: 768px) {
  .header-container { flex-direction: column; align-items: flex-start; }
  .logo h1 { font-size: 22px; margin-top: 10px; }
  nav ul { gap: 10px; }
  main { padding-top: 120px; }
  .banner { padding: 50px 10px; }
  .grid { grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 10px; }
  .caixa { padding: 25px; }
  button { padding: 10px 16px; font-size: 14px; }
}
/* Espaço para o header fixo */
body {
  margin: 0;
  padding-top: 140px; /* altura do header + margem */
}

@media (min-width: 768px) {
  body {
    padding-top: 0px; /* desktop */
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 70px; /* mobile: mais espaço para o menu */
  }
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 proporção */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}