/* ── OPTA · Site styles ─────────────────────────────── */
:root {
  --opta-navy:   #0D2145;
  --opta-deep:   #003B70;
  --opta-blue:   #1E4080;
  --opta-mid:    #3B6CB5;
  --opta-soft:   #6E97C7;
  --opta-pale:   #D6E4F2;
  --opta-mist:   #EEF4FB;

  --ink-900: #0F1623;
  --ink-700: #2C3345;
  --ink-500: #5A6478;
  --ink-300: #98A2B3;
  --ink-200: #CBD5E8;
  --ink-100: #E5EAF2;
  --ink-50:  #F4F7FC;
  --white:   #FFFFFF;

  --ok:    #1A6B3A;
  --warn:  #B86A00;
  --crit:  #A02020;

  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;

  --container: 1280px;
  --pad-x: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--opta-blue); text-decoration: none; }
::selection { background: var(--opta-navy); color: #fff; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--opta-blue);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow.on-dark { color: var(--opta-soft); }

h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--opta-navy); margin: 0; line-height: 1.05; font-weight: 700; }
.h-display { font-size: clamp(48px, 6.4vw, 88px); letter-spacing: -.01em; line-height: 1; font-weight: 700; }
.h1 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -.005em; }
.h2 { font-size: clamp(28px, 3vw, 40px); }
.h3 { font-size: 22px; text-transform: uppercase; letter-spacing: .04em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-500); max-width: 720px; }

/* ── Top bar / Header ── */
header.site {
  background: var(--opta-navy);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
header.site .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad-x);
  max-width: var(--container); margin: 0 auto;
}
header.site .logo {
  display: flex; align-items: baseline; gap: 12px;
  cursor: pointer;
  text-decoration: none;
}
header.site .logo .word {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1;
}
header.site .logo .tag {
  font-family: var(--font-body);
  font-size: 9.5px;
  letter-spacing: .22em;
  font-weight: 600;
  color: var(--opta-soft);
  text-transform: uppercase;
}
header.site nav {
  display: flex; gap: 4px;
}
header.site nav a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
header.site nav a:hover { color: #fff; }
header.site nav a.active { color: #fff; border-bottom-color: var(--opta-soft); }
header.site .cta-row { display: flex; align-items: center; gap: 12px; }
header.site .phone {
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.7);
  letter-spacing: .08em;
}
header.site .wa-icon {
  display: inline-flex; align-items: center; gap: 8px;
  color: #25D366; text-decoration: none;
  padding: 8px 12px; border-radius: 2px;
  border: 1px solid rgba(37,211,102,.35);
  transition: background .15s, border-color .15s;
}
header.site .wa-icon:hover { background: rgba(37,211,102,.12); border-color: #25D366; }
header.site .wa-icon .phone { color: #fff; }

/* ── Hambúrguer / Mobile Nav ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  margin-left: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform .2s, opacity .2s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  background: var(--opta-deep);
  padding: 4px var(--pad-x) 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-nav a {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.75);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  cursor: pointer;
  display: block;
  transition: color .15s;
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: #fff; }
.btn-mobile-cta { margin-top: 16px; }

/* hero tagline — single line */
.hero-tagline {
  margin-top: 64px;
  display: inline-block;
  padding: 18px 28px;
  border-left: 3px solid var(--opta-soft);
  background: rgba(255,255,255,.04);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .01em;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .hero-tagline { white-space: normal; font-size: 17px; }
}

/* hero meta — 2 cells variant */
.hero-meta-2 { grid-template-columns: 1fr 1fr; max-width: 760px; }
.hero-meta-2 .v { font-size: 17px; line-height: 1.3; font-weight: 600; }

/* service photo placeholder */
/* Photo mosaic — colunas estilo masonry, preservando proporção das fotos */
.photo-mosaic {
  column-count: 3;
  column-gap: 8px;
  margin-top: 24px;
}
.photo-mosaic figure {
  margin: 0 0 8px;
  break-inside: avoid;
  background: var(--ink-50);
  overflow: hidden;
  position: relative;
}
.photo-mosaic figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.95);
  transition: transform .8s ease;
}
.photo-mosaic figure:hover img { transform: scale(1.03); }
@media (max-width: 900px) { .photo-mosaic { column-count: 2; } }
@media (max-width: 560px) { .photo-mosaic { column-count: 1; } }
  width: 100%;
  aspect-ratio: 21 / 9;
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(13,33,69,.04) 18px 19px),
    linear-gradient(180deg, var(--opta-mist), var(--ink-100));
  border: 1px dashed var(--ink-300);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--ink-500); text-transform: uppercase;
  margin-top: 32px;
}
.svc-photo::before {
  content: "Foto · " attr(data-photo) " · aguardando upload";
}
.svc-photo[data-photo="comissionamento"]::before { content: "Foto · Equipe em campo · comissionamento"; }
.svc-photo[data-photo="mt-protecao"]::before { content: "Foto · Painel de média tensão / relé de proteção"; }
.svc-photo[data-photo="fotovoltaico"]::before { content: "Foto · Usina fotovoltaica · ensaios em campo"; }
.svc-photo[data-photo="termografia"]::before { content: "Foto · Inspeção termográfica · termovisor"; }
.hero-meta-inline {
  display: inline-flex;
  grid-template-columns: none;
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
}
.hero-meta-inline .cell {
  padding: 18px 28px;
  white-space: nowrap;
}
.hero-meta-inline .v { font-size: 17px; line-height: 1.2; font-weight: 600; }
@media (max-width: 640px) {
  .hero-meta-inline .cell { white-space: normal; }
}

