/*
  STYLE.CSS OTIMIZADO - CHÁCARA IMPERIAL
  --------------------------------------
  Versão: 2.7
  Data: 03/07/2024
  Descrição: Abordagem definitiva com Flexbox para garantir o alinhamento do menu e ajuste final do selo.
*/

/* Reset e Variáveis Globais */
:root {
  --primary-color: #2E8B57;
  --primary-dark: #1E6B47;
  --secondary-color: #D4AF37;
  --dark-color: #333333;
  --text-color: #444444;
  --text-light: #777777;
  --white: #FFFFFF;
  --light-bg: #f9f9f9;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
  --border-radius: 8px;
  --border-radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--white);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--dark-color); line-height: 1.3; }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Botões */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
}
.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Header */
.header {
  position: relative;
  width: 100%;
  background: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
}

/* [CORREÇÃO] Layout do menu com Flexbox para alinhamento perfeito */
.menu-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-nav {
  display: contents; /* Mantém a estrutura do HTML original */
}

.menu-left, .menu-right {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 1; /* Permite que os menus ocupem espaço igual */
}

.menu-left {
  justify-content: flex-end;
}

.menu-right {
  justify-content: flex-start;
}

.logo {
  padding: 0 30px; /* Adiciona um respiro para a logo */
}

.logo-img {
  height: 75px; /* [CORREÇÃO] Logo maior */
  width: auto;
}

.menu-left a, .menu-right a {
  color: var(--dark-color);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 12px;
  position: relative;
}
.menu-left a::after, .menu-right a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}
.menu-left a:hover::after, .menu-right a:hover::after { width: 80%; }

.mobile-menu-toggle {
  display: none;
  z-index: 1002;
  cursor: pointer;
  padding: 10px;
  background: transparent;
  border: none;
}

/* Seção Sobre */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.about-text { flex: 1 1 500px; }
.signature { display: flex; align-items: center; margin-top: 30px; gap: 15px; }
.about-image { flex: 1 1 400px; display: flex; justify-content: center; align-items: center; min-height: 280px; }
.logo-history-container { position: relative; }
.logo-box {
  width: 250px;
  height: 250px;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border: 3px solid var(--primary-color);
}
.logo-img-about { width: 100%; height: auto; }

