/* Cross-browser and responsive compatibility layer for the static build. */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }

a:focus-visible, button:focus-visible {
  outline: 3px solid #ef4423;
  outline-offset: 3px;
}

.mobile-menu-button,
.mobile-menu-panel { display: none; }

@media (max-width: 63.999rem) {
  header > div {
    gap: .75rem;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 1rem max(1rem, env(safe-area-inset-left));
  }

  header img { height: 2.25rem !important; }
  header > div > a[href="#contato"] { display: none; }

  .mobile-menu-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: .5rem;
    background: rgba(22,22,25,.82);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-menu-button::before {
    content: "";
    width: 21px;
    height: 14px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    box-shadow: inset 0 5px transparent, inset 0 7px currentColor;
  }

  .mobile-menu-button[aria-expanded="true"]::before {
    width: 20px;
    height: 20px;
    border: 0;
    box-shadow: none;
    background: linear-gradient(45deg, transparent 46%, currentColor 47% 53%, transparent 54%), linear-gradient(-45deg, transparent 46%, currentColor 47% 53%, transparent 54%);
  }

  .mobile-menu-panel {
    position: absolute;
    top: calc(100% - .25rem);
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    padding: .5rem;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: .75rem;
    background: rgba(22,22,25,.97);
    box-shadow: 0 18px 50px rgba(0,0,0,.3);
  }

  .mobile-menu-panel.is-open { display: grid; }
  .mobile-menu-panel a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: .65rem .85rem;
    border-radius: .4rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-menu-panel a:hover,
  .mobile-menu-panel a:focus-visible { background: rgba(255,255,255,.09); }
  .mobile-menu-panel a:last-child { background: #e84425; margin-top: .25rem; }

  #inicio > div.relative { padding-top: 8.5rem; padding-bottom: 8rem; }
}

@media (max-width: 39.999rem) {
  #inicio h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  #inicio p { max-width: 90%; }
  #inicio .flex.flex-wrap > a { width: 100%; justify-content: center; min-height: 48px; }
  section { scroll-margin-top: 5rem; }
  .grid.grid-cols-2 { grid-template-columns: 1fr; }
}

@media (max-width: 23rem) {
  header > div { padding-inline: .75rem; }
  header span { padding-inline: .5rem !important; }
  #inicio > div.relative, section > div { padding-left: 1rem; padding-right: 1rem; }
}

@media (hover: none) {
  a, button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .mobile-menu-button, .mobile-menu-panel { border: 1px solid ButtonText; }
}

/* Visual refinement based on the approved reference composition. */
header .logo-wrap img { height: 3.65rem !important; }

#inicio > img { object-position: center 56%; }
#inicio > div.relative { min-height: 43rem; display: flex; flex-direction: column; justify-content: center; }
#inicio h1 { text-shadow: 0 2px 18px rgba(0,0,0,.22); }

.about-section > div { display: block; }
.about-section > div > div:first-child { max-width: 42rem; }
.about-section > div > div:first-child > p.mt-6 { max-width: 38rem; }
.services-section {
  padding-block: 5rem;
  background: linear-gradient(180deg, rgba(246,247,249,.8), #fff);
  scroll-margin-top: 6rem;
}
.services-section .services-grid { margin-top: 3rem; }

header .header-instagram-link {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding-inline: .15rem;
}
header .header-instagram-link img {
  display: block;
  width: 5rem;
  height: auto !important;
}

#segmentos .grid > div {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
#segmentos .grid > div:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.25); }
#segmentos .grid > div:nth-child(1) { color: #145bb1; }
#segmentos .grid > div:nth-child(2) { color: #d91d25; }
#segmentos .grid > div:nth-child(3) { color: #168545; }
#segmentos .grid > div:nth-child(4) { color: #7c217d; }
#segmentos .grid > div:nth-child(5) { color: #e55a16; font-style: italic; }
#segmentos .grid > div:nth-child(6) { color: #252525; font-size: .72rem; }
#segmentos .brand-logo {
  display: block;
  width: auto;
  max-width: 88%;
  max-height: 3.25rem;
  object-fit: contain;
}
#segmentos .brand-shell { max-height: 3.6rem; }
#segmentos .brand-petrobras { max-width: 92%; }
#segmentos .brand-raizen { max-height: 2.85rem; }
#segmentos .brand-ampm { max-height: 3.2rem; }

#segmentos {
  --clients-parallax-y: 0px;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
#segmentos.is-carousel-dragging { cursor: grabbing; }
#segmentos a,
#segmentos button { cursor: pointer; }
#segmentos > .clients-parallax-background {
  top: -10%;
  bottom: auto;
  width: 100%;
  height: 120%;
  transform: translate3d(0,var(--clients-parallax-y),0) scale(1.05);
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
}
#segmentos .clients-intro {
  max-width: 50rem;
  margin-top: 2rem;
  color: rgba(255,255,255,.76);
  font-size: .95rem;
  line-height: 1.75;
}
#segmentos .clients-intro p + p { margin-top: .75rem; }
#segmentos .clients-intro strong { color: #fff; font-weight: 700; }
#segmentos .clients-intro p:last-child {
  margin-top: 1.15rem;
  color: #fff;
}
#segmentos .clients-closing {
  margin: 1.2rem auto 0;
  color: #fff;
  text-align: center;
  font-family: Archivo, sans-serif;
  font-size: clamp(1rem,2vw,1.2rem);
  font-weight: 700;
  line-height: 1.5;
}
#segmentos .clients-closing p + p { margin-top: .15rem; }

