/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #fff;
  background: url('siteholder.jpeg') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
}

/* Main Container */
main {
  width: 85%;
  margin: 0 auto;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: rgba(122, 86, 64, 0.9);
  flex-wrap: wrap;
}
header .logo {
  color: #FFD700;
  font-size: 1.6rem;
  font-weight: bold;
}
nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
nav a {
  color: #FFD700;
  font-weight: bold;
  text-decoration: none;
}
nav a:hover {
  color: #800000;
  text-decoration: underline;
}

/* Hero */
#inicio {
  position: relative;
  text-align: center;
  padding: 120px 20px;
  min-height: 400px;
  background: url('background.jfif') center/cover no-repeat;
}
#inicio .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
#inicio .hero-content {
  position: relative;
  z-index: 2;
}
#inicio h1 {
  font-size: 2.5rem;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.7);
  margin-bottom: 15px;
}
#inicio p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.7);
}

/* Services */
#servicos {
  background-color: rgba(245, 239, 230, 0.9);
  color: #5a3e2b;
  text-align: center;
  padding: 80px 20px;
}
.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin-top: 30px;
}
.service-card {
  position: relative;
  background: #fff8e1;
  border: 2px solid #5c4033;
  border-radius: 10px;
  width: 160px;
  height: 200px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: visible;
}
.service-card.expand {
  transform: scale(1.15);
  width: 500px;
  height: 250px;
  z-index: 10;
}
.service-card.fade-out {
  opacity: 0;
  pointer-events: none;
}
.service-detail {
  position: absolute;
  top: 5px; left: 5px; right: 5px; bottom: 5px;
  background: #fff8e1;
  color: #5a3e2b;
  border-radius: 10px;
  padding: 15px;
  z-index: 20;
  overflow-y: auto;
}
.service-detail h3 {
  margin-bottom: 10px;
  text-align: center;
  font-size: 1rem;
}
.service-detail p {
  text-align: center;
  font-size: 0.9rem;
}
.close-detail {
  position: absolute;
  top: 5px; right: 5px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: maroon;
}

/* About */
#sobre {
  background: rgba(0, 0, 0, 0.5);
  padding: 100px 8%;
  color: #fff;
}

#sobre h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-text {
  flex: 1 1 50%;
  font-size: 1.2rem;
  line-height: 1.7;
  text-align: justify;
  max-width: 550px;
}

.about-image {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 380px;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* Responsivo */
@media (max-width: 850px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-text {
    max-width: 100%;
  }

  .about-image img {
    max-width: 280px;
  }
}

/* Contact */
#contato {
  background: rgba(253, 246, 227, 0.9);
  color: #5a3e2b;
  padding: 60px 20px;
  text-align: center;
}
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}
.contact-card {
  background: #fff;
  border: 2px solid #5c4033;
  border-radius: 10px;
  width: 120px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #5c4033;
  transition: transform 0.2s ease;
}
.contact-card:hover {
  transform: translateY(10px);
  background: #f5e5c0;
}
.contact-card i {
  margin-bottom: 10px;
}
.contact-card p {
  font-weight: bold;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #5a3e2b;
  color: #fff;
}

/* Scroll Top */
#top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #5a3e2b;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}
#top-btn:hover {
  background: #7a5640;
}

/* Responsive */
@media (max-width: 1024px) {
  .service-card, .contact-card { width: 45%; }
}
@media (max-width: 768px) {
  header { flex-direction: column; }
  nav { flex-direction: column; gap: 10px; }
  .service-card, .contact-card { width: 100%; }
  .about-container { flex-direction: column; }
}
@media (max-width: 480px) {
  nav a { font-size: 14px; }
  #inicio h1 { font-size: 1.8rem; }
  #inicio p { font-size: 1rem; }
}
