/* ==========================================================================
   Bridge Partners Group — Layout v2 (Tech / SaaS)
   Mesma identidade de marca (laranja #F19100, preto, Source Sans Pro),
   novo tratamento visual: cards, sombras suaves, superfícies arredondadas.
   ========================================================================== */

:root {
  --orange: #f19100;
  --orange-dark: #c97800;
  --orange-light: #ffb84d;
  --ink: #15130f;
  --slate: #55504a;
  --slate-soft: #86807a;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --border: #ece6de;

  --font: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(21,19,15,.05);
  --shadow-md: 0 10px 30px rgba(21,19,15,.07), 0 2px 6px rgba(21,19,15,.05);
  --shadow-lg: 0 24px 60px rgba(21,19,15,.12), 0 4px 12px rgba(21,19,15,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 300; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- Placeholder media blocks (until real photos/logo arrive) ---------- */
.ph {
  position: relative;
  background: linear-gradient(135deg, var(--orange) 0%, var(--ink) 130%);
  color: rgba(255,255,255,.92);
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: .5;
}
.ph span { position: relative; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,246,243,.86);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }

.logo-mark {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  box-shadow: var(--shadow-sm);
  flex: none;
}

.logo-word { line-height: 1.05; }
.logo-word .name { font-weight: 700; font-size: 18px; color: var(--ink); display: block; }
.logo-word .sub { font-size: 11px; color: var(--slate-soft); letter-spacing: .3px; }

.main-nav { display: flex; align-items: center; gap: 4px; font-size: 15px; justify-self: center; }

.main-nav a {
  color: var(--slate);
  padding: 9px 14px;
  border-radius: var(--radius-pill);
}
.main-nav a:hover { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.main-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

.has-dropdown { position: relative; }

.mega-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  z-index: 50;
}
.has-dropdown:hover .mega-panel,
.has-dropdown:focus-within .mega-panel { display: grid; }

.mega-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
}
.mega-panel a:hover { background: var(--bg); }
.mega-panel a .tag {
  display: block; font-size: 12px; color: var(--orange-dark); font-weight: 700; margin-bottom: 2px;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--slate);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.icon-btn:hover { color: var(--orange); border-color: var(--orange); }

.header-actions .btn-primary { padding: 10px 20px; font-size: 14px; }

.lang-switcher {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-soft);
  letter-spacing: .3px;
  white-space: nowrap;
}
.lang-switcher a { color: var(--slate-soft); }
.lang-switcher a:hover { color: var(--orange); }
.lang-switcher .lang-current { color: var(--orange); }

.nav-toggle {
  display: none; border: none; background: var(--surface); border-radius: var(--radius-sm);
  width: 40px; height: 40px; cursor: pointer; box-shadow: var(--shadow-sm);
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto auto 1fr; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column; align-items: stretch;
    padding: 14px 20px 20px; gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { border-radius: var(--radius-sm); }
  .nav-toggle { display: block; }
  .mega-panel { position: static; transform: none; width: auto; box-shadow: none; grid-template-columns: 1fr; display: none; margin-top: 4px; }
  .has-dropdown.open .mega-panel { display: grid; }
  .header-actions .btn-primary { display: none; }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange);
  color: #fff;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
}
.btn-primary:hover { background: var(--orange-dark); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  border: 1px solid var(--border);
  font-size: 15px;
}
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 600; color: var(--orange-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}

.hero .body-lead { font-size: 17.5px; color: var(--slate); max-width: 540px; margin-bottom: 28px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 22px; color: var(--ink); }
.hero-stats .stat span { font-size: 13px; color: var(--slate-soft); }

.hero-visual {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) { .hero-visual { aspect-ratio: 16 / 9; } }

/* ---------- Section framework ---------- */
section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .chip { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; letter-spacing: -.3px; }
.section-head p { color: var(--slate); font-size: 16px; margin: 0; }

.section-head.left { text-align: left; margin: 0 0 40px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.feature-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.feature-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--orange), var(--ink));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  margin-bottom: 18px;
}

.feature-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--slate); margin: 0; }
.feature-card .link {
  display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--orange-dark);
}
.feature-card .link:hover { color: var(--ink); }

/* Number chip for step-like content */
.num-chip {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}

/* Info panel (solution detail pages) */
.info-panel {
  padding: 30px 28px;
}
.info-panel h2 { font-size: 18px; margin-bottom: 14px; }
.info-panel ul { margin: 0; padding-left: 18px; }
.info-panel li { margin-bottom: 9px; font-size: 15px; color: var(--slate); }
.info-panel p { font-size: 15px; color: var(--slate); margin: 0; }

/* Values / recursos chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.value-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 12px 20px 12px 12px;
  box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 14.5px; color: var(--ink);
}
.value-chip .ico {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px;
}

/* Tag cloud (clients) */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 13.5px;
  color: var(--slate);
  box-shadow: var(--shadow-sm);
}