/* Carrossel em perspectiva da seção Segmentos */
#segmentos .segment-carousel-stage {
  position: relative;
  height: 12.5rem;
  margin-top: 2.5rem;
  perspective: 72rem;
  perspective-origin: center;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
#segmentos .segment-carousel-stage:active { cursor: grabbing; }
#segmentos .segment-carousel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 15rem;
  height: 7.5rem;
  padding: 1rem 1.25rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: .65rem;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  color: #202124;
  text-align: center;
  font-family: Archivo, sans-serif;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform .72s cubic-bezier(.22,.75,.16,1), opacity .5s ease, filter .5s ease, box-shadow .5s ease;
  will-change: transform, opacity;
}
#segmentos .segment-carousel-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.75) 48%, transparent 70%);
  transform: translateX(-140%);
  transition: transform .8s ease;
}
#segmentos .segment-carousel-card.is-active::after { transform: translateX(140%); }
#segmentos .segment-carousel-card[data-offset="0"] {
  z-index: 6;
  opacity: 1;
  filter: none;
  transform: translate(-50%,-50%) translateZ(4rem) scale(1.14);
  box-shadow: 0 24px 52px rgba(0,0,0,.4), 0 0 0 2px rgba(229,23,35,.78);
}
#segmentos .segment-carousel-card[data-offset="-1"] {
  z-index: 5;
  opacity: .92;
  filter: brightness(.88);
  transform: translate(-50%,-50%) translateX(-15rem) rotateY(58deg) scale(.92);
}
#segmentos .segment-carousel-card[data-offset="1"] {
  z-index: 5;
  opacity: .92;
  filter: brightness(.88);
  transform: translate(-50%,-50%) translateX(15rem) rotateY(-58deg) scale(.92);
}
#segmentos .segment-carousel-card[data-offset="-2"] {
  z-index: 4;
  opacity: .56;
  filter: brightness(.67);
  transform: translate(-50%,-50%) translateX(-25rem) rotateY(68deg) scale(.76);
}
#segmentos .segment-carousel-card[data-offset="2"] {
  z-index: 4;
  opacity: .56;
  filter: brightness(.67);
  transform: translate(-50%,-50%) translateX(25rem) rotateY(-68deg) scale(.76);
}
#segmentos .segment-carousel-card[data-offset="-3"],
#segmentos .segment-carousel-card[data-offset="3"] {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-50%) scale(.6);
}
#segmentos .segment-carousel-card .brand-logo {
  position: relative;
  z-index: 1;
  max-width: 88%;
  max-height: 4.5rem;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
#segmentos .segment-carousel-card .brand-shell { max-height: 4.8rem; }
#segmentos .segment-carousel-controls {
  display: none !important;
  min-height: 2.5rem;
  margin-top: .5rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

