/* ================= VARIÁVEIS DE COR ================= */
:root {
  --bg-color: #fefcf6;
  --text-color: #333;
  --card-bg: #ffffff;
  --card-shadow: rgba(0,0,0,0.1);
  --link-color: #555;
  --link-hover: #a3c9a8;
}

/* ================= ESTILO GERAL ================= */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  scroll-behavior: smooth;
  transition: background-color 0.3s, color 0.3s;
}
a { color: var(--link-color); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--link-hover); }

/* ================= NAVBAR ================= */
nav {
  position: sticky;
  top: 0;  
  padding: 15px;
  text-align: center;  
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
nav a, nav button {
  margin: 5px;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
nav a:hover { background: var(--link-hover); color: #fff; }
nav button { background: var(--link-hover); color: #fff; transition: background 0.3s; }
nav button:hover { background: #7b8a76; }

/* ================= HEADER ================= */
header {
  position: relative;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  color: #fff;
  background: url('img/3e19d55f-cd0f-45d1-a21d-274a4f63d7a3.JPG') center/cover no-repeat;
}

header .header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: -1;
}

header h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

header p {
  position: relative;
  z-index: 2;
  font-size: clamp(1rem, 4vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto;
}

/* ================= SEÇÕES ================= */
section { padding: 60px 20px; max-width: 1000px; margin: auto; }
section h2 { text-align: center; margin-bottom: 30px; color: #7b8a76; font-size: 2rem; }

/* ================= SOBRE ================= */
.about { 
  display: flex; 
  flex-wrap: wrap; 
  align-items: center; 
  gap: 20px; 
  background: var(--card-bg); 
  padding: 30px; 
  border-radius: 15px; 
  box-shadow: 0 4px 12px var(--card-shadow); 
}
.about img { 
  max-width: 300px; 
  border-radius: 15px; 
  flex:1 1 300px; 
}
.about p { 
  flex:2 1 300px; 
  font-size:1.1rem; 
  color: var(--text-color); 
}


/* ================= SERVIÇOS ================= */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;          /* já existia, mantém o espaçamento horizontal/vertical */
  padding: 20px;      /* adiciona espaçamento interno na grid */
}

.card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 6px 20px var(--card-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 5px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.card h3 {
  color: #7b8a76;
  margin-bottom: 10px;
}

.card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.4;   /* aumenta legibilidade */
  margin: 0;
}


/* ================= GALERIA ================= */
.galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap:15px; justify-items: center; }
.galeria img {
  width:100px; height:100px; object-fit:cover; border-radius:50%; cursor:pointer;
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}
.galeria img:hover { transform:scale(1.1); box-shadow:0 6px 20px rgba(0,0,0,0.3); filter: brightness(1.1); }

/* ================= MODAL ================= */
.modal {
  display:none;
  position:fixed;
  z-index:1000;
  padding-top:60px;
  left:0;
  top:0;
  width:100%;
  height:100%;
  overflow:auto;
  background-color: rgba(0,0,0,0.85);
}
.modal.active { display:block; }
.modal img { display:block; margin:auto; max-width:80%; max-height:70%; border-radius:15px; box-shadow:0 10px 30px rgba(0,0,0,0.4); }
.modal .caption { text-align:center; color:#fff; margin-top:10px; font-size:1.1rem; }
.modal .close { position:absolute; top:20px; right:35px; color:#fff; font-size:40px; text-decoration:none; font-weight:bold; cursor:pointer; }
.modal .close:hover { color:#bbb; }
.modal .nav { position:absolute; top:50%; color:#fff; font-size:50px; text-decoration:none; font-weight:bold; padding:10px; background: rgba(0,0,0,0.3); border-radius:50%; transform:translateY(-50%); cursor:pointer; transition: background 0.3s; }
.modal .nav:hover { background: rgba(0,0,0,0.6); }
.modal .prev { left:15px; } 
.modal .next { right:15px; }

/* ================= GOOGLE MAPS ================= */
.map-container {
  position: relative; /* faz o overlay se posicionar dentro do container */
  max-width: 600px;   /* opcional, ajusta o tamanho do mapa */
  margin: auto;       /* centraliza horizontalmente */
}

#mapOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: rgba(0,0,0,0.2); /* opcional para teste */
}

/* ================= CONTATO ================= */
.socials { display:flex; justify-content:center; gap:20px; flex-wrap:wrap; margin-top:30px; }
.socials img { width:50px; height:50px; border-radius:50%; transition: transform 0.3s, box-shadow 0.3s; }
.socials img:hover { transform: scale(1.2); box-shadow:0 4px 15px rgba(0,0,0,0.3); }


/* ================= FOOTER ================= */
footer {
  background: #111;
  color: #eee;
  padding: 40px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer-section h3, 
.footer-section h4 {
  margin-bottom: 10px;
  color: #fff;
}

.footer-section p, 
.footer-section ul {
  font-size: 14px;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a,
.footer-section a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 20px;
  padding-top: 15px;
  font-size: 13px;
  color: #aaa;
}

/* ================= BOOK ================= */

.book-btn {
  display: inline-block;
  background: #e63946; /* vermelho elegante */
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  margin: 5px;
}

.book-btn:hover {
  background: #c91832;
}

.book-now {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ================= REVIEW ================= */

.review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4b400; /* dourado Google-style */
  color: #111;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  margin: 5px;
  font-size: 16px;
}

.review-btn:hover {
  background: #dba600;
  transform: scale(1.04);
}

.star-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ================= TEMA ESCURO ================= */
body.dark { 
  --bg-color:#121212; 
  --text-color:#f0f0f0; 
  --card-bg:#1e1e1e; 
  --card-shadow: rgba(0,0,0,0.5); 
  --link-color:#ccc; 
  --link-hover:#a3c9a8; 
}

/* Overlay e texto header dark mode — contraste melhorado */
body.dark header .header-overlay {
  background: rgba(0,0,0,0.75); /* mais escuro */
}
body.dark header h1,
body.dark header p {
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8); /* sombra mais forte */
}

/* ================= RESPONSIVIDADE ================= */
@media (max-width:768px){
  section h2{font-size:1.5rem;} 

  /* Navbar mais enxuta */
  nav { display: grid; grid-template-columns: repeat(2, 1fr); }
  nav a, nav button{ margin:5px; text-align:center; }

  /* Header compacto */
  header { min-height: 35vh; padding: 30px 15px; }
  header h1 { font-size: 1.8rem; }
  header p { font-size: 1rem; }

  /* About Me responsivo */
  .about {
    display: block !important;
    padding: 20px !important;
    box-shadow: none !important;
    text-align: center;
  }
  .about img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto 20px auto !important;
    flex: none !important;
  }
  .about p {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1rem !important;
    color: var(--text-color) !important;
  }
}
@media (max-width:768px){
  nav a[href="#sobre"],
  nav a[href="#contato"],
  nav a[href="#servicos"],
  nav a[href="#fotos"] {
    display: none;
  }
}

/* ================= FORMULÁRIO ================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
  padding: 25px;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.contact-form label {
  font-weight: bold;
  color: var(--text-color);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 0px 12px 0px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  resize: none;
  transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--link-hover);
  box-shadow: 0 0 5px rgba(123, 138, 118, 0.4);
  outline: none;
}

.contact-form button {
  padding: 14px;
  background: var(--link-hover);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background: #7b8a76;
  transform: translateY(-2px);
}

/* ================= RESPONSIVIDADE ================= */
@media (max-width: 768px) {
  .contact-form {
    padding: 20px;
     margin: 15px; /* <<< dá um respiro lateral */
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
    padding: 10px;
  }

  .contact-form button {
    font-size: 0.95rem;
    padding: 12px;
  }
}
