/* 
   Estate Connect - Style System
   Organized by: Reset, Theme, Components, Layout, Responsive
*/

/* --- Reset & Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0d2c54;
  --secondary-color: #1a4b8c;
  --accent-color: #2f2f49;
  --accent-light: #3c3c5f;
  --text-dark: #333;
  --text-muted: #555;
  --text-light: #777;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
}

h1 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
  line-height: 1.2;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent-color);
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

section:nth-child(even) {
  background-color: var(--bg-light);
}

/* --- Components --- */
.botao-destaque,
.cta-principal,
.botao-enviar,
.botao-whatsapp {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  border-radius: 2px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

.botao-destaque:hover,
.cta-principal:hover,
.botao-enviar:hover {
  background: linear-gradient(90deg, #0a2342, #153e75);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.botao-whatsapp {
  background: linear-gradient(90deg, #25d366, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.botao-whatsapp:hover {
  background: linear-gradient(90deg, #1da851, #0e6d61);
}

i {
  font-style: normal;
}

.cta-principal {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 40px;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 47, 73, 0.2);
  margin-top: 35px;
  width: auto;
  min-width: 250px;
  text-align: center;
}

.cta-principal:hover {
  background: var(--accent-light);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(47, 47, 73, 0.3);
}

/* --- Layout Sections --- */

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 90px;
  display: flex;
  align-items: center;
}

header.scrolled {
  height: 70px;
}

header.header {
  padding: 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-img {
  height: 40px;
  width: auto;
  transition: all 0.5s ease;
}

.logo-img2 {
  height: 200px;
  width: auto;
  transition: all 0.5s ease;
  opacity: 1;
}

header.scrolled .logo-img2 {
  opacity: 0;
  width: 0;
  margin: 0;
  pointer-events: none;
}

header.scrolled .logo-img {
  height: 35px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
}

header nav {
  margin-left: 40px;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

header nav ul li a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary-color);
  position: relative;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

header nav ul li a:hover::after {
  width: 100%;
}

header nav ul li a {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-color);
  transition: var(--transition);
  white-space: nowrap;
}

/* Header controls group (hamburger only) */
.header-controls {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 20px;
  z-index: 1002;
}

.lang-toggle {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-color);
  background: transparent;
  border: 1.5px solid rgba(47, 47, 73, 0.3);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Banner */
.banner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 20px 40px;
}

.banner .cta-principal {
  margin-top: 10px;
}

.banner .img-main {
  margin: 22px;
  height: 250px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.banner h1,
.banner h2,
.banner p {
  color: white;
  max-width: 800px;
}

.banner h1 {
  margin-bottom: -35px;
}

.banner h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 0;
}

.banner h2::after {
  display: none;
}

.banner p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Sobre Nós */
.sobre {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sobre h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.sobre p {
  max-width: 800px;
  margin: 0 auto 50px;
}

.valores {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.valor {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  transition: var(--transition);
}

.valor:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.valor h3 {
  color: var(--accent-color);
}

/* Público Alvo */
.publico-alvo {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.publico-alvo h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.cards-publico {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;
}

.card {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  background-color: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  padding: 20px 20px 10px;
  font-size: 1.2rem;
}

.card p {
  padding: 0 20px 20px;
  font-size: 0.9rem;
}

/* Diferenciais */
.diferenciais {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.diferenciais h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.servico {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.servico:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.servico i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

/* Icons via Font Awesome Classes */
.icone-curadoria::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.icone-consultoria::before {
  content: "\f0ad";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.icone-negociacao::before {
  content: "\f4c4";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.icone-gestao::before {
  content: "\f0ae";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.icone-vistoria::before {
  content: "\f06e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.icone-concierge::before {
  content: "\f2bd";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Jornada */
.jornada {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jornada h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 50px auto 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--accent-color)
  );
  transform: translateX(-50%);
}

.etapa {
  position: relative;
  width: calc(50% - 40px);
  padding: 20px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  transition: var(--transition);
  text-align: left;
}

.etapa:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.etapa:nth-child(odd) {
  margin-left: auto;
}

.etapa:nth-child(odd)::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -40px;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.etapa:nth-child(even)::before {
  content: "";
  position: absolute;
  top: 20px;
  right: -40px;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.numero {
  position: absolute;
  top: 10px;
  width: 40px;
  height: 40px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  z-index: 1;
}

.etapa:nth-child(odd) .numero {
  left: -60px;
}

.etapa:nth-child(even) .numero {
  right: -60px;
}

/* Depoimentos */
.depoimentos {
  text-align: center;
}

.depoimentos h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.slider-depoimentos {
  max-width: 800px;
  margin: 50px auto 0;
}

.depoimento {
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.depoimento p {
  font-style: italic;
  font-size: 1.1rem;
  position: relative;
  padding: 0 20px;
}

.depoimento p::before,
.depoimento p::after {
  content: '"';
  font-size: 2rem;
  color: var(--accent-color);
  position: absolute;
}

.depoimento p::before {
  left: 0;
  top: -10px;
}

.depoimento p::after {
  right: 0;
  bottom: -20px;
}

.cliente {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
}

.cliente img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.cliente h4 {
  margin-bottom: 5px;
}

.cliente p {
  font-style: normal;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Contato */
.contato {
  text-align: center;
}

.contato h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.contato > p {
  max-width: 700px;
  margin: 0 auto 50px;
}

.contato-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.formulario {
  flex: 1;
  min-width: 300px;
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.campo {
  margin-bottom: 20px;
}

.campo label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 44, 84, 0.1);
}

.campo textarea {
  min-height: 120px;
  resize: vertical;
}

.botao-enviar {
  width: 100%;
  font-size: 1rem;
}

.whatsapp-direto {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.whatsapp-direto h3,
.whatsapp-direto p {
  color: white;
}

.whatsapp-direto h3 {
  font-size: 1.8rem;
}

.botao-whatsapp {
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.icone-whatsapp::before {
  content: "\f232";
  font-family: "Font Awesome 6 Brands";
  font-size: 1.2rem;
}

.nota {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px;
  margin-bottom: 40px;
}

.coluna {
  flex: 1;
  min-width: 250px;
}

.coluna h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

.coluna p,
.coluna a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.coluna p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.redes-sociais {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.rede-social {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.rede-social:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.coluna nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.coluna ul li {
  margin-bottom: 10px;
}

.coluna ul li a {
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-block;
}

.coluna ul li a:hover {
  color: var(--accent-light);
  transform: translateX(5px);
}

.icone-email::before {
  content: "\f0e0";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.icone-telefone::before {
  content: "\f095";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.icone-endereco::before {
  content: "\f3c5";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.icone-instagram::before {
  content: "\f16d";
  font-family: "Font Awesome 6 Brands";
}
.icone-linkedin::before {
  content: "\f0e1";
  font-family: "Font Awesome 6 Brands";
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* --- Responsiveness --- */
@media (max-width: 1200px) {
  header nav ul {
    gap: 15px;
  }
}

@media (max-width: 992px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  .timeline::before { left: 40px; }
  .etapa {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
  .etapa::before { left: -40px !important; right: auto !important; }
  .etapa .numero { left: -60px !important; right: auto !important; }
  
  /* Reduction for tablet horizontal menu */
  header nav ul li a {
    font-size: 0.8rem;
  }
}

/* Hamburguer Breakpoint: 768px and below */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  header nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    margin: 0;
    padding: 20px;
  }

  header nav.active {
    transform: translateY(0);
  }

  header nav ul {
    flex-direction: column;
    gap: 25px;
  }

  header nav ul li a {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
  }

  header nav ul li a::after {
    display: none;
  }

  header { padding: 0 15px; }
  .logo-img { height: 35px; }
  .logo-img2 { height: 100px; }
  section { padding: 60px 0; }
  h1 { font-size: 2.2rem; }
}

@media (max-width: 576px) {
  h2 { font-size: 1.6rem; }
  .banner { height: 80vh; }
  .banner h1 { font-size: 1.4rem; }
  .banner .img-main { height: 100px; }
  
  .cta-principal {
    padding: 14px 20px;
    font-size: 0.85rem;
    min-width: 0;
    width: 90%;
    margin-top: 20px;
  }

  .formulario, .whatsapp-direto { padding: 25px 15px; }
  .valores, .cards-publico, .servicos-grid { gap: 15px; }
}
