/**
 * rg-global.css — Sistema de design global Regente Imóveis
 *
 * Fonte: Design System Figma (Site-Regente-Novo, node 2:1403)
 * Extraído em: 2026-03-27
 *
 * Carregado em TODAS as páginas.
 * CSS específico por página está em: rg-imovel.css, rg-busca.css, rg-home.css, rg-pages.css
 *
 * @package HelloElementorChild
 * @since   0.1.0
 */


/* =========================================================================
   0. @font-face — Self-hosted (sem Google Fonts externo)
   =========================================================================
   Por que self-hosted:
   - Elimina FOUT (Flash of Unstyled Text) causado por font-display:swap
     do Google Fonts — fontes servidas da mesma origem não têm latência
     de DNS externo + TCP + TLS handshake.
   - O Elementor carrega Google Fonts com display=swap, que trocava a
     tipografia visualmente após o paint inicial.
   - A opção "Serve Google Fonts Locally" do LiteSpeed Cache não existe
     nesta versão do plugin (apenas ggfonts_rm e ggfonts_async).
   - Solução definitiva: baixar woff2 para assets/fonts/, declarar
     @font-face aqui e desabilitar Google Fonts no Elementor via
     elementor_google_font = 'yes' (disable).
   - font-display: block — browser aguarda até 3s antes de mostrar
     fallback; como fonte está na mesma origem (sem round-trip externo),
     ela chega antes desse timeout. Zero FOUT.
   Manutenção:
   - Ao adicionar novo peso de fonte no Elementor, baixar o woff2
     correspondente em assets/fonts/ e adicionar o @font-face abaixo.
   - Fontes baixadas em: 2026-03-28 via Google Fonts API v2.
   ========================================================================= */

