/* ============================================================
   SisPro Consórcios — site-wide additions (multi-page)
   Loads AFTER styles.css. Adds: top bar, nav + dropdown,
   mobile drawer, modalidade cards, breadcrumb, home hero.
   ============================================================ */

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy-900); color: rgba(255,255,255,.82); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 18px; }
.topbar a { color: rgba(255,255,255,.82); display: inline-flex; align-items: center; gap: 7px; transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; color: var(--green); }
.topbar-left { display: flex; gap: 22px; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar-badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #fff; }
@media (max-width: 760px) { .topbar-left .tb-addr { display: none; } .topbar { font-size: 12px; } }

/* ---------- Header sits below sticky topbar flow ---------- */
.site-header { top: 0; }
.logo > span { white-space: nowrap; }

/* Collapse desktop nav to the drawer earlier to avoid header overflow
   in the 921–1024px range. Below 1024px: hide nav links + the secondary
   WhatsApp ghost button, keep only "Simular agora" + hamburger. */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .header-phone { display: none; }
  .menu-toggle { display: grid; }
  .header-cta .btn-ghost { display: none; }
}

/* ---------- Nav dropdown ---------- */
.nav-links { position: relative; }
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-caret { width: 14px; height: 14px; transition: transform .2s; }
.nav-item:hover .nav-caret { transform: rotate(180deg); }
.nav-mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 12px; width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s; z-index: 100;
}
.nav-item:hover .nav-mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.mega-card { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius); transition: background .15s; }
.mega-card:hover { background: var(--paper); }
.mega-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; background: rgba(29,112,245,.10); }
.mega-ic svg { width: 22px; height: 22px; color: var(--blue); }
.mega-card b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--navy); }
.mega-card span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(7,31,55,.5); backdrop-filter: blur(2px); z-index: 110; opacity: 0; visibility: hidden; transition: opacity .25s; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: #fff; z-index: 120;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.16,1,.3,1); display: flex; flex-direction: column;
  box-shadow: -20px 0 50px rgba(13,59,102,.18);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-close { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: var(--navy); background: var(--paper); }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-body { padding: 14px 16px; overflow-y: auto; flex: 1; }
.drawer-body .dlabel { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 14px 12px 8px; }
.drawer-link { display: flex; align-items: center; gap: 13px; padding: 13px 12px; border-radius: 12px; font-weight: 500; color: var(--ink); font-size: 16px; }
.drawer-link:hover { background: var(--paper); }
.drawer-link .mega-ic { width: 38px; height: 38px; }
.drawer-foot { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb b { color: var(--navy); font-weight: 600; }

/* ---------- HOME hero ---------- */
.home-hero { padding-top: clamp(36px, 5vw, 56px); }
.home-hero .hero-grid { grid-template-columns: 1.02fr .98fr; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.chip svg { width: 15px; height: 15px; color: var(--blue); }

/* hero collage */
.hero-collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 14px; height: clamp(360px, 46vw, 500px); }
.hero-collage .ph { border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-collage .ph.big { grid-row: span 2; }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Modalidades grid (home) ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mod-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s, border-color .22s;
}
.mod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.mod-media { height: 168px; background: var(--paper-2); position: relative; overflow: hidden; }
.mod-media img { width: 100%; height: 100%; object-fit: cover; }
.mod-media .mod-badge { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-radius: 100px; padding: 7px 13px 7px 9px; font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--navy); box-shadow: var(--shadow-sm); }
.mod-badge .mod-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--navy); }
.mod-badge .mod-ic svg { width: 15px; height: 15px; color: #fff; }
.mod-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.mod-body h3 { font-size: 21px; margin-bottom: 8px; }
.mod-body > p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 16px; }
.mod-feats { display: grid; gap: 9px; margin-bottom: 22px; }
.mod-feats li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.mod-feats .ck { width: 19px; height: 19px; border-radius: 50%; background: rgba(0,200,83,.12); display: grid; place-items: center; flex: none; margin-top: 1px; }
.mod-feats .ck svg { width: 12px; height: 12px; color: var(--green-700); }
.mod-cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mod-range { font-size: 12.5px; color: var(--ink-3); }
.mod-range b { display: block; font-family: var(--font-head); font-size: 15px; color: var(--navy); }
.mod-go { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--blue); }
.mod-go svg { width: 17px; height: 17px; transition: transform .18s; }
.mod-card:hover .mod-go svg { transform: translateX(4px); }

/* ---------- Differentials (home) ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.diff-cell { background: #fff; padding: 30px 28px; transition: background .2s; }
.diff-cell:hover { background: var(--paper); }
.diff-ic { width: 50px; height: 50px; border-radius: 14px; background: rgba(13,59,102,.07); display: grid; place-items: center; margin-bottom: 18px; }
.diff-ic svg { width: 25px; height: 25px; color: var(--navy); }
.diff-cell h3 { font-size: 18px; margin-bottom: 8px; }
.diff-cell p { font-size: 14px; color: var(--ink-2); }

/* ---------- Foco list (category pages) ---------- */
.foco { background: var(--paper); }
.foco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.foco-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.foco-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-weight: 600; font-size: 15px; color: var(--navy); }
.foco-item .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(29,112,245,.10); flex: none; }
.foco-item .ic svg { width: 20px; height: 20px; color: var(--blue); }
.foco-photo { height: clamp(340px, 42vw, 460px); border-radius: var(--radius-xl); background: var(--paper-2); box-shadow: var(--shadow-lg); overflow: hidden; }
.foco-photo img { width: 100%; height: 100%; object-fit: cover; }

/* segment highlight (empresários / patrimônio / exemplos) */
.segment { background: linear-gradient(160deg, var(--navy), var(--navy-700)); color: #fff; border-radius: var(--radius-xl); padding: clamp(32px,5vw,56px); position: relative; overflow: hidden; }
.segment::after { content:""; position:absolute; top:-140px; right:-100px; width:420px; height:420px; border-radius:50%; background: radial-gradient(circle, rgba(0,200,83,.20), transparent 65%); }
.segment > * { position: relative; z-index: 1; }
.segment h2 { color: #fff; font-size: clamp(26px,4vw,40px); }
.segment > p { color: rgba(255,255,255,.8); font-size: 18px; margin-top: 16px; max-width: 620px; }
.segment-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 36px; }
.segment-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 24px; }
.segment-card .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; margin-bottom: 16px; }
.segment-card .ic svg { width: 24px; height: 24px; color: var(--green); }
.segment-card h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.segment-card p { color: rgba(255,255,255,.7); font-size: 14px; }

/* ---------- Section tint variant ---------- */
.tint { background: var(--paper); }

/* ---------- CTA band (reused) ---------- */
.modal-cta-note { font-size: 13.5px; color: var(--ink-3); margin-top: 16px; }

/* ---------- Real images replacing image-slot ---------- */
.hero-photo img, img.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.testi-foot .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: var(--paper-2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .segment-grid { grid-template-columns: 1fr; }
  .foco-grid { grid-template-columns: 1fr; }
  .foco-photo { order: -1; }
}
@media (max-width: 760px) {
  .home-hero .hero-collage { order: -1; height: clamp(300px, 70vw, 380px); }
}
@media (max-width: 620px) {
  .mod-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .foco-list { grid-template-columns: 1fr; }
}
