/* ========================================================
   AC Industrial — Design System
   ======================================================== */

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1F2430;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Variables ────────────────────────────────────────── */
:root {
  --navy:      #0B1E47;
  --indigo:    #4B245D;
  --purple:    #8E3E8C;
  --cyan:      #29BDBB;
  --turq:      #29BDBB;
  --off-white: #F5F7FA;
  --light-gray:#DCE1E7;
  --graphite:  #1F2430;
  --muted:     #6B7B99;
  --white:     #FFFFFF;
  --grad-inst: linear-gradient(135deg, #0B1E47 0%, #4B245D 100%);
  --grad-cta:  linear-gradient(135deg, #29BDBB, #29BDBB);
}

/* ── Typography ───────────────────────────────────────── */
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.75; }

/* ── Utilities ────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 3rem; }
@media (max-width: 768px) { .container { padding: 0 1.25rem; } }

.section    { padding: 6rem 0; }
.section-lg { padding: 8rem 0; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 600; padding: 0.875rem 2rem;
  border-radius: 8px; border: none; cursor: pointer;
  transition: all 0.2s ease; font-family: inherit;
  text-decoration: none;
}
.btn-primary {
  background: var(--grad-cta); color: #fff;
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(41,189,187,0.4);
  transform: scale(1.02);
}
.btn-outline-white {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.10); }
.btn-outline-navy {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #263570; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.accent-line {
  display: block; width: 40px; height: 3px;
  background: var(--grad-cta); border-radius: 2px;
  margin-bottom: 1rem;
}

/* ── Scroll Reveal Animations ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.from-left  { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── Spinner ──────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Header ───────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 24px rgba(0,0,0,0.1);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.logo img { height: 44px; width: auto; }
.drawer-head img { filter: brightness(0) invert(1); }
.footer-logo img { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500;
  color: rgba(11,30,71,0.65); border-radius: 8px;
  transition: color 0.2s, background 0.2s; position: relative;
}
.nav a:hover, .nav a.active { color: #0B1E47; }
.nav a:hover { background: rgba(11,30,71,0.05); }
.nav a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 0.75rem; right: 0.75rem;
  height: 2px; background: var(--cyan); border-radius: 2px;
}

/* Dropdown */
.nav-item { position: relative; }
.nav-item .dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px; border-radius: 12px; overflow: hidden;
  background: #ffffff; backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-item:hover .dropdown {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 0.75rem 1.25rem;
  font-size: 0.875rem; color: rgba(11,30,71,0.7);
  transition: color 0.2s, background 0.2s; border-radius: 0;
}
.dropdown a:hover { color: #0B1E47; background: rgba(11,30,71,0.04); }

.header-cta { display: flex; align-items: center; gap: 0.75rem; }
.header-cta .btn { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

/* Mobile hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #0B1E47; border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  display: none; position: fixed; top: 0; right: 0; bottom: 0;
  width: 320px; background: var(--navy); z-index: 200;
  flex-direction: column; transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 199;
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

@media (max-width: 1024px) {
  .nav, .header-cta .btn { display: none; }
  .hamburger { display: flex; }
  .mobile-drawer { display: flex; }
  .drawer-overlay { display: block; }
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.drawer-head img { height: 36px; }
.drawer-close {
  background: none; border: none; color: rgba(255,255,255,0.6);
  cursor: pointer; font-size: 1.5rem; line-height: 1;
  transition: color 0.2s;
}
.drawer-close:hover { color: #fff; }
.drawer-nav { flex: 1; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; overflow-y: auto; }
.drawer-nav a {
  display: block; padding: 0.75rem 1rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  color: rgba(255,255,255,0.75); transition: all 0.2s;
}
.drawer-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.drawer-nav a.active { color: #fff; background: rgba(255,255,255,0.12); }
.drawer-sub a { font-size: 0.85rem; padding-left: 2rem; }
.drawer-foot {
  padding: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.drawer-foot .btn { width: 100%; justify-content: center; }
.drawer-phone {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.drawer-phone:hover { color: #fff; }

/* ── Hero Home ────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
  background: #070B18;
}
.hero-bg {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 70% at 75% 35%, rgba(142,62,140,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 15% 75%, rgba(41,189,187,0.1) 0%, transparent 60%),
    linear-gradient(160deg, #070B18 0%, #0B1E47 45%, #2D1240 75%, #070B18 100%);
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.hero-glow.g1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(41,189,187,0.1), transparent 70%);
  top: -180px; right: -60px;
  animation: glow-pulse 7s ease-in-out infinite;
}
.hero-glow.g2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(142,62,140,0.35), transparent 70%);
  bottom: -120px; left: 8%;
  animation: glow-pulse 9s ease-in-out infinite 2.5s;
}
.hero-glow.g3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(41,189,187,0.12), transparent 70%);
  top: 50%; left: 38%;
  animation: glow-pulse 5.5s ease-in-out infinite 1s;
}
@keyframes glow-pulse {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.12); }
}

.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(41,189,187,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,189,187,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 90% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 90% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative; z-index: 10;
  padding-top: 7rem; padding-bottom: 4rem;
  width: 100%;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 11rem);
}
.hero-text { max-width: 560px; }
.hero h1 {
  color: #fff; margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 2.6vw, 2.6rem);
  line-height: 1.15;
}
.hero .subtitle {
  font-size: 1rem; color: rgba(255,255,255,0.62);
  line-height: 1.75; margin-bottom: 2rem; max-width: 480px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge {
  font-size: 0.72rem; color: rgba(255,255,255,0.68);
  padding: 0.35rem 0.875rem; border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.11);
}

/* ── Hero Visual — Industry 4.0 Network ───────────────── */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 460px;
}
.hv-net {
  position: relative; flex-shrink: 0;
  width: 380px; height: 380px;
}
.hv-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; overflow: visible;
}

