:root {
  --bg: #101722;
  --panel: #172234;
  --accent: #78b7ff;
  --text: #f3f5fa;
  --muted: #a3b0c2;
  --line: #2d3c51
}

* {
  box-sizing: border-box
}

img, iframe {
  max-width: 100%;
}

.hero > *, .services > *, .gallery > *, .process > *, .contact > * {
  min-width: 0;
}

p, h2, h3, .contact-links, footer {
  overflow-wrap: anywhere;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans',sans-serif;
  font-size: 17px
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font: inherit
}

button,a {
  -webkit-tap-highlight-color: transparent
}

a:focus-visible,button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px
}

.wrap {
  max-width: 1280px;
  margin: auto;
  padding-left: 48px;
  padding-right: 48px
}

header {
  max-width: 1376px;
  margin: auto;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Manrope,sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px
}

.brand small {
  display: block;
  font-size: 13px;
  letter-spacing: 3px;
  margin-top: 3px;
  color: var(--muted)
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 42px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 30px;
  position: relative;
  line-height: 1
}

.logo span {
  font-size: 20px;
  margin-left: -6px
}

nav {
  display: flex;
  gap: 32px;
  font-size: 16px;
  color: #bec9d9
}

nav a:hover,.text-link:hover {
  color: var(--accent)
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 23px;
  background: var(--accent);
  color: #10233d;
  font-weight: 700;
  font-size: 16px;
  border-radius: 5px;
  transition: background .2s,transform .2s
}

.button:hover {
  background: #9dcbff;
  transform: translateY(-2px)
}

.button span {
  font-size: 21px
}

.button.small {
  padding: 11px 18px;
  font-size: 16px
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 50px;
  padding-top: 54px;
  padding-bottom: 65px
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--accent);
  margin: 0 0 24px;
  line-height: 1.7
}

.eyebrow i,.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 100%;
  margin-right: 8px
}

h1,h2,h3,p {
  margin-top: 0
}

h1,h2,h3 {
  font-family: Manrope,sans-serif
}

h1 {
  font-size: clamp(48px,5.5vw,76px);
  line-height: 1.08;
  letter-spacing: -3.5px;
  margin-bottom: 25px;
  font-weight: 600
}

em {
  font-style: normal;
  color: var(--accent)
}

.intro {
  max-width: 410px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85
}

.actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 30px
}

.text-link {
  font-size: 16px;
  display: flex;
  gap: 12px;
  align-items: center
}

.hero-foot {
  display: flex;
  gap: 21px;
  border-top: 1px solid var(--line);
  margin-top: 41px;
  padding-top: 23px;
  font-size: 14px;
  color: #a3b0c2
}

.hero-visual {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 520px
}

.hero-visual>img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: center 35%;
  filter: none;
}

.hero-visual:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,#0c1a30bf,transparent 60%)
}

.image-top {
  position: absolute;
  left: 25px;
  right: 25px;
  top: 23px;
  z-index: 1;
  font-size: 13px;
  letter-spacing: 1.5px;
  display: flex;
  justify-content: space-between;
}

.image-top span {
  font-size: 23px
}

.visual-caption {
  position: absolute;
  bottom: 48px;
  left: 26px;
  right: 26px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #16263de8;
  backdrop-filter: blur(12px);
  padding: 20px;
  border: 1px solid #789bcb55;
  border-radius: 6px;
  font-size: 16px
}

.visual-caption small {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin-top: 5px
}

.network {
  margin-left: auto;
  font-size: 40px;
  color: var(--accent)
}

.image-label {
  position: absolute;
  bottom: 18px;
  right: 26px;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 1px;
  color: #ffffff
}

.ticker {
  padding: 22px 5%;
  background: #1b293d;
  border-block: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  letter-spacing: 1.5px;
  overflow: hidden;
  white-space: nowrap
}

.ticker b {
  color: var(--accent);
  font-size: 20px;
  font-weight: 400
}

.section {
  padding-top: 88px;
  padding-bottom: 88px
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 38px
}

h2 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin-bottom: 0
}

.section-head>p,.section-head>div>p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 3px
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden
}

.services article, .services .service-detail {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px;
  display: flex;
  flex-direction: column;
  min-height: 295px
}

.service-icon {
  font-size: 31px;
  color: var(--accent);
  height: 50px
}

.number {
  position: absolute;
  right: 28px;
  top: 32px;
  font-size: 14px;
  color: #7e92ae
}

.services h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 13px 0
}

.services p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted)
}

.services a {
  margin-top: auto;
  padding-top: 20px;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px
}

.services a span {
  color: var(--accent)
}

.service-cta {
  background: #223653
}

.service-cta h3 {
  font-size: 27px;
  margin-top: 0
}

.service-cta .eyebrow {
  font-size: 12px;
  margin-bottom: 15px;
  color: var(--accent)
}

.projects-section {
  background: #152032
}

.muted {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap
}

