/*
Theme Name: LMS Visão Imobiliária
Theme URI: https://www.lmsvisaoimoveis.com.br/
Author: LMS Visão / Você
Author URI: https://www.lmsvisaoimoveis.com.br/
Description: Tema WordPress customizado para imobiliária, com CPT de Imóveis, filtros, contato e layout responsivo.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lmsvisao
Tags: real-estate, responsive, custom-post-types, accessibility-ready
*/

/* Paleta base - LMS Visão Seguros */
:root {
  --primary: #0659af; /* azul banner/hero */
  --primary-dark: #044a8a;
  --primary-light: #0166cc; /* azul nav/topo */
  --primary-contrast: #ffffff;
  --secondary: #00a86b; /* verde para botões (como no site de seguros) */
  --secondary-dark: #008556;
  --secondary-light: #34ce57;
  --accent: #0166cc;
  --accent-light: #3d8fe6;
  --bg: #f8f9fa; /* background claro principal */
  --bg-white: #ffffff; /* background branco alternado */
  --bg-alt: #f8f9fa;
  --text: #212529;
  --text-light: #495057;
  --muted: #6c757d;
  --border: #dee2e6;
  --footer-dark: #212529; /* footer com menus */
  --footer-copyright: #1a1e21; /* copyright */
  --shadow-sm: 0 2px 8px rgba(6,89,175,.08);
  --shadow-md: 0 4px 16px rgba(6,89,175,.12);
  --shadow-lg: 0 10px 30px rgba(6,89,175,.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset e base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; margin: 0 auto; }
.container .center-content {
  width: min(1100px, 92%);
  margin: 0 auto;
}
.center-content {
  width: min(1100px, 92%);
  margin: 0 auto 4rem auto;
}
.actions.center-content-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0;
}
.grid { display: grid; gap: 1.25rem; }
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--primary-contrast);
  padding: .875rem 1.75rem;
  border-radius: .5rem;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.btn.secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}
.btn.secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
}

/* Actions (button groups) */
.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Header Top - Barra superior azul com contatos */
.header-top {
  background-color: var(--primary);
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.875rem;
}
.header-top-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.header-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.header-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.header-contact-item:hover {
  opacity: 0.8;
  color: #ffffff;
}
.header-contact-item svg {
  flex-shrink: 0;
}
.icon-email {
  font-size: 1rem;
}
.header-social {
  display: flex;
  gap: 12px;
}
.header-top .social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: var(--transition);
}
.header-top .social-icon:hover {
  background-color: #ffffff73;
  transform: translateY(-2px);
}
.header-top .social-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.header-top .social-icon:hover img {
  filter: none;
}

/* Responsivo - Tablet e Desktop */
@media (min-width: 768px) {
  .header-top-content {
    flex-direction: row;
    justify-content: space-between;
  }
  .header-contact {
    flex-direction: row;
    gap: 24px;
  }
}

/* Header - Fundo branco */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.site-header .inner {
  padding: .875rem 0;
  transition: padding 0.3s ease;
}
.site-header .inner .center-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header.scrolled .inner {
  padding: .625rem 0;
}
.site-logo {
  height: 45px;
  transition: height 0.3s ease;
}
.site-header.scrolled .site-logo {
  height: 40px;
}
.main-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.main-nav ul {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li {
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 600;
  font-size: .95rem;
  color: #333333; /* Links pretos no header branco */
  transition: color 0.2s ease;
  text-decoration: none;
  position: relative;
  padding-bottom: .25rem;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.main-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}
.main-nav a:hover::after {
  width: 100%;
}

/* Hero - Azul #0659af */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  padding: 0 0 2rem;

  /* Background azul #0659af com gradiente sutil */
  background:
    linear-gradient(135deg, rgba(6, 89, 175, 0.95) 0%, rgba(4, 74, 138, 0.98) 100%),
    url('assets/images/hero-bg.jpg') center center / cover no-repeat;

  background-color: var(--primary); /* #0659af */
  background-size: cover;
}

/* Padrão de overlay para textura sutil */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.025) 2px,
      rgba(255, 255, 255, 0.025) 4px
    );
  pointer-events: none;
  opacity: 0.3;
}

.hero .container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  padding: 0 1.5re  m;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 300;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-align: left;
}