/* Central hub */
.hv-hub {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(41,189,187,0.22), rgba(142,62,140,0.28));
  border: 1.5px solid rgba(41,189,187,0.55);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 48px rgba(41,189,187,0.22), inset 0 0 24px rgba(41,189,187,0.1);
  z-index: 3;
}
.hv-hub svg { color: #29BDBB; }
.hv-hub-pulse {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(41,189,187,0.45);
  animation: hub-pulse 2.8s ease-out infinite;
}
.hv-hub-pulse.p2 { animation-delay: 1.4s; }
@keyframes hub-pulse {
  0%   { width: 72px; height: 72px; opacity: 0.7; }
  100% { width: 160px; height: 160px; opacity: 0; }
}

/* Network nodes */
.hv-node {
  position: absolute;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(7,11,24,0.88);
  border: 1.5px solid rgba(41,189,187,0.45);
  display: flex; align-items: center; justify-content: center;
  color: #29BDBB;
  box-shadow: 0 0 14px rgba(41,189,187,0.18);
  transform: translate(-50%,-50%);
  z-index: 3;
  animation: node-glow 3s ease-in-out infinite;
}
.hv-node.n2 { animation-delay: 0.6s; }
.hv-node.n3 { animation-delay: 1.2s; }
.hv-node.n4 { animation-delay: 1.8s; }
.hv-node.n5 { animation-delay: 2.4s; }
@keyframes node-glow {
  0%,100% { box-shadow: 0 0 10px rgba(41,189,187,0.15); }
  50%      { box-shadow: 0 0 22px rgba(41,189,187,0.4); }
}
/* Positions (SVG coords in 380px) */
.hv-node.n1 { top: 18.95%; left: 15.79%; }  /* WiFi  60,72  */
.hv-node.n2 { top: 18.95%; left: 84.21%; }  /* CPU   320,72 */
.hv-node.n3 { top: 52.63%; left: 93.42%; }  /* Cloud 355,200*/
.hv-node.n4 { top: 86.32%; left: 76.32%; }  /* Sensor290,328*/
.hv-node.n5 { top: 86.32%; left: 23.68%; }  /* Motor  90,328*/

/* Floating metric cards */
.hv-card {
  position: absolute;
  background: rgba(8,14,30,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 0.875rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hv-card .hv-num {
  font-size: 1.5rem; font-weight: 800;
  color: #29BDBB; line-height: 1; display: block;
}
.hv-card .hv-label {
  font-size: 0.7rem; color: rgba(255,255,255,0.5);
  display: block; line-height: 1.35; max-width: 78px;
}
.hv-card .hv-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: rgba(41,189,187,0.1); border: 1px solid rgba(41,189,187,0.18);
  display: flex; align-items: center; justify-content: center;
}
.hv-card .hv-icon svg { color: #29BDBB; }
.hv-card.c1 { top: 6%;   left: -12%; animation: float-card 4.5s ease-in-out infinite; }
.hv-card.c2 { bottom: 8%; right: -8%;  animation: float-card 5.5s ease-in-out infinite 1.2s; }
.hv-card.c3 { bottom: 28%; left: -16%; animation: float-card 4s ease-in-out infinite 0.6s; }
@keyframes float-card {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

/* Corner brackets */
.hv-corner {
  position: absolute; width: 18px; height: 18px;
  border-color: rgba(41,189,187,0.35); border-style: solid;
}
.hv-corner.tl { top: 6%;  left: 6%;  border-width: 2px 0 0 2px; }
.hv-corner.tr { top: 6%;  right: 6%; border-width: 2px 2px 0 0; }
.hv-corner.bl { bottom: 6%; left: 6%;  border-width: 0 0 2px 2px; }
.hv-corner.br { bottom: 6%; right: 6%; border-width: 0 2px 2px 0; }

@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { display: none; }
  .hero-text { max-width: 100%; }
}

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.375rem; z-index: 10;
}
.scroll-indicator span { font-size: 0.65rem; color: rgba(255,255,255,0.28); letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-arrow {
  width: 20px; height: 20px; color: rgba(255,255,255,0.35);
  animation: bounce 1.5s ease-in-out infinite;
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ── Diferenciais ─────────────────────────────────────── */
.diferenciais { background: var(--off-white); }
.diferenciais-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .diferenciais-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .diferenciais-grid { grid-template-columns: 1fr; } }

.card-diferencial {
  background: #fff; border: 1px solid var(--light-gray);
  border-radius: 12px; padding: 2.5rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative; overflow: hidden;
}
.card-diferencial::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--grad-cta);
  transform: scaleX(0); transition: transform 0.25s ease;
}
.card-diferencial:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(11,30,71,0.12);
  border-color: rgba(41,189,187,0.3);
}
.card-diferencial:hover::before { transform: scaleX(1); }

