/* ============================================================
   HouseSaas — Estilos das páginas públicas (public.css)
   Landing institucional + página da imobiliária + catálogo.
   ============================================================ */

/* Layout público */
.public-body {
  background: #ffffff;
  color: var(--hs-text);
}

/* Header institucional */
.public-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hs-border);
}

.public-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.public-header .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--hs-text);
  text-decoration: none;
}

.public-header .brand img { height: 34px; }

.public-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.public-nav a {
  color: var(--hs-text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color var(--hs-transition);
}

.public-nav a:hover { color: var(--hs-primary); }

.public-header .header-cta {
  display: flex;
  gap: 0.5rem;
}

/* Hero institucional */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto 1.25rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  color: var(--hs-text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-visual {
  margin-top: 3rem;
  border-radius: var(--hs-radius-lg);
  overflow: hidden;
  box-shadow: var(--hs-shadow-lg);
  background: var(--hs-bg);
  border: 1px solid var(--hs-border);
}

.hero-visual img { width: 100%; height: auto; }

/* Seções institucionais */
.section {
  padding: 4.5rem 0;
}

.section-alt { background: var(--hs-bg); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--hs-text-muted);
  font-size: 1rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--hs-transition), transform var(--hs-transition);
}

.feature-card:hover {
  box-shadow: var(--hs-shadow-md);
  transform: translateY(-3px);
}

.feature-card .feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--hs-radius-md);
  background: var(--hs-primary-light);
  color: var(--hs-primary-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--hs-text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Planos */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.plan-card {
  background: #ffffff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--hs-transition);
}

.plan-card:hover { box-shadow: var(--hs-shadow-md); }

.plan-card.featured {
  border: 2px solid var(--hs-primary);
  position: relative;
}

.plan-card.featured::before {
  content: "Mais popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--hs-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--hs-radius-pill);
}

.plan-card .plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.plan-card .plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hs-text);
  margin-bottom: 0.25rem;
}

.plan-card .plan-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--hs-text-muted);
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  flex: 1;
}

.plan-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--hs-text-muted);
  padding: 0.35rem 0;
}

/* Depoimentos */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  padding: 1.75rem;
}

.testimonial-card .quote {
  font-size: 0.95rem;
  color: var(--hs-text);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card .author img {
  width: 44px;
  height: 44px;
  border-radius: var(--hs-radius-pill);
  object-fit: cover;
}

.testimonial-card .author .name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card .author .role {
  font-size: 0.8rem;
  color: var(--hs-text-muted);
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: #ffffff;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 500;
  cursor: pointer;
  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.25rem;
  color: var(--hs-primary);
  transition: transform var(--hs-transition);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--hs-text-muted);
  font-size: 0.92rem;
}

/* CTA final */
.cta-band {
  background: linear-gradient(135deg, var(--hs-primary) 0%, var(--hs-secondary) 100%);
  color: #ffffff;
  border-radius: var(--hs-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-band h2 { color: #ffffff; font-size: 1.9rem; margin-bottom: 0.75rem; }
.cta-band p  { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 1.5rem; }

/* ============================================================
   Página pública da imobiliária — catálogo
   ============================================================ */

.company-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
  text-align: center;
}

.company-hero .company-logo {
  height: 64px;
  margin: 0 auto 1.25rem;
}

.company-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.company-hero p {
  color: var(--hs-text-muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.company-contact {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.company-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--hs-text);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--hs-border);
  padding: 0.5rem 1rem;
  border-radius: var(--hs-radius-pill);
  transition: all var(--hs-transition);
}

.company-contact a:hover {
  border-color: var(--hs-primary);
  color: var(--hs-primary-hover);
}

/* Busca de imóveis */
.property-search-bar {
  background: #ffffff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) auto;
  gap: 0.75rem;
  box-shadow: var(--hs-shadow-sm);
  margin: -2.5rem auto 3rem;
  max-width: 1100px;
  position: relative;
  z-index: 5;
}

.property-search-bar .form-select,
.property-search-bar .form-control {
  border-radius: var(--hs-radius-md);
}

.property-search-bar .btn-search {
  background: var(--hs-primary);
  color: #ffffff;
  padding: 0.6rem 1.5rem;
  border-radius: var(--hs-radius-md);
  border: none;
  font-weight: 600;
}

/* Grid público de imóveis */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.property-grid .property-card {
  background: #ffffff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  overflow: hidden;
  transition: transform var(--hs-transition), box-shadow var(--hs-transition);
}

.property-grid .property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hs-shadow-lg);
}

