/* ═══════════════════════════════════════════════════════════════
   IMOBILAR IMÓVEIS — Stylesheet
   Brand Colors: Burgundy #7B1A1A / Grey #6E6E6E
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --brand:       #7B1A1A;
  --brand-light: #9B2C2C;
  --brand-dark:  #5A1212;
  --brand-bg:    #FDF6F6;
  --grey-900:    #1A1A1A;
  --grey-700:    #4A4A4A;
  --grey-600:    #6E6E6E;
  --grey-400:    #9E9E9E;
  --grey-200:    #E5E5E5;
  --grey-100:    #F5F5F5;
  --white:       #FFFFFF;
  --gold:        #C9A84C;
  --gold-light:  #E8D48B;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.06);
  --shadow-md:   0 4px 20px rgba(0,0,0,.1);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.15);
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  .35s cubic-bezier(.4,0,.2,1);
  --font-main:   'Inter', system-ui, -apple-system, sans-serif;
  --font-display:'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: var(--font-main);
  color: var(--grey-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--grey-900); line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-desc {
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--grey-600);
  font-size: 1.05rem;
}
.text-center { text-align: center; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  letter-spacing: .3px;
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(123,26,26,.3);
}
.btn-primary:hover {
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(123,26,26,.4);
}
.btn-outline {
  border: 2px solid var(--brand);
  color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--brand);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: #B8943F;
  transform: translateY(-2px);
}

/* ── Header / Navbar ───────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  transition: all var(--transition);
}
.header.scrolled {
  padding: 10px 0;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo img {
  height: 68px;
  width: auto;
  transition: height var(--transition);
}
.header.scrolled .header-logo img { height: 54px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--grey-700);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--brand); }

.nav-cta {
  padding: 10px 24px !important;
  background: var(--brand);
  color: var(--white) !important;
  border-radius: 50px;
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--brand-light); color: var(--white) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--grey-900);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark) 0%, #2D0A0A 60%, #1A0505 100%);
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201,168,76,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(123,26,26,.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero-decoration {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 50%;
  pointer-events: none;
}
.hero-decoration::before {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(201,168,76,.08);
  border-radius: 50%;
}
.hero > .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 20px;
}
.hero-left { max-width: 520px; }
.hero-right { max-width: 520px; }
.hero h1 { color: var(--white); margin-bottom: 0; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.hero h1 .accent { color: var(--gold); }
.hero-text {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
/* Hero CTA cards */
/* ── CTA Section (below hero) ────────────────────────────── */
.cta-section {
  background: var(--grey-100);
  padding: 56px 0 48px;
}
.cta-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.cta-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}
.cta-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: var(--brand-bg);
  border-radius: 50%;
  color: var(--brand);
}
.cta-card-icon svg {
  width: 24px;
  height: 24px;
}
.cta-card p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--grey-900);
  line-height: 1.4;
}
.cta-bottom {
  text-align: center;
  padding-top: 8px;
}
.cta-bottom p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 16px;
}

.hero-search-wrapper {
  position: relative;
  z-index: 2;
  padding: 0 0 24px;
}
.hero-stat {
  text-align: center;
  padding: 20px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
}
.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
}

/* Hero search bar */
.hero-search {
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  gap: 2px;
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.hero-search select,
.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: none;
  font-family: var(--font-main);
  font-size: .9rem;
  color: var(--grey-700);
  background: var(--grey-100);
  border-radius: var(--radius-sm);
  outline: none;
}
.hero-search select { flex: 0 1 180px; cursor: pointer; }
.hero-search input { flex: 2; }
.hero-search button {
  padding: 14px 32px;
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  transition: background var(--transition);
  white-space: nowrap;
}
.hero-search button:hover { background: var(--brand-light); }

/* ── Section spacing ───────────────────────────────────────── */
section { padding: 100px 0; }

/* ── Carousel ──────────────────────────────────────────────── */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.carousel-track {
  display: flex;
}
.carousel-track .property-card {
  min-width: calc(100% / 3);
  width: calc(100% / 3);
  flex-shrink: 0;
  padding: 0 14px;
  box-sizing: border-box;
}
.carousel-track .property-card:hover {
  transform: translateY(-6px);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition);
}
.carousel-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}
.carousel-btn:hover svg { stroke: var(--white); }
.carousel-btn svg { width: 20px; height: 20px; color: var(--grey-700); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grey-200);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.carousel-dot.active {
  background: var(--brand);
  transform: scale(1.3);
}

