/* Renny Corretor — acabamento visual (carregado por último, sobrepõe main.css/imoveis.css) */
:root {
  --t-navy: #0b1b3a;
  --t-blue: #1d4ed8;
  --t-blue-soft: #eff4ff;
  --t-gold: #f5b700;
  --t-ink: #0f172a;
  --t-muted: #5b6b82;
  --t-line: #e5eaf2;
  --t-radius: 18px;
  --t-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px rgba(15, 23, 42, .05);
  --t-shadow-md: 0 2px 4px rgba(15, 23, 42, .05), 0 18px 40px rgba(15, 23, 42, .1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { overflow-x: clip; max-width: 100%; }
img, svg, video, iframe { max-width: 100%; }
body { color: var(--t-ink); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
::selection { background: #bfd4ff; color: var(--t-navy); }
:focus-visible { outline: 3px solid rgba(29, 78, 216, .45); outline-offset: 2px; border-radius: 6px; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { letter-spacing: -.02em; text-wrap: balance; }
main h2 { font-weight: 800; line-height: 1.12; }
main section > div > .text-center > p,
main section .rc-section-head p { color: var(--t-muted); line-height: 1.6; }

/* Selo dourado sobre os títulos de seção */
main section .text-center > h2::before {
  content: ""; display: block; width: 44px; height: 4px; margin: 0 auto 18px;
  border-radius: 4px; background: linear-gradient(90deg, var(--t-gold), #ffd966);
}

/* ---------- Cabeçalho ---------- */
body > header > header,
header.fixed {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--t-line);
  box-shadow: 0 6px 24px rgba(15, 23, 42, .05);
}
header nav a { font-weight: 600; }
header nav .hidden.md\:flex a:not(.rc-btn) { position: relative; color: #334155; padding: 6px 2px; }
header nav .hidden.md\:flex a:not(.rc-btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--t-blue); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
header nav .hidden.md\:flex a:not(.rc-btn):hover { color: var(--t-blue); }
header nav .hidden.md\:flex a:not(.rc-btn):hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.rc-hero {
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(96, 165, 250, .32), transparent 60%),
    radial-gradient(700px 400px at -5% 110%, rgba(59, 130, 246, .28), transparent 60%),
    linear-gradient(140deg, #1d4ed8 0%, var(--t-navy) 100%);
  padding-top: 72px; padding-bottom: 88px;
}
.rc-hero h1 { font-weight: 800; letter-spacing: -.03em; text-shadow: 0 2px 24px rgba(2, 6, 23, .25); }
.rc-hero-sub { color: #cfe0ff; }
.rc-search { border-radius: 22px; box-shadow: 0 30px 70px rgba(2, 6, 23, .4), 0 0 0 1px rgba(255, 255, 255, .6) inset; }

/* ---------- Botões ---------- */
.rc-btn, .rc-btn-primary, .rc-btn-wa { transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.rc-btn-primary { background: linear-gradient(180deg, #2f66f0, var(--t-blue)); box-shadow: 0 8px 20px rgba(29, 78, 216, .3); }
.rc-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(29, 78, 216, .38); }
.rc-btn-wa:hover { transform: translateY(-1px); }

/* ---------- Cartões de imóveis ---------- */
.rc-cards > * , .rc-card {
  border-radius: var(--t-radius); border: 1px solid var(--t-line); box-shadow: var(--t-shadow-sm);
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.rc-cards > *:hover, .rc-card:hover { transform: translateY(-4px); box-shadow: var(--t-shadow-md); }
.rc-cards img { transition: transform .5s ease; }
.rc-cards > *:hover img { transform: scale(1.04); }

/* ---------- Seções ---------- */
#sobre { background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%); }
#imoveis { background: #f6f9ff; }

/* Cartão do corretor */
#sobre .rounded-2xl, #sobre .shadow-xl, #sobre .shadow-2xl { border-radius: 24px; box-shadow: var(--t-shadow-md); border: 1px solid var(--t-line); }
#sobre img { box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(29, 78, 216, .25), 0 12px 28px rgba(15, 23, 42, .18); }

/* ---------- Serviços: de azul saturado para cartões claros ---------- */
#servicos { background: #fff; }
#servicos article {
  background: #fff; background-image: none; border: 1px solid var(--t-line); border-radius: var(--t-radius);
  box-shadow: var(--t-shadow-sm); text-align: left; padding: 30px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
#servicos article:hover { transform: translateY(-5px); box-shadow: var(--t-shadow-md); border-color: #c9d8f5; }
#servicos article > div[aria-hidden="true"] {
  width: 56px; height: 56px; margin: 0 0 20px; border-radius: 16px;
  background: var(--t-blue-soft); color: var(--t-blue);
}
#servicos article h3 { color: var(--t-ink); font-size: 1.25rem; margin-bottom: 10px; }
#servicos article p { color: var(--t-muted); opacity: 1; line-height: 1.65; margin-bottom: 0; }
#servicos article:hover h3 { color: var(--t-blue); }

/* ---------- Contato ---------- */
#contato { background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%); }
#contato .reveal-right > .bg-gray-50 { border-radius: 24px; border: 1px solid var(--t-line); box-shadow: var(--t-shadow-md); background: #fff; padding: 36px; }
#contato form { border: 0; box-shadow: none; background: transparent; border-radius: 0; padding: 0; margin: 0; }
#contato label { color: #334155; font-weight: 600; }
#contato input, #contato textarea, #contato select { width: 100%; padding: 14px 16px; font-size: 16px; }
#contato input, #contato textarea, #contato select {
  border-radius: 12px; border: 1px solid #d5ddea; background: #fbfcfe; transition: border-color .2s, box-shadow .2s, background .2s;
}
#contato input:focus, #contato textarea:focus, #contato select:focus {
  outline: none; border-color: var(--t-blue); background: #fff; box-shadow: 0 0 0 4px rgba(29, 78, 216, .14);
}
#contato button[type="submit"] { border-radius: 14px; font-weight: 700; box-shadow: 0 10px 24px rgba(22, 163, 74, .28); }

/* ---------- Rodapé ---------- */
footer.bg-gray-900 { background: linear-gradient(180deg, #0d1b36 0%, #081226 100%); }
footer.bg-gray-900 a { transition: color .2s ease; }
footer.bg-gray-900 a:hover { color: var(--t-gold); }
footer.bg-gray-900 h3, footer.bg-gray-900 h4 { letter-spacing: -.01em; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  /* cabeçalho sólido (backdrop-filter quebraria o painel do menu) */
  body > header > header, header.fixed { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }

  /* menu em tela cheia, abaixo do cabeçalho */
  #mobile-menu:not(.hidden) {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 8px 24px 40px;
    height: calc(100vh - 76px); height: calc(100dvh - 76px); overflow-y: auto;
    background: #fff; border-top: 1px solid var(--t-line);
  }
  #mobile-menu > div { gap: 0; }
  #mobile-menu > div > * + * { margin-top: 0 !important; }
  #mobile-menu a {
    display: flex; align-items: center; gap: 14px; padding: 18px 4px; font-size: 18px; font-weight: 600; color: var(--t-ink);
  }
  #mobile-menu a:not([class*="bg-"]) { border-bottom: 1px solid var(--t-line); }
  #mobile-menu a svg { width: 22px; height: 22px; margin: 0; color: var(--t-blue); flex: none; }
  #mobile-menu a[class*="bg-"] {
    justify-content: center; margin-top: 24px; padding: 18px 20px; border-radius: 16px; color: #fff; font-size: 18px;
    box-shadow: 0 10px 24px rgba(29, 78, 216, .3);
  }
  #mobile-menu a[class*="bg-"] svg { color: #fff; }

  .rc-hero { padding-top: 48px; padding-bottom: 56px; }
  main section.py-20 { padding-top: 56px; padding-bottom: 56px; }
  main section .text-center.mb-16 { margin-bottom: 36px; }
  main h2 { font-size: 2rem; }
  #servicos article { padding: 24px 22px; }
  #contato { padding-bottom: 120px; }
  #contato .reveal-right > .bg-gray-50 { padding: 24px 20px; border-radius: 20px; }
  #contato .grid { gap: 40px; }
  #contato button[type="submit"] { width: 100%; min-height: 54px; }
  #sobre .bg-white.rounded-2xl { padding: 24px 20px; }

  /* botão flutuante do WhatsApp menor e sem cobrir o conteúdo */
  a[href^="https://wa.me/"].fixed { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  a[href^="https://wa.me/"].fixed svg { width: 30px; height: 30px; }
}

/* ---------- Acessibilidade: sem animação, tudo visível ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [class*="reveal-"] { opacity: 1 !important; transform: none !important; }
}
