/* ==========================================================================
   Sergio Silva | Corretor de Imóveis
   Tema: cabeçalho preto + corpo claro (off-white)
   ========================================================================== */

:root {
  --preto: #0b0b0b;
  --preto-suave: #1a1a1a;
  --dourado: #c9a24b;
  --dourado-claro: #e4c77c;
  --fundo: #faf8f4;         /* off-white texturizado */
  --fundo-alt: #f1ede4;
  --texto: #232323;
  --texto-suave: #5c5c5c;
  --branco: #ffffff;
  --borda: #e5e0d5;
  --sombra: 0 10px 30px rgba(0, 0, 0, 0.08);
  --raio: 14px;
  --whatsapp: #25d366;
  --instagram: #d6249f;
  --facebook: #1877f2;
  --email: var(--dourado);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--texto);
  background-color: var(--fundo);
  /* textura sutil no corpo do site */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.035) 1px, transparent 0);
  background-size: 22px 22px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  color: var(--dourado);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; color: var(--preto); }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
p { color: var(--texto-suave); margin: 0 0 16px; }
code {
  background: var(--fundo-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ============================= BOTÕES ============================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--dourado-claro), var(--dourado));
  color: var(--preto);
  box-shadow: 0 8px 20px rgba(201, 162, 75, 0.35);
}
.btn--outline {
  background: transparent;
  border-color: var(--preto);
  color: var(--preto);
}
.btn--outline:hover { background: var(--preto); color: var(--branco); }
.btn--small { padding: 9px 18px; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* ============================= HEADER (PRETO) ============================= */
.header {
  background: var(--preto);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.header__brand { display: flex; align-items: center; }
.header__logo {
  height: 62px;
  width: auto;
}

.header__nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header__nav a {
  color: #eee;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  padding: 6px 2px;
  position: relative;
}

.header__nav a:hover { color: var(--dourado-claro); }

.header__nav a.nav-cta {
  background: var(--dourado);
  color: var(--preto);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
}
.header__nav a.nav-cta:hover { background: var(--dourado-claro); color: var(--preto); }

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.header__toggle span {
  width: 26px;
  height: 2px;
  background: var(--branco);
  display: block;
  transition: 0.25s ease;
}

/* ============================= HERO ============================= */
.hero {
  padding: 70px 0 50px;
  background: linear-gradient(180deg, var(--fundo-alt), var(--fundo));
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.hero__stats {
  display: grid;
  position: relative;
}

.hero__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
}

/* "chão" sutil para ancorar a ilustração ao fundo da seção, sem parecer um recorte colado */
.hero__badge::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 18%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.16) 0%, rgba(0,0,0,0) 72%);
  filter: blur(2px);
  z-index: 0;
}

.hero__badge-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 22px rgba(30, 24, 8, 0.18));
  opacity: 0;
  animation: heroBuildIn 1.1s cubic-bezier(0.22, 0.9, 0.3, 1) 0.15s forwards;
}

@keyframes heroBuildIn {
  0% {
    opacity: 0;
    transform: translateX(-140px) scale(0.92);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__badge-img { animation: none; opacity: 1; }
}

/* ============================= BUSCA RÁPIDA ============================= */
.search-bar {
  background: var(--branco);
  border-top: 1px solid var(--borda);
  border-bottom: 1px solid var(--borda);
}
.search-bar__inner { padding: 22px 24px; }

.search-form {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.search-form__field { display: flex; flex-direction: column; gap: 6px; }
.search-form__field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--texto-suave);
}
.search-form__field input,
.search-form__field select {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--borda);
  background: var(--fundo);
  font-size: 0.95rem;
  color: var(--texto);
}
.search-form__field input:focus,
.search-form__field select:focus { outline: 2px solid var(--dourado); }

/* ============================= SEÇÕES ============================= */
.section { padding: 70px 0; }
.section--alt { background: var(--fundo-alt); }
.section--dark-accent {
  background: var(--fundo-alt);
  border-top: 1px solid var(--borda);
}

.section__head { max-width: 640px; margin-bottom: 40px; }

