/* MyBroker Leilões — estilos do site institucional e da área do cliente */
:root {
  --blue: #0022BD; --blue-600: #001A93; --blue-50: #E8ECFB;
  --navy: #0E1B2C; --navy-700: #22364F; --navy-500: #33465E;
  --ink: #0E1B2C; --ink-2: #3A4452; --ink-3: #4A5462; --muted: #6B7280;
  --paper: #F5F4EF; --card: #FFFFFF; --line: #E2E0D8; --line-2: #CFCCC2;
  --amber: #F2A93B; --amber-50: #FBE3B8;
  --teal: #0F766E; --teal-50: #CDEDE7; --teal-900: #0B4F49;
  --red: #B42318; --red-50: #FDE7E5;
  --radius: 14px; --shadow: 0 6px 24px rgba(14,27,44,.08);
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", Inter, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.5vw, 46px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.center { text-align: center; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .05s, background .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-amber { background: var(--amber); color: var(--navy); font-weight: 700; }
.btn-amber:hover { filter: brightness(.96); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled], .btn.disabled { background: #E4E2DB; color: var(--muted); cursor: not-allowed; border-color: transparent; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ---------- formulário ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input { height: 48px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; font: 15px var(--font); background: #fff; color: var(--ink); width: 100%; }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); flex-shrink: 0; margin: 1px 0 0; }
input[type=range] { width: 100%; accent-color: var(--navy); }

/* ---------- avisos ---------- */
.flash { padding: 12px 16px; border-radius: 12px; margin: 12px 0; font-size: 14px; font-weight: 500; }
.flash.ok { background: var(--teal-50); color: var(--teal-900); }
.flash.err { background: var(--red-50); color: var(--red); }
.flash.info { background: var(--blue-50); color: var(--blue-600); }

/* ---------- chips e etiquetas ---------- */
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  font: 500 14px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.chip.on, .chip[aria-pressed=true] { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #EEF0F3; color: var(--navy); }
.tag.amber { background: var(--amber-50); }
.tag.teal { background: var(--teal-50); color: var(--teal-900); }
.tag.blue { background: var(--blue-50); color: var(--blue-600); }
.tag.red { background: var(--red-50); color: var(--red); }
.tag.dark { background: var(--navy); color: #fff; }
.disc { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 13px; font-size: 13px; font-weight: 800; background: var(--teal); color: #fff; }
.disc.mid { background: var(--amber); color: var(--navy); }
.disc.low { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- cartões ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin-bottom: 6px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; }
.kv + .kv { border-top: 1px solid #F0EEE8; }
.kv b { font-weight: 600; }

.pcard { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.pcard:hover { box-shadow: var(--shadow); }
.pcard .ph { width: 104px; height: 96px; border-radius: 10px; background: #D9DEE5 center/cover no-repeat; flex-shrink: 0; position: relative; }
.pcard .ph .disc { position: absolute; left: 6px; top: 6px; height: 22px; font-size: 12px; }
.pcard .bd { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pcard .t { font-weight: 700; font-size: 15px; }
.pcard .s { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .p { font-family: var(--display); font-weight: 700; font-size: 17px; margin-top: auto; }
.pcard .meta { font-size: 12px; font-weight: 600; color: var(--ink-2); }

/* ---------- topo e rodapé do site ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .container { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a.on { background: var(--paper); }
.nav .btn { margin-left: 8px; color: #fff; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.site-foot { background: var(--navy); color: #C9D2DE; padding: 48px 0 28px; margin-top: 64px; font-size: 14px; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-foot h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot .legal { border-top: 1px solid var(--navy-700); margin-top: 32px; padding-top: 18px; font-size: 12.5px; }

/* ---------- home ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1B3BD6 0%, transparent 60%), var(--navy); color: #fff; padding: 72px 0 96px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero p.lead { color: #C9D2DE; font-size: 18px; max-width: 560px; }
.hero .search { display: flex; gap: 8px; background: #fff; border-radius: 14px; padding: 8px; max-width: 560px; margin-top: 24px; }
.hero .search input { flex: 1; border: 0; font: 16px var(--font); padding: 0 12px; min-width: 0; outline: none; }
.hero .stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero .stats b { display: block; font-family: var(--display); font-size: 28px; color: #fff; }
.hero .stats span { font-size: 13px; color: #C9D2DE; }
.hero-phone { justify-self: center; width: 300px; border-radius: 34px; background: #0A1422; padding: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.45); transform: rotate(2deg); }
.hero-phone .scr { background: var(--paper); border-radius: 26px; overflow: hidden; }
.hero-phone .map { height: 230px; background: #E5E9EE url('../img/map-tile.svg') center/cover; position: relative; }
.hero-phone .pin { position: absolute; padding: 4px 9px; border-radius: 14px; background: var(--teal); color: #fff; font-weight: 800; font-size: 12px; box-shadow: 0 2px 6px rgba(14,27,44,.25); }
.hero-phone .pin.a { background: var(--amber); color: var(--navy); }
.hero-phone .list { padding: 12px; display: grid; gap: 8px; }
.section { padding: 72px 0; }
.section.white { background: #fff; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font: 700 18px var(--display); margin-bottom: 14px; }
.cta-band { background: var(--blue); color: #fff; border-radius: 24px; padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band p { color: #DCE3FF; margin: 0; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--blue); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; color: var(--ink-3); }
.prose { max-width: 760px; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose code { background: #EEF0F3; padding: 2px 6px; border-radius: 6px; font-size: 13px; }

/* ---------- login unificado ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(900px 500px at 10% 110%, #1B3BD6 0%, transparent 60%), var(--navy); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h1 { font-size: clamp(26px, 3vw, 38px); }
.auth-side p { color: #C9D2DE; font-size: 16px; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-box { width: min(420px, 100%); }
.auth-box h2 { margin-bottom: 4px; }
.note { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 13px; color: var(--ink-3); margin-top: 18px; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 6px; top: 6px; height: 36px; border: 0; background: transparent; color: var(--ink-3); font: 600 13px var(--font); cursor: pointer; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-phone { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 32px 20px; gap: 20px; }
  .auth-side .hide-m { display: none; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
  .grid-2, .grid-3, .grid-4, .row { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .cta-band { padding: 28px 22px; }
  .site-foot .cols { grid-template-columns: 1fr; }
}
