:root {
  --navy: #0e2749;
  --blue: #1d4d8c;
  --charcoal: #2d3436;
  --light: #f4f6f8;
  --white: #ffffff;
  --orange: #f58220;
  --line: rgba(14, 39, 73, 0.14);
  --shadow: 0 24px 70px rgba(14, 39, 73, 0.18);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  letter-spacing: 0;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { line-height: 1.75; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 84px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(20px, 4vw, 64px);
  color: var(--white);
  background: rgba(9, 28, 55, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 228px; height: auto; max-height: 52px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-weight: 700; font-size: 0.94rem; }
.site-nav a { opacity: 0.86; position: relative; padding: 31px 0; }
.site-nav a:hover, .site-nav a.active { opacity: 1; }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 21px;
  height: 3px;
  background: var(--orange);
}
.header-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 14px 20px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(245, 130, 32, 0.24);
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.header-cta:hover {
  transform: translateY(-2px);
  background: #ff8d2d;
  box-shadow: 0 20px 42px rgba(245, 130, 32, 0.34);
}
.menu-toggle { display: none; background: transparent; border: 0; padding: 8px; margin-left: auto; }
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--white); }

.hero {
  min-height: calc(100vh - 84px);
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-paineis-industriais.png");
  background-size: cover;
  background-position: center right;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 19, 38, 0.94) 0%, rgba(8, 30, 58, 0.76) 38%, rgba(8, 30, 58, 0.16) 72%);
}
.hero-grid {
  position: relative;
  min-height: calc(100vh - 84px);
  display: grid;
  align-items: center;
  padding: 72px 0 84px;
}
.hero-copy { max-width: 700px; }
.hero h1, .inner-hero h1 {
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}
.hero p { max-width: 670px; margin: 26px 0 0; font-size: clamp(1.02rem, 1.8vw, 1.24rem); color: rgba(255, 255, 255, 0.82); }
.actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, color 0.24s ease;
}
.btn::after, .header-cta::after {
  content: "";
  position: absolute;
  inset: -40% -70%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.34) 50%, transparent 66%);
  transform: translateX(-75%);
  transition: transform 0.55s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-3px); }
.btn:hover::after, .btn:focus-visible::after, .header-cta:hover::after, .header-cta:focus-visible::after { transform: translateX(75%); }
.btn-primary:hover, .btn-primary:focus-visible {
  background: #ff8d2d;
  box-shadow: 0 22px 44px rgba(245, 130, 32, 0.34);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 18px 38px rgba(255, 255, 255, 0.16);
}
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 16px 36px rgba(245, 130, 32, 0.25); }
.btn-secondary { color: var(--white); border-color: rgba(255, 255, 255, 0.78); background: rgba(255, 255, 255, 0.04); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(116px, 1fr));
  gap: 18px;
  margin-top: 58px;
  max-width: 820px;
}
.hero-stats span { border-left: 1px solid rgba(255,255,255,.24); padding-left: 16px; color: rgba(255,255,255,.78); font-size: .9rem; }
.hero-stats strong { display: block; color: var(--white); font-size: 1.5rem; line-height: 1.1; }

.section { padding: clamp(72px, 8vw, 118px) 0; background: var(--white); }
.section-light { background: var(--light); }
.section-navy { background: var(--navy); color: var(--white); }
.section-label { margin: 0 0 14px; color: var(--blue); font-weight: 900; text-transform: uppercase; font-size: .82rem; }
.section-navy .section-label { color: var(--orange); }
h2 { margin: 0 0 22px; color: var(--navy); font-size: clamp(2rem, 3.2vw, 3.2rem); line-height: 1.14; letter-spacing: 0; }
.section-navy h2, .cta-band h2 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.split { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 6vw, 82px); align-items: center; }
.media-frame { margin: 0; overflow: hidden; border-radius: 6px; box-shadow: var(--shadow); background: var(--navy); }
.media-frame img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s ease; }
.media-frame:hover img { transform: scale(1.045); }
.about-photo-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(3, minmax(145px, 1fr));
  gap: 12px;
  min-height: 520px;
}
.photo-tile {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  cursor: zoom-in;
  box-shadow: 0 18px 48px rgba(14, 39, 73, 0.12);
}
.photo-tile-large { grid-row: span 3; }
.photo-tile img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
  transition: transform 0.55s ease, filter 0.55s ease;
}
.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(5, 19, 38, 0.34));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.photo-tile:hover img, .photo-tile:focus-visible img { transform: scale(1.045); filter: saturate(1.1) contrast(1.06); }
.photo-tile:hover::after, .photo-tile:focus-visible::after { opacity: 1; }
.photo-tile:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
.text-link { display: inline-block; margin-top: 12px; color: var(--blue); font-weight: 900; border-bottom: 3px solid var(--orange); padding-bottom: 6px; }