/* Client carousel */
.client-carousel {
  overflow: hidden;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
  background: #fff;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.client-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: opta-scroll 38s linear infinite;
}
.client-slot {
  flex: 0 0 auto;
  min-width: 220px;
  padding: 32px 36px;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--ink-100);
}
.client-slot img {
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: .78;
  transition: opacity .25s ease;
  display: block;
}
.client-slot:hover img { opacity: 1; }
@keyframes opta-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.client-carousel:hover .client-track { animation-play-state: paused; }

/* ── Buttons ── */
.btn {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 13px;
  padding: 13px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 2px;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; transition: all .15s;
  background: var(--opta-blue); color: #fff;
}
.btn:hover { background: var(--opta-navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-secondary { background: #fff; color: var(--opta-blue); border-color: var(--opta-blue); }
.btn-secondary:hover { background: var(--opta-blue); color: #fff; }
.btn-wa { background: var(--opta-blue, #003B70); color:#fff; }
.btn-wa:hover { background: var(--opta-navy, #0D2145); }
.btn-lg { padding: 16px 28px; font-size: 14px; }
.btn .delta { width:0; height:0; border-left:5px solid transparent; border-right:5px solid transparent; border-bottom: 8px solid currentColor; display:inline-block; }
.btn-arrow::after { content: '→'; font-family: var(--font-body); font-weight: 600; }

/* ── Hero ── */
.hero {
  background: var(--opta-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 96px 0 120px;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero .delta-bg {
  position: absolute;
  right: -120px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 320px solid transparent;
  border-right: 320px solid transparent;
  border-bottom: 540px solid rgba(110,151,199,.08);
  pointer-events: none;
}
.hero .delta-bg.alt {
  right: 80px; bottom: -200px; top: auto; transform: none;
  border-left: 200px solid transparent;
  border-right: 200px solid transparent;
  border-bottom: 340px solid rgba(110,151,199,.05);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: #fff;
  margin: 18px 0 22px;
  max-width: 880px;
}
.hero h1 em { font-style: normal; color: var(--opta-soft); }
.hero p.lead { color: rgba(255,255,255,.62); max-width: 620px; }
.hero .ctas { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  margin-top: 64px;
}
.hero-meta .cell {
  background: var(--opta-navy);
  padding: 22px 24px;
}
.hero-meta .l {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 6px;
}
.hero-meta .v {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 700; color: #fff;
  letter-spacing: -.005em;
}
.hero-meta .v small { font-size: 14px; color: var(--opta-soft); margin-left: 4px; font-weight: 500; }

/* ── Section base ── */
section.s { padding: 96px 0; }
section.s.alt { background: var(--ink-50); }
section.s.dark { background: var(--opta-navy); color: #fff; }
section.s.dark h1, section.s.dark h2, section.s.dark h3 { color: #fff; }
section.s.dark .lead { color: rgba(255,255,255,.65); }
.sec-head {
  display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px;
  max-width: 760px;
}
.sec-head .row { display: flex; gap: 18px; align-items: baseline; }
.sec-num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  color: var(--opta-blue); text-transform: uppercase;
}
section.s.dark .sec-num { color: var(--opta-soft); }

/* ── Service grid ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-200);
  border: 1px solid var(--ink-200);
}
.service-card {
  background: #fff;
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
  transition: background .2s;
}
.service-card:hover { background: var(--opta-mist); }
.service-card::after {
  content: ''; position: absolute; right: -30px; bottom: -30px;
  width: 0; height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid var(--opta-mist);
  pointer-events: none; z-index: 0;
  transition: border-bottom-color .2s;
}
.service-card:hover::after { border-bottom-color: var(--opta-pale); }
.service-card > * { position: relative; z-index: 1; }
.service-card .icon-delta {
  width: 44px; height: 44px;
  background: var(--opta-mist);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card .icon-delta::before {
  content:''; width:0; height:0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 16px solid var(--opta-blue);
}
.service-card h4 {
  font-family: var(--font-head); font-size: 20px;
  text-transform: uppercase; letter-spacing: .04em;
  margin: 0 0 8px; color: var(--opta-navy);
}
.service-card p {
  font-size: 14px; color: var(--ink-500); margin: 0;
  line-height: 1.55;
}
.service-card .more {
  display: inline-flex; gap: 8px; align-items: center;
  margin-top: 18px;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  color: var(--opta-blue); text-transform: uppercase; letter-spacing: .12em;
}
.service-card .more::after { content: '→'; }

/* ── Stat cards ── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}
.stat {
  background: var(--opta-navy);
  padding: 32px 26px;
  border-left: 3px solid var(--opta-soft);
}
.stat .num {
  font-family: var(--font-head);
  font-weight: 700; font-size: 56px; line-height: 1;
  letter-spacing: -.02em; color: #fff;
}
.stat .num small { font-size: 22px; color: var(--opta-soft); margin-left: 4px; font-weight: 500; }
.stat .lbl {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: rgba(255,255,255,.55); text-transform: uppercase; margin-top: 10px;
}

/* ── Clients grid ── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--ink-200);
  border: 1px solid var(--ink-200);
}
.client {
  background: #fff;
  padding: 28px 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
  font-size: 16px; color: var(--opta-navy);
  text-align: center; letter-spacing: .02em;
  text-transform: uppercase;
  min-height: 96px;
}

/* ── Process steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.step {
  padding: 32px 24px 32px 0;
  position: relative;
  border-top: 2px solid var(--opta-blue);
}
.step::before {
  content: '';
  position: absolute; top: -8px; left: 0;
  width: 14px; height: 14px;
  background: var(--opta-blue);
  transform: rotate(45deg);
}
.step .n {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--opta-blue); text-transform: uppercase;
}
.step h5 {
  font-family: var(--font-head); font-size: 20px;
  text-transform: uppercase; letter-spacing: .03em;
  color: var(--opta-navy);
  margin: 8px 0 8px;
}
.step p { font-size: 13.5px; color: var(--ink-500); line-height: 1.55; margin: 0; }

/* ── CTA strip ── */
.cta-strip {
  background: var(--opta-navy);
  color: #fff;
  padding: 64px 0;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute;
  right: -40px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 180px solid transparent;
  border-right: 180px solid transparent;
  border-bottom: 300px solid rgba(110,151,199,.08);
  pointer-events: none;
}
.cta-strip .row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px;
}
.cta-strip h3 {
  color: #fff;
  font-size: clamp(24px, 2.6vw, 32px);
  max-width: 680px;
}
.cta-strip h3 em { font-style: normal; color: var(--opta-soft); }
.cta-strip .ctas { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ── About blocks ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo {
  width: 100%; aspect-ratio: 4/5;
  background: #0D2145 url('photos/foto-home-capacete-opta.jpg') center/cover no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
  position: relative;
}

/* MVV cards */
.mvv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-200);
  border: 1px solid var(--ink-200);
}
.mvv-c {
  padding: 32px 28px;
  position: relative; overflow: hidden;
  min-height: 220px;
}
.mvv-c:nth-child(1) { background: var(--opta-navy); color: #fff; }
.mvv-c:nth-child(2) { background: var(--opta-blue); color: #fff; }
.mvv-c:nth-child(3) { background: var(--opta-pale); color: var(--opta-navy); }
.mvv-c::after {
  content: ''; position: absolute;
  bottom: -25px; right: -25px;
  width: 0; height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid rgba(255,255,255,.06);
  pointer-events: none;
}
.mvv-c:nth-child(3)::after { border-bottom-color: rgba(13,33,69,.04); }
.mvv-c .label {
  font-family: var(--font-head); font-weight: 700;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 14px; opacity: .65;
}
.mvv-c h4 {
  font-family: var(--font-head); font-size: 24px;
  color: inherit; margin: 0 0 12px; letter-spacing: -.005em;
}
.mvv-c p { font-size: 14.5px; line-height: 1.55; opacity: .9; }

/* Page hero (interior) */
.page-hero {
  background: var(--opta-navy);
  color: #fff;
  padding: 64px 0 72px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; right: -60px; top: -40px;
  width: 0; height: 0;
  border-left: 200px solid transparent;
  border-right: 200px solid transparent;
  border-bottom: 340px solid rgba(110,151,199,.06);
  pointer-events: none;
}
.page-hero h1 { color: #fff; margin: 14px 0 16px; max-width: 780px; }
.page-hero p { color: rgba(255,255,255,.6); max-width: 640px; font-size: 17px; }
.crumbs {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--opta-soft); margin-bottom: 6px;
}
.crumbs span { color: rgba(255,255,255,.4); margin: 0 8px; }

/* Sub-services list (Serviços page) */
.svc-list { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--ink-200); border: 1px solid var(--ink-200); }
.svc-item {
  background: #fff;
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  padding: 28px 32px;
  cursor: pointer;
  transition: background .15s;
}
.svc-item:hover { background: var(--opta-mist); }
.svc-item .ic {
  width: 48px; height: 48px;
  background: var(--opta-navy);
  display: flex; align-items: center; justify-content: center;
}
.svc-item .ic::before {
  content: ''; width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 18px solid #fff;
}
.svc-item .body h4 {
  font-family: var(--font-head); font-size: 22px;
  text-transform: uppercase; letter-spacing: .03em;
  color: var(--opta-navy); margin: 0 0 4px;
}
.svc-item .body p { font-size: 14px; color: var(--ink-500); margin: 0; }
.svc-item .meta {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--opta-blue); text-align: right;
}

/* Portfolio */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-chip {
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 8px 14px;
  border: 1px solid var(--ink-200);
  background: #fff;
  color: var(--ink-700);
  cursor: pointer;
  border-radius: 2px;
  transition: all .15s;
}
.filter-chip:hover { border-color: var(--opta-blue); color: var(--opta-blue); }
.filter-chip.active { background: var(--opta-navy); color: #fff; border-color: var(--opta-navy); }

.port-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.port-card {
  background: #fff; border: 1px solid var(--ink-200);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.port-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(13,33,69,.08); }
.port-img {
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, rgba(13,33,69,.7), rgba(30,64,128,.4)),
    repeating-linear-gradient(45deg, #2C3345 0 14px, #3B4358 14px 28px);
  position: relative;
}
.port-img.solar { background: linear-gradient(135deg, rgba(13,33,69,.5), rgba(110,151,199,.3)), repeating-linear-gradient(135deg, #1E4080 0 18px, #2A4F90 18px 36px); }
.port-img.subst { background: linear-gradient(135deg, rgba(13,33,69,.7), rgba(30,64,128,.5)), repeating-linear-gradient(0deg, #2C3345 0 22px, #3B4358 22px 44px); }
.port-img.thermo { background: linear-gradient(135deg, rgba(184,106,0,.4), rgba(160,32,32,.3)), repeating-linear-gradient(45deg, #B86A00 0 12px, #6B1414 12px 24px); }
.port-img .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--opta-navy); color: #fff;
  padding: 5px 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.port-body { padding: 22px 22px 24px; }
.port-body h4 {
  font-family: var(--font-head); font-size: 18px;
  text-transform: uppercase; letter-spacing: .03em;
  color: var(--opta-navy); margin: 0 0 8px;
}
.port-body p { font-size: 13px; color: var(--ink-500); margin: 0 0 14px; line-height: 1.5; }
.port-body .specs {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--opta-blue); text-transform: uppercase;
  border-top: 1px solid var(--ink-100); padding-top: 12px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: var(--opta-navy);
  color: #fff;
  padding: 36px 32px;
}
.contact-card h3 { color: #fff; margin: 0 0 20px; }
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-item .l {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em;
  color: var(--opta-soft); text-transform: uppercase; margin-bottom: 4px;
}
.contact-item .v {
  font-family: var(--font-head); font-size: 18px;
  color: #fff; font-weight: 600; letter-spacing: .01em;
}
.contact-item .v.small { font-size: 14px; font-family: var(--font-body); font-weight: 400; line-height: 1.5; }
.map-embed {
  margin-top: 28px;
  background: var(--ink-700);
  color: rgba(255,255,255,.5);
  font-family: var(--font-mono); font-size: 11px;
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .14em;
  position: relative;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 30px 30px;
  background-color: var(--ink-700);
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-head); font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--opta-navy); margin-bottom: 6px; font-weight: 600;
}
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--ink-200);
  background: #fff; padding: 12px 14px;
  font-family: var(--font-body); font-size: 14px; color: var(--ink-700);
  border-radius: 2px; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--opta-blue); box-shadow: 0 0 0 3px rgba(30,64,128,.12);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Process detail (service interno) */
.scope-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--ink-200); border: 1px solid var(--ink-200);
}
.scope-grid.scope-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 1100px) {
  .scope-grid.scope-3 { grid-template-columns: 1fr; }
}
.scope-block {
  background: #fff; padding: 32px;
}
.scope-block.alt { background: var(--ink-50); }
.scope-block h4 {
  font-family: var(--font-head); font-size: 16px;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--opta-blue); margin: 0 0 20px;
  padding-bottom: 12px; border-bottom: 2px solid var(--opta-blue);
  display: inline-block;
}
.scope-block ul { padding-left: 0; margin: 0; list-style: none; }
.scope-block ul li {
  font-size: 14px; color: var(--ink-700); padding: 10px 0 10px 24px;
  border-bottom: 1px dashed var(--ink-100);
  position: relative;
}
.scope-block ul li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--opta-blue);
}
.scope-block ul li:last-child { border-bottom: none; }
.scope-block ul li .norm {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--opta-blue); letter-spacing: .12em;
  text-transform: uppercase; margin-left: 6px;
}

/* Footer */
footer.site {
  background: var(--ink-900);
  color: rgba(255,255,255,.55);
  padding: 64px 0 24px;
}
footer.site .grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 0 var(--pad-x);
  max-width: var(--container); margin: 0 auto;
}
footer.site h5 {
  color: #fff; font-family: var(--font-head); font-size: 13px;
  text-transform: uppercase; letter-spacing: .14em; margin: 0 0 16px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1);
}
footer.site .word {
  font-family: var(--font-head); font-weight: 800; font-size: 32px; color: #fff;
  letter-spacing: .02em; line-height: 1;
}
footer.site .tag {
  font-size: 10px; letter-spacing: .22em; font-weight: 600; color: var(--opta-soft);
  margin-top: 6px; text-transform: uppercase;
}
footer.site p, footer.site a { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.7; text-decoration: none; display: block; }
footer.site a:hover { color: #fff; }
footer.site .legal {
  margin-top: 48px; padding: 20px var(--pad-x) 0;
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: var(--container); margin-left: auto; margin-right: auto;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  color: rgba(255,255,255,.35);
}

/* WhatsApp floating */
.wa-float {
  position: fixed; right: 24px; bottom: 96px; z-index: 100;
  background: var(--opta-blue, #003B70); color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  cursor: pointer; transition: transform .15s;
  font-size: 26px;
}
.wa-float:hover { transform: scale(1.06); }

/* Mobile */
@media (max-width: 1100px) {
  :root { --pad-x: 28px; }
  header.site nav { display: none; }
  header.site .cta-row { display: none; }
  .nav-toggle { display: flex; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .port-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .mvv { grid-template-columns: 1fr; }
  .scope-grid { grid-template-columns: 1fr; }
  .svc-item { grid-template-columns: 60px 1fr; }
  .svc-item .meta { grid-column: 2; text-align: left; margin-top: 6px; }
  footer.site .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-strip .row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  :root { --pad-x: 20px; }
  .hero { padding: 48px 0 64px; }
  .hero-tagline { padding: 14px 18px; font-size: 16px; }
  section.s { padding: 64px 0; }
  .service-grid, .port-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat .num { font-size: 38px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .row-2 { grid-template-columns: 1fr; }
  footer.site .grid { grid-template-columns: 1fr; }
  footer.site .legal { flex-direction: column; gap: 6px; }
  .cta-strip { padding: 48px 0; }
  .cta-strip h3 { font-size: 22px; }
  .port-grid { gap: 16px; }
}