/* Split panels (mission/vision) */
.split-panel {
  padding: 30px 28px;
  border-radius: var(--radius-lg);
}
.split-panel.dark { background: var(--ink); color: #fff; }
.split-panel.dark h3 { color: var(--orange-light); }
.split-panel.dark p { color: rgba(255,255,255,.82); }
.split-panel.light { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.split-panel h3 { font-size: 19px; margin-bottom: 12px; }
.split-panel p { font-size: 15px; margin: 0; color: var(--slate); }

/* Blog cards */
.blog-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card .ph { height: 150px; }
.blog-card .body { padding: 22px; }
.blog-card h3 { font-size: 16.5px; margin-bottom: 10px; line-height: 1.35; }
.blog-card p { font-size: 14px; color: var(--slate); margin: 0 0 14px; }
.blog-card .link { font-size: 14px; font-weight: 700; color: var(--orange-dark); }

/* Training list */
.training-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.training-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 22px; box-shadow: var(--shadow-sm); font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 14px;
}
.training-card .num-chip { margin: 0; flex: none; background: var(--orange); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
}
.field input:focus, .field textarea:focus { border-color: var(--orange); outline: none; background: var(--surface); }

.contact-side .info-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.contact-side .info-row:last-child { border-bottom: none; }
.contact-side .info-row .ico {
  width: 38px; height: 38px; border-radius: var(--radius-sm); flex: none;
  background: linear-gradient(135deg, var(--orange), var(--ink));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.contact-side .info-row strong { display: block; font-size: 12.5px; letter-spacing: .3px; color: var(--slate-soft); margin-bottom: 3px; }
.contact-side .info-row div a { font-weight: 700; color: var(--ink); }
.contact-side .info-row div a:hover { color: var(--orange-dark); }

/* ---------- CTA banner ---------- */
.cta-panel {
  background: linear-gradient(120deg, var(--ink) 0%, #2a2419 100%);
  border-radius: var(--radius-xl);
  padding: 48px 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-panel h2 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.cta-panel p { color: rgba(255,255,255,.75); margin: 0; font-size: 15px; }
.cta-panel .btn-primary { flex: none; }

@media (max-width: 700px) { .cta-panel { padding: 32px 26px; } }

/* ---------- Article page ---------- */
.article-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--slate-soft); margin-bottom: 18px;
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
}
.article-body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--slate);
  margin: 0 0 20px;
}
.article-body strong { color: var(--ink); }
.article-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--orange-dark);
  margin-bottom: 24px;
}
.article-back:hover { color: var(--ink); }
.related-posts {
  max-width: 760px;
  margin: 48px auto 0;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.related-posts h3 { font-size: 15px; color: var(--slate-soft); margin-bottom: 16px; font-weight: 700; letter-spacing: .3px; }
.related-posts a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.related-posts a:hover { color: var(--orange-dark); }

/* ---------- Footer ---------- */
footer.site-footer { padding: 56px 0 28px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 800px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }

.footer-col h4 { font-size: 13px; letter-spacing: .3px; color: var(--slate-soft); margin-bottom: 14px; font-weight: 700; }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; color: var(--slate); margin-bottom: 10px; }
.footer-col a:hover { color: var(--orange-dark); }

.footer-brand-block p { max-width: 260px; color: var(--slate); font-size: 14px; margin-top: 14px; }
.footer-socials { display: flex; gap: 8px; margin-top: 16px; }

.footer-bottom {
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--slate-soft);
}


/* ---------- Real logo (replaces placeholder mark + wordmark) ---------- */
.logo-mark, .logo-word { display: none; }
.logo {
  display: inline-block;
  width: 112px;
  height: 42px;
  background-image: url('/assets/logo.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}
.footer-brand-block .logo {
  width: 132px;
  height: 50px;
  margin-bottom: 6px;
}

/* ---------- Clientes (sprite) ---------- */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.client-logo {
  width: 220px;
  height: 110px;
  background-image: url('/assets/clients-sprite.png');
  background-repeat: no-repeat;
  background-size: 880px 550px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
}
.client-logo--equatorial { background-position: 0 0; }
.client-logo--aes { background-position: -220px 0; }
.client-logo--concremat { background-position: -440px 0; }
.client-logo--sap { background-position: -660px 0; }
.client-logo--ibrati { background-position: 0 -110px; }
.client-logo--supergasbras { background-position: -220px -110px; }
.client-logo--eldorado { background-position: -440px -110px; }
.client-logo--cgi { background-position: -660px -110px; }
.client-logo--finity { background-position: 0 -220px; }
.client-logo--jj { background-position: -220px -220px; }
.client-logo--resource { background-position: -440px -220px; }
.client-logo--tecnisa { background-position: -660px -220px; }
.client-logo--mapfre { background-position: 0 -330px; }
.client-logo--cesvi { background-position: -220px -330px; }
.client-logo--multirede { background-position: -440px -330px; }
.client-logo--jsl { background-position: -660px -330px; }
.client-logo--makro { background-position: 0 -440px; }
.client-logo--brf { background-position: -220px -440px; }
.client-logo--msd { background-position: -440px -440px; }
.client-logo--eurochem { background-position: -660px -440px; }

/* Blog covers */
.blog-card .blog-cover { display: block; width: 100%; height: 150px; object-fit: cover; }
.article-cover {
  margin: 0 0 30px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.article-cover img { display: block; width: 100%; height: 340px; object-fit: cover; object-position: center 35%; }
@media (max-width: 640px) { .article-cover img { height: 200px; } }

/* Partners */
.partners-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px; margin-top: 20px;
}
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  min-height: 108px; padding: 18px 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.partner-logo img { max-width: 100%; max-height: 54px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 520px) { .partner-logo { min-height: 90px; } .partner-logo img { max-height: 44px; } }