/* Destaque no título */
.hero h1 strong,
.hero h1 .highlight {
  color: #ffffff;
  font-weight: 700;
  display: block;
  font-size: 1.1em;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1rem 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  max-width: 700px;
  text-align: left;
}

.hero .actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Botões do hero - Verde #00a86b (estilo site de seguros) */
.hero .btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid transparent;
  text-transform: none;
  letter-spacing: 0.02em;
}

.hero .btn {
  background: var(--secondary); /* #00a86b verde */
  color: #ffffff;
}

.hero .btn:hover {
  transform: translateY(-2px);
  background: #008556;
  text-decoration: none;
}

.hero .btn.secondary {
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  box-shadow: none;
}

.hero .btn.secondary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #07529b;
  transform: translateY(-2px);
}

/* Formulário de busca integrado ao hero */
.hero .filters {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  margin: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  position: relative;
  border: none;
}

.hero .filters h3 {
  color: var(--text);
  font-size: 1.5rem;
  margin: 0 0 1.75rem 0;
  font-weight: 700;
  text-align: left;
}

/* Tabs Comprar/Alugar (estilo Lopes) */
.filter-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid #e8eef4;
}

.filter-tab {
  padding: 0.875rem 2rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.filter-tab.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

.filter-tab:hover {
  color: var(--text);
}

/* Inputs dentro do hero */
.hero .filters input[type="text"],
.hero .filters select {
  padding: 1rem 1.25rem;
  border: 2px solid #e8eef4;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--text);
}

.hero .filters input[type="text"]:focus,
.hero .filters select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 101, 183, 0.1);
}

.hero .filters .btn {
  background: var(--secondary); /* Verde #00a86b */
  padding: 1rem 3rem;
  border-radius: 10px;
  border: 3px solid var(--secondary);
}

.hero .filters .btn:hover {
  background: var(--secondary-dark); /* #008556 */
  border-color: var(--secondary-dark);
}