/* ── Property Cards ────────────────────────────────────────── */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--grey-200);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.property-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.property-card:hover .property-card-image img { transform: scale(1.08); }
.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.property-badge.venda { background: var(--brand); color: var(--white); }
.property-badge.aluguel { background: var(--gold); color: var(--white); }
.property-badge.comercial { background: var(--grey-700); color: var(--white); left: auto; right: 16px; }
.property-card-body { padding: 24px; }
.property-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: 4px;
}
.property-card-location {
  font-size: .85rem;
  color: var(--grey-400);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.property-card-features {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--grey-200);
  margin-bottom: 16px;
}
.property-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--grey-600);
}
.property-feature svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
.property-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.property-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand);
}
.property-price small { font-size: .7rem; font-weight: 400; color: var(--grey-400); }
.property-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.property-link:hover { gap: 8px; }

/* ── Property Card Actions (two-button footer) ──────────── */
.property-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.property-btn-detail {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 2px solid var(--brand);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
  transition: all var(--transition);
  white-space: nowrap;
}
.property-btn-detail:hover {
  background: var(--brand);
  color: var(--white);
}
.property-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  transition: all var(--transition);
  flex-shrink: 0;
}
.property-btn-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}
.property-btn-whatsapp:hover {
  background: #1ebe57;
  transform: scale(1.1);
}

/* ── About Section ─────────────────────────────────────────── */
.about { background: var(--grey-100); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image-wrapper {
  position: relative;
}
.about-image-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-main img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.about-image-secondary {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}
.about-image-secondary img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.about-content .section-label { margin-bottom: 12px; }
.about-content p {
  margin-bottom: 16px;
  color: var(--grey-600);
  font-size: .95rem;
}
.about-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  margin: 24px 0;
}
.about-highlight-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-highlight-icon svg { width: 24px; height: 24px; color: var(--brand); }
.about-highlight-text {
  font-size: .85rem;
  color: var(--grey-700);
  font-style: italic;
}

/* ── Services ──────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--brand-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 28px; height: 28px; color: var(--brand); }
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: .9rem; color: var(--grey-600); }

/* ── Tianguá Section ───────────────────────────────────────── */
.tiangua {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #2D0A0A 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.tiangua::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(201,168,76,.1) 0%, transparent 60%);
}
.tiangua .container { position: relative; z-index: 1; }
.tiangua .section-label { color: var(--gold); }
.tiangua .section-title { color: var(--white); }
.tiangua .section-desc { color: rgba(255,255,255,.65); }

.tiangua-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.tiangua-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.tiangua-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}
.tiangua-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(201,168,76,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.tiangua-card-icon svg { width: 22px; height: 22px; color: var(--gold); }
.tiangua-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.tiangua-card p { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.6; }

/* ── Founder Tribute ───────────────────────────────────────── */
.founder { background: var(--grey-100); }
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.founder-image {
  position: relative;
}
.founder-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  object-fit: cover;
}
.founder-image::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}
.founder-content blockquote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--brand);
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.founder-content p {
  color: var(--grey-600);
  margin-bottom: 14px;
  font-size: .95rem;
}
.founder-signature {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.founder-signature img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}
.founder-signature-name { font-weight: 700; color: var(--grey-900); }
.founder-signature-role { font-size: .82rem; color: var(--grey-400); }

/* ── Newsletter ────────────────────────────────────────────── */
.newsletter {
  background: var(--brand-bg);
  padding: 80px 0;
}
.newsletter-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid var(--grey-200);
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--brand); }
.newsletter-form button { white-space: nowrap; }

/* Newsletter — two-step preferences */
.newsletter-wrapper { margin-top: 28px; }
.newsletter-wrapper .newsletter-form { margin-top: 0; }
.newsletter-prefs-step { text-align: center; }
.newsletter-step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: 20px;
}
.newsletter-prefs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.newsletter-pref-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--grey-200);
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--grey-700);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.newsletter-pref-item:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.newsletter-pref-item input {
  display: none;
}
.pref-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--grey-200);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.newsletter-pref-item input:checked ~ .pref-check {
  background: var(--brand);
  border-color: var(--brand);
}
.newsletter-pref-item input:checked ~ .pref-check::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}
.newsletter-pref-item input:checked ~ .pref-check + * {
  color: var(--brand);
}
.newsletter-pref-item:has(input:checked) {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-bg);
}
.newsletter-pref-item.disabled {
  opacity: .4;
  pointer-events: none;
}
.newsletter-confirm {
  min-width: 220px;
}
.newsletter-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}
.newsletter-success svg {
  animation: scaleIn .4s ease;
}
@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ── Contact ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--grey-100);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: all var(--transition);
}
.contact-info-card:hover {
  background: var(--brand-bg);
  transform: translateX(4px);
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; color: var(--white); }
.contact-info-label { font-size: .78rem; color: var(--grey-400); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.contact-info-value { font-weight: 600; color: var(--grey-900); font-size: .95rem; }
.contact-info-value a { color: var(--brand); }
.contact-info-value a:hover { text-decoration: underline; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--grey-900);
  color: rgba(255,255,255,.5);
  padding: 28px 0;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: .7; object-fit: contain; }