.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(41,189,187,0.1);
  transition: background 0.2s;
}
.card-diferencial:hover .card-icon { background: var(--cyan); }
.card-icon svg { color: var(--cyan); transition: color 0.2s; }
.card-diferencial:hover .card-icon svg { color: #fff; }
.card-diferencial h4 { color: var(--navy); margin-bottom: 0.625rem; }
.card-diferencial p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ── Produtos Home ────────────────────────────────────── */
.produtos-home { background: #fff; }
.produtos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .produtos-grid { grid-template-columns: 1fr; } }

.card-produto {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(11,30,71,0.08);
  transition: box-shadow 0.3s;
}
.card-produto:hover { box-shadow: 0 16px 48px rgba(11,30,71,0.14); }

.card-produto-img {
  height: 280px; background: #1F2430;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.card-produto-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.card-produto:hover .card-produto-img img { transform: scale(1.04); }

.card-produto-body {
  padding: 2rem; background: var(--off-white);
}
.card-produto-body h3 { color: var(--navy); margin-bottom: 0.625rem; }
.card-produto-body p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; font-weight: 600; color: var(--cyan);
  transition: gap 0.2s;
}
.card-link:hover { gap: 0.625rem; }

/* ── Serviços Home (dark) ─────────────────────────────── */
.servicos-home {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0B1E47 0%, #4B245D 100%);
}
.servicos-home .grid-texture {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(41,189,187,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(41,189,187,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.card-servico {
  border-radius: 12px; padding: 2.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  transition: background 0.25s, border-color 0.25s;
  display: flex; flex-direction: column;
}
.card-servico:hover {
  background: rgba(41,189,187,0.12);
  border-color: rgba(41,189,187,0.40);
}
.card-servico-num {
  font-size: 4.5rem; font-weight: 800;
  color: rgba(41,189,187,0.20); line-height: 1;
  margin-bottom: 1.25rem;
}
.card-servico h3 { color: #fff; font-size: 1.125rem; margin-bottom: 0.75rem; }
.card-servico p { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.65; flex: 1; }
.card-servico .card-link { color: var(--cyan); margin-top: 1.5rem; }
.card-servico .card-link:hover { color: var(--turq); }

/* ── Portfolio ────────────────────────────────────────── */
.portfolio { background: var(--off-white); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6, 160px);
  gap: 1rem;
}
.portfolio-item {
  position: relative; overflow: hidden; border-radius: 10px;
  cursor: pointer;
}
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,30,71,0.85), transparent);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem; opacity: 0; transition: opacity 0.3s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay span { color: #fff; font-size: 0.875rem; font-weight: 600; }
.portfolio-overlay .zoom-icon { position: absolute; top: 1rem; right: 1rem; color: rgba(255,255,255,0.8); }

.p-item-1 { grid-column: 1/8; grid-row: 1/3; }
.p-item-2 { grid-column: 8/13; grid-row: 1/3; }
.p-item-3 { grid-column: 1/6; grid-row: 3/5; }
.p-item-4 { grid-column: 6/13; grid-row: 3/5; }
.p-item-5 { grid-column: 1/5; grid-row: 5/7; }
.p-item-6 { grid-column: 5/9; grid-row: 5/7; }
.p-item-7 { grid-column: 9/13; grid-row: 5/7; }

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 160px);
  }
  .p-item-1,.p-item-2,.p-item-3,.p-item-4 { grid-column: auto; grid-row: auto; }
  .p-item-5,.p-item-6,.p-item-7 { grid-column: auto; grid-row: auto; }
}

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative; max-width: 900px; width: 100%;
  animation: lbIn 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes lbIn { from { opacity:0; transform: scale(0.92); } to { opacity:1; transform: scale(1); } }
