:root {
  --brand: #c10016;
  --brand-dark: #960012;
  --brand-light: #fff0f2;
  --text: #1a1a2e;
  --text-muted: #64748b;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(193, 0, 22, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-offset: 108px;
  --top-bar-height: 36px;
  --navbar-height: 72px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site-body,
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface-alt);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

a, button, .nav-link, .btn, .card-link {
  pointer-events: auto;
}

input, textarea, select {
  -webkit-user-select: text;
  user-select: text;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.35;
  min-height: var(--top-bar-height);
  padding: 0.55rem 0;
  padding-top: max(0.55rem, env(safe-area-inset-top, 0px));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  box-sizing: border-box;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-height: calc(var(--top-bar-height) - 1.1rem);
}

.top-bar-text {
  opacity: 0.92;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1 1 auto;
}

.top-bar-text .top-bar-tagline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.top-bar-text .bi-anchor {
  font-size: 0.95em;
  flex-shrink: 0;
}

.top-bar-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  transition: background var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

.top-bar-link-label--short {
  display: none;
}

.top-bar-link:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* ===== NAVBAR ===== */
.site-navbar,
.navbar {
  top: var(--top-bar-height);
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), background var(--transition);
  padding-block: 0.4rem;
}

.site-navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand img {
  height: 48px;
  width: auto;
  display: block;
  transition: transform var(--transition);
}

.navbar-brand:hover img {
  transform: scale(1.02);
}

.site-main,
main.mt-5.pt-4 {
  margin-top: var(--nav-offset) !important;
  padding-top: 0 !important;
}

@media (min-width: 768px) {
  :root {
    --nav-offset: calc(var(--top-bar-height) + var(--navbar-height));
  }
}

@media (max-width: 767.98px) {
  :root {
    --top-bar-height: 38px;
    --navbar-height: 56px;
    --nav-offset: calc(var(--top-bar-height) + var(--navbar-height));
  }

  .top-bar {
    font-size: 0.72rem;
    padding: 0.45rem 0;
    padding-top: max(0.45rem, env(safe-area-inset-top, 0px));
  }

  .top-bar .container {
    padding-inline: 0.65rem;
    gap: 0.4rem;
  }

  .top-bar-link {
    padding: 0.22rem 0.5rem;
    font-size: 0.68rem;
    gap: 0.25rem;
  }

  .top-bar-link-label--full {
    display: none;
  }

  .site-navbar,
  .navbar {
    top: var(--top-bar-height);
    padding-block: 0.25rem;
  }

  .navbar-brand img {
    height: 40px;
  }
}

@media (max-width: 767.98px) and (min-width: 420px) {
  .top-bar-link-label--full {
    display: inline;
  }

  .top-bar-link-label--short {
    display: none;
  }
}

@media (max-width: 419.98px) {
  .top-bar-link-label--short {
    display: inline;
  }
}

/* Menu principal — linha única, compacto */
.site-nav {
  align-items: center;
  gap: 0.1rem;
}

.site-nav .nav-link {
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.site-nav .nav-link:hover {
  background: var(--brand-light);
  color: var(--brand);
}

.site-nav .nav-link.active {
  background: var(--brand-light);
  color: var(--brand) !important;
}

.site-nav .nav-link-ext {
  font-size: 0.78rem;
  border: 1px solid rgba(193, 0, 22, 0.35);
  color: var(--brand);
  margin-left: 0.15rem;
}

.site-nav .nav-link-ext:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff !important;
}

/* Seletor de idioma PT/EN/ES no menu */
.nav-item-lang {
  margin-left: 0.25rem;
}

.site-lang-switch .btn {
  min-width: 2.1rem;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.28rem 0.38rem;
  line-height: 1.2;
}

.site-lang-switch .btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