.footer-text { font-size: .82rem; }
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--brand);
  border-color: var(--brand);
}
.footer-social svg { width: 16px; height: 16px; fill: rgba(255,255,255,.6); }
.footer-social a:hover svg { fill: var(--white); }

.footer-credit {
  width: 100%;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.footer-credit a { color: rgba(255,255,255,.55); font-weight: 600; transition: color var(--transition); }
.footer-credit a:hover { color: var(--gold); }
.amdg-link { display: inline-flex; align-items: center; gap: .3rem; }
.amdg-logo { height: 16px; width: auto; max-height: 16px; display: inline-block; vertical-align: middle; opacity: .7; transition: opacity .3s ease, transform .3s ease; }
.amdg-link:hover .amdg-logo { opacity: 1; transform: scale(1.05); }

/* ── WhatsApp Float ────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all var(--transition);
  animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.5);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 20px rgba(37,211,102,.6), 0 0 0 12px rgba(37,211,102,.1); }
}

/* ── Back to Top ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 998;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--brand-light);
  transform: translateY(-3px);
}
.back-to-top svg { width: 20px; height: 20px; }

/* ── Cookie Consent ────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--grey-900);
  color: rgba(255,255,255,.8);
  padding: 20px 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform .5s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner p { font-size: .85rem; max-width: 700px; }
.cookie-banner-actions { display: flex; gap: 12px; }
.cookie-accept {
  padding: 10px 24px;
  background: var(--brand);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: .85rem;
  transition: background var(--transition);
}
.cookie-accept:hover { background: var(--brand-light); }

/* ── Scroll Animations ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all .7s cubic-bezier(.4,0,.2,1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all .7s cubic-bezier(.4,0,.2,1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Properties Page (imoveis.html) ────────────────────────── */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--brand-dark) 0%, #2D0A0A 100%);
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.6); font-size: 1.1rem; }

.filters-bar {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-top: -40px;
  position: relative;
  z-index: 10;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filters-bar select,
.filters-bar input {
  flex: 1;
  min-width: 150px;
  padding: 12px 16px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition);
}
.filters-bar select:focus,
.filters-bar input:focus { border-color: var(--brand); }
.filters-bar .btn { min-width: 120px; justify-content: center; }

/* ── Active filter tags ───────────────────────────────────── */
.active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}
.active-tags:empty { display: none; }
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--brand-bg);
  border: 1px solid var(--brand);
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--brand);
  cursor: default;
}
.filter-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: .7rem;
  line-height: 1;
  color: var(--brand);
  cursor: pointer;
  transition: all .15s;
}
.filter-tag-remove:hover {
  background: var(--brand);
  color: var(--white);
}

.clear-filters-btn {
  padding: 6px 16px;
  font-family: var(--font-main);
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
.clear-filters-btn:hover { color: var(--brand-light); text-decoration: underline; }

/* Advanced filters row */
.filters-row-advanced {
  display: flex;
  gap: 12px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--grey-200);
  margin-top: 4px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.filters-row-advanced select {
  flex: 1;
  min-width: 130px;
  padding: 10px 14px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: .85rem;
  color: var(--grey-700);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.filters-row-advanced select:focus { border-color: var(--brand); }

/* ── Listing Toolbar (sort + view toggle) ─────────────────── */
.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  margin-bottom: 4px;
  gap: 16px;
  flex-wrap: wrap;
}
.listing-toolbar .properties-count {
  font-size: .9rem;
  color: var(--grey-400);
  margin: 0;
}
.listing-toolbar .properties-count strong { color: var(--grey-900); }
.listing-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sort-select {
  padding: 10px 16px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: .85rem;
  color: var(--grey-700);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--brand); }
.view-toggle {
  display: flex;
  border: 2px solid var(--grey-200);
  border-radius: 50px;
  overflow: hidden;
}
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--grey-600);
  background: var(--white);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.view-toggle-btn svg { flex-shrink: 0; }
.view-toggle-btn.active {
  background: var(--brand);
  color: var(--white);
}
.view-toggle-btn.active svg { stroke: var(--white); }
.view-toggle-btn:not(.active):hover {
  background: var(--grey-100);
  color: var(--grey-900);
}