.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.solution-card, .value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px;
  min-height: 210px;
  box-shadow: 0 14px 36px rgba(14, 39, 73, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.solution-card:hover, .value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 130, 32, 0.34);
  box-shadow: 0 24px 54px rgba(14, 39, 73, 0.13);
}
.solution-card .icon { transition: transform 0.28s ease, color 0.28s ease; }
.solution-card:hover .icon { transform: translateY(-2px) scale(1.08); color: #ff8d2d; }
.solution-card .icon { color: var(--orange); font-size: 2rem; font-weight: 800; }
.solution-card h3, .value-card h2 { margin: 16px 0 10px; color: var(--navy); font-size: 1.22rem; }
.solution-card p { margin: 0; color: #5e6872; }
.compact .solution-card { min-height: 120px; display: flex; align-items: center; }

.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-list span {
  padding: 20px;
  border-left: 3px solid var(--orange);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}
.feature-list span:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.1);
  border-left-color: #ff9a42;
}
.cta-band { background: linear-gradient(105deg, var(--blue), var(--navy)); color: var(--white); padding: 58px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta-inner p { margin-bottom: 0; color: rgba(255,255,255,.82); }

.inner-hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: 110px 0 70px;
  color: var(--white);
  background: linear-gradient(90deg, rgba(5,19,38,.92), rgba(14,39,73,.7)), url("../images/hero-paineis-industriais.png") center / cover;
}
.inner-hero p { max-width: 760px; font-size: 1.18rem; color: rgba(255,255,255,.82); }
.ttw-hero { background-position: center right; }
.values-grid, .contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.values-grid .value-card { min-height: 260px; }
.services-list .container { display: grid; gap: 18px; }
.service-row {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 38px;
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.service-row:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 130, 32, 0.24);
  box-shadow: 0 24px 50px rgba(14, 39, 73, 0.1);
}
.service-row span { color: var(--orange); font-weight: 900; }
.service-row h2 { font-size: clamp(1.7rem, 2.4vw, 2.4rem); }
.service-row ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; }
.service-row li { background: var(--light); color: var(--navy); padding: 9px 12px; border-radius: 4px; font-weight: 800; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }
.gallery img { transition: transform 0.55s ease, box-shadow 0.55s ease; }
.gallery img:hover { transform: translateY(-5px) scale(1.015); box-shadow: 0 30px 80px rgba(14, 39, 73, 0.22); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 4px;
  padding: 12px 16px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}
.filters button:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 130, 32, 0.42);
  box-shadow: 0 12px 28px rgba(14, 39, 73, 0.1);
}
.filters button.active { background: var(--orange); border-color: var(--orange); color: var(--white); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 14px 36px rgba(14,39,73,.07); transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(245, 130, 32, 0.3); box-shadow: 0 24px 56px rgba(14,39,73,.14); }
.project-card img { width: 100%; aspect-ratio: 1.35 / 1; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover img { transform: scale(1.045); }
.project-card div { padding: 24px; }
.project-card h2 { font-size: 1.24rem; margin-bottom: 10px; }
.project-card span { display: block; color: #5e6872; margin-top: 6px; }
.project-card.is-hidden { display: none; }
.logos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.logos-grid span {
  min-height: 130px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #7b858f;
  background: var(--white);
  font-weight: 900;
  text-transform: uppercase;
}
.contact-grid { grid-template-columns: .42fr .58fr; align-items: start; }
.contact-info, .contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px;
  box-shadow: 0 14px 36px rgba(14,39,73,.07);
}
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 8px; color: var(--navy); font-weight: 850; }
.contact-form label:nth-last-of-type(1), .contact-form .btn { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px;
  font: inherit;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(245, 130, 32, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.12);
}

