/* assets/home/home.css */

/* ✅ ESSENCIAL: hidden SEMPRE tem que esconder */
[hidden]{ display:none !important; }

:root{
  --navy:#0f2f3f;
  --navy-2:#0b2633;
  --bg:#eef2f5;
  --card:#ffffff;
  --text:#0b1b24;
  --muted:#5a6b76;
  --line:#e6ebef;
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --gap:18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:#fff;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button, input, select{ font:inherit; }

.container{
  width:min(1120px, calc(100% - 48px));
  margin:0 auto;
}

/* TOPBAR */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.topbar__inner{
  height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand{ display:flex; align-items:center; }
.brand__logo{ height:34px; width:auto; }

.topbar__nav{
  display:flex;
  gap:18px;
  align-items:center;
}
.topbar__nav a{
  font-weight:600;
  color:#153444;
  opacity:.92;
}
.topbar__nav a:hover{ opacity:1; }

/* HERO */
.hero{
  position:relative;
  min-height:320px;
  display:flex;
  align-items:center;
  background:
    linear-gradient(180deg, rgba(15,47,63,.60), rgba(15,47,63,.60)),
    var(--hero-img, url("./img/hero.png"));
  background-size:cover;
  background-position:center;
}
.hero__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.35));
}
.hero__content{
  position:relative;
  padding:64px 0 70px;
  text-align:center;
}
.hero__title{
  margin:0 0 16px;
  color:#fff;
  font-size:32px;
  font-weight:800;
}