/* ── Map Container ────────────────────────────────────────── */
.map-container {
  height: 550px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200);
}

.properties-section { padding: 28px 0 100px; }
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--grey-400);
}
.no-results svg { width: 64px; height: 64px; margin-bottom: 16px; color: var(--grey-200); }

/* ── Mobile Menu Overlay ───────────────────────────────────── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .carousel-track .property-card { min-width: 50%; width: 50%; }
  .hero > .container { grid-template-columns: 1fr; text-align: center; padding-top: 100px; }
  .hero-left, .hero-right { max-width: 100%; }
  .hero-stats { max-width: 500px; margin: 0 auto; }
  .hero-decoration { display: none; }
  .hero-search select { flex: 1; }
  .cta-cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-secondary { right: 10px; bottom: -20px; width: 160px; }
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-image { text-align: center; }
  .founder-image img { margin: 0 auto; }
  .founder-image::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .carousel-track .property-card { min-width: 100%; width: 100%; }
  .carousel-btn { width: 36px; height: 36px; }
  .carousel-btn svg { width: 16px; height: 16px; }
  section { padding: 70px 0; }
  /* Header: constrain logo so hamburger stays on screen */
  .header-logo img { height: 44px; }
  .header.scrolled .header-logo img { height: 40px; }
  .header .container { gap: 12px; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 1000;
  }
  .nav-links.active { right: 0; }
  .nav-links a { color: var(--grey-700) !important; font-size: 1.05rem; }
  .nav-links a.nav-cta {
    background: var(--brand) !important;
    color: var(--white) !important;
    border-radius: 50px;
    padding: 12px 24px !important;
    text-align: center;
  }
  .nav-links a.nav-cta:hover { background: var(--brand-light) !important; }
  .menu-toggle { display: flex; flex-shrink: 0; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stat { padding: 14px 8px; }
  .hero-stat-number { font-size: 1.4rem; }
  .properties-grid { grid-template-columns: 1fr; }
  .listing-toolbar { flex-direction: column; align-items: flex-start; }
  .listing-toolbar-right { width: 100%; justify-content: space-between; }
  .map-container { height: 400px; }
  /* Hero search: prevent overflow */
  .hero-search { flex-direction: column; }
  .hero-search select,
  .hero-search input { max-width: 100%; width: 100%; flex: none; }
  .hero-search button { width: 100%; text-align: center; justify-content: center; display: flex; }
  .hero-search-wrapper { padding: 0 0 20px; }
  /* CTA cards: single column on mobile */
  .cta-cards { grid-template-columns: 1fr; }
  .cta-card { padding: 24px 20px; }
  .cta-card-icon { width: 44px; height: 44px; }
  .cta-card-icon svg { width: 22px; height: 22px; max-width: 22px; max-height: 22px; }
  .cta-card p { font-size: 1rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-prefs { gap: 8px; }
  .newsletter-pref-item { padding: 8px 14px; font-size: .85rem; }
  .footer .container { flex-direction: column; text-align: center; }
  .filters-bar { flex-direction: column; }
  .filters-bar select,
  .filters-bar input,
  .filters-row-advanced select { min-width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.8rem; }
  .header-logo img { height: 38px; }
  .header.scrolled .header-logo img { height: 36px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stat-number { font-size: 1.2rem; }
  .hero-stat-label { font-size: .7rem; }
  .cta-card { padding: 20px 16px; }
  .cta-card-icon { width: 40px; height: 40px; }
  .cta-card-icon svg { width: 20px; height: 20px; max-width: 20px; max-height: 20px; }
  .cta-card p { font-size: .9rem; }
  .about-image-secondary { display: none; }
  .cookie-banner .container { flex-direction: column; text-align: center; }
  .featured-card { flex-direction: column; }
  .featured-card-image { max-width: 100%; height: 200px; }
}

/* ── Featured Post Section ───────────────────────────────── */
.featured-section {
  padding: 3rem 0 0;
}
.featured-card {
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, var(--brand-bg) 0%, var(--white) 100%);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.featured-card--with-image .featured-card-image {
  flex: 0 0 340px;
  max-width: 340px;
}
.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-card-body {
  flex: 1;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: .5rem;
}
.featured-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--grey-900);
  margin-bottom: .75rem;
}
.featured-desc {
  font-size: .95rem;
  color: var(--grey-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.featured-cta {
  align-self: flex-start;
}
@media (max-width: 768px) {
  .featured-card { flex-direction: column; }
  .featured-card--with-image .featured-card-image { flex: none; max-width: 100%; height: 200px; }
  .featured-card-body { padding: 1.5rem; }
  .featured-title { font-size: 1.25rem; }
}
