/* ==========================================================================
   DESIGN TOKENS — IMÓVEL IDEAL
   Identidade visual própria, contemporânea e de alto padrão
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  /* Paleta Oficial Imóvel Ideal */
  --bg-main: #F7F8F5;            /* Fundo principal acolhedor e nobre */
  --surface: #FFFFFF;            /* Superfícies, cards e modais */
  --surface-alt: #F2F5F2;        /* Superfícies secundárias suaves */
  --brand-primary: #173D3A;      /* Cor institucional profunda */
  --brand-primary-hover: #0E2927;/* Hover institucional */
  --brand-accent: #167B6F;       /* Cor de destaque vibrante / teal sofisticado */
  --brand-accent-hover: #126359; /* Hover do destaque */
  --brand-accent-light: #EBF7F5; /* Fundo suave com matiz teal */
  --brand-gold: #C3A46B;         /* Detalhes sofisticados e badges nobres */
  --brand-gold-hover: #B09257;   /* Hover do dourado */
  --brand-gold-pale: #FBF7EF;    /* Fundo suave dourado */
  --brand-gold-border: #E8DCBE;  /* Borda dourada sutil */
  --text-main: #202B2A;          /* Textos principais e títulos */
  --text-secondary: #77817E;     /* Textos secundários e legendas */
  --text-muted: #77817E;         /* Alias para textos secundários */
  --border: #E8ECE8;             /* Bordas sutis */
  --border-strong: #D5DCD5;      /* Bordas em foco e divisores */
  --success: #1B8A5A;            /* Status positivo */
  --danger: #C0392B;             /* Status de alerta */
  --whatsapp: #25D366;           /* Cor oficial WhatsApp */
  --whatsapp-hover: #1EBE5D;

  /* Aliases para compatibilidade total */
  --forest: #173D3A;
  --forest2: #167B6F;
  --forest-light: #167B6F;
  --ink: #202B2A;
  --muted: #77817E;
  --cream: #F7F8F5;
  --line: #E8ECE8;
  --line-strong: #D5DCD5;
  --pale: #F2F5F2;
  --gold: #C3A46B;
  --white: #FFFFFF;

  /* Tipografia Oficial */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --sans: var(--font-sans);
  --serif: var(--font-serif);

  /* Sombras Sofisticadas */
  --shadow-xs: 0 1px 3px rgba(23, 61, 58, 0.04);
  --shadow-sm: 0 4px 12px rgba(23, 61, 58, 0.05);
  --shadow-md: 0 10px 28px rgba(23, 61, 58, 0.08);
  --shadow-lg: 0 20px 48px rgba(23, 61, 58, 0.12);
  --shadow-card: 0 4px 20px rgba(23, 61, 58, 0.05);
  --shadow-card-hover: 0 16px 36px rgba(23, 61, 58, 0.12);
  --shadow-modal: 0 25px 70px rgba(14, 41, 39, 0.28);

  /* Raios de Arredondamento */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transições Fluídas */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

button, input, select, textarea {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Scrollbar Elegante */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Animações Globais */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(22, 123, 111, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(22, 123, 111, 0);
  }
}

.fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