.site-footer {
  padding: 0;
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 18% 0%, rgba(29, 77, 140, 0.55), transparent 34%),
    linear-gradient(135deg, #123f70 0%, var(--navy) 48%, #07192f 100%);
  border-top: 4px solid rgba(245, 130, 32, 0.82);
}
.footer-shell { padding: clamp(54px, 7vw, 86px) 0 24px; }
.footer-main {
  display: grid;
  grid-template-columns: 1.15fr 0.62fr 1fr;
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}
.footer-brand-block p {
  max-width: 520px;
  margin: 28px 0 0;
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.86);
}
.footer-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 218px;
  min-height: 82px;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.16);
}
.footer-logo-card img {
  width: 180px;
  height: auto;
  object-fit: contain;
}
.footer-links, .footer-contact {
  display: grid;
  gap: 14px;
}
.footer-links h2, .footer-contact h2 {
  position: relative;
  margin: 0 0 18px;
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.2;
}
.footer-links h2::after, .footer-contact h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
}
.footer-links a {
  width: fit-content;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}
.footer-contact p {
  margin: 0;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.86);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(42px, 6vw, 68px);
  padding: 24px 96px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}
.developer-signature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.developer-signature span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0;
}
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.whatsapp-float img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.32));
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
  background: rgba(2, 12, 26, 0.92);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}
.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox-frame {
  display: grid;
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0;
}
.lightbox-frame img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
}
.lightbox-frame figcaption {
  min-height: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  text-align: center;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover {
  transform: translateY(-2px);
  background: var(--orange);
  border-color: var(--orange);
}
.lightbox-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  width: 54px;
  height: 54px;
  font-size: 2.7rem;
  line-height: 1;
}
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
body.lightbox-open { overflow: hidden; }

.reveal { opacity: 1; transform: none; }
.has-js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s ease, transform 0.72s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.has-js .media-frame.reveal, .has-js .gallery .reveal {
  transform: translateY(32px) scale(0.985);
}
.has-js .media-frame.reveal.is-visible, .has-js .gallery .reveal.is-visible {
  transform: translateY(0) scale(1);
}

@media (max-width: 1060px) {
  .site-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .site-header.menu-open .site-nav {
    display: grid;
    position: absolute;
    left: 0;
    right: 0;
    top: 84px;
    gap: 0;
    padding: 12px 24px 24px;
    background: #07192f;
  }
  .site-header.menu-open .site-nav a { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav a.active::after { display: none; }
  .solution-grid, .project-grid, .feature-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, var(--max)); }
  .site-header { height: 74px; padding-inline: 16px; }
  .brand img { width: 166px; max-height: 42px; }
  .site-header.menu-open .site-nav { top: 74px; }
  .hero, .hero-grid { min-height: auto; }
  .hero-grid { padding: 100px 0 64px; }
  .hero-media { background-position: 66% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,19,38,.95), rgba(5,19,38,.78)); }
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 38px; }
  .split, .service-row, .values-grid, .contact-grid, .gallery, .footer-main, .solution-grid, .project-grid, .feature-list, .logos-grid { grid-template-columns: 1fr; }
  .about-photo-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 150px); min-height: 0; }
  .photo-tile-large { grid-column: 1 / -1; grid-row: span 1; }
  .about-photo-mosaic .photo-tile:nth-child(4) { grid-column: 1 / -1; }
  .cta-inner { display: grid; }
  .contact-form { grid-template-columns: 1fr; }
  h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .gallery-lightbox { padding: 18px; }
  .lightbox-frame img { max-height: 72vh; }
  .lightbox-close { top: 14px; right: 14px; width: 42px; height: 42px; }
  .lightbox-nav { top: auto; bottom: 18px; width: 46px; height: 46px; font-size: 2.2rem; }
  .lightbox-prev { left: 18px; }
  .lightbox-next { right: 18px; }
  .footer-shell { padding-top: 44px; }
  .footer-main { gap: 34px; }
  .footer-logo-card { min-width: 190px; min-height: 72px; }
  .footer-logo-card img { width: 158px; }
  .footer-bottom { display: grid; gap: 14px; padding-right: 72px; }
  .developer-signature { white-space: normal; }
  .whatsapp-float { width: 66px; height: 66px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .reveal, .has-js .reveal, .has-js .media-frame.reveal, .has-js .gallery .reveal { opacity: 1; transform: none; }
}