.lightbox-inner img {
  width: 100%; height: auto; object-fit: contain; border-radius: 8px;
  max-height: 85vh;
}
.lightbox-close {
  position: absolute; top: -2.5rem; right: 0;
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ── Quem Somos Home ──────────────────────────────────── */
.quem-somos-home { background: #fff; }
.quem-somos-grid {
  display: grid; grid-template-columns: 7fr 5fr; gap: 4rem; align-items: center;
}
@media (max-width: 1024px) { .quem-somos-grid { grid-template-columns: 1fr; gap: 3rem; } }

.quem-somos-text h2 { color: var(--navy); margin-bottom: 1.5rem; }
.quem-somos-text p { color: var(--graphite); margin-bottom: 1rem; }
.quem-somos-text p:first-of-type { font-size: 1.05rem; font-weight: 500; }
.qs-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.qs-stat { border-left: 3px solid var(--cyan); padding-left: 1rem; }
.qs-stat strong { display: block; font-size: 1rem; font-weight: 700; color: var(--navy); }
.qs-stat span { font-size: 0.8rem; color: var(--muted); }

.quem-somos-img { position: relative; }
.qs-img-main {
  border-radius: 12px; overflow: hidden; aspect-ratio: 4/5; position: relative;
}
.qs-img-main img { width: 100%; height: 100%; object-fit: cover; }
.qs-img-secondary {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  width: 55%; border-radius: 10px; overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 8px 32px rgba(11,30,71,0.15);
}
.qs-img-secondary img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.qs-badge {
  position: absolute; top: 1.25rem; right: -0.75rem;
  background: var(--navy); color: #fff;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 0.5rem 1rem; border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ── CTA Faixa ────────────────────────────────────────── */
.cta-faixa {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0B1E47 0%, #8E3E8C 100%);
  text-align: center;
  padding: 6rem 0;
}
.cta-faixa-glow-l, .cta-faixa-glow-r {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  pointer-events: none;
}
.cta-faixa-glow-l {
  top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(41,189,187,0.1), transparent 70%);
}
.cta-faixa-glow-r {
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(142,62,140,0.4), transparent 70%);
}
.cta-faixa-content { position: relative; z-index: 2; max-width: 740px; margin: 0 auto; }
.cta-faixa h2 { color: #fff; margin-bottom: 1.25rem; }
.cta-faixa p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────── */
.footer { background: #0D1624; }
.footer-line { height: 1px; background: rgba(41,189,187,0.3); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 3rem; padding: 4rem 0;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo img { height: 40px; width: auto; margin-bottom: 1.25rem; }
.footer-logo p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 1.25rem; }
.footer-socials { display: flex; gap: 0.625rem; }
.footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); transition: all 0.2s;
}
.footer-social:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

.footer-col h5 {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact-item {
  display: flex; gap: 0.75rem; align-items: flex-start;
  font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-bottom: 1rem;
}
.footer-contact-item svg { color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ── Internal Hero ────────────────────────────────────── */
.internal-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0B1E47 0%, #4B245D 100%);
  display: flex; align-items: center;
}
.internal-hero.sm { min-height: 40vh; padding: 8rem 0 4rem; }
.internal-hero.md { min-height: 50vh; padding: 9rem 0 4rem; }
.internal-hero.lg { min-height: 60vh; padding: 10rem 0 5rem; }
.internal-hero .breadcrumb {
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem;
}
.internal-hero .breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.internal-hero .breadcrumb a:hover { color: rgba(255,255,255,0.7); }
.internal-hero .breadcrumb span { color: rgba(255,255,255,0.6); }
.internal-hero h1 { color: #fff; margin-bottom: 1rem; }
.internal-hero .subtitle { color: rgba(255,255,255,0.72); font-size: 1.1rem; max-width: 600px; }
.internal-hero .hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.internal-hero .hero-overlay {
  position: absolute; inset: 0;
  background: rgba(11,30,71,0.82);
}
.internal-hero .hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(41,189,187,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(41,189,187,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}
.internal-hero .hero-content { position: relative; z-index: 2; width: 100%; }

/* ── App Cards ────────────────────────────────────────── */
.app-card {
  background: #fff; border: 1px solid var(--light-gray);
  border-radius: 10px; padding: 1.75rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.app-card:hover {
  border-color: rgba(41,189,187,0.4);
  box-shadow: 0 4px 20px rgba(11,30,71,0.08);
}
.app-card-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: rgba(41,189,187,0.1);
  display: flex; align-items: center; justify-content: center;
}
.app-card-icon svg { color: var(--cyan); }
.app-card h4 { color: var(--navy); font-size: 0.95rem; margin-bottom: 0.25rem; }
.app-card p { font-size: 0.825rem; color: var(--muted); }

/* ── Comp Cards ───────────────────────────────────────── */
.comp-card {
  background: var(--off-white); border-radius: 10px;
  padding: 1.5rem; text-align: center;
  border: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.comp-card:hover {
  border-color: rgba(41,189,187,0.4);
  box-shadow: 0 4px 16px rgba(11,30,71,0.08);
}
.comp-card-img {
  width: 100%; aspect-ratio: 4/3;
  background: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; overflow: hidden; padding: 1rem;
}
.comp-card-img img { max-height: 100px; object-fit: contain; }
.comp-card h4 { color: var(--navy); font-size: 0.9rem; margin-bottom: 0.25rem; }
.comp-card p { font-size: 0.8rem; color: var(--muted); }

/* ── Service Block ────────────────────────────────────── */
.service-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; padding: 5rem 0;
  border-bottom: 1px solid var(--light-gray);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
@media (max-width: 1024px) {
  .service-block { grid-template-columns: 1fr; direction: ltr; gap: 2.5rem; padding: 3rem 0; }
  .service-block.reverse { direction: ltr; }
}
.service-block-img { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.service-block-img img { width: 100%; height: 100%; object-fit: cover; }
.service-block-num {
  font-size: 5rem; font-weight: 800;
  color: rgba(41,189,187,0.15); line-height: 1; margin-bottom: 0.5rem;
}
.service-block-text h3 { color: var(--navy); font-size: 1.75rem; margin-bottom: 1rem; }
.service-block-text p { color: var(--graphite); margin-bottom: 1.25rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.tag {
  font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.875rem;
  border-radius: 100px; border: 1px solid var(--cyan); color: var(--cyan);
}

/* ── Contact Form ─────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 7fr 5fr; gap: 4rem;
}
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.875rem 1rem; border-radius: 8px;
  border: 1.5px solid var(--light-gray); background: #fff;
  font-family: inherit; font-size: 0.9rem; color: var(--graphite);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group select { appearance: none; cursor: pointer; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(41,189,187,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--off-white); border-radius: 20px; padding: 2.5rem;
}
.contact-card h4 { color: var(--navy); margin-bottom: 1.5rem; }
.whatsapp-btn {
  display: flex; align-items: center; gap: 0.75rem;
  background: #25D366; color: #fff; font-weight: 600; font-size: 0.9rem;
  padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 2rem;
  transition: opacity 0.2s;
}
.whatsapp-btn:hover { opacity: 0.9; color: #fff; }
.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(41,189,187,0.1);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-icon svg { color: var(--cyan); }
.contact-info-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem;
}
.contact-info-value { font-size: 0.9rem; color: var(--navy); font-weight: 500; line-height: 1.5; }
.map-embed {
  margin-top: 2rem; border-radius: 12px; overflow: hidden;
}

/* ── Section Header ───────────────────────────────────── */
.text-center { text-align: center; }
.section-header { margin-bottom: 4rem; }
.section-header h2 { color: var(--navy); }
.section-header p { color: var(--muted); max-width: 580px; margin: 1rem auto 0; font-size: 1.05rem; }
.section-header.light h2 { color: #fff; }
.section-header.light p { color: rgba(255,255,255,0.7); }
.section-header.light .eyebrow { color: var(--turq); }

/* ── CTA Compact ──────────────────────────────────────── */
.cta-compact {
  background: linear-gradient(135deg, #0B1E47 0%, #4B245D 100%);
  padding: 4rem; border-radius: 16px; text-align: center;
}
.cta-compact h3 { color: #fff; font-size: 1.75rem; margin-bottom: 0.75rem; }
.cta-compact p { color: rgba(255,255,255,0.7); margin-bottom: 1.75rem; }

/* ── Product Intro Grid ───────────────────────────────── */
.product-intro-grid {
  display: grid; grid-template-columns: 7fr 5fr; gap: 4rem; align-items: center;
}
@media (max-width: 1024px) { .product-intro-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.product-intro-img { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.product-intro-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Institutional Stats ──────────────────────────────── */
.inst-card {
  background: var(--off-white); border-radius: 12px; padding: 2.5rem;
  border: 1px solid var(--light-gray);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.inst-card:hover {
  border-color: rgba(41,189,187,0.4);
  box-shadow: 0 8px 32px rgba(11,30,71,0.08);
}
.inst-card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(41,189,187,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.inst-card-icon svg { color: var(--cyan); }
.inst-card h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: 0.75rem; }
.inst-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* ── Form Success ─────────────────────────────────────── */
#form-success {
  display: none; text-align: center; padding: 3rem;
  background: var(--off-white); border-radius: 12px;
}
#form-success .success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(41,189,187,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
#form-success .success-icon svg { color: var(--cyan); }
#form-success h3 { color: var(--navy); margin-bottom: 0.75rem; }
#form-success p { color: var(--muted); }

/* ── Categorias separador ─────────────────────────────── */
.cat-title {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--cyan);
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 0.75rem; margin-bottom: 1.5rem; margin-top: 2.5rem;
}
.cat-title:first-child { margin-top: 0; }

/* ══════════════════════════════════════════════════════════
   MOBILE / RESPONSIVE — Breakpoint 1024px, 768px, 480px
   ══════════════════════════════════════════════════════════ */

/* ── Tablet geral ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .section    { padding: 4.5rem 0; }
  .section-lg { padding: 5.5rem 0; }
  .section-header { margin-bottom: 3rem; }
  .cta-faixa  { padding: 5rem 0; }
}

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Typography scale */
  h1 { font-size: clamp(1.75rem, 7vw, 2.25rem); line-height: 1.15; }
  h2 { font-size: clamp(1.5rem,  6vw, 2rem);    line-height: 1.2;  }
  h3 { font-size: 1.2rem; }

  /* Section spacing */
  .section    { padding: 3.25rem 0; }
  .section-lg { padding: 4rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-header p { font-size: 0.95rem; }

  /* Hero home */
  .hero-content { padding-top: 5.5rem; padding-bottom: 3rem; }
  .hero .subtitle { font-size: 0.95rem; margin-bottom: 1.75rem; }
  .hero-btns {
    flex-direction: column; gap: 0.75rem; margin-bottom: 1.75rem;
  }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-badges { gap: 0.375rem; }
  .badge { font-size: 0.68rem; padding: 0.3rem 0.75rem; }

  /* Internal hero */
  .internal-hero.sm { min-height: auto; padding: 6rem 0 2.5rem; }
  .internal-hero.md { min-height: auto; padding: 6.5rem 0 3rem; }
  .internal-hero.lg { min-height: auto; padding: 7rem 0 3rem; }
  .internal-hero h1  { font-size: clamp(1.625rem, 6vw, 2rem); }
  .internal-hero .subtitle { font-size: 0.95rem; max-width: 100%; }
  .internal-hero .breadcrumb { margin-bottom: 1rem; }

  /* CTA */
  .cta-faixa { padding: 3.5rem 0; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; max-width: 340px; justify-content: center; }
  .cta-compact { padding: 2rem 1.25rem; border-radius: 12px; }
  .cta-compact h3 { font-size: 1.375rem; }

  /* Service blocks */
  .service-block { padding: 2.5rem 0; gap: 2rem; }

  /* Product cards */
  .card-produto-img { height: 220px; }

  /* Portfolio mobile: single column on tiny screens */
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .p-item-1,.p-item-2,.p-item-3,.p-item-4,
  .p-item-5,.p-item-6,.p-item-7 {
    grid-column: auto; grid-row: auto; height: 200px;
  }

  /* Quem somos */
  .qs-img-secondary { display: none; }
  .qs-badge { right: 1rem; }
  .qs-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Institutional cards */
  .inst-card { padding: 1.75rem; }

  /* Footer */
  .footer-grid { padding: 3rem 0 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.375rem; text-align: center; }

  /* Contact card */
  .contact-card { padding: 1.75rem; }

  /* Comp cards já cobertos pelo .grid-4 media query acima */
}

/* ── Mobile pequeno ───────────────────────────────────── */
@media (max-width: 480px) {
  /* Container */
  .container { padding: 0 1rem; }

  /* Header */
  .header-inner { height: 68px; }
  .logo img     { height: 36px; }

  /* Typography */
  h1 { font-size: clamp(1.625rem, 8vw, 1.875rem); }
  h2 { font-size: clamp(1.375rem, 7vw, 1.75rem); }

  /* Drawer */
  .mobile-drawer { width: 100%; }

  /* Hero */
  .hero-content { padding-top: 5rem; }

  /* Internal hero */
  .internal-hero.sm,
  .internal-hero.md,
  .internal-hero.lg { padding-top: 6rem; }

  /* Buttons — full width */
  .btn { padding: 0.8rem 1.5rem; font-size: 0.85rem; }
  .cta-compact .btn { width: 100%; justify-content: center; }

  /* Section header */
  .section-header { margin-bottom: 1.75rem; }

  /* Service block tags */
  .service-tags { gap: 0.375rem; }
  .tag { font-size: 0.7rem; padding: 0.3rem 0.7rem; }

  /* Quem somos stats */
  .qs-stats { grid-template-columns: 1fr; }

  /* Portfolio */
  .p-item-1,.p-item-2,.p-item-3,.p-item-4,
  .p-item-5,.p-item-6,.p-item-7 { height: 180px; }

  /* Product intro */
  .product-intro-grid { gap: 2rem; }

  /* Footer bottom */
  .footer-bottom { padding: 1.25rem 0; }

  /* CTA faixa */
  .cta-faixa h2 { font-size: 1.5rem; }
  .cta-faixa p  { font-size: 0.9rem; }
}
