/* Base visual do site (mesma da página inicial) — usada por /imoveis e /imovel */
/* ─────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────── */
:root {
  --teal:       #1F5F5B;
  --teal-dark:  #163F3D;
  --teal-deep:  #1A3836;
  --teal-lite:  #EBF2F1;
  --olive:      #3D6B68;
  --ink:        #1C2625;
  --ink-60:     #637270;
  --ink-40:     #8FA5A3;
  --line:       rgba(28,38,37,0.09);
  --line-strong:rgba(28,38,37,0.18);
  --bg:         #FFFFFF;
  --bg-off:     #F7FAF9;
  --bg-warm:    #F0F5F4;

  --display: 'Fraunces', Georgia, serif;
  --body:    'Inter', system-ui, sans-serif;
  --ease:    cubic-bezier(0.23, 1, 0.32, 1);
}

/* dark — same token names */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:        #E2EDEC;
    --ink-60:     #7EA8A4;
    --ink-40:     #4D7470;
    --line:       rgba(200,230,228,0.09);
    --line-strong:rgba(200,230,228,0.18);
    --bg:         #0D1918;
    --bg-off:     #111F1E;
    --bg-warm:    #152321;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink:        #E2EDEC;
  --ink-60:     #7EA8A4;
  --ink-40:     #4D7470;
  --line:       rgba(200,230,228,0.09);
  --line-strong:rgba(200,230,228,0.18);
  --bg:         #0D1918;
  --bg-off:     #111F1E;
  --bg-warm:    #152321;
  color-scheme: dark;
}

/* ─────────────────────────────────────────────
   RESET + BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-left:  max(0px, env(safe-area-inset-left,0px));
  padding-right: max(0px, env(safe-area-inset-right,0px));
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ─────────────────────────────────────────────
   TOPBAR NAV
───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  padding-inline: max(24px, env(safe-area-inset-left,0px));
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav { background: rgba(13,25,24,0.85); }
}
:root[data-theme="dark"] .nav { background: rgba(13,25,24,0.85); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-right: auto;
}

.nav-logo-mark {
  width: 32px; height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-60);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 140ms ease, background 140ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-warm);
}

.nav-cta {
  margin-left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-outline {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: border-color 140ms ease, background 140ms ease, transform 160ms var(--ease);
}
.btn-outline:hover { background: var(--bg-warm); }
.btn-outline:active { transform: scale(0.97); }

.btn-solid {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  transition: background 140ms ease, transform 160ms var(--ease);
}
.btn-solid:hover { background: var(--teal-dark); }
.btn-solid:active { transform: scale(0.97); }

/* Ícone WhatsApp inline */
.nav-wa {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-60);
  transition: color 140ms ease;
}
.nav-wa:hover { color: var(--teal); }
.nav-wa svg { width: 16px; height: 16px; }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer {
  background: var(--ink);
  padding: 64px max(48px, env(safe-area-inset-left,0px)) 32px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer { background: #060F0E; }
}
:root[data-theme="dark"] .footer { background: #060F0E; }

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(235,242,241,0.1);
  margin-bottom: 32px;
}

.footer-brand-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  color: #EBF2F1;
  margin-bottom: 8px;
}
.footer-brand-desc {
  font-size: 13px;
  color: rgba(235,242,241,0.45);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 220px;
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact {
  font-size: 13px;
  color: rgba(235,242,241,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 140ms ease;
}
.footer-contact:hover { color: #EBF2F1; }
.footer-contact svg { width: 14px; height: 14px; flex-shrink: 0; }

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(235,242,241,0.4);
  margin-bottom: 16px;
}
.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-links a {
  font-size: 13px;
  color: rgba(235,242,241,0.6);
  transition: color 140ms ease;
}
.footer-col-links a:hover { color: #EBF2F1; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 12px;
  color: rgba(235,242,241,0.3);
}
.footer-creci {
  font-size: 12px;
  color: rgba(235,242,241,0.3);
}


@media (max-width: 900px) {
  .nav { padding-inline: 16px; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-cta { margin-left: 8px; }
  .footer { padding: 48px 20px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-wa { display: none; }
  .footer-top { grid-template-columns: 1fr; }
}