@media (max-width: 1199.98px) {
  .nav-item-lang {
    margin: 0.5rem 0 0.25rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

/* ===== SECTIONS ===== */
.section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.section-title {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), #ff4d6a);
  border-radius: 4px;
  margin-top: 0.5rem;
}

.lead-ib {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
}

.bg-light {
  background: var(--surface-alt) !important;
}

/* ===== HERO ===== */
.hero {
  --hero-max: 1280px;
  --hero-radius: 20px;
  --hero-shadow: var(--shadow-lg);
  --hero-fit: cover;
  position: relative;
}

.hero #hero {
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
}

.hero .carousel-item {
  height: clamp(380px, 55vh, 780px);
  overflow: hidden;
  background: #0a0a0a;
  position: relative;
}

.hero .carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.05) 40%,
    rgba(193, 0, 22, 0.25) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: var(--hero-fit);
  object-position: center;
  display: block;
}

.hero .carousel-caption { display: none !important; }

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  opacity: 0.8;
  transition: opacity var(--transition), background var(--transition);
}

.hero .carousel-control-prev { left: 1rem; }
.hero .carousel-control-next { right: 1rem; }

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.35);
}

.hero .carousel .carousel-item {
  transition: transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-carousel--cinematic.carousel-fade .carousel-item {
  transition: opacity 1.35s cubic-bezier(0.45, 0, 0.15, 1);
  transform: none !important;
}

@media (min-width: 992px) {
  .hero { padding-inline: 1rem; }
  .hero #hero {
    max-width: var(--hero-max);
    border-radius: var(--hero-radius);
    box-shadow: var(--hero-shadow);
  }
}

/* ===== STATS + VALUES INTRO ===== */
.home-intro-stack {
  margin-top: -2rem;
  position: relative;
  z-index: 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.home-intro-stack .stats-bar {
  margin-top: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  padding-bottom: 1rem;
}

.home-intro-stack .values-strip {
  border-radius: 0;
  box-shadow: none;
}

.stats-bar {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-top: -2rem;
  position: relative;
  z-index: 3;
  padding: 1.15rem 1rem 1.5rem;
  border: 1px solid var(--border);
}

.stats-bar .hero-tagline {
  display: block;
  flex: 0 1 auto;
  max-width: 34rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
}

.stats-bar .hero-tagline strong {
  color: var(--brand);
  font-weight: 800;
}

.stats-banner-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.stats-hero {
  flex: 0 0 auto;
  text-align: center;
  padding: 0;
  margin: 0;
  border: none;
  min-width: 6.5rem;
  padding-right: 1.25rem;
  border-right: 1px solid var(--border);
}

.stats-years {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stats-years-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-realtime {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(193, 0, 22, 0.07);
  border: 1px solid rgba(193, 0, 22, 0.14);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.stats-realtime i {
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===== HOME COVERAGE (operações x agenciamento) ===== */
.home-coverage .container {
  max-width: 980px;
}

.coverage-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: var(--brand);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.coverage-card {
  position: relative;
  background: #fff;
  padding: 1.35rem 1.25rem 1.5rem;
  min-height: 100%;
  overflow: hidden;
}

.coverage-card::after {
  content: '';
  position: absolute;
  right: -0.5rem;
  bottom: -0.5rem;
  width: 7rem;
  height: 7rem;
  opacity: 0.06;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.coverage-card--port::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c10016' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='6' r='3' fill='%23c10016' stroke='none'/%3E%3Cpath d='M12 9v12'/%3E%3Cpath d='M5 13a7 7 0 0 0 14 0'/%3E%3Cpath d='M3 13h2M19 13h2'/%3E%3C/svg%3E");
}

.coverage-card--agency::after {
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c10016' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 4v16M4 12h16' opacity='.35'/%3E%3Cpath d='M12 5.5 14.8 12 12 18.5 9.2 12Z' fill='%23c10016' stroke='none'/%3E%3Cpath d='M5.5 12 12 9.2 18.5 12 12 14.8Z' fill='%23c10016' fill-opacity='.45' stroke='none'/%3E%3C/svg%3E");
}

.coverage-locations {
  position: relative;
  z-index: 1;
}

.coverage-card--port {
  border-right: 3px solid var(--brand);
}

.coverage-card-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--brand);
  color: #fff;
  margin: -1.35rem -1.25rem 1rem;
  padding: 0.85rem 1.1rem;
}

.coverage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.05rem;
  flex-shrink: 0;
  color: #fff;
}

.coverage-icon i,
.coverage-icon svg {
  display: block;
  line-height: 1;
}

.coverage-card-head h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
}