/* [CORREÇÃO] Selo posicionado no canto com transform */
.experience-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(40%, 40%); /* Move o selo para fora do canto */
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  text-align: center;
  border: 5px solid var(--white);
  z-index: 2;
}
.experience-badge span { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.experience-badge p { font-size: 0.8rem; margin: 0; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.5px; }

/* Seção "Por que nos escolher" */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.feature-card {
  background-color: var(--white);
  padding: 30px;
  text-align: center;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background-color: rgba(46, 139, 87, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.feature-card:hover .feature-icon {
  background-color: var(--primary-color);
  color: var(--white);
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* Responsividade e Menu Mobile */
@media (max-width: 992px) {
  .menu-container {
    display: flex;
    justify-content: space-between;
  }
  .main-nav .menu-left, .main-nav .menu-right { display: none; }
  .mobile-menu-toggle { display: flex; order: -1; /* Botão vem primeiro */ }
  .logo { padding: 0; }
  
  .main-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    padding: 100px 30px 30px;
    background: var(--white);
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1001;
  }
  .main-nav.active { left: 0; }
  .main-nav.active .menu-left, .main-nav.active .menu-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .main-nav.active a { font-size: 1.2rem; padding: 10px; text-align: center; }
  body.menu-open { overflow: hidden; }
}

/* Outros estilos */
.hamburger { width: 30px; height: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.hamburger span { display: block; width: 100%; height: 3px; background: var(--dark-color); border-radius: 3px; transition: all 0.3s ease-in-out; }
.hamburger.active span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }
.hero-slider { position: relative; width: 100%; height: 100vh; min-height: 600px; overflow: hidden; background-color: var(--dark-color); }
.slider-container { position: relative; height: 100%; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease-in-out; }
.slide.active { opacity: 1; }
.slide-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; position: absolute; top: 0; left: 0; z-index: 1; }
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 2; }
.slide-content { position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: var(--white); width: 90%; max-width: 800px; z-index: 3; }
.slide-content h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); margin-bottom: 20px; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); color: var(--white); }
.slide-content .subtitle { font-size: clamp(1.2rem, 3vw, 1.5rem); margin-bottom: 30px; text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); color: var(--white); }
.slider-controls { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; z-index: 10; }
.slider-dots { display: flex; margin: 0 15px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.5); margin: 0 5px; cursor: pointer; transition: all 0.3s ease; border: none; padding: 0; }
.slider-dot.active { background-color: var(--white); transform: scale(1.3); }
.prev-slide, .next-slide { background: rgba(0, 0, 0, 0.3); border: none; color: var(--white); font-size: 1.2rem; cursor: pointer; transition: background-color 0.3s ease; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.prev-slide:hover, .next-slide:hover { background-color: var(--primary-color); }
.section-padding { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag { display: inline-block; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-color); margin-bottom: 15px; font-weight: 600; }
.section-title { font-size: clamp(2.2rem, 4vw, 2.8rem); margin-bottom: 20px; }
.divider { width: 80px; height: 3px; background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); margin: 0 auto 20px; }
.section-description { max-width: 700px; margin: 0 auto; font-size: 1.1rem; color: var(--text-light); }
.structure-cards { display: grid; grid-template-columns: 1fr; gap: 40px; }
.structure-card { display: grid; grid-template-columns: 1fr; background-color: var(--white); border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s ease, transform 0.3s ease; }
.structure-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.structure-image img { width: 100%; height: 100%; object-fit: cover; }
.structure-info { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.structure-info h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--primary-dark); }
.structure-info ul { list-style: none; margin-top: 20px; }
.structure-info ul li { margin-bottom: 10px; display: flex; align-items: center; font-size: 1rem; }
.structure-info ul li i.fas { color: var(--primary-color); margin-right: 15px; }
.contact-content { display: grid; grid-template-columns: 1fr; gap: 50px; }
.info-item { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 30px; }
.info-item i.fas { width: 50px; height: 50px; background-color: rgba(46, 139, 87, 0.1); border-radius: 50%; display: flex; align-items: center; justifyContent: center; color: var(--primary-color); font-size: 1.4rem; flex-shrink: 0; }
.info-text h3 { font-size: 1.3rem; margin-bottom: 5px; }
.info-text p { color: var(--text-light); font-size: 1rem; line-height: 1.6; }
.contact-form { background-color: var(--light-bg); padding: 40px; border-radius: var(--border-radius-lg); }
.form-group { margin-bottom: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
#whatsapp-form input, #whatsapp-form textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: var(--border-radius); font-family: 'Poppins', sans-serif; font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; background-color: var(--white); }
#whatsapp-form input:focus, #whatsapp-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.2); }
#whatsapp-form textarea { min-height: 140px; resize: vertical; }
.footer { background-color: var(--dark-color); padding: 40px 0; text-align: center; color: rgba(255, 255, 255, 0.7); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 993px) {
  .structure-card { grid-template-columns: 1fr 1fr; }
  .structure-card:nth-child(even) .structure-image { order: 2; }
  .contact-content { grid-template-columns: 1fr 1.2fr; }
}
@media (max-width: 767px) {
  .section-padding { padding: 80px 0; }
  .about-content { text-align: center; gap: 40px; }
  .about-text { order: 2; }
  .about-image { order: 1; }
  .logo-history-container { margin-bottom: 20px; }
  .signature { justify-content: center; }
  .logo-box { width: 200px; height: 200px; }
  .experience-badge { width: 90px; height: 90px; right: -20px; bottom: -15px; }
  .experience-badge span { font-size: 2rem; }
  .experience-badge p { font-size: 0.7rem; }
}