footer .footer-legal {
  display: flex;
  margin-top: 2rem !important;
  padding-top: 0 !important;
  align-items: center;
  justify-content: center;
  gap: 1rem 4.5rem;
  flex-wrap: wrap;
  border-top: 0 !important;
}
footer .footer-developer {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  transform-origin: left center;
  transition: color .3s ease, transform .4s cubic-bezier(.2,.8,.2,1), text-shadow .3s ease;
}
footer .footer-developer:hover,
footer .footer-developer:focus-visible {
  color: #b34cff;
  transform: scale(1.35);
  text-shadow: 0 0 16px rgba(179,76,255,.65);
  outline: none;
}
footer .footer-developer-handle {
  display: inline-block;
  position: relative;
  z-index: 1;
  transform-origin: left center;
  transition: color .3s ease, transform .38s cubic-bezier(.2,.8,.2,1), text-shadow .3s ease;
}
footer .footer-developer:hover .footer-developer-handle,
footer .footer-developer:focus-visible .footer-developer-handle {
  color: inherit;
  transform: none;
  text-shadow: inherit;
}
footer .footer-developer:focus-visible {
  border-radius: .25rem;
  box-shadow: 0 0 0 2px #e51723;
}
footer .footer-developer img {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
  border-radius: .18rem;
  transition: filter .3s ease;
}
footer .footer-developer:hover img,
footer .footer-developer:focus-visible img {
  filter: brightness(0) saturate(100%) invert(43%) sepia(89%) saturate(3588%) hue-rotate(253deg) brightness(103%) contrast(101%) drop-shadow(0 0 7px rgba(179,76,255,.75));
}
footer .footer-instagram-link {
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
  opacity: .9;
  transition: opacity .2s ease, transform .2s ease;
}
footer .footer-instagram-link:hover,
footer .footer-instagram-link:focus-visible {
  opacity: 1;
  transform: translateY(-1px) scale(1.03);
  outline: none;
}
footer .footer-instagram-link:focus-visible {
  border-radius: .25rem;
  box-shadow: 0 0 0 2px #e51723;
}
footer .footer-instagram-link img {
  display: block;
  width: 5.8rem;
  height: auto;
}
#segmentos .segment-carousel-arrow,
#segmentos .segment-carousel-dot {
  border: 0;
  color: rgba(255,255,255,.72);
  cursor: pointer;
}
#segmentos .segment-carousel-arrow {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0 0 .18rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  font-size: 2rem;
  line-height: 1;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
#segmentos .segment-carousel-arrow:hover,
#segmentos .segment-carousel-arrow:focus-visible {
  border-color: #e51723;
  background: #e51723;
  color: #fff;
  transform: scale(1.08);
  outline: none;
}
#segmentos .segment-carousel-dots {
  display: flex;
  max-width: min(48vw, 30rem);
  padding: .45rem .15rem;
  align-items: center;
  gap: .42rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
#segmentos .segment-carousel-dots::-webkit-scrollbar { display: none; }
#segmentos .segment-carousel-dot {
  flex: 0 0 auto;
  width: 1.45rem;
  height: .18rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  transition: width .3s ease, background .3s ease;
}
#segmentos .segment-carousel-dot.is-active { width: 2.25rem; background: #e51723; }
#segmentos .segment-carousel-dot:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media (max-width: 47.99rem) {
  #segmentos .segment-carousel-stage { height: 10.75rem; }
  #segmentos .segment-carousel-card { width: min(70vw, 14rem); height: 6.8rem; }
  #segmentos .segment-carousel-card[data-offset="0"] { transform: translate(-50%,-50%) translateZ(2rem) scale(1.03); }
  #segmentos .segment-carousel-card[data-offset="-1"] { transform: translate(-50%,-50%) translateX(-68vw) rotateY(62deg) scale(.82); }
  #segmentos .segment-carousel-card[data-offset="1"] { transform: translate(-50%,-50%) translateX(68vw) rotateY(-62deg) scale(.82); }
  #segmentos .segment-carousel-card[data-offset="-2"],
  #segmentos .segment-carousel-card[data-offset="2"] { opacity: 0; pointer-events: none; }
  #segmentos .segment-carousel-controls { gap: .7rem; }
  #segmentos .segment-carousel-dots { max-width: 62vw; }
  #segmentos .segment-carousel-dot { width: .85rem; }
  #segmentos .segment-carousel-dot.is-active { width: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  #segmentos > .clients-parallax-background {
    top: 0;
    height: 100%;
    transform: none !important;
  }
  #segmentos .segment-carousel-card,
  #segmentos .segment-carousel-card::after,
  #segmentos .segment-carousel-dot { transition-duration: .01ms !important; }
}