/* Responsivo */
@media (max-width: 968px) {
  .hero {
    min-height: auto;
    padding: 3rem 0 2rem;
  }

  .hero h1,
  .hero p {
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .actions {
    justify-content: center;
  }

  .hero .filters {
    padding: 2rem 1.5rem;
  }

  .hero .filters h3 {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero .actions {
    flex-direction: column;
    width: 100%;
  }

  .hero .btn {
    width: 100%;
  }

  .filter-tabs {
    justify-content: space-around;
  }

  .filter-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .hero .filters {
    padding: 1.5rem 1.25rem;
  }
}

/* Cards de imóveis */
.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background:#fff; border:1px solid #e8eef4; border-radius:.75rem; overflow:hidden; display:flex; flex-direction:column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,76,129,.12); }
.card .card-image-wrapper { position: relative; display: block; overflow: hidden; }
.card .card-image-wrapper:hover .thumb { transform: scale(1.05); }
.card .thumb { aspect-ratio: 16/10; background:#dfe7ef; object-fit:cover; width: 100%; transition: transform .3s ease; }
.card .content { padding: .9rem; display:flex; flex-direction:column; gap:.5rem; }
.price { font-weight: 800; color: var(--secondary); font-size: 1.1rem; }
.meta { color: var(--muted); font-size: .92rem; display:flex; gap:.6rem; flex-wrap:wrap; }

/* Badge de finalidade (Venda/Locação) */
.badge-finalidade {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .4rem .9rem;
  border-radius: .35rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .75px;
  z-index: 10;
  text-decoration: none !important;
}
.badge-venda {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(39, 174, 96, .4);
}
.badge-locacao {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(15, 76, 129, .4);
}
/* Badge em contexto inline (single-imovel) */
.meta .badge-venda,
.meta .badge-locacao {
  position: static;
  box-shadow: none;
  display: inline-block;
  margin-right: .5rem;
}

/* Listagem e filtros - Modernizado */
.filters {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
  border: 2px solid #e8eef4;
  border-radius: 1rem;
  padding: 2rem;
  margin: 0 auto 3rem auto;
  position: relative;
  max-width: 1000px;
  box-shadow: 0 10px 40px rgba(15, 76, 129, 0.15);
  backdrop-filter: blur(10px);
}

/* Filtros no hero (página inicial) com margin negativo */
.hero .filters {
  margin: 0 auto 2rem auto;
}

.filters h3 {
  color: var(--primary);
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.filters form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  align-items: end;
}

.filters input[type="text"],
.filters input[type="number"],
.filters select {
  padding: .85rem 1rem;
  border: 2px solid #e8eef4;
  border-radius: .625rem;
  background: #fff;
  font-size: .95rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.05);
}

.filters input[type="text"]:focus,
.filters input[type="number"]:focus,
.filters select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.filters input[type="text"]::placeholder,
.filters input[type="number"]::placeholder {
  color: var(--muted);
}

.filters .btn {
  padding: .85rem 2rem;
  white-space: nowrap;
}

.filters .full {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .filters {
    margin: 1rem auto 2rem auto;
    padding: 1.5rem;
  }

  .filters form {
    grid-template-columns: 1fr;
  }

  .filters .btn {
    width: 100%;
  }
}

/* Single Imóvel - Carrossel */
.carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  background: #f5f5f5;
}
.carousel-track {
  display: flex;
  gap: 8px;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  padding: 0 calc(50vw - 50%);
}
.carousel-slide {
  flex: 0 0 calc(33.333% - 6px);
  min-width: 280px;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: #e0e0e0;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.95);
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 10;
}
.carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.carousel-btn-prev { left: 20px; }
.carousel-btn-next { right: 20px; }
@media (max-width: 900px) {
  .carousel-slide { flex: 0 0 calc(50% - 4px); min-width: 200px; }
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-btn-prev { left: 10px; }
  .carousel-btn-next { right: 10px; }
}
@media (max-width: 600px) {
  .carousel-slide { flex: 0 0 85%; min-width: 0; }
  .carousel-track { gap: 10px; }
}

.details { display:grid; grid-template-columns: 2fr 1fr; gap:1.25rem; margin: 1rem 0; }
@media (max-width: 900px) { .details { grid-template-columns: 1fr; } }

.badge { display:inline-block; padding:.25rem .5rem; border-radius:.4rem; font-size:.8rem; background:#eef5ff; color: var(--primary); font-weight:700; }
.status-vendido { background:#ffecec; color:#b21e2b; }
.status-locado { background:#e6fff5; color:#0b7a55; }

/* Footer */

/* Footer Main - Menus e Endereço (#212529) */
.footer-main {
  background: var(--footer-dark); /* #212529 */
  color: #adb5bd;
  padding: 3rem 0 2rem;
}

.footer-main strong {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.footer-main a {
  color: #adb5bd;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-main a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-main .whatsapp-link {
  color: var(--secondary) !important; /* Verde #00a86b */
}

.footer-main .whatsapp-link:hover {
  color: var(--secondary-light) !important;
}

/* Footer Social Icons */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-social .social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social .social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-social .social-icon__img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.footer-social .social-icon__img.instagram {
  width: 20px;
  height: 20px;
}

/* Footer Copyright (#1a1e21) */
.footer-copyright {
  background: #1a1e21; /* #1a1e21 */
  color: #dee2e6;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright p {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Formulários */
form .row { display:grid; grid-template-columns: repeat(2,1fr); gap:.75rem; }
form .row.full { grid-template-columns: 1fr; }
input, select, textarea { width:100%; padding:.65rem .75rem; border:1px solid #d0d7de; border-radius:.5rem; background:#fff; }
label { font-weight:600; font-size:.95rem; }
button[type="submit"] { cursor:pointer; }

/* Utilitários */
.mt-1{margin-top:.5rem} .mt-2{margin-top:1rem} .mt-3{margin-top:1.5rem}
.mb-1{margin-bottom:.5rem} .mb-2{margin-bottom:1rem} .mb-3{margin-bottom:1.5rem}
.text-center{text-align:center}

/* Placeholder de logo */
.logo-placeholder { width:160px; height:40px; background:linear-gradient(90deg, #e9eef5, #dce5f0); border-radius:.4rem; }

/* Botão flutuante WhatsApp */
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  font-size: 22px;
  text-decoration: none;
  z-index: 9999;
}
.floating-whatsapp:hover { filter: brightness(1.05); text-decoration: none; }

/* Service Cards */
.service-card {
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: .75rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15,76,129,.1);
}
.service-icon {
  font-size: 3rem;
  margin-bottom: .75rem;
}
.service-card h3 {
  color: var(--primary);
  margin: .5rem 0;
  font-size: 1.2rem;
}
.service-card p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* Feature Box */
.feature-box {
  background: #fff;
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.feature-box h4 {
  color: var(--primary);
  margin: 0 0 .5rem 0;
  font-size: 1.1rem;
}
.feature-box p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

/* FAQ */
.faq-item {
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: .5rem;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  cursor: pointer;
}
.faq-item summary {
  font-weight: 600;
  color: var(--primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-content {
  padding-top: .75rem;
  color: var(--text);
  line-height: 1.6;
}

/* Testimonials */
.testimonial {
  background: #f7f9fc;
  border-left: 4px solid var(--accent);
  padding: 1.25rem;
  border-radius: .5rem;
  margin: 0;
  font-style: italic;
}
.testimonial p {
  margin: 0 0 .75rem 0;
  color: var(--text);
}
.testimonial strong {
  font-style: normal;
  color: var(--primary);
  font-size: .9rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(120deg, #0f4c81 0%, #0e3a63 100%);
  color: #fff;
  padding: 3rem 0;
  margin-top: 3rem;
}
.cta-section h2 {
  margin: 0 0 .5rem 0;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
}
.cta-section p {
  color: #e7edf6;
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
}

/* Page Headers */
.page-header {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 2px solid #e8eef4;
}
.page-header h1 {
  color: var(--primary);
  margin: 0 0 .5rem 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}
.page-header .lead, .page-header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}
.last-updated {
  font-size: .9rem;
  color: var(--muted);
  font-style: italic;
}

/* About Images */
.about-image {
  width: 100%;
  height: auto;
  border-radius: .75rem;
  box-shadow: 0 4px 12px rgba(6,89,175,.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(6,89,175,.15);
}
.placeholder-image {
  aspect-ratio: 4/3;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

/* Pillar Boxes (Missão, Visão, Valores) */
.pillar-box {
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: .75rem;
  padding: 1.5rem;
  text-align: center;
}
.pillar-box h3 {
  color: var(--primary);
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
}
.pillar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pillar-box ul li {
  padding: .4rem 0;
  color: var(--text);
}

/* Differential Items */
.differential-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  padding: 1.25rem;
  border-radius: .5rem;
  border: 1px solid #e8eef4;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.differential-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6,89,175,.1);
}
.diff-icon {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.differential-item > div {
  flex: 1;
}
.differential-item h4 {
  margin: 0 0 .5rem 0;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
}
.differential-item p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Forms */
.form-container {
  background: #fff;
  padding: 2rem;
  border-radius: .75rem;
  border: 1px solid #e8eef4;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-note {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .5rem;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  margin: 1rem 0;
  font-weight: 500;
}
.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Info Boxes (Sidebar) */
.info-box {
  background: #f7f9fc;
  border-left: 3px solid var(--accent);
  padding: 1.25rem;
  border-radius: .5rem;
}
.info-box h3 {
  margin: 0 0 .75rem 0;
  font-size: 1.1rem;
  color: var(--primary);
}
.info-box p {
  margin: .5rem 0;
  font-size: .9rem;
  line-height: 1.6;
}
.info-box ul {
  list-style: none;
  padding: 0;
  margin: .5rem 0;
}
.info-box ul li {
  padding: .3rem 0;
  font-size: .9rem;
}

/* Process Steps */
.process-step {
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: .75rem;
  padding: 1.5rem;
  text-align: center;
  position: relative;
}
.step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.process-step h4 {
  color: var(--primary);
  margin: .5rem 0;
  font-size: 1.1rem;
}
.process-step p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(120deg, #f7f9fc 0%, #e8eef4 100%);
  padding: 2rem;
  border-radius: .75rem;
  border: 1px solid #d0d7de;
}
.cta-box h3 {
  color: var(--primary);
  margin: 0 0 .5rem 0;
}
.cta-box p {
  color: var(--muted);
  margin: 0 0 1rem 0;
}

/* FAQ Filter */
.faq-filter {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-btn {
  padding: .5rem 1rem;
  border: 1px solid #d0d7de;
  background: #fff;
  border-radius: .5rem;
  cursor: pointer;
  transition: all .2s ease;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.category-title {
  color: var(--primary);
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem 0;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
}

/* Corretor Cards */
.corretor-card {
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: .75rem;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.corretor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15,76,129,.1);
}
.corretor-photo {
  background: #e8eef4;
  aspect-ratio: 1;
  overflow: hidden;
}
.corretor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.placeholder-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, #e8eef4, #d0d7de);
}
.corretor-info {
  padding: 1.25rem;
}
.corretor-info h3 {
  margin: 0 0 .5rem 0;
  color: var(--primary);
  font-size: 1.2rem;
}
.corretor-info .creci {
  font-size: .85rem;
  color: var(--muted);
  margin: .25rem 0;
}
.corretor-info .especialidade {
  margin: .5rem 0;
}
.corretor-bio {
  color: var(--text);
  font-size: .9rem;
  line-height: 1.6;
  margin: .75rem 0;
}
.corretor-contact {
  font-size: .9rem;
}
.corretor-contact p {
  margin: .4rem 0;
}
.corretor-contact a {
  color: var(--primary);
  text-decoration: none;
}
.corretor-contact a:hover {
  text-decoration: underline;
}

/* Legal Pages */
.legal-content {
  font-size: 1rem;
  line-height: 1.8;
}
.legal-content h2 {
  color: var(--primary);
  margin: 2rem 0 1rem 0;
  font-size: 1.6rem;
}
.legal-content h3 {
  color: var(--primary);
  margin: 1.5rem 0 .75rem 0;
  font-size: 1.3rem;
}
.legal-content ul, .legal-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}
.legal-content li {
  margin: .5rem 0;
}
.legal-nav {
  background: #f7f9fc;
  padding: 1.5rem;
  border-radius: .5rem;
  border: 1px solid #e8eef4;
}
.legal-nav h3 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.1rem;
}
.legal-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.legal-nav ul li {
  margin: .5rem 0;
}
.legal-nav ul li a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.legal-nav ul li a:hover {
  text-decoration: underline;
}

/* Button Variants */
.btn-small {
  padding: .5rem .85rem;
  font-size: .9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.8rem;
  }
  .differential-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .diff-icon {
    font-size: 2rem;
    margin-bottom: .5rem;
  }
  .form-container {
    padding: 1.25rem;
  }

  /* Melhorar grids em mobile */
  .grid {
    grid-template-columns: 1fr !important;
  }

  /* Botões e actions em mobile */
  .actions {
    flex-direction: column;
    width: 100%;
    justify-content: center;
  }
  .actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   PÁGINA DE CONTATO
   ============================================ */

/* Contact Info Cards */
.contact-info-cards { margin: 1rem 0; }

.contact-card {
  background: #fff;
  border: 2px solid #e8eef4;
  border-radius: .75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all .3s ease;
}

.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(15,76,129,.15);
}

.contact-card.highlight {
  background: linear-gradient(135deg, #0f4c81 0%, #0e3a63 100%);
  color: #fff;
  border-color: var(--primary);
}

.contact-card.highlight h3,
.contact-card.highlight p,
.contact-card.highlight strong {
  color: #fff;
}

.contact-card.highlight .btn {
  background: #fff;
  color: var(--primary);
}

.contact-card.highlight .btn:hover {
  background: #f0f0f0;
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  color: var(--primary);
  margin: .5rem 0;
  font-size: 1.3rem;
}

.contact-card p {
  margin: .5rem 0;
  font-size: .95rem;
}

.contact-card p.small {
  font-size: .85rem;
  color: var(--muted);
}

.contact-card.highlight p.small {
  color: rgba(255,255,255,.8);
}

.contact-card strong {
  font-size: 1rem;
  color: var(--text);
}

/* Contact Sidebar */
.contact-sidebar { position: relative; }

.social-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: .5rem;
  color: var(--text);
  text-decoration: none;
  transition: all .2s ease;
}

.social-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  text-decoration: none;
}

.social-btn span {
  font-size: 1.2rem;
}

/* Map Container */
.map-container { border-radius: .75rem; overflow: hidden; }

#contact-map iframe {
  display: block;
}

/* Responsividade Página Contato */
@media (max-width: 900px) {
  .contact-info-cards .grid {
    grid-template-columns: 1fr !important;
  }

  .page-contato .grid {
    grid-template-columns: 1fr !important;
  }

  .contact-card {
    padding: 1.5rem 1rem;
  }
}


/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, .4);
  text-decoration: none;
}

.whatsapp-float svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}

@keyframes pulse-whatsapp {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.aos-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.aos-init.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Adiciona delay progressivo para cards */
.grid .aos-init:nth-child(1) { transition-delay: 0.1s; }
.grid .aos-init:nth-child(2) { transition-delay: 0.2s; }
.grid .aos-init:nth-child(3) { transition-delay: 0.3s; }
.grid .aos-init:nth-child(4) { transition-delay: 0.4s; }
.grid .aos-init:nth-child(5) { transition-delay: 0.5s; }
.grid .aos-init:nth-child(6) { transition-delay: 0.6s; }

/* ============================================
   FORM ERROR STATES
   ============================================ */

input.error,
select.error,
textarea.error {
  border-color: var(--secondary);
  background-color: #fff5f5;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ============================================
   IMPROVED MOBILE NAVIGATION
   ============================================ */

@media (max-width: 768px) {
  /* Header Top responsivo */
  .header-top {
    padding: 6px 0;
    font-size: 0.75rem;
  }
  .header-contact-item span {
    display: none;
  }
  .header-contact-item svg {
    width: 24px;
    height: 24px;
  }
  .header-social {
    display: none;
  }

  .main-nav {
    flex-direction: column;
    gap: 0;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .main-nav a {
    padding: .75rem 1rem;
    display: block;
    border-bottom: 1px solid #e8eef4;
    color: var(--text) !important;
    font-weight: 600;
  }

  .main-nav a:hover {
    background: #f5f8fa;
    color: var(--primary) !important;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  /* Menu Toggle Button */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333333;
    padding: .5rem;
    transition: opacity 0.2s ease;
  }

  .menu-toggle:hover {
    opacity: 0.8;
  }

  .site-header .menu-toggle {
    display: block;
    color: #333333;
  }

  .menu-toggle .menu-icon {
    display: block;
    font-size: 1.75rem;
    line-height: 1;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }

  .main-nav {
    display: flex !important;
  }
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   BLOG STYLES
   ============================================ */

.blog-card {
  background: var(--bg-white);
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card .post-thumbnail {
  display: block;
  overflow: hidden;
  position: relative;
}

.blog-card .post-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover .post-thumbnail::after {
  opacity: 1;
}

.blog-card .post-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
  transition: transform 0.3s ease;
}

.blog-card:hover .post-img {
  transform: scale(1.05);
}

.blog-card .post-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.post-date::before {
  content: '📅 ';
}

.post-category a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.post-category a:hover {
  text-decoration: underline;
}

.post-title {
  font-size: 1.25rem;
  margin: 0 0 .75rem 0;
  line-height: 1.3;
}

.post-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: var(--primary);
  text-decoration: none;
}

.post-excerpt {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.read-more:hover {
  color: var(--primary-dark);
  text-decoration: none;
  transform: translateX(3px);
}

/* Blog Sidebar */
.sidebar-widget {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: .75rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: 2px solid var(--primary);
  padding-bottom: .5rem;
}

.category-list,
.recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li,
.recent-posts-list li {
  margin-bottom: .75rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.category-list li:last-child,
.recent-posts-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.category-list a,
.recent-posts-list a {
  color: var(--text);
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.category-list a:hover,
.recent-posts-list a:hover {
  color: var(--primary);
  text-decoration: none;
}

.category-list .count {
  color: var(--muted);
  font-size: .9rem;
  float: right;
}

.recent-posts-list .date {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-top: .25rem;
}

.cta-widget {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.cta-widget h3,
.cta-widget p {
  color: white;
}

.cta-widget .btn-small {
  background: white;
  color: var(--primary);
}

.cta-widget .btn-small:hover {
  background: var(--bg);
}

/* Pagination */
.pagination {
  text-align: center;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: .5rem 1rem;
  background: var(--bg-white);
  border-radius: .375rem;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.pagination a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  text-decoration: none;
}

.pagination .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Blog Responsive */
@media (max-width: 768px) {
  .blog-card .post-content {
    padding: 1.25rem;
  }

  .post-title {
    font-size: 1.1rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .site-header,
  .site-footer,
  .whatsapp-float,
  .btn,
  form {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card,
  .service-card,
  .feature-box {
    border: 1px solid #ddd;
    box-shadow: none;
    page-break-inside: avoid;
  }
}