.property-grid .property-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.property-grid .property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--hs-transition);
}

.property-grid .property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-grid .property-price {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: #ffffff;
  color: var(--hs-primary-hover);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--hs-radius-pill);
  box-shadow: var(--hs-shadow-sm);
}

.property-grid .property-body {
  padding: 1rem 1.15rem;
}

.property-grid .property-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.property-grid .property-location {
  font-size: 0.85rem;
  color: var(--hs-text-muted);
  margin-bottom: 0.75rem;
}

.property-grid .property-features {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--hs-text-muted);
  border-top: 1px solid var(--hs-border);
  padding-top: 0.75rem;
}

/* Detalhe do imóvel */
.property-detail {
  padding: 3rem 0;
}

.property-detail .gallery {
  border-radius: var(--hs-radius-lg);
  overflow: hidden;
  background: var(--hs-bg);
}

.property-detail .gallery img {
  width: 100%;
  height: auto;
}

.property-detail .gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.property-detail .gallery-thumbs img {
  border-radius: var(--hs-radius-sm);
  cursor: pointer;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity var(--hs-transition);
}

.property-detail .gallery-thumbs img:hover,
.property-detail .gallery-thumbs img.active {
  opacity: 1;
  outline: 2px solid var(--hs-primary);
}

.property-detail .property-info h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.property-detail .property-info .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--hs-primary-hover);
  margin-bottom: 1rem;
}

.property-detail .property-info .features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.property-detail .property-info .features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--hs-text-muted);
}

.property-detail .contact-card {
  background: #ffffff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--hs-shadow-sm);
  position: sticky;
  top: 90px;
}

/* Botão WhatsApp flutuante (assistente) */
.whatsapp-assistant {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1060;
}

.whatsapp-assistant .assistant-toggle {
  width: 60px;
  height: 60px;
  border-radius: var(--hs-radius-pill);
  background: #25d366;
  color: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--hs-shadow-lg);
  cursor: pointer;
  transition: transform var(--hs-transition);
}

.whatsapp-assistant .assistant-toggle:hover {
  transform: scale(1.06);
}

.whatsapp-assistant .assistant-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 340px;
  max-height: 520px;
  background: #ffffff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  box-shadow: var(--hs-shadow-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.whatsapp-assistant .assistant-panel.open {
  display: flex;
}

.whatsapp-assistant .assistant-header {
  background: #25d366;
  color: #ffffff;
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.whatsapp-assistant .assistant-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  flex: 1;
}

/* Rodapé público */
.public-footer {
  background: var(--hs-bg);
  border-top: 1px solid var(--hs-border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.public-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
}

.public-footer h4 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.public-footer a {
  display: block;
  color: var(--hs-text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.public-footer a:hover { color: var(--hs-primary); }

.public-footer .footer-bottom {
  border-top: 1px solid var(--hs-border);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--hs-text-muted);
}

/* Responsivo */
@media (max-width: 992px) {
  .public-nav { display: none; }
  .public-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
  .section { padding: 3rem 0; }
  .public-footer .footer-grid { grid-template-columns: 1fr; }
  .property-detail .property-info .features-list { grid-template-columns: 1fr; }
  .whatsapp-assistant .assistant-panel { width: calc(100vw - 2rem); right: -0.5rem; }
}