@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root{--ink:#122033;--muted:#4c5c6c;--blue:#006daa;--bright:#79cdfc;--navy:#0d1d2d;--line:#d7e1e8;--paper:#fff;--soft:#f0f5f8}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:"DM Sans",Arial,sans-serif;line-height:1.55}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:"Barlow Condensed","Arial Narrow",Arial,sans-serif;line-height:1.03}
h1{font-size:clamp(3.5rem,7.25vw,7rem);max-width:790px;letter-spacing:-.022em}
h2{font-size:clamp(2.8rem,5.4vw,4.75rem);letter-spacing:-.016em}
h3{font-size:2rem}
a{color:inherit}
img{max-width:100%;display:block}
button{font:inherit}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #ef9f28;outline-offset:4px}
.wrap{width:min(100% - 5rem,1280px);margin-inline:auto}
.top{background:white;position:sticky;top:0;z-index:5;border-bottom:1px solid var(--line)}
.header,.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
.header{min-height:77px}
.brand img,.footer-inner img{object-fit:contain}
nav{display:flex;gap:clamp(1rem,2.4vw,2.3rem);align-items:center;font-weight:700;font-size:.92rem}
nav>a:not(.button),.footer-inner a{text-decoration:none}
nav>a:hover,.footer-inner a:hover{color:var(--blue)}
.menu{display:none}
.skip{position:fixed;top:.5rem;left:1rem;transform:translateY(-200%);background:white;padding:.6rem;z-index:10}
.skip:focus{transform:none}
section[id]{scroll-margin-top:78px}
.hero{color:white;background:linear-gradient(90deg,rgba(9,24,39,.97),rgba(9,24,39,.84) 32%,rgba(9,24,39,.34) 76%),url('assets/hero.jpg') center/cover;background-color:var(--navy)}
.hero-inner{padding-block:clamp(5rem,8.6vw,9rem)}
.eyebrow{font-size:.77rem;font-weight:700;text-transform:uppercase;letter-spacing:.14em;color:var(--blue);display:flex;align-items:center;gap:.7rem;margin-bottom:1rem}
.eyebrow::before{content:"";width:22px;height:2px;background:currentColor}
.hero .eyebrow,.company .eyebrow{color:var(--bright)}
.hero-copy{font-size:clamp(1.05rem,2vw,1.28rem);max-width:540px;color:#e1eaf2;margin-top:1.5rem}
.actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:2rem}
.button{min-height:47px;display:inline-flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 1.05rem;font-size:.9rem;font-weight:700;text-decoration:none;border:1px solid transparent;border-radius:4px}
.primary{background:var(--blue);color:white}
.primary:hover,nav>.primary:hover{background:#005783;color:white}
.ghost{border-color:#a6b3bf;color:white}
.ghost:hover{background:#ffffff23}
.proof{background:var(--soft);border-bottom:1px solid var(--line)}
.proof-inner{display:grid;grid-template-columns:190px 1fr;align-items:center;gap:1rem;padding-block:.75rem}
.proof p{font-weight:700;font-size:.87rem;color:var(--muted)}
.logos{display:flex;justify-content:space-around;gap:.5rem;align-items:center}
.logos img{width:min(14%,104px);height:auto;aspect-ratio:1;object-fit:contain;mix-blend-mode:multiply;filter:grayscale(1)}
.section{padding-block:clamp(3.7rem,7vw,6.7rem)}
.heading{display:flex;justify-content:space-between;align-items:end;gap:1.5rem;margin-bottom:2rem}
.heading h2{max-width:690px}
.heading p,.split>div>p:not(.eyebrow){max-width:390px;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.15rem}
.systems article{border:1px solid var(--line);display:flex;flex-direction:column}
.systems img,.case img{width:100%;aspect-ratio:16/9;object-fit:cover}
.card-body{padding:1.3rem;flex:1;display:flex;flex-direction:column;align-items:start}
.card-body p{color:var(--muted);margin:.65rem 0 1.1rem;flex:1}
.card-body a,.text-link{color:var(--blue);font-size:.92rem;font-weight:700;text-underline-offset:.25em}
.segments,.contact{background:var(--soft)}
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,6vw,6rem)}
.split h2+p{margin-top:1rem}
.segment-image{margin-top:1.5rem;width:100%;max-width:440px;aspect-ratio:2.2;object-fit:cover}
.accordion{border-top:1px solid #bccdd9;align-self:center}
details{border-bottom:1px solid #bccdd9;padding:0 0 0 .15rem}
summary{list-style:none;cursor:pointer;padding:1rem 2rem 1rem 0;font-size:1.06rem;font-weight:700;position:relative}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";position:absolute;right:.25rem;color:var(--blue);font-size:1.3rem;top:.8rem}
details[open] summary::after{content:"−"}
details p{color:var(--muted);padding:0 1.5rem 1rem 0}
.case{position:relative;text-decoration:none;min-height:255px;display:flex;align-items:end;overflow:hidden;background:var(--navy);color:white}
.case img{position:absolute;height:100%;inset:0;transition:transform .25s}
.case:hover img{transform:scale(1.045)}
.case::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 22%,#081421ed 100%)}
.case div,.case .arrow{position:relative;z-index:1}
.case div{padding:1.1rem 2.7rem 1.2rem 1.15rem}
.case p{color:#dae9f5;font-size:.84rem;margin-bottom:.25rem}
.case .arrow{position:absolute;right:1rem;bottom:1rem}
.company{background:var(--navy);color:white;padding-block:clamp(3rem,6vw,5rem)}
.company .split>div>p:not(.eyebrow){color:#dce8f0;max-width:none;margin-bottom:1rem}
.company .text-link{color:var(--bright)}
.contact-box{display:flex;align-items:flex-start;flex-direction:column;gap:1rem;background:white;border:1px solid var(--line);padding:1.5rem}
.contact-box p,address{font-style:normal;color:var(--muted);font-size:.95rem}
.phone{font-size:1.2rem;font-weight:700;text-underline-offset:.23em}
.footer-inner{padding-block:1.4rem;color:var(--muted);font-size:.9rem}
.footer-inner div{display:flex;gap:1rem}
@media(max-width:830px){
  .wrap{width:calc(100% - 3rem)}
  .header{min-height:68px}
  .menu{display:block;background:white;color:var(--ink);border:1px solid var(--line);border-radius:4px;padding:.5rem .8rem;font-weight:700}
  nav{display:none;position:absolute;inset:100% 0 auto;background:white;padding:1rem 1.5rem;box-shadow:0 10px 16px #0d1d2d15}
  .menu[aria-expanded="true"]+nav{display:flex;flex-direction:column;align-items:stretch}
  nav>a:not(.button){padding:.25rem 0}
  section[id]{scroll-margin-top:69px}
}
@media(max-width:650px){
  .wrap{width:calc(100% - 2rem)}
  .hero{background-position:58% center}
  .hero-inner{padding-block:4.5rem}
  .proof-inner,.heading,.split,.grid{display:grid;grid-template-columns:1fr;gap:1rem}
  .proof-inner{gap:0;padding-top:.9rem}
  .logos img{width:18%}
  .footer-inner{flex-wrap:wrap;gap:1rem}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.case img{transition:none}}
.button span,.text-link span,.card-body a span,.case .arrow{font-family:"DejaVu Sans",Arial,sans-serif}
@media(max-width:380px){h1{font-size:3.05rem}.button{gap:.6rem}}
.quote-form{width:100%;display:grid;gap:1rem}
.quote-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem 1rem}
.quote-form label{display:grid;gap:.3rem;font-size:.88rem;font-weight:700}
.quote-form input,.quote-form select,.quote-form textarea{width:100%;min-height:44px;border:1px solid #a6b8c7;border-radius:4px;padding:.55rem .65rem;color:var(--ink);background:#fff;font:inherit;font-size:1rem;font-weight:400}
.quote-form textarea{resize:vertical}
.quote-form input:focus,.quote-form select:focus,.quote-form textarea:focus{outline:2px solid var(--blue);outline-offset:1px}
.quote-form button{justify-self:start;cursor:pointer}
.quote-form button:disabled{opacity:.65;cursor:wait}
.quote-form #quote-status:empty{display:none}
.quote-form #quote-status.sent{color:#16603d;font-weight:700}
.quote-form #quote-status.error{color:#9b1c1c;font-weight:700}
@media(max-width:470px){.quote-fields{grid-template-columns:1fr}}
.page-intro{background:var(--navy);color:white;padding-block:3.5rem}
.page-intro a{color:#c8eaff;font-size:.9rem}
.page-intro .eyebrow{color:var(--bright);margin-top:1.5rem}
.page-intro h1{font-size:clamp(2.7rem,6vw,5rem)}
.page-intro h1+p{max-width:700px;margin-top:1.2rem;font-size:1.15rem}
.prose{max-width:760px}
.prose h2{font-size:2.2rem;margin:1.8rem 0 .75rem}
.prose p{margin-bottom:1rem;color:var(--muted)}
.detail-image{max-height:480px;width:100%;object-fit:cover;margin-bottom:2rem}
.page-cta{margin-top:1.5rem}
.client-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem;text-align:center}
.client-grid img{aspect-ratio:1;object-fit:contain}
.page-content>#contato{padding:0;background:white}
@media(max-width:650px){.client-grid{grid-template-columns:repeat(2,1fr)}}

.hero-with-intro { position: relative; isolation: isolate; }
.hero-intro {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 850ms ease-in-out;
}
.hero-intro.is-active { opacity: 1; transition: none; }
.hero-intro video { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,24,39,.97), rgba(9,24,39,.84) 32%, rgba(9,24,39,.34) 76%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-intro { display: none; }
}

.whatsapp-contact {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 8;
}
.whatsapp-contact summary, .whatsapp-panel a {
  display: block;
  padding: .75rem 1rem;
  background: #08734b;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.whatsapp-contact summary {
  list-style: none;
  border-radius: 100px;
  box-shadow: 0 3px 14px #0003;
}
.whatsapp-contact summary::-webkit-details-marker { display: none; }
.whatsapp-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .75rem);
  width: min(19rem, calc(100vw - 2rem));
  padding: 1rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: .75rem;
  box-shadow: 0 6px 24px #0003;
}
.whatsapp-panel p { margin: .25rem 0 .75rem; }
.whatsapp-panel a { border-radius: .4rem; text-align: center; }

.whatsapp-contact summary {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.whatsapp-contact summary svg { flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .whatsapp-contact summary { animation: whatsapp-enter 420ms ease-out both; }
}
@keyframes whatsapp-enter {
  from { opacity: 0; transform: translateY(1.25rem) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

nav.editorial-nav {
  display: flex;
  flex-wrap: wrap;
  position: static;
  gap: .25rem .75rem;
  background: transparent;
  box-shadow: none;
}
.page-intro .editorial-nav { padding: 0; margin-bottom: 1rem; }
.editorial-nav a { text-decoration: underline; }