/* Poppins — usada em headings e título da busca */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/poppins-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url('../fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('../fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 700;
  font-display: block;
  src: url('../fonts/poppins-700-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url('../fonts/poppins-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Roboto — usada em todo o corpo do texto, Elementor Kit global */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: block;
  src: url('../fonts/roboto-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/roboto-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/roboto-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url('../fonts/roboto-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('../fonts/roboto-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 700;
  font-display: block;
  src: url('../fonts/roboto-700-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* =========================================================================
   1. CSS Custom Properties — Design Tokens
   ========================================================================= */

:root {

  /* --- Cores primárias --- */
  --rg-color-primary:        #000551; /* Deep Blue — cor principal da marca */
  --rg-color-primary-dark:   #023f71; /* Dark Blue — hover, gradientes */
  --rg-color-primary-light:  #7fb1cb; /* Light Blue — destaques suaves */

  /* --- Cores de acento --- */
  --rg-color-accent:         #fbc500; /* Gold — CTAs, badges, destaques */
  --rg-color-accent-bright:  #feee00; /* Yellow bright — hover do accent */

  /* --- Cores de estado --- */
  --rg-color-success:        #00b707; /* Verde — disponível, confirmação */
  --rg-color-error:          #d32f2f; /* Vermelho — erros, alertas */
  --rg-color-warning:        #fbc500; /* Reutiliza accent */

  /* --- Neutros / Backgrounds --- */
  --rg-color-bg-cream:       #fbf7de; /* Fundo creme — seções hero */
  --rg-color-bg-gray:        #f4f4f8; /* Fundo cinza — corpo da página de imóvel */
  --rg-color-bg-white:       #ffffff;
  --rg-color-bg-card:        #ffffff;

  /* --- Bordas e divisores --- */
  --rg-color-border:         #e9e9f0;
  --rg-color-border-light:   #efefef;

  /* --- Texto --- */
  --rg-color-text:           #000551; /* Usa primary como texto principal */
  --rg-color-text-secondary: #4a4a6a;
  --rg-color-text-muted:     #888888;
  --rg-color-text-light:     #cccccc;
  --rg-color-text-on-dark:   #ffffff;
  --rg-color-text-on-accent: #000551;

  /* =========================================================================
     Tipografia
     ========================================================================= */

  --rg-font-heading:   'Poppins', sans-serif;  /* Títulos — Poppins Bold */
  --rg-font-body:      'Roboto', sans-serif;   /* Corpo — Roboto Regular/Medium */

  --rg-font-weight-regular: 400;
  --rg-font-weight-medium:  500;
  --rg-font-weight-bold:    700;

  /* Escala tipográfica (Figma: 12, 14, 16, 18, 20, 24, 32, 36, 48) */
  --rg-text-xs:   0.75rem;   /* 12px */
  --rg-text-sm:   0.875rem;  /* 14px */
  --rg-text-base: 1rem;      /* 16px */
  --rg-text-md:   1.125rem;  /* 18px */
  --rg-text-lg:   1.25rem;   /* 20px */
  --rg-text-xl:   1.5rem;    /* 24px */
  --rg-text-2xl:  2rem;      /* 32px */
  --rg-text-3xl:  2.25rem;   /* 36px */
  --rg-text-4xl:  3rem;      /* 48px */

  --rg-line-height-tight:  1.2;
  --rg-line-height-normal: 1.5;
  --rg-line-height-loose:  1.75;

  /* =========================================================================
     Espaçamento — escala de 4pt/8dp
     ========================================================================= */

  --rg-space-1:  0.25rem;  /* 4px  */
  --rg-space-2:  0.5rem;   /* 8px  */
  --rg-space-3:  0.75rem;  /* 12px */
  --rg-space-4:  1rem;     /* 16px */
  --rg-space-5:  1.25rem;  /* 20px */
  --rg-space-6:  1.5rem;   /* 24px */
  --rg-space-8:  2rem;     /* 32px */
  --rg-space-10: 2.5rem;   /* 40px */
  --rg-space-12: 3rem;     /* 48px */
  --rg-space-16: 4rem;     /* 64px */
  --rg-space-20: 5rem;     /* 80px */

  /* =========================================================================
     Layout
     ========================================================================= */

  --rg-container-max:    1200px;
  --rg-container-wide:   1362px;
  --rg-container-narrow:  800px;

  --rg-radius-sm:  4px;
  --rg-radius:     8px;
  --rg-radius-md:  12px;
  --rg-radius-lg:  16px;
  --rg-radius-full: 9999px;

  --rg-shadow-sm:  0 1px 3px rgba(0,5,81,0.08);
  --rg-shadow:     0 2px 8px rgba(0,5,81,0.12);
  --rg-shadow-md:  0 4px 16px rgba(0,5,81,0.16);
  --rg-shadow-lg:  0 8px 32px rgba(0,5,81,0.20);

  /* =========================================================================
     Transições
     ========================================================================= */

  --rg-transition-fast:   150ms ease-out;
  --rg-transition:        250ms ease-out;
  --rg-transition-slow:   400ms ease-out;

  /* =========================================================================
     Z-index
     ========================================================================= */

  --rg-z-base:    0;
  --rg-z-above:   10;
  --rg-z-overlay: 100;
  --rg-z-modal:   1000;
  --rg-z-toast:   2000;
}


/* =========================================================================
   2. Reset mínimo
   ========================================================================= */

/* Box sizing universal */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Remove margin/padding de listas usadas em navegação */
.rg-list-reset {
  list-style: none;
  margin: 0;
  padding: 0;
}


/* =========================================================================
   3. Container utilitário
   ========================================================================= */

.rg-container {
  max-width: var(--rg-container-max);
  margin-inline: auto;
  padding-inline: var(--rg-space-6);
}

.rg-container--wide {
  max-width: var(--rg-container-wide);
}

.rg-container--narrow {
  max-width: var(--rg-container-narrow);
}

@media (max-width: 767px) {
  .rg-container {
    padding-inline: var(--rg-space-4);
  }
}


/* =========================================================================
   4. Tipografia base
   ========================================================================= */

.rg-heading-1 {
  font-family: var(--rg-font-heading);
  font-weight: var(--rg-font-weight-bold);
  font-size: var(--rg-text-4xl);
  line-height: var(--rg-line-height-tight);
  color: var(--rg-color-primary);
}

.rg-heading-2 {
  font-family: var(--rg-font-heading);
  font-weight: var(--rg-font-weight-bold);
  font-size: var(--rg-text-3xl);
  line-height: var(--rg-line-height-tight);
  color: var(--rg-color-primary);
}

.rg-heading-3 {
  font-family: var(--rg-font-heading);
  font-weight: var(--rg-font-weight-bold);
  font-size: var(--rg-text-2xl);
  line-height: var(--rg-line-height-normal);
  color: var(--rg-color-primary);
}

.rg-heading-4 {
  font-family: var(--rg-font-heading);
  font-weight: var(--rg-font-weight-bold);
  font-size: var(--rg-text-xl);
  line-height: var(--rg-line-height-normal);
  color: var(--rg-color-primary);
}

.rg-text-body {
  font-family: var(--rg-font-body);
  font-weight: var(--rg-font-weight-regular);
  font-size: var(--rg-text-base);
  line-height: var(--rg-line-height-normal);
  color: var(--rg-color-text);
}

.rg-text-sm {
  font-size: var(--rg-text-sm);
  line-height: var(--rg-line-height-normal);
}

.rg-text-muted {
  color: var(--rg-color-text-muted);
}


/* =========================================================================
   5. Botões base
   ========================================================================= */

.rg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rg-space-2);
  padding: var(--rg-space-3) var(--rg-space-6);
  font-family: var(--rg-font-body);
  font-weight: var(--rg-font-weight-medium);
  font-size: var(--rg-text-base);
  line-height: 1;
  border: none;
  border-radius: var(--rg-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--rg-transition-fast),
              color var(--rg-transition-fast),
              box-shadow var(--rg-transition-fast);
  min-height: 44px; /* Acessibilidade: touch target mínimo */
}

.rg-btn:focus-visible {
  outline: 3px solid var(--rg-color-accent);
  outline-offset: 2px;
}

/* Primário — deep blue
   Especificidade 0,2,0 supera .elementor-kit-31 a (0,1,1) */
.rg-btn.rg-btn--primary {
  background-color: var(--rg-color-primary);
  color: var(--rg-color-text-on-dark);
}

.rg-btn.rg-btn--primary:hover {
  background-color: var(--rg-color-primary-dark);
  color: var(--rg-color-text-on-dark);
}

/* Accent — gold */
.rg-btn.rg-btn--accent {
  background-color: var(--rg-color-accent);
  color: var(--rg-color-text-on-accent);
}

.rg-btn.rg-btn--accent:hover {
  background-color: var(--rg-color-accent-bright);
  color: var(--rg-color-text-on-accent);
}

/* Outline */
.rg-btn.rg-btn--outline {
  background-color: transparent;
  color: var(--rg-color-primary);
  border: 2px solid var(--rg-color-primary);
}

.rg-btn.rg-btn--outline:hover {
  background-color: var(--rg-color-primary);
  color: var(--rg-color-text-on-dark);
}

/* Success — verde CTA (Figma: #00B707) */
.rg-btn.rg-btn--success {
  background-color: var(--rg-color-success);
  color: #ffffff;
}

.rg-btn.rg-btn--success:hover {
  background-color: #009905;
  color: #ffffff;
}

/* WhatsApp */
.rg-btn.rg-btn--whatsapp {
  background-color: #25d366;
  color: #ffffff;
}

.rg-btn.rg-btn--whatsapp:hover {
  background-color: #1ebe5c;
  color: #ffffff;
}

/* Full width */
.rg-btn--full {
  width: 100%;
}


/* =========================================================================
   6. Badge / Tag
   ========================================================================= */

.rg-badge {
  display: inline-block;
  padding: var(--rg-space-1) var(--rg-space-3);
  font-family: var(--rg-font-body);
  font-size: var(--rg-text-xs);
  font-weight: var(--rg-font-weight-medium);
  border-radius: var(--rg-radius-full);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rg-badge--venda    { background-color: var(--rg-color-primary); color: var(--rg-color-text-on-dark); }
.rg-badge--aluguel  { background-color: var(--rg-color-primary-dark); color: var(--rg-color-text-on-dark); }
.rg-badge--accent   { background-color: var(--rg-color-accent); color: var(--rg-color-text-on-accent); }
.rg-badge--success  { background-color: var(--rg-color-success); color: #fff; }


/* =========================================================================
   7. Breadcrumb global
   ========================================================================= */

.rg-breadcrumb {
  font-family: var(--rg-font-body);
  font-size: var(--rg-text-sm);
  color: var(--rg-color-text-muted);
}

/* Suporta <ol class="rg-breadcrumb__list"> ou <nav> flat */
.rg-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rg-space-2);
}

.rg-breadcrumb__item + .rg-breadcrumb__item::before {
  content: '/';
  margin-right: var(--rg-space-2);
  color: var(--rg-color-border);
}

.rg-breadcrumb__item a,
.rg-breadcrumb__link {
  color: var(--rg-color-text-muted);
  text-decoration: none;
  transition: color var(--rg-transition-fast);
}

.rg-breadcrumb__item a:hover,
.rg-breadcrumb__link:hover {
  color: var(--rg-color-primary);
}

.rg-breadcrumb__item--current,
.rg-breadcrumb__current {
  color: var(--rg-color-primary);
  font-weight: var(--rg-font-weight-medium);
}


/* =========================================================================
   8. Utilitários de acessibilidade
   ========================================================================= */

.rg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Respeita prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================================
   9. Responsividade — breakpoints Figma
   Figma: Mobile-first, 1362px canvas width (≈ 1200px container)
   ========================================================================= */

/* xs: < 576px  → mobile pequeno */
/* sm: 576px    → mobile grande  */
/* md: 768px    → tablet         */
/* lg: 1024px   → desktop        */
/* xl: 1200px   → desktop wide   */

@media (max-width: 575px) {
  .rg-heading-1 { font-size: var(--rg-text-2xl); }
  .rg-heading-2 { font-size: var(--rg-text-xl); }
  .rg-heading-3 { font-size: var(--rg-text-lg); }
}

@media (min-width: 576px) and (max-width: 767px) {
  .rg-heading-1 { font-size: var(--rg-text-3xl); }
}

/* =========================================
   MIGRADO DO CUSTOMIZER — Auditoria CSS 2026-04-04
   ========================================= */

.custom-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffffff;
    color: #000000 !important;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-right: 10px;
}

.custom-button:hover {
    background-color: #f0f0f0;
    color: #000000 !important;
}

@media (max-width: 1302px) {
    .custom-button,
    .area_cliente_button {
        background-color: transparent;
        color: #55595c !important;
        padding: 0;
        border: none;
        border-radius: 0;
        font-weight: normal;
        text-align: left;
        margin: 0;
    }

    .custom-button:hover,
    .area_cliente_button:hover {
        background-color: transparent;
        color: inherit !important;
    }
}
