@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');
/* ========================================
   Haute Investimentos Imobiliários
   Main Stylesheet - v1.0
   ======================================== */

/* Reset */
*,::after,::before{box-sizing:border-box;margin:0;padding:0}
html{overflow-x:hidden}body{font-family:'Open Sans',sans-serif;font-weight:400;color:#151517;background:#fff;-webkit-font-smoothing:antialiased;overflow-x:hidden;max-width:100vw}
a{text-decoration:none;color:inherit;cursor:pointer}
ul{list-style:none;padding:0;margin:0}
li{display:inline-block}
img{max-width:100%;display:block}
button,input,select,textarea{font-family:inherit;border:none;outline:none}
strong{font-weight:600}
p{margin:0}
address{font-style:normal}

/* Variables */
:root{
  /* ORIGINAL_COLORS: #16b28b, #0f9472, #993d20, #b86a52 */
--primary:#16b28b;
  --primary-hover:#0f9472;
  --primary-light:#A47B5C;
  --primary-pale:#C4A078;
  --dark:#151517;
  --gray:#757575;
  --gray-light:#a0a0a0;
  --bg-warm:#f7f5f3;
  --border:#e8e5e0;
  --border-light:#f0efec;
  --green:#25D366;
  --red:#e74c3c;
  --header-h:78px;
}

/* Container */
.container{width:90%;max-width:1300px;margin:0 auto}

/* ---- HEADER ---- */
.header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid #f0f0f0;transition:box-shadow .3s ease;width:100%}
.header-inner{display:flex;align-items:center;justify-content:space-between;max-width:1300px;margin:0 auto;padding:0 40px;height:72px}
.container.header-inner { width: auto; max-width: 1300px; margin: 0 auto; padding: 0 40px; height: 72px; }

.logo img{height:43px;width:auto}
.nav-desktop ul{display:flex;gap:0;align-items:center}
.nav-desktop ul li a{font-size:.88rem;font-weight:500;padding:.5rem .9rem;color:var(--dark);transition:all .2s;display:inline-flex}
.nav-desktop ul li a:hover,.nav-desktop ul li a.current{color:var(--primary);font-weight:700}
.header-bts{display:flex;gap:.4rem}

/* Buttons */
.bt-primary{display:inline-flex;align-items:center;gap:.5rem;background:var(--primary);border:1px solid var(--primary);color:#fff;font-weight:500;font-size:.85rem;border-radius:999px;padding:.6rem 1.8rem .7rem;cursor:pointer;transition:background .2s}
.bt-primary:hover{background:var(--dark);border-color:var(--dark);color:#fff}
.bt-outline{display:inline-flex;align-items:center;gap:.5rem;background:transparent;border:1px solid var(--border);color:var(--dark);font-weight:600;font-size:.85rem;border-radius:999px;padding:.6rem 1.8rem .7rem;cursor:pointer;transition:all .2s}
.bt-outline:hover{border-color:var(--primary);color:var(--primary)}

/* Hamburger */
.hamburger{display:none;background:none;border:none;cursor:pointer;padding:.5rem}

/* Mobile Menu */
.mobile-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:200}
.mobile-overlay.open{display:block}
.mobile-menu{position:fixed;top:0;right:-300px;width:280px;height:100%;background:#fff;z-index:201;transition:right .3s ease;overflow-y:auto;box-shadow:-4px 0 20px rgba(0,0,0,.1)}
.mobile-menu.open{right:0}
.mobile-menu-header{display:flex;align-items:center;justify-content:space-between;padding:1.2rem 1.5rem;border-bottom:1px solid #f0f0f0}
.mobile-menu-header img{height:35px}
.mobile-menu-header button{background:none;border:none;font-size:1.4rem;cursor:pointer;color:var(--gray)}
.mobile-menu ul{padding:1rem 0}
.mobile-menu ul li{display:block}
.mobile-menu ul li a{display:block;padding:.85rem 1.5rem;font-size:.92rem;font-weight:500;color:var(--dark);border-bottom:1px solid #f8f8f8;transition:all .2s}
.mobile-menu ul li a:hover{color:var(--primary);background:#faf9f8}
.mobile-cta{padding:1rem 1.5rem}
.mobile-cta a{display:block;text-align:center;width:100%}

/* ---- HERO (HOME) ---- */
.hero-home{position:relative;height:100vh;min-height:500px;display:flex;align-items:center;background-size:cover;background-position:center;margin-top:var(--header-h)}
.hero-home::before{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.15) 0%,rgba(0,0,0,.4) 100%);pointer-events:none}
.hero-home .hero-content{position:relative;z-index:2;width:100%;text-align:center}
.hero-title h1{font-size:clamp(1.4rem,4vw,2.4rem);font-weight:700}

/* Search Bar */
.search-bar{background:rgba(255,255,255,.95);padding:.5rem;border-radius:12px;margin-top:2rem;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 4px 24px rgba(0,0,0,.15)}
.search-row{display:flex;gap:.4rem;align-items:stretch}
.search-row .s-text{flex:1;min-width:0}
.search-row .s-select{flex:0 0 auto;width:155px}
.search-row .s-btn{flex:0 0 50px}
.s-input{width:100%;height:100%;padding:0 1rem;font-size:.85rem;font-weight:500;background:#fff;border-radius:5px;color:var(--dark);border:none;min-height:46px}
.s-input::placeholder{color:var(--gray)}
.s-sel{width:100%;height:100%;padding:0 .9rem;font-size:.85rem;font-weight:500;background:#fff;border-radius:5px;color:var(--dark);border:none;cursor:pointer;appearance:none;-webkit-appearance:none;background-image:url('data:image/svg+xml;utf8,<svg fill="%23b2b5ba" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');background-repeat:no-repeat;background-position:right 8px center;background-size:16px;padding-right:28px;min-height:46px}
.s-submit{width:100%;height:100%;min-height:46px;border:none;cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:5px;background:var(--primary);color:#fff;transition:background .2s}
.s-submit:hover{background:var(--dark)}

/* ---- SECTIONS ---- */
.section{padding:3rem 0}
.section-title{font-size:1.15rem;font-weight:700;margin-bottom:1.5rem;display:flex;align-items:center;justify-content:space-between}
.section-title a{font-size:.85rem;color:var(--primary);font-weight:700}
.section-title a:hover{text-decoration:underline}

/* ---- PROPERTY CARDS ---- */
.cards-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem}
.card{overflow:hidden;border-radius:14px;transition:box-shadow .3s;background:#fff;display:block}
.card:hover{box-shadow:0 6px 24px rgba(0,0,0,.1)}
.card figure{position:relative;aspect-ratio:4/3;overflow:hidden}
.card figure img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.card:hover figure img{transform:scale(1.06)}
.card .badge{position:absolute;top:10px;left:10px;background:var(--primary);color:#fff;font-size:.7rem;font-weight:600;padding:4px 10px;border-radius:4px;text-transform:uppercase}
.card .card-info{padding:.9rem .1rem .5rem}
.card .card-info h3{font-size:.9rem;font-weight:600;margin-bottom:.2rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card .card-info .address{font-size:.78rem;color:var(--gray);display:flex;align-items:center;gap:.4rem;margin-bottom:.6rem}
.card .card-info .address svg{width:8px;flex-shrink:0;fill:var(--primary)}
.card .card-info .specs{display:flex;gap:1rem;margin-bottom:.5rem}
.card .card-info .specs li{font-size:.77rem;color:var(--gray);display:flex;align-items:center;gap:.3rem}
.card .card-price small{display:block;color:var(--gray);font-size:.7rem}
.card .card-price span{display:block;color:var(--primary);font-size:1rem;font-weight:600}

/* ---- CAROUSEL ---- */
.carousel{position:relative;overflow:hidden;border-radius:15px}
.carousel-inner{display:flex;transition:transform .5s ease}
.carousel-slide{position:relative;flex:0 0 100%;width:100%;max-width:100%}
.carousel-slide img{width:100%;border-radius:15px;aspect-ratio:3.2/1;object-fit:cover;max-width:100%}
.carousel-slide .badge{position:absolute;bottom:15px;left:15px;background:var(--primary);color:#fff;font-size:.85rem;font-weight:600;padding:6px 16px;border-radius:4px;text-transform:uppercase;letter-spacing:.5px;z-index:2}
.carousel-dots{text-align:right;margin-top:.5rem;display:flex;gap:.4rem;justify-content:flex-end}
.carousel-dots span{width:14px;height:14px;background:#e0ddd8;border-radius:50%;cursor:pointer;transition:background .3s}
.carousel-dots span.active{background:var(--primary)}

/* ---- BENEFITS/ANUNCIE ---- */
.benefits-section{background:var(--bg-warm);padding:4.5rem 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.benefits-top{text-align:center;max-width:700px;margin:0 auto 3rem}
.benefits-top h2{font-size:1.15rem;font-weight:700;margin-bottom:.8rem}
.benefits-top p{font-size:.9rem;color:var(--gray);line-height:1.7}
.benefits-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.benefit-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:1.8rem 1.5rem;transition:box-shadow .3s}
.benefit-card:hover{box-shadow:0 6px 20px rgba(0,0,0,.06)}
.benefit-card .icon{width:40px;height:40px;background:var(--primary);border-radius:8px;display:flex;align-items:center;justify-content:center;margin-bottom:1rem}
.benefit-card .icon svg{width:20px;height:20px;fill:#fff}
.benefit-card h3{font-size:.92rem;font-weight:700;margin-bottom:.5rem}
.benefit-card p{font-size:.82rem;color:var(--gray);line-height:1.65}

/* ---- BAIRROS ---- */
.bairros-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.bairro-card{position:relative;border-radius:14px;overflow:hidden;aspect-ratio:1.25/1;cursor:pointer;display:block}
.bairro-card img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.bairro-card:hover img{transform:scale(1.05)}
.bairro-card .ov{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.72) 0%,rgba(0,0,0,.08) 55%,transparent 100%);display:flex;flex-direction:column;justify-content:flex-end;padding:1.1rem}
.bairro-card .ov h3{color:#fff;font-size:.92rem;font-weight:600}
.bairro-card .ov span{color:rgba(255,255,255,.55);font-size:.73rem;margin-top:2px}

/* ---- SEO LINKS ---- */
.seo-section{background:var(--bg-warm);padding:3rem 0}
.seo-section h2{font-size:1.05rem;font-weight:700;margin-bottom:.4rem}
.seo-section p.sub{font-size:.84rem;color:var(--gray);margin-bottom:1.8rem}
.seo-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem 3rem}
.seo-cols a{display:block;padding:.5rem 0;font-size:.83rem;color:var(--dark);border-bottom:1px solid var(--border);transition:color .2s}
.seo-cols a:hover{color:var(--primary)}

/* ---- PROPERTY GRID (SEARCH) ---- */
.prop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem;padding-bottom:2rem}
.prop-card{background:#fff;border:1px solid var(--border-light);border-radius:14px;overflow:hidden;transition:box-shadow .3s;display:block}
.prop-card:hover{box-shadow:0 6px 24px rgba(0,0,0,.08)}
.prop-card figure{position:relative;aspect-ratio:4/3;overflow:hidden}
.prop-card figure img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.prop-card:hover figure img{transform:scale(1.05)}
.prop-card .badge{position:absolute;top:10px;left:10px;background:var(--primary);color:#fff;font-size:.68rem;font-weight:600;padding:3px 9px;border-radius:4px;text-transform:uppercase}
.prop-card .foto-count{position:absolute;bottom:10px;right:10px;background:rgba(0,0,0,.6);color:#fff;font-size:.7rem;font-weight:500;padding:3px 8px;border-radius:4px;display:flex;align-items:center;gap:4px}
.prop-card .body{padding:1rem 1.1rem}
.prop-card .body .cod{font-size:.7rem;color:var(--primary);font-weight:600;margin-bottom:.3rem}
.prop-card .body h3{font-size:.92rem;font-weight:600;margin-bottom:.2rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prop-card .body .endereco{font-size:.78rem;color:var(--gray);display:flex;align-items:center;gap:.4rem;margin-bottom:.8rem}
.prop-card .body .endereco svg{width:8px;flex-shrink:0;fill:var(--primary)}
.prop-card .specs{display:flex;gap:.8rem;padding-bottom:.8rem;border-bottom:1px solid var(--border-light);margin-bottom:.8rem}
.prop-card .specs .spec{font-size:.76rem;color:var(--gray);display:flex;align-items:center;gap:.3rem}
.prop-card .specs .spec strong{color:var(--dark)}
.prop-card .price-row{display:flex;align-items:baseline;justify-content:space-between}
.prop-card .price{font-size:1.05rem;font-weight:700;color:var(--primary)}
.prop-card .price small{display:block;font-size:.7rem;font-weight:400;color:var(--gray)}

/* ---- PAGINATION ---- */
.pagination{display:flex;align-items:center;justify-content:center;gap:.3rem;padding:1.5rem 0 3rem}
.pagination a,.pagination span{width:38px;height:38px;display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:500;border-radius:8px;border:1px solid var(--border);color:var(--dark);transition:all .2s}
.pagination a:hover{border-color:var(--primary);color:var(--primary)}
.pagination span.current{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:700}

/* ---- BREADCRUMB ---- */
.breadcrumb-bar{margin-top:0;padding:1.1rem 0;border-bottom:1px solid var(--border-light);display:flex;align-items:center}
.breadcrumb{display:flex;gap:.5rem;align-items:center;font-size:.8rem;font-weight:600}
.breadcrumb a{color:var(--primary)}
.breadcrumb a:hover{color:var(--primary-hover)}
.breadcrumb span{color:var(--gray-light);font-weight:400}

/* ---- FOOTER ---- */
footer{background:#0B0D14;padding:3rem 0 1.5rem;color:rgba(255,255,255,.6);font-size:.85rem}
.footer-inner{display:flex;justify-content:space-between;gap:2rem;flex-wrap:wrap}
.footer-col{min-width:160px}
.footer-col h4{color:#fff;font-size:.78rem;font-weight:700;text-transform:uppercase;margin-bottom:1rem;letter-spacing:.5px}
.footer-col ul li{display:block;margin-bottom:.5rem}
.footer-col ul li a{color:rgba(255,255,255,.75);font-size:.8rem;transition:color .2s}
.footer-col ul li a:hover{color:var(--primary-pale)}
.footer-logo img{height:35px;filter:brightness(0) invert(1);margin-bottom:.8rem}
.footer-address{font-size:.78rem;line-height:1.7;color:rgba(255,255,255,.75)}
.footer-address strong{color:#fff;font-weight:600}
.footer-address a{color:rgba(255,255,255,.75)}
.footer-address a:hover{color:var(--primary-pale)}
.footer-copy{text-align:center;margin-top:2rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.08);font-size:.72rem;color:rgba(255,255,255,.25)}

/* WhatsApp FAB */
.wpp-fab{position:fixed;bottom:24px;right:24px;z-index:99;width:54px;height:54px;background:var(--green);border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(37,211,102,.2);transition:transform .2s}
.wpp-fab:hover{transform:scale(1.08)}
.wpp-fab svg{width:26px;height:26px;fill:#fff}

/* ---- RESPONSIVE ---- */
@media(max-width:1100px){.nav-desktop,.bts-desktop{display:none}.hamburger{display:block}}
@media(max-width:992px){
  .cards-grid,.benefits-grid{grid-template-columns:repeat(2,1fr)}
  .bairros-grid{grid-template-columns:repeat(2,1fr)}
  .seo-cols{grid-template-columns:repeat(2,1fr)}
  .prop-grid{grid-template-columns:repeat(2,1fr)}
  .search-row{flex-wrap:wrap}
  .search-row .s-text{flex:1 1 100%}
  .search-row .s-select{flex:1 1 calc(33.33% - .3rem)}
  .search-row .s-btn{flex:0 0 50px}
  .hero-home{height:420px;min-height:auto}
}
@media(max-width:576px){
  .cards-grid,.bairros-grid,.benefits-grid,.prop-grid{grid-template-columns:1fr}
  .seo-cols{grid-template-columns:1fr}
  .footer-inner{flex-direction:column}
  .search-row .s-select{flex:1 1 100%}
  .search-row .s-btn{flex:1 1 100%}
  .hero-home{height:auto;min-height:auto;padding:5rem 0 3rem}
}


/* ---- MOBILE RESPONSIVE (Complete) ---- */
@media(max-width:768px){
  :root{--header-h:62px}
  .container{width:92%}
  .logo img{height:36px}
  .header{padding:0}
  .hero-home{height:70vh;min-height:350px;margin-top:var(--header-h)}
  .hero-title h1{font-size:1.3rem;padding:0 1rem}
  .search-bar{margin:1.2rem .5rem 0;padding:.4rem}
  .search-row{flex-wrap:wrap;gap:.3rem}
  .search-row .s-text{flex:1 1 100%}
  .search-row .s-select{flex:1 1 calc(50% - .15rem);width:auto}
  .search-row .s-btn{flex:1 1 100%}
  .s-input,.s-sel{min-height:44px;font-size:.85rem}
  .s-submit{min-height:44px}
  .section{padding:2rem 0}
  .section-title{font-size:1rem}
  .cards-grid{grid-template-columns:repeat(2,1fr);gap:.8rem}
  .bairros-grid{grid-template-columns:repeat(2,1fr);gap:.6rem}
  .benefits-grid{grid-template-columns:1fr;gap:1rem}
  .benefit-card{padding:1.2rem 1rem}
  .seo-cols{grid-template-columns:1fr}
  .prop-grid{grid-template-columns:1fr;gap:1rem}
  .carousel-slide img{aspect-ratio:2/1}
  .footer-inner{flex-direction:column;gap:1.5rem}
  .footer-logo img{height:28px}
  .footer-col{min-width:auto}
  footer{padding:2rem 0 1.2rem}
  .wpp-fab{width:48px;height:48px;bottom:16px;right:16px}
  .wpp-fab svg{width:22px;height:22px}
  .mobile-menu{width:75vw;max-width:300px}
  .mobile-menu-header img{height:28px}
  .breadcrumb-bar{margin-top:0;padding:.8rem 0}
  .breadcrumb{font-size:.75rem}
  .pagination a,.pagination span{width:34px;height:34px;font-size:.8rem}
}
@media(max-width:480px){
  :root{--header-h:56px}
  .logo img{height:30px}
  .header{padding:0}
  .hero-home{height:60vh;min-height:300px}
  .hero-title h1{font-size:1.1rem}
  .search-bar{margin:1rem .3rem 0;padding:.3rem}
  .search-row .s-select{flex:1 1 100%}
  .s-input,.s-sel{min-height:42px;font-size:.82rem}
  .cards-grid{grid-template-columns:1fr;gap:.8rem}
  .bairros-grid{grid-template-columns:1fr;gap:.6rem}
  .bairro-card{aspect-ratio:1.6/1}
  .carousel-slide img{aspect-ratio:1.5/1}
  .card .card-info{padding:.7rem .1rem .4rem}
  .card .card-info h3{font-size:.85rem}
  .footer-logo img{height:24px}
  .mobile-menu-header img{height:24px}
}


/* Skip Navigation */
.skip-nav{position:absolute;top:-100%;left:50%;transform:translateX(-50%);background:var(--primary);color:#fff;padding:.8rem 1.5rem;border-radius:0 0 8px 8px;font-weight:600;font-size:.9rem;z-index:100000;transition:top .2s}
.skip-nav:focus{top:0}

/* Focus Styles (Accessibility) */
*:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:2px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

/* Section H2 styled as section-title span */
.section-h2{font-size:1.1rem;font-weight:700;color:var(--dark);margin:0;display:inline}

/* Reduced Motion */
@media(prefers-reduced-motion:reduce){
  *,::before,::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
.header.scrolled{box-shadow:0 2px 16px rgba(0,0,0,0.08);border-bottom-color:transparent}
.header-center{display:flex;align-items:center;gap:28px;position:absolute;left:50%;transform:translateX(-50%)}
.header-center a{font-size:14px;color:#151517;font-weight:500;transition:all .15s}
.header-center a:hover{font-weight:700;color:#16b28b}
.header-center a.active{font-weight:700}
.header-right{display:flex;align-items:center}
.header-right .cta-btn{background:#151517;color:#fff;padding:10px 24px;border-radius:35px;font-weight:500;font-size:13.5px;transition:background .15s;display:flex;align-items:center}
.header-right .cta-btn:hover{background:#333}

/* Filter tag buttons */
.filter-tag{display:inline-flex;align-items:center;gap:5px;padding:6px 14px;border-radius:20px;font-size:13px;font-weight:500;border:1px solid var(--border);text-decoration:none;color:var(--text);background:#fff;transition:all .2s;cursor:pointer}
.filter-tag:hover{background:var(--bg-warm);border-color:var(--gold);color:var(--gold)}
