/* Revisão visual: navegação clara, ilustrações e portfólio editorial */
.site-header {
  position: relative;
  height: 94px;
  background: #fff;
  color: var(--navy);
  border-bottom: 1px solid #e3e8ec;
  box-shadow: 0 8px 28px rgba(7, 27, 49, .06);
}

.site-header .brand {
  min-width: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.site-header .brand-logo { width: 215px; }
.site-header nav { color: var(--navy); }
.site-header nav > a:not(.nav-cta) { opacity: .72; }
.site-header .nav-cta { border-color: #b8c6d1; }
.menu-button span:not(.sr-only) { background: var(--navy); }

.hero { height: calc(94vh - 94px); min-height: 680px; }
.hero-content { padding-top: 0; }
.group-reference { gap: .65rem; margin-bottom: 1.5rem; }
.group-reference > span { font-size: .65rem; }
.group-reference a,
.group-reference a:hover { background: transparent; padding: 0; }
.group-reference img { width: 86px; filter: brightness(0) invert(1); }

.operations-visual {
  position: relative;
  height: 430px;
  margin: 3.5rem 0 1.2rem;
  overflow: hidden;
  background: var(--navy);
}
.operations-visual img { width: 100%; height: 100%; object-fit: cover; }
.operations-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(3, 16, 31, .68));
}
.operations-visual figcaption {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}
.operations-visual figcaption i { width: 34px; height: 1px; background: rgba(255,255,255,.55); }
.segment-grid { margin-top: 1.2rem; }
.segment-card { min-height: 285px; }

.portfolio-image { height: 500px; }
.portfolio-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,16,31,.84) 0%, rgba(3,16,31,.26) 53%, transparent 78%);
  pointer-events: none;
}
.portfolio-image figcaption {
  z-index: 2;
  left: clamp(1.5rem, 4vw, 3.6rem);
  bottom: clamp(1.8rem, 5vw, 4rem);
  max-width: 560px;
  background: transparent;
  padding: 0;
  font-size: inherit;
}
.portfolio-image figcaption small {
  display: block;
  margin-bottom: .8rem;
  color: #a9d7ed;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .7rem;
  font-weight: 800;
}
.portfolio-image figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-shadow: 0 3px 20px rgba(3,16,31,.4);
}

.logo-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}
.logo-slots span {
  position: relative;
  min-width: 0;
  min-height: 86px;
  padding: 1rem .65rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #f1f3f4, #e1e5e8);
  border: 1px solid #d3d8dc;
  border-radius: 5px;
  color: #858d94;
  font-family: var(--sans);
  font-size: .91rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.logo-slots span::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  top: -12px;
  right: -10px;
  border: 5px solid rgba(105,114,122,.16);
  transform: rotate(35deg);
}
.logo-slots span:nth-child(3n+2) { font-family: var(--serif); font-style: italic; text-transform: none; font-size: 1rem; }
.logo-slots span:nth-child(4n) { letter-spacing: .07em; font-weight: 600; }
.logo-slots span:nth-child(5n) { border-radius: 22px 5px 22px 5px; }

.territory { grid-template-columns: .78fr 1.22fr; gap: 4rem; }
.territory-visual {
  height: 520px;
  margin: 0;
  border: 1px solid rgba(255,255,255,.14);
  background: #06172a;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.24);
}
.territory-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,27,49,.36), transparent 48%);
  pointer-events: none;
}
.territory-visual > img { width: 100%; height: 100%; object-fit: cover; }
.territory-label {
  position: absolute;
  z-index: 2;
  padding: .55rem .75rem;
  background: rgba(4,21,40,.8);
  border-left: 2px solid var(--sky);
  backdrop-filter: blur(8px);
}
.territory-label strong,.territory-label small { display: block; }
.territory-label strong { font-family: var(--serif); font-size: .95rem; }
.territory-label small { color: rgba(255,255,255,.58); font-size: .57rem; text-transform: uppercase; letter-spacing: .12em; }
.territory-label.base { left: 48%; top: 45%; }
.territory-label.ms { left: 3%; top: 38%; }
.territory-label.pr { left: 43%; bottom: 4%; }

.group-pem-band {
  padding: clamp(2.8rem, 5vw, 4.2rem) 1.4rem;
  background: var(--paper);
}
.group-pem-card {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(1.7rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 3vw, 2.8rem);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  box-shadow: 0 14px 36px rgba(7, 27, 49, .06);
}
.group-pem-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding-right: clamp(1.5rem, 3vw, 2.8rem);
  border-right: 1px solid var(--line);
}
.group-pem-logo img { width: 108px; height: auto; }
.group-pem-copy { min-width: 0; }
.group-pem-kicker {
  margin: 0 0 .35rem;
  color: var(--blue);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.group-pem-copy h2 {
  margin: 0 0 .45rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.group-pem-copy > p:last-child {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.group-pem-link {
  white-space: nowrap;
  color: var(--navy);
  font-size: .79rem;
  font-weight: 800;
  border-bottom: 1px solid var(--navy);
}

@media(max-width:900px){
  .site-header { height: 78px; }
  .site-header .brand-logo { width: 180px; }
  .site-header nav { color:#fff; }
  .menu-button[aria-expanded="true"] span:not(.sr-only) { background:#fff; }
  .hero { height:auto; min-height:700px; }
  .operations-visual { height:360px; }
  .portfolio-image { height:420px; }
  .logo-slots { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .territory { grid-template-columns:1fr; }
  .territory-visual { height:430px; }
  .group-pem-card { grid-template-columns: 110px minmax(0, 1fr); }
  .group-pem-logo { padding-right: 1.5rem; }
  .group-pem-logo img { width: 92px; }
  .group-pem-link { grid-column: 2; justify-self: start; }
}

@media(max-width:520px){
  .site-header .brand-logo { width:158px; }
  .operations-visual { height:310px; margin-top:2.5rem; }
  .operations-visual figcaption { gap:.5rem; font-size:.57rem; }
  .operations-visual figcaption i { width:14px; }
  .portfolio-image { height:390px; }
  .portfolio-image figcaption { left:1.25rem; right:1.25rem; bottom:1.4rem; }
  .logo-slots { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .logo-slots span { min-height:76px; font-size:.78rem; }
  .territory-visual { height:350px; }
  .territory-label strong { font-size:.76rem; }
  .territory-label.ms { left:2%; top:30%; }
  .territory-label.pr { left:38%; }
  .group-pem-card { grid-template-columns: 1fr; gap: 1.15rem; }
  .group-pem-logo { min-height: 0; justify-content: flex-start; padding: 0 0 1.15rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .group-pem-logo img { width: 88px; }
  .group-pem-link { grid-column: 1; }
}