.coverage-locations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.coverage-locations li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.coverage-locations li::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(193, 0, 22, 0.12);
}

/* ===== VALUES STRIP ===== */
.values-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  background: linear-gradient(180deg, #c10016 0%, #960012 100%);
  overflow: hidden;
}

.values-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 1rem 0.65rem 1.1rem;
  text-align: center;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.values-item:last-child {
  border-right: none;
}

.values-item i {
  font-size: 1.45rem;
  line-height: 1;
  opacity: 0.95;
}

.values-item span {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  max-width: 9.5rem;
}

@media (max-width: 767.98px) {
  .stats-banner-row {
    flex-direction: column;
    text-align: center;
  }

  .stats-hero {
    width: 100%;
    padding-right: 0;
    padding-bottom: 0.85rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stats-bar .hero-tagline {
    text-align: center;
  }
}

@media (max-width: 991.98px) {
  .coverage-panel {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .coverage-card--port {
    border-right: none;
    border-bottom: 3px solid var(--brand);
  }
}

@media (max-width: 991.98px) {
  .home-intro-stack .values-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-intro-stack .values-item:nth-child(3) {
    border-right: none;
  }
}

@media (max-width: 575.98px) {
  .home-intro-stack .values-strip {
    grid-template-columns: 1fr 1fr;
  }

  .home-intro-stack .values-item:nth-child(2),
  .home-intro-stack .values-item:nth-child(4) {
    border-right: none;
  }

  .home-intro-stack .values-item:nth-child(3),
  .home-intro-stack .values-item:nth-child(5) {
    border-right: 1px solid rgba(255, 255, 255, 0.22);
  }

  .home-intro-stack .values-item:nth-child(5) {
    grid-column: 1 / -1;
    border-right: none;
  }

  .stats-realtime {
    border-radius: 12px;
    font-size: 0.78rem;
  }
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-value {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== CARDS & FEATURES ===== */
.feature-card,
.card {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--surface);
}

.card-link:hover,
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
}

.cards-2up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cards-2up .feature-card { margin: 0; }

.features-grid .feature-card {
  border: none !important;
  box-shadow: none !important;
}

.icon-bullet {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #e63950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-right: 0.75rem;
  flex: 0 0 48px;
  box-shadow: 0 4px 12px rgba(193, 0, 22, 0.3);
}

.feature { display: flex; align-items: flex-start; margin-bottom: 20px; }

/* Selo certified (sem BSI) */
.cert-logos img { height: auto; }
.cert-logos img[src*="selo_certified"] { max-height: 105px; }

.btn-brand {
  background: linear-gradient(135deg, var(--brand), #d61b2b);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(193, 0, 22, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-brand:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(193, 0, 22, 0.4);
}

/* ===== ABOUT ===== */
.about-blurb p,
.about-blurb .lead-ib {
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 0.9rem;
}

.about-blurb p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(160deg, #0f0f14 0%, #1a1a24 100%);
  color: #e2e8f0;
  padding: 3rem 0 2rem;
  margin-top: 0 !important;
}

.footer-brand {
  background: transparent;
}

.footer-brand img {
  display: none !important;
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer-list i { color: var(--brand); opacity: 0.9; }

.footer a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color var(--transition);
}

.footer a:hover { color: #fff; }

.footer-presence {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== FAB SISTEMAS (legado — portal na barra superior) ===== */
.fab-sistemas {
  display: none !important;
}

/* ===== MISC ===== */
.restricted-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1a1a24, #2d2d3a);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.scroll-mt { scroll-margin-top: var(--nav-offset); }

.lang-tabs .nav-link { font-weight: 700; }

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ===== PROTECTION ===== */
.protection-blur {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.protection-blur.active { opacity: 1; }

@media print {
  body * { visibility: hidden !important; }
  body::before {
    content: 'Conteúdo protegido — Impressão não autorizada. Irmãos Britto.';
    visibility: visible !important;
    display: block !important;
    position: fixed;
    inset: 0;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding-top: 40vh;
    color: #333;
  }
}

/* ===== CARD GRIDS — animação em cascata (escritórios, portos, vídeos) ===== */
@keyframes ibCardFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ib-card-grid > .col,
.ib-card-grid > .grid-col {
  opacity: 0;
}

.ib-card-grid.is-inview > .col,
.ib-card-grid.is-inview > .grid-col {
  animation: ibCardFadeUp 0.55s var(--ib-delay, 0s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ib-card-grid.is-inview .card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ib-card-grid.is-inview .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .ib-card-grid > .col,
  .ib-card-grid > .grid-col {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .ib-card-grid.is-inview .card:hover {
    transform: none;
  }

  .ib-page-blocks > .row {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ===== PAGE BLOCKS — animação em cascata (serviços, institucional) ===== */
.ib-page-blocks > .row {
  opacity: 0;
}

.ib-page-blocks.is-inview > .row {
  animation: ibCardFadeUp 0.65s var(--ib-delay, 0s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199px) {
  :root { --navbar-height: 68px; }

  .site-nav {
    padding: 0.75rem 0 0.5rem;
    gap: 0;
  }

  .site-nav .nav-link {
    padding: 0.65rem 0.75rem;
    white-space: normal;
  }

  .site-nav .nav-link-ext {
    margin-left: 0;
    margin-top: 0.35rem;
    display: inline-block;
  }

  .navbar-brand img { height: 42px; }
}

@media (max-width: 992px) {
  .hero .carousel-item { height: clamp(280px, 45vh, 560px); }
  .cards-2up { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* Bootstrap Icons não inclui âncora — ícone marítimo customizado */
.bi-anchor::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  font-family: inherit !important;
  font-style: normal;
  font-weight: normal !important;
  line-height: 1;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23000' d='M224,144c0,38.11-27.67,45.66-49.9,51.72C149.77,202.36,136,207.31,136,232a8,8,0,0,1-16,0c0-24.69-13.77-29.64-38.1-36.28C59.67,189.66,32,182.11,32,144a8,8,0,0,1,16,0c0,24.69,13.77,29.64,38.1,36.28,11.36,3.1,24.12,6.6,33.9,14.34V128H88a8,8,0,0,1,0-16h32V82.83a28,28,0,1,1,16,0V112h32a8,8,0,0,1,0,16H136v66.62c9.78-7.74,22.54-11.24,33.9-14.34C194.23,173.64,208,168.69,208,144a8,8,0,0,1,16,0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23000' d='M224,144c0,38.11-27.67,45.66-49.9,51.72C149.77,202.36,136,207.31,136,232a8,8,0,0,1-16,0c0-24.69-13.77-29.64-38.1-36.28C59.67,189.66,32,182.11,32,144a8,8,0,0,1,16,0c0,24.69,13.77,29.64,38.1,36.28,11.36,3.1,24.12,6.6,33.9,14.34V128H88a8,8,0,0,1,0-16h32V82.83a28,28,0,1,1,16,0V112h32a8,8,0,0,1,0,16H136v66.62c9.78-7.74,22.54-11.24,33.9-14.34C194.23,173.64,208,168.69,208,144a8,8,0,0,1,16,0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