#servicos article,
#trabalhos article {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
#servicos article:hover,
#trabalhos article:hover { transform: translateY(-4px); border-color: rgba(216,31,37,.35); box-shadow: 0 14px 35px rgba(0,0,0,.09); }

#servicos .service-card-trigger { cursor: pointer; outline: none; }
#servicos .service-card-trigger:focus-visible { border-color: #e51723; box-shadow: 0 0 0 3px rgba(229,23,35,.18), 0 14px 35px rgba(0,0,0,.09); }
#servicos .service-card-trigger.is-service-active { border-color: #e51723; box-shadow: 0 16px 38px rgba(229,23,35,.14); }
.service-details[hidden] { display: none !important; }
.service-details { position: relative; padding: 0 1.5rem 5rem; background: linear-gradient(180deg,#fff 0,#f5f6f8 100%); scroll-margin-top: 6rem; }
.service-details-shell { width: min(72rem,100%); margin: 0 auto; opacity: 0; transform: translateY(-1rem); transition: opacity .32s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.service-details.is-open .service-details-shell { opacity: 1; transform: translateY(0); }
.service-details-topbar { position: relative; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1.25rem 4rem; border: 1px solid #e0e2e6; border-bottom: 0; border-radius: .8rem .8rem 0 0; background: #fff; box-shadow: 0 -8px 30px rgba(18,22,28,.05); }
.service-detail-tabs { display: flex; align-items: center; justify-content: center; gap: clamp(.45rem,1.3vw,.9rem); }
.service-detail-tab,.service-details-close { display: grid; place-items: center; color: #e51723; border: 1px solid #dfe2e7; background: #fff; cursor: pointer; transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.service-detail-tab { width: clamp(2.9rem,5vw,3.7rem); height: clamp(2.9rem,5vw,3.7rem); border-radius: .65rem; }
.service-detail-tab svg { width: 1.55rem; height: 1.55rem; }
.service-detail-tab:hover { transform: translateY(-3px); border-color: rgba(229,23,35,.5); }
.service-detail-tab[aria-selected="true"] { color: #fff; border-color: #e51723; background: #e51723; transform: translateY(-4px); box-shadow: 0 9px 22px rgba(229,23,35,.25); }
.service-detail-tab:focus-visible,.service-details-close:focus-visible { outline: 3px solid rgba(229,23,35,.2); outline-offset: 2px; }
.service-details-close { position: absolute; right: 1.3rem; width: 2.35rem; height: 2.35rem; border-radius: 50%; color: #737880; font-size: 1.75rem; line-height: 1; }
.service-details-close:hover { color: #fff; border-color: #e51723; background: #e51723; transform: rotate(90deg); }
.service-detail-panels { overflow: hidden; border: 1px solid #e0e2e6; border-radius: 0 0 .8rem .8rem; background: #fff; box-shadow: 0 22px 55px rgba(18,22,28,.09); }
.service-detail-panel { padding: clamp(2rem,5vw,4.5rem); animation: servicePanelReveal .42s cubic-bezier(.2,.8,.2,1); }
.service-detail-panel[hidden] { display: none; }
.service-detail-heading { max-width: 54rem; }
.service-detail-heading > p,.service-detail-placeholder > p { margin: 0 0 .9rem; color: #e51723; font-size: .72rem; font-weight: 800; letter-spacing: .28em; }
.service-detail-heading h2,.service-detail-placeholder h2 { margin: 0; color: #15171a; font-family: "Archivo",sans-serif; font-size: clamp(2rem,4.2vw,3.8rem); font-weight: 900; line-height: .98; letter-spacing: -.04em; }
.service-detail-heading > strong { display: block; margin-top: 1.2rem; color: #33373d; font-size: clamp(1.05rem,1.7vw,1.35rem); }
.service-detail-intro { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem 3rem; margin-top: 2rem; color: #686d75; font-size: .98rem; line-height: 1.75; }
.service-detail-intro p { margin: 0; }
.service-detail-intro strong,.service-detail-block strong { color: #202328; }
.service-detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.25rem; margin-top: 2.5rem; }
.service-detail-column { display: grid; gap: 1.25rem; }
.service-detail-block { margin: 0; padding: clamp(1.5rem,3vw,2.25rem); border: 1px solid #e1e3e7; border-radius: .65rem; background: #fafafa; box-shadow: none !important; transform: none !important; }
.service-detail-block h3,.service-detail-cta h3 { margin: 0 0 1rem; color: #181a1e; font-family: "Archivo",sans-serif; font-size: clamp(1.1rem,1.8vw,1.4rem); font-weight: 800; }
.service-detail-block p { margin: .75rem 0 0; color: #686d75; font-size: .9rem; line-height: 1.7; }
.service-detail-list ul { display: grid; gap: .78rem; margin: 0; padding: 0; list-style: none; }
.service-detail-list li { position: relative; padding-left: 1.3rem; color: #5e636b; font-size: .9rem; line-height: 1.45; }
.service-detail-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .45rem; height: .45rem; border-radius: 50%; background: #e51723; box-shadow: 0 0 0 4px rgba(229,23,35,.09); }
.service-area { padding-top: .8rem; border-top: 1px solid #e0e2e6; color: #e51723 !important; }
.service-detail-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1.25rem; padding: clamp(1.5rem,3vw,2.25rem); border-radius: .65rem; color: #fff; background: linear-gradient(120deg,#a9000a,#e51723 70%,#fb3641); }
.service-detail-cta h3 { margin-bottom: .4rem; color: #fff; }
.service-detail-cta p { max-width: 43rem; margin: 0; color: rgba(255,255,255,.82); font-size: .92rem; line-height: 1.6; }
.service-detail-cta a { flex: none; padding: .9rem 1.25rem; border: 1px solid rgba(255,255,255,.65); border-radius: .35rem; color: #fff; font-size: .85rem; font-weight: 700; text-decoration: none; transition: color .2s ease, background .2s ease; }
.service-detail-cta a:hover { color: #e51723; background: #fff; }
.service-detail-placeholder { display: flex; min-height: 22rem; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.service-detail-placeholder strong { margin-top: 1.4rem; color: #30343a; font-size: 1.15rem; }
.service-detail-placeholder span { margin-top: .5rem; color: #7a7f87; }
@keyframes servicePanelReveal { from { opacity: 0; transform: translateY(.8rem); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 47.99rem) {
  .service-details { padding: 0 .9rem 3.5rem; }
  .service-details-topbar { justify-content: flex-start; padding: 1rem 3.4rem 1rem .9rem; overflow-x: auto; }
  .service-detail-tabs { justify-content: flex-start; }
  .service-details-close { position: absolute; right: .65rem; }
  .service-detail-panel { padding: 1.6rem 1.15rem; }
  .service-detail-intro,.service-detail-grid { grid-template-columns: 1fr; }
  .service-detail-intro { gap: 1rem; }
  .service-detail-cta { align-items: flex-start; flex-direction: column; }
  .service-detail-cta a { width: 100%; text-align: center; }
}

.differential-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
}
.differential-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/assets/caminhoes-alvor.png') center 58% / cover no-repeat;
  opacity: .3;
}
.differential-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.58) 48%, rgba(255,255,255,.76) 100%);
}
.differential-section article {
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

#contato {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(115deg, #bc1017 0%, #e21d25 55%, #bd0e16 100%);
}
#contato::before,
#contato::after {
  content: "";
  position: absolute;
  z-index: -1;
  transform: rotate(24deg);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
#contato::before { width: 28rem; height: 28rem; right: -6rem; top: -15rem; }
#contato::after { width: 18rem; height: 18rem; right: 18rem; bottom: -14rem; }
#contato > div { grid-template-columns: minmax(0,1.25fr) minmax(20rem,.75fr); }
#contato .contact-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; }
#contato .contact-actions > a { min-width: 18rem; justify-content: center; background: rgba(118,0,7,.14); }
.qr-code {
  width: 6.5rem;
  height: 6.5rem;
  padding: .4rem;
  background: #fff;
  border-radius: .3rem;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(65,0,0,.25);
}

footer { position: relative; padding-bottom: 0 !important; }
footer .logo-wrap img { height: 4.5rem !important; }
footer > div:first-child { grid-template-columns: 1.2fr .8fr 1fr 1.2fr; }
footer > .footer-grid-compact {
  grid-template-columns: minmax(0,1fr) minmax(18rem,.8fr);
  align-items: start;
}
footer > .footer-grid-compact > :last-child { justify-self: end; }
.footer-qr-block { text-align: center; }
.footer-qr-block .qr-code { width: 5.5rem; height: 5.5rem; }
.footer-qr-label { margin-top: .45rem; font-size: .62rem; color: rgba(255,255,255,.55); }
.qr-code-main {
  width: clamp(11rem, 17vw, 14rem);
  height: auto;
  aspect-ratio: 544 / 458;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: invert(1);
  mix-blend-mode: screen;
}
.footer-contact-qrs {
  max-width: 38rem;
  margin: 2.75rem auto 0;
  padding: 1.2rem 1.4rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-contact-qrs p {
  margin-bottom: .85rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .24em;
  color: rgba(255,255,255,.65);
}
.footer-contact-qrs img {
  display: block;
  width: min(100%, 32.5rem);
  height: auto;
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
  filter: invert(1);
  mix-blend-mode: screen;
}
.footer-presentation-bar {
  display: block;
  width: 100%;
  height: clamp(5rem, 10vw, 9rem);
  margin-top: 2rem;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 64rem) {
  header {
    position: fixed !important;
    inset: 0 0 auto 0;
    z-index: 100;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: none;
  }

  header.is-scrolled {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  header > div {
    --glow-x: 50%;
    --glow-y: 100%;
    --glow-opacity: 0;
    position: relative;
    isolation: isolate;
    padding-top: .85rem;
    padding-bottom: .85rem;
  }

  header > div::before {
    content: "";
    position: absolute;
    inset: .35rem 0;
    z-index: -1;
    pointer-events: none;
    border-radius: .9rem;
    border: 1px solid rgba(255,255,255,.08);
    background:
      radial-gradient(220px circle at var(--glow-x) var(--glow-y), rgba(255,92,54,.24), transparent 68%),
      rgba(25,27,32,.7);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow:
      0 0 1px rgba(255,58,41,calc(var(--glow-opacity) * .9)),
      0 0 10px rgba(239,36,31,calc(var(--glow-opacity) * .45)),
      0 0 28px rgba(255,103,48,calc(var(--glow-opacity) * .22));
    opacity: calc(.34 + var(--glow-opacity));
    transition: opacity .35s ease, box-shadow .25s ease;
  }

  header.is-scrolled > div::before {
    border-color: rgba(255,255,255,.13);
    background:
      radial-gradient(220px circle at var(--glow-x) var(--glow-y), rgba(255,92,54,.26), transparent 68%),
      rgba(38,39,44,.88);
    box-shadow:
      0 12px 34px rgba(0,0,0,.28),
      0 0 1px rgba(255,58,41,calc(var(--glow-opacity) * .9)),
      0 0 10px rgba(239,36,31,calc(var(--glow-opacity) * .45)),
      0 0 28px rgba(255,103,48,calc(var(--glow-opacity) * .22));
  }

  header > div::after {
    content: "";
    position: absolute;
    left: max(0%, calc(var(--glow-x) - 11rem));
    bottom: .3rem;
    width: 22rem;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #ff6a35, #e51c25, transparent);
    filter: drop-shadow(0 0 7px rgba(239,38,34,.8));
    opacity: var(--glow-opacity);
    transition: opacity .25s ease;
  }

  header > div:hover { --glow-opacity: .78; }
  header.is-scrolled .logo-wrap img { height: 3.1rem !important; }

  .stats-panel {
    --stats-tilt-x: 0deg;
    --stats-tilt-y: 0deg;
    --stats-shine-x: 50%;
    --stats-shine-y: 50%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    animation: stats-panel-float 5.5s ease-in-out infinite;
    transition: box-shadow .35s ease;
  }

  .stats-panel::before {
    content: "";
    position: absolute;
    inset: -45%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(18rem circle at var(--stats-shine-x) var(--stats-shine-y), rgba(225,29,36,.13), transparent 64%);
    opacity: 0;
    transition: opacity .35s ease;
  }

  .stats-panel:hover {
    box-shadow: 0 28px 55px rgba(0,0,0,.25), 0 0 34px rgba(229,28,37,.08);
  }
  .stats-panel:hover::before { opacity: 1; }

  .stats-panel > div {
    position: relative;
    z-index: 1;
    transition: transform .25s ease, background-color .25s ease;
  }
  .stats-panel > div:hover {
    transform: translateY(-5px) translateZ(16px);
    background: linear-gradient(180deg, rgba(229,28,37,.045), transparent);
  }
  .stats-panel > div svg { transition: transform .3s ease, filter .3s ease; }
  .stats-panel > div:hover svg {
    transform: scale(1.12) rotate(-4deg);
    filter: drop-shadow(0 4px 7px rgba(229,28,37,.24));
  }

  .service-motion-card {
    --service-tilt-x: 0deg;
    --service-tilt-y: 0deg;
    --service-shine-x: 50%;
    --service-shine-y: 50%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    animation: service-card-float 6s ease-in-out infinite;
  }
  .service-motion-card:nth-child(2) { animation-delay: -1s; }
  .service-motion-card:nth-child(3) { animation-delay: -2s; }
  .service-motion-card:nth-child(4) { animation-delay: -3s; }
  .service-motion-card:nth-child(5) { animation-delay: -4s; }
  .service-motion-card:nth-child(6) { animation-delay: -5s; }

  .service-motion-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(13rem circle at var(--service-shine-x) var(--service-shine-y), rgba(229,28,37,.16), transparent 62%);
    opacity: 0;
    transition: opacity .3s ease;
  }
  .service-motion-card:hover::before { opacity: 1; }
  .service-motion-card:hover {
    border-color: rgba(229,28,37,.4) !important;
    box-shadow: 0 20px 42px rgba(0,0,0,.13), 0 0 25px rgba(229,28,37,.08) !important;
  }
  .service-motion-card svg {
    transition: transform .3s ease, filter .3s ease;
  }
  .service-motion-card:hover svg {
    transform: translateZ(20px) scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 5px 8px rgba(229,28,37,.28));
  }
}

@keyframes stats-panel-float {
  0%, 100% { transform: perspective(1100px) rotateX(var(--stats-tilt-x)) rotateY(var(--stats-tilt-y)) translateY(0); }
  50% { transform: perspective(1100px) rotateX(var(--stats-tilt-x)) rotateY(var(--stats-tilt-y)) translateY(-7px); }
}

@keyframes service-card-float {
  0%, 100% { transform: perspective(850px) rotateX(var(--service-tilt-x)) rotateY(var(--service-tilt-y)) translateY(0); }
  50% { transform: perspective(850px) rotateX(var(--service-tilt-x)) rotateY(var(--service-tilt-y)) translateY(-6px); }
}

@media (max-width: 63.999rem) {
  header .logo-wrap img { height: 2.75rem !important; }
  #inicio > div.relative { min-height: 40rem; }
  #contato > div { grid-template-columns: 1fr; }
  #contato .contact-actions { justify-content: flex-start; }
  footer > div:first-child { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 39.999rem) {
  #inicio > div.relative { min-height: 38rem; }
  #contato .contact-actions { flex-direction: column; align-items: stretch; }
  #contato .contact-actions > a { min-width: 0; width: 100%; }
  #contato .qr-code-main { display: none; }
  footer > div:first-child { grid-template-columns: 1fr; }
  footer > .footer-grid-compact > :last-child { justify-self: stretch; }
}
