/* ==========================================================================
   CSS REFINADO: Alinhamentos Corrigidos e Maximização de Contraste
   ========================================================================== */

:root {
  --bg-light: #f9faf9;         
  --bg-white: #ffffff;         
  --bg-soft-gray: #f2f4f2;     
  --text-dark-slate: #1c2620;  
  --text-dark-muted: #536358;  
  --text-white: #ffffff;
  --crimson: #9e1b2a;          
  --font-title: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: var(--font-body); font-size: 15px; line-height: 1.6; background: var(--bg-light); color: var(--text-dark-slate); scroll-behavior: smooth; }

/* Tipografia Fina e Polida */
h1, h2, h3, .font-title { font-family: var(--font-title); font-weight: 300; letter-spacing: 3px; }
.section-title { font-size: 2.1rem; margin-bottom: 12px; text-transform: uppercase; font-weight: 300; }
.title-jumbo { font-size: 3.5rem; line-height: 1.2; text-transform: uppercase; font-weight: 300; }
.subtitle { max-width: 650px; font-size: 1.1rem; font-weight: 400; line-height: 1.7; }

.text-center { text-align: center; }
.text-justify { text-align: justify; } 
.text-large { font-size: 1.15rem; font-weight: 300; }
.text-medium { font-size: 1.2rem; margin-bottom: 12px; font-weight: 400; }
.text-small { font-size: 0.9rem; }
.text-white { color: var(--text-white) !important; }
.text-dark-slate { color: var(--text-dark-slate); }
.text-dark-muted { color: var(--text-dark-muted); }
.text-crimson { color: var(--crimson); }
.text-glow { text-shadow: 0 0 15px rgba(158, 27, 42, 0.6); }

/* Classes Especiais de Alinhamento Central */
.max-width-editorial { max-width: 850px; margin: auto; }
.text-center-block { text-align: center; font-size: 1.1rem; margin-bottom: 32px; font-weight: 400; color: var(--text-dark-muted); }
.text-left-elements { text-align: left; max-width: 600px; margin: auto; }