/* FINDER */
.finder{ display:flex; justify-content:center; }
.finder__row{
  width:min(880px, 100%);
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 54px;
  background:#fff;
  border-radius:12px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.finder__field{
  padding:10px 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  border-right:1px solid var(--line);
}
.finder__field label{
  text-align:left;
  font-size:12px;
  font-weight:800;
  color:#4a5b66;
  letter-spacing:.3px;
}
.finder__field select{
  border:0;
  outline:0;
  padding:10px 10px;
  border-radius:10px;
  background:#fff;
  color:#102834;
  font-weight:600;
}
.finder__btn{
  border:0;
  outline:0;
  cursor:pointer;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.finder__btn:hover{ background:#f7f9fb; }
.finder__hint{
  margin-top:10px;
  color:#dfe7ee;
  font-size:13px;
  min-height:18px;
  opacity:.95;
}

/* SECTIONS */
.section{ padding:54px 0; }
.section--soft{ background:var(--bg); }

.section__title{
  margin:0;
  font-size:26px;
  font-weight:900;
  color:#102b39;
}
.section__title--center{ text-align:center; width:100%; }

/* RESULT HEADER */
.resultsHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.resultsHeader__right{
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--muted);
  font-weight:700;
}
.btnLink{
  border:0;
  background:transparent;
  cursor:pointer;
  color:#1b6aa6;
  font-weight:900;
}
.btnLink:hover{ text-decoration:underline; }

/* GRID */
.grid{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}

/* CARD */
.card{
  background:var(--card);
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 10px 20px rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
  height:auto;
  min-height:0;
}
.card__media{
  position:relative;
  height:160px;
  background:#dde6ee;
}
.card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.badge{
  position:absolute;
  left:14px;
  bottom:12px;
  background:#8fd0ee;
  color:#08314a;
  font-weight:900;
  font-size:12px;
  padding:7px 12px;
  border-radius:10px;
}
.badge--obras{ background:#ffd7d7; color:#5a1010; }
.badge--pronto{ background:#d6ffe6; color:#0f4a2a; }

.card__body{ padding:14px 14px 16px; }
.card__title{
  margin:0;
  font-size:18px;
  font-weight:900;
  color:#0b2b3a;
}
.card__place{
  margin:6px 0 0;
  color:#1b6aa6;
  font-weight:800;
  font-size:13px;
}
.card__desc{
  margin:10px 0 0;
  color:#243b47;
  line-height:1.35;
  font-size:13px;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

/* CARROSSEL */
.carouselHome{
  margin-top:18px;
  position:relative;
}
.carouselHome__viewport{
  overflow:hidden;
  padding: 0 6px;
}
.carouselHome__track{
  display:flex;
  gap:var(--gap);
  padding:2px;
  align-items:stretch;
}
.carouselHome__track .card{
  flex: 0 0 calc((100% - (var(--gap) * 2)) / 3);
  max-width: calc((100% - (var(--gap) * 2)) / 3);
}
.carouselHome__track.is-center{
  justify-content:center;
}
.carouselHome__nav{
  position:absolute;
  top:44%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border:0;
  border-radius:999px;
  background:#fff;
  box-shadow:var(--shadow);
  cursor:pointer;
  font-size:22px;
  font-weight:900;
  color:#123344;
}
.carouselHome__nav--prev{ left:-10px; }
.carouselHome__nav--next{ right:-10px; }

.carouselHome__dots{
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:10px;
}
.dot{
  width:52px;
  height:4px;
  border-radius:99px;
  background:#c8d1d8;
  cursor:pointer;
  border:0;
}
.dot.is-active{ background:#1d2f3a; }

/* QUALIDADE */
.section--quality{
  background:#5f7f97;
}
.quality{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap:28px;
  align-items:center;
}
.quality__card{
  background:#f6efcf;
  border-radius:6px;
  padding:28px;
  max-width:420px;
}
.quality__card h2{
  margin:0 0 12px;
  font-size:28px;
  font-weight:900;
  color:#0b2b3a;
}
.quality__card p{
  margin:0 0 18px;
  color:#243b47;
  line-height:1.5;
}
.btnSoft{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #0b2b3a;
  padding:10px 16px;
  border-radius:4px;
  font-weight:700;
  background:transparent;
}
.quality__img{
  border-radius:6px;
  overflow:hidden;
}
.quality__img img{
  width:100%;
  height:320px;
  object-fit:cover;
}

/* FOOTER */
.footer{
  border-top:1px solid var(--line);
  background:#fff;
  padding:26px 0 18px;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}
.footer__logo{ height:26px; width:auto; }
.footer__right{
  display:flex;
  gap:16px;
  font-weight:800;
  color:#153444;
}
.footer__copy{
  margin-top:12px;
  color:var(--muted);
  font-size:12px;
}

/* WHATS */
.whatsFloat{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:90;
  background:#0e2f3f;
  color:#fff;
  border-radius:999px;
  padding:12px 16px;
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow:0 14px 34px rgba(0,0,0,.18);
}
.whatsFloat:hover{ filter:brightness(1.08); }
.whatsFloat__text{ font-weight:900; }
.whatsFloat__icon{
  width:22px;
  height:22px;
  display:block;
  filter: invert(1);
}

/* COOKIES */
.cookieBar{
  position:fixed;
  left:16px;
  right:16px;
  bottom:16px;
  z-index:120;
  background:#0f2f3f;
  color:#fff;
  border-radius:14px;
  padding:14px 14px;
  box-shadow:0 16px 40px rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.cookieBar__text{
  font-weight:700;
  opacity:.95;
  line-height:1.35;
}
.cookieBar__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.cookieBtn{
  border:0;
  cursor:pointer;
  padding:10px 14px;
  border-radius:10px;
  font-weight:900;
  background:#fff;
  color:#0f2f3f;
}
.cookieBtn--ghost{
  background:transparent;
  border:1px solid rgba(255,255,255,.6);
  color:#fff;
}

/* ✅ links dentro do banner (se você usar) */
.cookieBar__link{
  color:#fff;
  text-decoration:underline;
  font-weight:900;
}
.cookieBar__link:hover{ opacity:.9; }

/* RESPONSIVO */
@media (max-width: 980px){
  .finder__row{ grid-template-columns: 1fr; }
  .finder__field{ border-right:0; border-bottom:1px solid var(--line); }
  .finder__btn{ height:54px; }

  .carouselHome__nav--prev{ left:0; }
  .carouselHome__nav--next{ right:0; }

  .carouselHome__track .card{
    flex: 0 0 100%;
    max-width: 100%;
  }

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

  .quality{ grid-template-columns:1fr; }
  .quality__img img{ height:240px; }
}

.whatsFloat__icon{
  width:22px;
  height:22px;
  display:block;
}
/* links do banner de cookies */
.cookieBar__link{
  color:#ffffff;
  text-decoration:underline;
  font-weight:900;
}
.cookieBar__link:hover{
  opacity:.9;
}


/* ===== DIFERENCIAIS NOS CARDS (HOME) ===== */
.card__icons{
  margin-top:12px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px 14px;
}
.card__icon{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  line-height:1.2;
  color:#2b4f66;
}
.card__icon img{
  width:18px;
  height:18px;
  flex:0 0 18px;
}
/* ===== MOBILE – HOME ===== */
@media (max-width: 768px) {

  /* HERO */
  .hero {
    min-height: auto;
    padding: 24px 12px 32px;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
  }

  /* FILTRO */
  .finder {
    padding: 12px;
    border-radius: 16px;
  }

  .finder__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* CARDS DE DESTAQUE */
  .highlightCard {
    flex-direction: column;
    border-radius: 16px;
  }

  .highlightCard__img {
    height: 180px;
  }

  .highlightCard__body {
    padding: 14px;
  }

  .highlightCard h3 {
    font-size: 18px;
  }
}