.filters button {
  border: 1px solid #3b4c65;
  color: #bec9d9;
  background: transparent;
  border-radius: 30px;
  padding: 9px 19px;
  cursor: pointer;
  font-size: 16px
}

.filters button.active {
  color: #10233d;
  background: var(--accent);
  border-color: var(--accent)
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px
}

.project {
  text-align: left;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer
}

.gallery-item[hidden] {
  display: none
}

.project-photo img {
  object-position: center;
}

.product-image .project-photo {
  background: #ffffff;
}

.product-image .project-photo img {
  object-fit: contain;
  filter: none;
}

.project-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 18px;
  background: var(--panel);
}

.video-local-notice {
  min-height: 245px;
  margin: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.project-video small {
  display: block;
  margin-top: 20px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 1.4px;
}

.project-video h3 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
}

.project-video a {
  color: var(--accent);
  font-size: 16px;
}

.project-photo {
  position: relative;
  height: 245px;
  overflow: hidden;
  border-radius: 6px
}

.project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.6);
  transition: transform .4s
}

.project:hover img {
  transform: scale(1.05)
}

.project-photo span {
  color: #ffffff;
  position: absolute;
  left: 14px;
  top: 14px;
  background: #14233bcf;
  padding: 6px 9px;
  font-size: 12px;
  letter-spacing: 1px
}

.project-photo b {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 400
}

.project>small {
  display: block;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1.4px;
  margin-top: 20px
}

.project h3 {
  font-size: 16px;
  font-weight: 500;
  margin-top: 10px
}

.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px
}

.process .muted {
  margin-top: 23px
}

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

.process li {
  display: flex;
  gap: 22px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line)
}

.process li:first-child {
  padding-top: 0
}

.process li>span {
  font-size: 16px;
  color: var(--accent);
  margin-top: 3px
}

.process h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px
}

.process p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0
}

.contact {
  background: #203350;
  padding-top: 52px;
  padding-bottom: 46px;
  border: 1px solid #3d5678;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px
}

.contact h2 {
  font-size: 42px
}

.contact p:not(.eyebrow) {
  color: #bec9d9;
  font-size: 16px;
  line-height: 1.8;
  margin-top: 22px
}

.contact p.contact-note {
  font-size: 15px
}

.contact-links {
  display: flex;
  flex-direction: column;
  justify-content: center
}

.contact-links>a,.contact-links>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #435b7b;
  padding: 24px 0;
  gap: 15px
}

.contact-links span {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: #bec9d9
}

.contact-links small {
  display: block;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--text);
  line-height: 1.7;
  margin-top: 8px;
  overflow-wrap: anywhere
}

.contact-links b {
  color: var(--accent);
  font-weight: 400;
  font-size: 22px
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 45px!important;
  padding-bottom: 35px!important
}

footer .brand {
  font-size: 16px
}

footer .brand small {
  font-size: 11px
}

footer .logo {
  width: 32px;
  height: 34px;
  font-size: 24px
}

footer p,footer>span {
  font-size: 14px;
  color: var(--muted);
  margin: 0
}

.floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  height: 54px;
  padding: 0 20px 0 16px;
  background: var(--accent);
  color: #10233d;
  border: 3px solid #101722;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  z-index: 5;
  box-shadow: 0 5px 25px #0005
}

.floating span {
  font-size: 26px;
  line-height: 1
}

.floating b {
  font-weight: 700
}

.footer-info {
  display: grid;
  gap: 8px
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px
}

.footer-links a {
  color: var(--text);
  display: inline-flex;
  align-items: center
}

.footer-links a:hover {
  color: var(--accent)
}

dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: min(760px,92vw);
  padding: 24px
}

dialog::backdrop {
  background: #000b
}

dialog img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain
}

dialog h3 {
  margin-top: 20px
}

dialog p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7
}

.close {
  position: absolute;
  right: 28px;
  top: 28px;
  border: 0;
  background: var(--bg);
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 25px;
  cursor: pointer
}

@media(min-width:1500px) {
  .hero {
    padding-top: 75px;
    padding-bottom: 85px
  }
}

