/* ============================================
   ApartInvest — folha de estilos
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --ink:        #12211b;
  --ink-soft:   #33473d;
  --emerald:    #132a23;
  --emerald-2:  #1c3a30;
  --paper:      #f7f5ee;
  --paper-2:    #efece2;
  --stone:      #e6e1d2;
  --gold:       #ad8a48;
  --gold-soft:  #cdb37e;
  --line:       rgba(18,33,27,0.14);
  --line-light: rgba(247,245,238,0.22);

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1280px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
}

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247,245,238,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo{
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo .accent{ color: var(--gold); }

.main-nav{
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14.5px;
}

.main-nav a{
  color: var(--ink-soft);
  transition: color .15s ease;
}
.main-nav a:hover{ color: var(--ink); }

.nav-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 3px;
  font-weight: 500;
}
.nav-cta:hover{ background: var(--emerald-2); }
.nav-cta svg{ width: 16px; height: 16px; }

/* ---------- Hero ---------- */

.hero{
  background: var(--emerald);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero .wrap{
  padding-top: 96px;
  padding-bottom: 130px;
  position: relative;
  z-index: 2;
}

.hero-grid{
  display: grid;
  grid-template-columns: minmax(0,680px);
  gap: 40px;
}

.eyebrow{
  font-size: 13.5px;
  color: var(--gold-soft);
  font-weight: 500;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.hero h1{
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
}

.hero h1 em{
  font-style: italic;
  color: var(--gold-soft);
}

.hero h1 .hero-accent{
  color: var(--gold-soft);
}

.hero p.lede{
  font-size: 18px;
  color: rgba(247,245,238,0.78);
  max-width: 480px;
  margin: 0 0 40px;
}

.hero-actions{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
}
.btn svg{ width: 17px; height: 17px; flex-shrink: 0; }

.btn-gold{
  background: var(--gold);
  color: var(--emerald);
}
.btn-gold:hover{ background: var(--gold-soft); }

.btn-outline{
  border-color: var(--line-light);
  color: var(--paper);
}
.btn-outline:hover{ border-color: var(--paper); }

.hero-stats{
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat .num{
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  color: var(--paper);
}
.stat .label{
  font-size: 12.5px;
  color: rgba(247,245,238,0.6);
  margin-top: 8px;
}

.hero-visual{
  position: relative;
}

.hero-card{
  border: 1px solid var(--line-light);
  border-radius: 4px;
  padding: 28px;
  background: rgba(247,245,238,0.05);
  margin-top: 8px;
}

.hero-card h3{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 14px;
}

.hero-card ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card li{
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: rgba(247,245,238,0.82);
}

.hero-card li svg{
  width: 17px; height: 17px;
  flex-shrink: 0;
  color: var(--gold-soft);
  margin-top: 1px;
}

.hero-wave{
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  z-index: 1;
}
.hero-wave svg{ width: 100%; height: auto; display: block; }

/* ---------- Search ---------- */

.search-section{
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.search-section .wrap{
  padding: 34px 48px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box{
  flex: 1;
  position: relative;
}

.search-box svg{
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-soft);
  opacity: .6;
}

.search-box input{
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-2);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}
.search-box input::placeholder{ color: var(--ink-soft); opacity: .6; }
.search-box input:focus{
  outline: none;
  border-color: var(--gold);
  background: #fff;
}

.result-count{
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.result-count b{ color: var(--ink); font-weight: 600; }

/* ---------- Grid ---------- */

.listing-section{
  padding: 56px 0 100px;
}

.section-heading{
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-title{
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 40px;
  max-width: 640px;
}

.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card{
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: opacity .2s ease;
}

.card-media{
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
}

.card-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-media img{ transform: scale(1.04); }

.badge{
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(19,42,35,0.88);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 2px;
}
.badge.ready{ background: rgba(173,138,72,0.92); color: var(--emerald); }

.card-body{
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3{
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 6px;
  line-height: 1.2;
}

.card-location{
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-location svg{ width: 14px; height: 14px; }

.card-body p.desc{
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 20px;
  flex: 1;
}

.specs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-bottom: 18px;
}
.specs span{ display: inline-flex; align-items: center; gap: 6px; }
.specs svg{ width: 15px; height: 15px; color: var(--gold); }

.card-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-link{
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.card-link svg{
  width: 15px; height: 15px;
  color: var(--gold);
  transition: transform .15s ease;
}
.card-link:hover svg{ transform: translateX(3px); }

.card-whats{
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s ease;
}
.card-whats:hover{ background: var(--stone); }
.card-whats svg{ width: 18px; height: 18px; color: var(--emerald); }

.empty-state{
  display: none;
  padding: 80px 20px;
  text-align: center;
  color: var(--ink-soft);
}
.empty-state h3{
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 10px;
}
.empty-state.visible{ display: block; }

/* ---------- Why us strip ---------- */

.why-section{
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}

.why-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.why-item .why-num{
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  margin: 0 0 14px;
}

.why-item h3{
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
}

.why-item p{
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 320px;
}

/* ---------- Footer ---------- */

.site-footer{
  background: var(--emerald);
  color: rgba(247,245,238,0.75);
  padding: 64px 0 28px;
}

.footer-top{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-light);
}

.footer-brand .logo{ color: var(--paper); margin-bottom: 16px; }
.footer-brand p{
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4{
  font-size: 13px;
  color: var(--gold-soft);
  font-weight: 500;
  margin: 0 0 16px;
}

.footer-col ul{
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}
.footer-col a:hover{ color: var(--paper); }

.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 12.5px;
  color: rgba(247,245,238,0.45);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-legal-links{
  display: flex;
  gap: 20px;
}
.footer-legal-links a:hover{ color: var(--paper); }

/* ---------- Floating WhatsApp ---------- */

.whats-float{
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  z-index: 50;
  transition: transform .15s ease;
}
.whats-float:hover{ transform: scale(1.06); }
.whats-float svg{ width: 28px; height: 28px; color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 1040px){
  .wrap{ padding: 0 28px; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ max-width: 480px; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .why-grid{ grid-template-columns: 1fr; gap: 32px; }
  .footer-top{ grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 680px){
  .main-nav{ display: none; }
  .site-header .wrap{ height: 68px; }
  .hero .wrap{ padding-top: 56px; padding-bottom: 90px; }
  .hero-stats{ gap: 30px; }
  .search-section .wrap{ flex-direction: column; align-items: stretch; padding: 24px 20px; }
  .result-count{ text-align: right; }
  .grid{ grid-template-columns: 1fr; }
  .listing-section{ padding: 40px 0 70px; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; }
}