/* Correção para Forçar Centralização Absoluta de Subtítulos em Ecrãs Maiores */
.max-width {
  max-width: 700px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* Fundos Alternados Claros */
.section-padding { padding: 100px 0; }
.bg-light { background: var(--bg-light); }
.bg-white { background: var(--bg-white); }
.bg-soft-gray { background: var(--bg-soft-gray); }

/* Grid Estrutural */
.container { max-width: 1200px; margin: auto; padding: 0 24px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 32px; width: 100%; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-align-center { align-items: center; }
.flex-stretch { align-items: stretch; }
.margin-top-large { margin-top: 40px; }
.margin-bottom { margin-bottom: 24px; }
.margin-right { margin-right: 12px; }
.margin-auto { margin-auto: auto; }
.w3-card { box-shadow: 0 10px 30px rgba(28, 38, 32, 0.06); }
.block { width: 100%; }
.block-btn { display: block; text-align: center; }

/* Botões */
.btn { display: inline-block; padding: 14px 32px; font-family: var(--font-title); font-size: 0.8rem; font-weight: 400; border: none; cursor: pointer; text-decoration: none; transition: .3s ease; letter-spacing: 2px; text-transform: uppercase; }
.btn-crimson { background: var(--crimson); color: var(--text-white) !important; }
.btn-crimson:hover { background: #7a121e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(158, 27, 42, 0.3); }
.btn-muted { background: transparent; color: var(--text-dark-slate); border: 1px solid var(--text-dark-muted); }
.btn-muted:hover { background: var(--text-dark-slate); color: var(--bg-white); border-color: var(--text-dark-slate); }

/* Navbar Clara Premium */
.navbar-fixed { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(28, 38, 32, 0.06); transition: padding 0.3s; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; }
.nav-brand { font-size: 1.3rem; letter-spacing: 5px; color: var(--text-dark-slate); text-decoration: none; font-weight: 400; }
.nav-right { display: flex; gap: 28px; }
.nav-item { color: var(--text-dark-slate); text-decoration: none; font-size: 0.8rem; letter-spacing: 1px; font-weight: 500; text-transform: uppercase; transition: color .3s; }
.nav-item:hover { color: var(--crimson); }

/* Botão Hambúrguer: Visível apenas em mobile, com área de clique confortável */
.nav-hamburger {
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px;
  display: inline-block;
  text-decoration: none;
  z-index: 2002;
}

/* Sidebar Mobile: Escondida por padrão, posicionada à direita sobrepondo tudo */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-white);
  z-index: 2001;
  display: none; /* Controlado rigorosamente pelo JS */
  flex-direction: column;
  padding: 40px 24px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

/* Links dentro da Sidebar */
.sidebar-close {
  align-self: flex-end;
  color: var(--text-dark-slate);
  text-decoration: none;
  font-size: 1.1rem;
  margin-bottom: 40px;
  cursor: pointer;
  letter-spacing: 1px;
}
.sidebar a {
  color: var(--text-dark-slate);
  text-decoration: none;
  padding: 18px 0;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(28, 38, 32, 0.05);
  display: block;
}
.sidebar a:hover {
  color: var(--crimson);
}

/* Hero Principal */
.hero-container { height: 100vh; background-size: cover; background-position: center; position: relative; }
.hero-social { position: absolute; bottom: 40px; right: 5%; display: flex; gap: 24px; font-size: 1.2rem; }
.icon-hover { cursor: pointer; transition: .3s; }
.icon-hover:hover { color: var(--crimson); transform: translateY(-2px); }

/* Imagens Orgânicas da Linha Eco-Villages */
.image-eco-vintage img, .gallery-item img {
  filter: sepia(0.08) contrast(1.02) saturate(0.98);
}

/* Feature Cards & Alinhamento Central Perfeito dos Ícones */
.card-feature { background: var(--bg-white); padding: 35px 24px; border-radius: 4px; border: 1px solid rgba(28, 38, 32, 0.05); transition: .3s; }
.card-feature:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(28, 38, 32, 0.05); }

.icon-box-wrapper { display: flex; justify-content: center; width: 100%; margin-bottom: 20px; }
.icon-box { 
  width: 58px; 
  height: 58px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border-radius: 50%; 
  background: rgba(158, 27, 42, 0.05); 
}
.icon-box i { font-size: 1.5rem; line-height: 1; display: block; text-align: center; }

/* Team Cards */
.card-team { background: var(--bg-white); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; height: 100%; border: 1px solid rgba(28, 38, 32, 0.04); }
.card-img-container { width: 100%; height: 280px; overflow: hidden; }
.card-img-container img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.card-role { font-size: 0.75rem; font-weight: 500; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }

/* Módulo Estatístico */
.stat-section { padding: 60px 0; border-top: 1px solid rgba(28, 38, 32, 0.04); }
.stat-number { font-size: 2.8rem; font-weight: 300; line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-dark-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Galeria */
.gallery-item { overflow: hidden; border-radius: 4px; background: #fff; box-shadow: 0 6px 15px rgba(0,0,0,0.03); }
.img-gallery { cursor: pointer; transition: .4s; height: 250px; object-fit: cover; width: 100%; }
.img-gallery:hover { opacity: 0.85; transform: scale(1.02); }

/* Barras de Progresso */
.progress-bar-bg { background: rgba(28, 40, 33, 0.08); height: 4px; margin: 8px 0 24px 0; border-radius: 2px; }
.progress-bar { background: var(--crimson); height: 100%; border-radius: 2px; }

/* Tabelas de Preço */
.pricing-table { background: var(--bg-white); border-radius: 4px; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid rgba(28, 38, 32, 0.05); transition: transform 0.3s; }
.pricing-table:hover { transform: translateY(-4px); }
.pricing-header { padding: 24px; color: var(--text-white); font-size: 1.1rem; text-transform: uppercase; font-weight: 400; }
.bg-crimson-accent { background: var(--crimson); }
.pricing-body { padding: 32px 24px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.pricing-body p { border-bottom: 1px solid rgba(28, 38, 32, 0.04); padding-bottom: 12px; }
.price-title { font-size: 1.5rem; margin-top: 16px; font-weight: 400; }
.pricing-footer { padding: 24px; background: var(--bg-soft-gray); margin-top: auto; }
.feature-table { border: 1px solid var(--crimson); box-shadow: 0 12px 35px rgba(158, 27, 42, 0.08); }

/* Contacto & Inputs */
.contact-info p { font-size: 1.05rem; margin-bottom: 20px; }
.contact-info p i { margin-right: 14px; font-size: 1.2rem; }
.contact-form .form-input { width: 100%; padding: 15px; background: var(--bg-white); border: 1px solid rgba(28, 40, 33, 0.12); color: var(--text-dark-slate); font-family: var(--font-body); margin-bottom: 16px; border-radius: 2px; transition: .3s; }
.contact-form .form-input:focus { outline: none; border-color: var(--crimson); }
.contact-form .text-area { height: 110px; resize: vertical; }

/* Rodapé */
.footer-section { padding: 50px 24px; background: var(--bg-white); border-top: 1px solid rgba(28, 38, 32, 0.05); }
.btn-small-top { padding: 8px 20px; font-size: 0.75rem; border-radius: 2px; }
.footer-icons { display: flex; justify-content: center; gap: 36px; font-size: 1.3rem; margin-top: 40px; margin-bottom: 24px; color: var(--text-dark-slate); }

/* Modais */
.modal { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(255,255,255,0.98); z-index: 3000; display: none; padding: 24px; }
.modal-close-btn { position: absolute; top: 20px; right: 28px; font-size: 2.5rem; color: var(--text-dark-slate); cursor: pointer; }
.modal-caption { margin-top: 16px; font-size: 1rem; }

/* Animações */
.animate-top { position: relative; animation: animatetop 0.4s } @keyframes animatetop { from { top: -40px; opacity: 0 } to { top: 0; opacity: 1 } }
.animate-opacity { animation: opac 0.7s } @keyframes opac { from { opacity: 0 } to { opacity: 1 } }
.img-wrapper { overflow: hidden; border-radius: 4px; }
.img-hover-zoom { transition: transform .5s ease; }
.img-hover-zoom:hover { transform: scale(1.02); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(158, 27, 42, 0.3); } 70% { box-shadow: 0 0 0 10px rgba(158, 27, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(158, 27, 42, 0); } }
.btn-pulse { animation: pulse 2s infinite; }
.img-responsive { width: 100%; height: auto; display: block; }

@media (max-width: 767px) {
  .hide-small { display: none !important; }
  .title-jumbo { font-size: 2.2rem; }
  .section-title { font-size: 1.6rem; }
  .navbar { padding: 14px 20px; }
}
@media (min-width: 768px) and (max-width: 991px) { .hide-medium { display: none !important; } }
@media (min-width: 992px) { .hide-large { display: none !important; } }