/* Bahia Imóveis — design system extraído da logomarca (verde-esmeralda, âmbar, azul) */

:root {
  --verde: #009A74;
  --verde-dark: #016B52;
  --verde-darker: #0B3A30;
  --verde-light: #E3F5EF;
  --laranja: #F5A244;
  --laranja-dark: #D97F1F;
  --azul: #0397D7;
  --ink: #12241F;
  --ink-soft: #4B5F58;
  --paper: #FAFAF8;
  --white: #FFFFFF;
  --border: #E4E4E0;
  --shadow: 0 12px 30px -12px rgba(11, 58, 48, 0.25);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--verde-darker);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── NAV ─── */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--verde-darker);
}
.brand img { width: 38px; height: 38px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--verde); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .68rem 1.4rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--verde);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(0, 154, 116, .55);
}
.btn-primary:hover { background: var(--verde-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--verde);
  color: var(--verde-dark);
}
.btn-ghost:hover { background: var(--verde-light); }
.btn-light {
  background: var(--white);
  color: var(--verde-darker);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(0,0,0,.3); }

@media (max-width: 720px) {
  .site-nav .wrap { flex-wrap: wrap; row-gap: .6rem; }
  .brand { font-size: .92rem; }
  .brand img { width: 30px; height: 30px; }
  .nav-links { gap: .6rem; width: 100%; justify-content: space-between; font-size: 0; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn { font-size: .82rem; padding: .58rem 1.1rem; margin-left: auto; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; text-align: center; }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,58,48,.15) 0%, rgba(11,58,48,.55) 65%, rgba(11,58,48,.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0 3rem;
  width: 100%;
}
.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  padding: .35rem .9rem;
  border-radius: 100px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 780px;
  margin-bottom: .9rem;
}
.hero p.lead {
  max-width: 620px;
  font-size: 1.08rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.8rem;
}
.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ─── HOME HERO (menor, portal) ─── */
.home-hero { min-height: 62vh; }

/* ─── SECTIONS ─── */
section { padding: 5rem 0; }
.section-tight { padding: 3.2rem 0; }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head .kicker {
  color: var(--verde);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .6rem;
  display: block;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-head p { color: var(--ink-soft); margin-top: .8rem; font-size: 1.02rem; }

.bg-tint { background: var(--verde-light); }
.bg-dark { background: var(--verde-darker); color: rgba(255,255,255,.92); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-dark .section-head p { color: rgba(255,255,255,.75); }

/* ─── LAUNCH CARDS (home) ─── */
.launch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
@media (max-width: 820px) { .launch-grid { grid-template-columns: 1fr; } }

.launch-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.launch-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(11,58,48,.32); }
.launch-card .thumb {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.launch-card .thumb.thumb-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    radial-gradient(circle at 18px 18px, rgba(255,255,255,.14) 2.5px, transparent 2.5px),
    linear-gradient(135deg, var(--verde-dark), var(--azul));
  background-size: 36px 36px, cover;
}
.thumb-brand .brand-mark {
  text-align: center;
  color: rgba(255,255,255,.95);
}
.thumb-brand .brand-mark .wave { font-size: 2.4rem; display: block; margin-bottom: .4rem; opacity: .9; }
.thumb-brand .brand-mark strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.thumb-brand .brand-mark span.sub {
  display: block;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
  margin-top: .2rem;
}
.launch-card .thumb .tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--laranja);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .8rem;
  border-radius: 100px;
  letter-spacing: .03em;
}
.launch-card .body { padding: 1.6rem 1.7rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.launch-card h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.launch-card .loc { color: var(--ink-soft); font-size: .9rem; margin-bottom: .9rem; }
.launch-card p.desc { color: var(--ink-soft); font-size: .94rem; margin-bottom: 1.3rem; flex: 1; }
.launch-card .foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.1rem; border-top: 1px solid var(--border);
}
.launch-card .price-from { font-size: .78rem; color: var(--ink-soft); }
.launch-card .price-from strong { display: block; color: var(--verde-dark); font-size: 1.15rem; font-family: 'Poppins', sans-serif; }

/* ─── GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid figure {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--border);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: relative;
  margin-top: -2.6rem;
  padding: .5rem .9rem;
  background: linear-gradient(0deg, rgba(11,58,48,.75), transparent);
  color: var(--white);
  font-size: .82rem;
  font-weight: 500;
}

/* ─── PLANTAS ─── */
.plantas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
@media (max-width: 700px) { .plantas-grid { grid-template-columns: 1fr; } }
.planta-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.planta-card img { width: 100%; }
.planta-card .cap { padding: 1rem 1.2rem; }
.planta-card .cap h4 { font-size: 1rem; margin-bottom: .2rem; }
.planta-card .cap span { color: var(--ink-soft); font-size: .85rem; }

/* ─── FICHA TÉCNICA ─── */
.ficha-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 700px) { .ficha-grid { grid-template-columns: 1fr; } }
.ficha-list { list-style: none; }
.ficha-list li {
  display: flex;
  gap: .7rem;
  padding: .6rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: .95rem;
}
.ficha-list li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--verde);
  margin-top: .55rem;
  flex-shrink: 0;
}

/* ─── TABELA DE PREÇOS ─── */
.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
}
table.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .87rem;
  min-width: 640px;
}
table.price-table thead th {
  background: var(--verde-darker);
  color: var(--white);
  text-align: left;
  padding: .8rem 1rem;
  font-weight: 600;
  white-space: nowrap;
  position: sticky; top: 0;
}
table.price-table tbody td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.price-table tbody tr:nth-child(even) { background: #FAFAF8; }
table.price-table tbody tr:hover { background: var(--verde-light); }
table.price-table td.destaque { color: var(--verde-dark); font-weight: 700; }
.table-note { font-size: .82rem; color: var(--ink-soft); margin-top: .8rem; }

/* ─── DIFERENCIAIS (chips/list) ─── */
.chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.chip {
  background: var(--white);
  border: 1px solid var(--border);
  padding: .55rem 1rem;
  border-radius: 100px;
  font-size: .87rem;
  font-weight: 500;
  display: flex; align-items: center; gap: .5rem;
}
.chip::before { content: '✓'; color: var(--verde); font-weight: 800; }

/* ─── CTA FINAL ─── */
.cta-final {
  background: linear-gradient(135deg, var(--verde-dark), var(--verde-darker));
  color: var(--white);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
}
.cta-final h2 { color: var(--white); margin-bottom: .7rem; }
.cta-final p { color: rgba(255,255,255,.82); margin-bottom: 1.6rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ─── FOOTER ─── */
footer.site-footer {
  background: var(--verde-darker);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 2rem;
  font-size: .88rem;
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer .brand-foot { display: flex; align-items: center; gap: .6rem; color: var(--white); font-family: 'Poppins', sans-serif; font-weight: 600; }
footer .brand-foot img { width: 30px; }

/* ─── WHATSAPP FLOAT ─── */
.wa-float {
  position: fixed;
  bottom: 1.4rem; right: 1.4rem;
  background: #25D366;
  color: var(--white);
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.35);
  z-index: 300;
  font-size: 1.6rem;
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ─── BREADCRUMB ─── */
.crumb { font-size: .85rem; color: var(--ink-soft); padding: 1.1rem 0 0; }
.crumb a:hover { color: var(--verde); }