/* ============================= CARDS DE IMÓVEIS ============================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.property-card {
  background: var(--branco);
  border-radius: var(--raio);
  overflow: hidden;
  border: 1px solid var(--borda);
  box-shadow: var(--sombra);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(0,0,0,0.12); }

.property-card__image { position: relative; }

.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--branco);
}
.tag--venda { background: var(--preto); }
.tag--aluguel { background: var(--dourado); color: var(--preto); }

.image-placeholder {
  height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #e9e4d8, #d9d2c0);
  color: #9a917c;
}
.image-placeholder svg { width: 44px; height: 44px; fill: currentColor; opacity: 0.7; }
.image-placeholder span { font-size: 0.82rem; font-weight: 600; }
.image-placeholder--portrait { height: 340px; border-radius: var(--raio); }

.about__photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  border: 1px solid var(--borda);
}

.property-card__body { padding: 22px; }
.property-card__location { font-size: 0.88rem; color: var(--texto-suave); margin-bottom: 12px; }
.property-card__desc {
  font-size: 0.88rem;
  color: var(--texto-suave);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.property-card__image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.property-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--texto-suave);
  padding: 40px 20px;
}

.property-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.85rem;
  color: var(--texto);
  margin-bottom: 18px;
}

.property-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--borda);
  padding-top: 16px;
}
.property-card__price { font-weight: 700; color: var(--preto); }

/* ============================= SOBRE ============================= */
.about__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
}
.about__list { display: grid; gap: 10px; margin-top: 18px; }
.about__list li { font-weight: 600; color: var(--preto); }

/* ============================= SERVIÇOS ============================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 28px 26px;
  box-shadow: var(--sombra);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(0,0,0,0.12); }

.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin-bottom: 0; }

.service-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--fundo-alt);
  color: var(--preto);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-card__icon svg { width: 26px; height: 26px; }

.service-card__tag {
  display: inline-block;
  background: var(--dourado);
  color: var(--preto);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.service-card--highlight {
  background: linear-gradient(155deg, var(--preto) 0%, var(--preto-suave) 100%);
  border-color: transparent;
  color: var(--branco);
}
.service-card--highlight h3 { color: var(--branco); }
.service-card--highlight p { color: #cfcfcf; }
.service-card--highlight .service-card__icon {
  background: rgba(255,255,255,0.1);
  color: var(--dourado-claro);
}

/* ============================= CONTATO ============================= */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Bloco de redes sociais em destaque */
.social-block {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--branco);
  border: 1px solid var(--borda);
  color: var(--preto);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--sombra);
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.social-icon svg { width: 20px; height: 20px; flex-shrink: 0; }
.social-icon:hover { transform: translateY(-3px) scale(1.03); color: var(--branco); }

.social-icon--whatsapp:hover { background: var(--whatsapp); }
.social-icon--instagram:hover { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.social-icon--facebook:hover { background: var(--facebook); }
.social-icon--email:hover { background: var(--preto); }

.social-block__hint { font-size: 0.8rem; color: var(--texto-suave); }

.social-block--footer .social-icon {
  padding: 10px;
  background: var(--preto-suave);
  border-color: #333;
  color: var(--branco);
}
.social-block--footer .social-icon span { display: none; }

.contact-form {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 30px;
  box-shadow: var(--sombra);
  display: grid;
  gap: 16px;
}
.contact-form__field { display: grid; gap: 6px; }
.contact-form__field label { font-size: 0.85rem; font-weight: 700; color: var(--preto); }
.contact-form__field input,
.contact-form__field textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--borda);
  background: var(--fundo);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--texto);
  resize: vertical;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus { outline: 2px solid var(--dourado); }
.contact-form__note { font-size: 0.85rem; color: var(--whatsapp); min-height: 18px; margin: 0; }

/* ============================= FOOTER (PRETO) ============================= */
.footer {
  background: var(--preto);
  color: #c9c9c9;
  padding: 46px 0 34px;
  text-align: center;
}
.footer__logo { height: 46px; margin: 0 auto 16px; }
.footer p { color: #a8a8a8; margin: 4px 0; font-size: 0.88rem; }
.footer__creci { font-size: 0.78rem; color: #777; }
.footer .social-block { justify-content: center; margin: 20px 0 6px; }

.footer__admin-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.75rem;
  color: #666;
  border-top: 1px solid #262626;
  padding-top: 16px;
}
.footer__admin-link:hover { color: var(--dourado-claro); }

/* ============================= BOTÃO FLUTUANTE WHATSAPP ============================= */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
  z-index: 200;
  transition: transform 0.2s ease;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--branco); }
.whatsapp-float:hover { transform: scale(1.08); }

/* ============================= TOAST (aviso "e-mail copiado") ============================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--preto);
  color: var(--branco);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 300;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================= RESPONSIVO ============================= */
@media (max-width: 900px) {
  .hero__inner,
  .about__inner,
  .contact__inner { grid-template-columns: 1fr; }

  .about__image { order: -1; }

  .search-form { grid-template-columns: 1fr 1fr; }
  .search-form button { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .header__toggle { display: flex; }
  .header__logo { height: 42px; }

  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--preto);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .header__nav.is-open { max-height: 400px; }
  .header__nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 24px 24px;
    gap: 18px;
  }

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