@media(max-width:1000px) {
  header {
    padding: 24px;
    flex-wrap: wrap;
  }
  .wrap {
    padding-left: 28px;
    padding-right: 28px
  }
  nav {
    gap: 18px
  }
  .hero {
    gap: 25px
  }
  h1 {
    font-size: 58px
  }
  .hero-visual {
    min-height: 490px
  }
  .actions {
    gap: 15px;
    flex-wrap: wrap
  }
  .hero-foot {
    gap: 12px;
    flex-wrap: wrap
  }
  .services article, .services .service-detail {
    padding: 24px
  }
  .services, .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-photo {
    height: 205px
  }
  .contact {
    margin: 0 28px
  }
  .process {
    gap: 30px
  }
  footer {
    flex-wrap: wrap
  }
  .ticker {
    font-size: 13px
  }
  .ticker span:nth-of-type(4),.ticker b:last-child {
    display: none
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .hero, .process, .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    min-height: 450px;
  }

  header nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

@media(max-width:700px) {
  header {
    padding: 20px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .brand {
    font-size: 16px
  }
  .brand small {
    font-size: 11px
  }
  header nav {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 14px;
  }
  header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  header .button {
    font-size: 14px;
    padding: 10px;
    gap: 10px
  }
  .wrap {
    padding-left: 22px;
    padding-right: 22px
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
    padding-bottom: 38px;
    gap: 30px
  }
  h1 {
    font-size: clamp(36px, 10.5vw, 62px);
    letter-spacing: -1.8px;
  }
  .eyebrow {
    font-size: 13px
  }
  .hero-visual {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
  .actions {
    align-items: stretch;
    flex-direction: column;
  }
  .actions .text-link {
    min-height: 44px;
  }
  .image-top {
    left: 16px;
    right: 16px;
    gap: 12px;
    font-size: 12px;
    line-height: 1.6;
  }
  .visual-caption {
    left: 14px;
    right: 14px;
    padding: 14px;
  }
  .visual-caption > div {
    min-width: 0;
  }
  .visual-caption .network {
    font-size: 28px;
  }
  .hero-foot {
    font-size: 13px;
    justify-content: space-between
  }
  .ticker {
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    white-space: normal;
    text-align: center;
  }
  .ticker b {
    display: none;
  }
  .ticker span:nth-of-type(3),.ticker b:nth-of-type(3) {
    display: none
  }
  .section {
    padding-top: 56px;
    padding-bottom: 56px
  }
  .section-head {
    display: block;
    margin-bottom: 28px
  }
  .section-head>p,.section-head>div+div {
    margin-top: 22px
  }
  h2 {
    font-size: 33px
  }
  .services {
    grid-template-columns: 1fr
  }
  .services article, .services .service-detail {
    min-height: 245px
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 27px
  }
  .project-photo {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .filters button {
    min-height: 44px;
    max-width: 100%;
    padding: 10px 14px;
  }
  .contact .button {
    width: 100%;
    gap: 12px;
    padding: 16px;
  }
  .process {
    grid-template-columns: 1fr;
    gap: 35px
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 15px;
    padding: 32px 24px
  }
  .contact h2 {
    font-size: 33px
  }
  .contact-links small {
    font-size: 16px
  }
  footer {
    padding-top: 35px!important;
    padding-bottom: 80px!important;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px
  }
  .intro {
    font-size: 16px
  }
}

@media (max-width: 380px) {
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .contact {
    padding: 28px 18px;
  }
}

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

.service-detail summary {
  list-style: none;
}

.service-detail summary::-webkit-details-marker {
  display: none;
}

.service-detail .service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mobile-gallery-filter {
  display: none;
}

.gallery-count {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.gallery-more {
  margin-top: 28px;
  border: 0;
  cursor: pointer;
}

.gallery-more[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .section-head .eyebrow {
    margin-bottom: 12px;
  }

  .section-head > div + div {
    margin-top: 12px;
  }

  #projetos h2 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
  }

  .filters {
    display: none;
  }

  .mobile-gallery-filter {
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
  }

  .mobile-gallery-filter select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    font: inherit;
    font-size: 16px;
  }

  .gallery-more {
    width: 100%;
  }

  .services .service-detail {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .service-detail summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 16px 20px;
    cursor: pointer;
  }

  .service-detail summary::after {
    content: '+';
    margin-left: auto;
    color: var(--accent);
    font-size: 24px;
  }

  .service-detail[open] summary::after {
    content: '−';
  }

  .service-detail .service-icon {
    height: auto;
    font-size: 26px;
  }

  .service-detail .number {
    display: none;
  }

  .service-detail h3 {
    margin: 0;
    font-size: 17px;
  }

  .service-detail .service-body {
    padding: 0 20px 20px;
  }

  .services .service-cta {
    min-height: 0;
    padding: 20px;
  }

  .service-cta h3 {
    font-size: 23px;
  }

  .service-cta h3 br {
    display: none;
  }
}


/* ---- Ajustes para celular ---- */
.services a {
  min-height: 44px;
  align-items: center;
}

@media (max-width: 700px) {
  header {
    flex-wrap: wrap;
    row-gap: 4px;
    padding: 16px 20px 8px;
  }

  header .button.small {
    margin-left: auto;
    min-height: 44px;
    padding: 0 14px;
  }

  header nav {
    gap: 0 16px;
  }

  .hero-foot {
    justify-content: flex-start;
    gap: 8px 18px;
  }

  .services .service-link,
  .services .service-cta a {
    min-height: 48px;
  }

  .footer-links a {
    min-height: 44px;
  }

  .floating {
    bottom: calc(14px + env(safe-area-inset-bottom));
    right: 14px;
  }

  footer {
    padding-bottom: 96px !important;
  }
}

@media (max-width: 340px) {
  header .button.small {
    width: 100%;
  }
}

.button .lbl { font-size: inherit; }
.lbl-short { display: none; }

@media (max-width: 700px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  header .button.small { gap: 10px; }
}
