:root {
  --navy: #0b1220;
  --navy-deep: #060a11;
  --red: #d92b2b;
  --red-light: #ef3a3a;
  --white: #f5f3ef;
  --muted: #a7afbc;
  --line: rgba(255, 255, 255, 0.17);
  --heading: "Oswald", sans-serif;
  --script: "Yellowtail", cursive;
  --body: Arial, Helvetica, sans-serif;
  --shell: min(1240px, calc(100vw - 96px));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

body.site-loading {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  padding: 10px 16px;
  transform: translateY(-150%);
  background: var(--red);
  color: #fff;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* A animação permanece presa ao viewport durante toda a rolagem. */
.site-background {
  position: fixed;
  inset: -6px;
  z-index: 0;
  overflow: hidden;
  background: #05080e;
  pointer-events: none;
}

.site-background::before,
.site-background::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
}

.site-background::before {
  background:
    linear-gradient(90deg, rgba(4, 8, 15, 0.8) 0%, rgba(4, 8, 15, 0.56) 42%, rgba(4, 8, 15, 0.4) 100%),
    linear-gradient(0deg, rgba(4, 8, 15, 0.5), rgba(4, 8, 15, 0.18));
}

.site-background::after {
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(25% - 1px),
    rgba(255, 255, 255, 0.025) 25%
  );
}

#canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: blur(2.5px) brightness(1.17) saturate(0.82);
  transform: scale(1.025);
}

.page-content {
  position: relative;
  z-index: 2;
}

/* Navegação */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  padding: 0 max(48px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  height: 70px;
  border-bottom-color: var(--line);
  background: rgba(5, 9, 16, 0.88);
  backdrop-filter: blur(16px);
}

.nav-logo {
  display: block;
  width: 190px;
  height: 68px;
  transition: width 0.3s ease, height 0.3s ease;
}

.nav-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.navbar.scrolled .nav-logo {
  width: 164px;
  height: 58px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-menu > a:not(.nav-contact) {
  position: relative;
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--heading);
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-menu > a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: auto;
  width: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transition: width 0.25s ease;
}

.nav-menu > a:not(.nav-contact):hover::after,
.nav-menu > a:not(.nav-contact):focus-visible::after {
  right: auto;
  left: 0;
  width: 100%;
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--red);
  font-family: var(--heading);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-contact span {
  color: var(--red);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(7, 12, 20, 0.45);
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Primeiro bloco de conteúdo: a animação não pertence a ele. */
.intro {
  position: relative;
  min-height: 720px;
  height: 100vh;
  height: 100svh;
  border-bottom: 1px solid var(--line);
}

.intro__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: var(--shell);
  height: 100%;
  margin: 0 auto;
  padding: 128px 0 126px;
}

.intro__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro__topline p:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.intro__topline p:first-child span {
  display: block;
  width: 33px;
  height: 2px;
  background: var(--red);
}

.intro__main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 70px;
}

.brand-title {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  text-transform: uppercase;
}

.brand-title__rony {
  position: absolute;
  z-index: 1;
  top: -60px;
  left: 4px;
  color: var(--red);
  font-family: var(--script);
  font-size: clamp(5rem, 8vw, 8.2rem);
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  transform: rotate(-6deg);
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.28));
}

.brand-title__auto {
  font-family: var(--heading);
  font-size: clamp(7rem, 13.4vw, 13.2rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.78;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.3);
}

.brand-title__tagline {
  align-self: flex-end;
  margin-top: 19px;
  padding-right: 0.4em;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--heading);
  font-size: clamp(0.68rem, 0.9vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.intro__statement {
  padding: 0 0 5px 24px;
  border-left: 2px solid var(--red);
  font-family: var(--heading);
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  letter-spacing: 0.015em;
  line-height: 1.45;
  text-transform: uppercase;
}

.intro__statement p {
  color: rgba(255, 255, 255, 0.7);
}

.intro__statement strong {
  color: #fff;
  font-weight: 600;
}

.intro__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.intro__footer > p {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.92rem;
  line-height: 1.7;
}

.intro__actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  cursor: pointer;
  font-family: var(--heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button span {
  margin-left: 20px;
}

.button--red {
  background: var(--red);
  color: #fff;
}

.button--red:hover,
.button--red:focus-visible {
  background: var(--red-light);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  font-family: var(--heading);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link span {
  color: var(--red);
  font-size: 1rem;
}

.intro__services {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 45px);
  height: 72px;
  border-top: 1px solid var(--line);
  background: rgba(5, 9, 16, 0.24);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--heading);
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.intro__services i {
  width: 5px;
  height: 5px;
  background: var(--red);
  transform: rotate(45deg);
}

/* Estrutura editorial das seções */
.section {
  padding: 138px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 16, 0.58);
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: 170px minmax(0, 1.35fr) minmax(260px, 0.6fr);
  align-items: end;
  gap: 42px;
  margin-bottom: 88px;
}

.section-heading--location,
.section-heading--contact {
  grid-template-columns: 170px 1fr;
}

.section-label {
  align-self: start;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section-label span {
  color: var(--red);
}

.section-heading h2,
.manifesto h2 {
  font-family: var(--heading);
  font-size: clamp(3.5rem, 6vw, 6.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.97;
  text-transform: uppercase;
}

.section-heading h2 em {
  color: var(--red);
  font-style: normal;
}

.section-lead {
  padding-left: 25px;
  border-left: 2px solid var(--red);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* Serviços em formato de bancada técnica expansível, sem cards. */
.service-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(45px, 6vw, 92px);
}

.service-workbench.has-active-service {
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
}

.service-index {
  border-top: 1px solid rgba(255, 255, 255, 0.38);
}

.service-item {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.service-item.is-active {
  background: linear-gradient(90deg, rgba(215, 219, 225, 0.17), rgba(187, 193, 202, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-item::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--red);
  content: "";
  opacity: 0;
  transform: scaleY(0.25);
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.service-item.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.service-trigger {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(190px, 0.8fr) minmax(190px, 1fr) 36px;
  align-items: center;
  gap: 22px;
  width: 100%;
  min-height: 124px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.service-trigger::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent 68%);
  content: "";
  opacity: 0;
  transform: scaleX(0.25);
  transform-origin: left;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.service-trigger:hover::after,
.service-trigger:focus-visible::after,
.service-item.is-active .service-trigger::after {
  opacity: 0.8;
  transform: scaleX(1);
}

.service-trigger:focus-visible {
  outline: 0;
}

.service-line__number {
  align-self: start;
  padding-top: 10px;
  color: var(--red);
  font-family: var(--heading);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.service-trigger__name {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-trigger__name small {
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--heading);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.service-trigger__name strong {
  font-family: var(--heading);
  font-size: clamp(2rem, 3.25vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-transform: uppercase;
  transition: color 0.25s ease, transform 0.25s ease;
}

.service-trigger__summary {
  max-width: 310px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
  transition: color 0.25s ease;
}

.service-trigger__icon {
  position: relative;
  width: 28px;
  height: 28px;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.3s ease;
}

.service-trigger__icon::before,
.service-trigger__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: #fff;
  content: "";
  transform: translate(-50%, -50%);
}

.service-trigger__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.3s ease;
}

.service-item.is-active .service-trigger__icon {
  border-color: var(--red);
  background: var(--red);
  transform: rotate(180deg);
}

.service-item.is-active .service-trigger__icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

.service-item.is-active .service-trigger__name strong,
.service-trigger:hover .service-trigger__name strong {
  color: var(--red-light);
}

.service-item.is-active .service-trigger__name small,
.service-item.is-active .service-trigger__summary {
  color: rgba(255, 255, 255, 0.72);
}

.service-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.42s ease, opacity 0.3s ease;
}

.service-item.is-active .service-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.service-panel__inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 36px 0 70px;
}

.service-item.is-active .service-panel__inner {
  padding-bottom: 38px;
}

.service-panel__lead {
  max-width: 650px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.75;
}

.service-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 22px;
  margin-bottom: 28px;
  list-style: none;
}

.service-checklist li {
  position: relative;
  padding: 10px 0 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.5;
}

.service-checklist li::before {
  position: absolute;
  top: 15px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--red);
  content: "";
  transform: rotate(45deg);
}

.service-visual {
  position: sticky;
  top: 118px;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.service-visual.is-idle {
  display: none;
}

.service-visual__top,
.service-visual__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font-family: var(--heading);
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-visual__top span,
.service-visual__bottom span {
  color: rgba(255, 255, 255, 0.48);
}

.service-visual__top strong,
.service-visual__bottom strong {
  color: var(--red-light);
  font-weight: 500;
}

.service-visual__frame {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background:
    linear-gradient(rgba(217, 43, 43, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 43, 43, 0.055) 1px, transparent 1px),
    #07101d;
  background-size: 32px 32px;
  isolation: isolate;
}

.service-visual__frame::before,
.service-visual__frame::after {
  position: absolute;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.service-visual__frame::before {
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at center, transparent 48%, rgba(3, 8, 15, 0.72) 100%);
}

.service-visual__frame::after {
  top: 10%;
  right: 9%;
  left: 9%;
  height: 1px;
  background: rgba(217, 43, 43, 0.35);
  box-shadow: 0 0 14px rgba(217, 43, 43, 0.28);
  animation: serviceScan 4.2s ease-in-out infinite;
}

.service-visual.is-idle .service-visual__frame::after {
  display: none;
}

.service-visual__slides {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.service-atlas {
  position: absolute;
  z-index: 1;
  width: 300%;
  max-width: none;
  height: 200%;
  object-fit: fill;
  opacity: 0;
  filter: saturate(0.92) contrast(1.04);
  transition: left 0.48s cubic-bezier(0.22, 1, 0.36, 1), top 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
}

.service-atlas.is-current {
  opacity: 1;
}

.service-atlas--motor { top: 0; left: 0; }
.service-atlas--suspensao { top: 0; left: -100%; }
.service-atlas--freios { top: 0; left: -200%; }
.service-atlas--escapamento { top: -100%; left: 0; }
.service-atlas--injecao { top: -100%; left: -100%; }
.service-atlas--revisao { top: -100%; left: -200%; }

.service-visual.is-changing .service-atlas.is-current {
  opacity: 0.42;
}

.service-visual__idle {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  visibility: hidden;
  background:
    radial-gradient(circle at center, rgba(217, 43, 43, 0.08), transparent 48%),
    rgba(7, 16, 29, 0.94);
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-visual.is-idle .service-visual__idle,
.service-visual.is-loading .service-visual__idle {
  visibility: visible;
  opacity: 1;
}

.service-visual__idle span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--red-light);
  font-family: var(--heading);
  font-size: 1.65rem;
  font-weight: 300;
}

.service-visual.is-loading .service-visual__idle span {
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: var(--red);
  color: transparent;
  animation: spin 0.8s linear infinite;
}

.service-visual__idle p {
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--heading);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.service-slide-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 5;
  padding: 10px 12px;
  border-left: 2px solid var(--red);
  background: rgba(5, 10, 18, 0.78);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--heading);
  font-size: 0.61rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
  transition: opacity 0.25s ease;
}

.service-visual.is-idle .service-slide-label,
.service-visual.is-loading .service-slide-label {
  opacity: 0;
}

.service-visual__target {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 62%;
  height: 62%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.service-visual.is-idle .service-visual__target,
.service-visual.is-loading .service-visual__target {
  opacity: 0;
}

.service-visual__target::before,
.service-visual__target::after {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--red);
  border-style: solid;
  content: "";
}

.service-visual__target::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.service-visual__target::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.service-visual__pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-visual__pagination i {
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  transition: width 0.25s ease, background 0.25s ease;
}

.service-visual__pagination i.is-current {
  width: 24px;
  background: var(--red);
}

.service-visual__pagination strong {
  min-width: 52px;
  margin-left: 8px;
  text-align: right;
}

@keyframes serviceScan {
  0%, 100% { top: 10%; opacity: 0; }
  15%, 85% { opacity: 1; }
  50% { top: 90%; opacity: 0.65; }
}

/* Manifesto */
.manifesto {
  padding: 132px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 14, 24, 0.2);
}

.manifesto__inner {
  display: grid;
  grid-template-columns: 170px minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 42px;
}

.manifesto__copy > p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--heading);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.manifesto h2 {
  color: var(--red);
}

.manifesto__facts {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.manifesto__facts > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.manifesto__facts dt {
  margin-bottom: 8px;
  font-family: var(--heading);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.manifesto__facts dd {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Localização */
.location {
  background: rgba(5, 9, 16, 0.68);
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.55fr);
  gap: 64px;
  align-items: stretch;
}

.map-wrap {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-top: 3px solid var(--red);
  background: #111;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  filter: grayscale(1) invert(0.9) contrast(0.82) saturate(0.25) hue-rotate(175deg);
}

.map-link {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 17px 22px;
  background: var(--red);
  font-family: var(--heading);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 52px;
  border-left: 1px solid var(--line);
}

.location-info__name {
  margin-bottom: 19px;
  color: var(--red);
  font-family: var(--heading);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.location-info address {
  margin-bottom: 62px;
  font-family: var(--heading);
  font-size: clamp(2.1rem, 3.3vw, 3.4rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.12;
  text-transform: uppercase;
}

.location-hours {
  margin-bottom: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.location-hours > span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--heading);
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.location-hours p {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--heading);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.location-hours strong {
  color: var(--red);
  font-weight: 500;
}

/* Contato */
.contact {
  background: rgba(7, 12, 20, 0.54);
}

.contact-layout {
  display: block;
}

.contact-direct {
  display: grid;
  grid-template-columns: minmax(280px, 0.52fr) minmax(0, 1fr);
  gap: 120px;
  align-items: start;
}

.contact-direct__lead {
  max-width: 480px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.contact-details {
  border-top: 1px solid var(--line);
}

.contact-detail {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.contact-detail > span {
  padding-top: 5px;
  color: var(--muted);
  font-family: var(--heading);
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-detail strong,
.contact-detail a {
  font-family: var(--heading);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.contact-detail p,
.contact-detail address {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.6;
}

.contact-detail a {
  transition: color 0.2s ease;
}

.contact-detail a i {
  margin-left: 10px;
  color: var(--red);
  font-size: 1rem;
  font-style: normal;
}

.contact-detail a:hover,
.contact-detail a:focus-visible {
  color: var(--red);
}

/* Rodapé */
.footer {
  background: rgba(4, 7, 12, 0.76);
}

.footer__main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 210px;
}

.footer-logo {
  display: block;
  width: 230px;
  height: 82px;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.footer__main > p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.footer-top {
  justify-self: end;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--red);
  font-family: var(--heading);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-top span {
  margin-left: 13px;
  color: var(--red);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  border-top: 1px solid var(--line);
  color: #707986;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

/* Carregamento */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--navy-deep);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.overlay::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  content: "";
  animation: loadingLine 1.5s ease-in-out infinite;
}

.overlay.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loader-brand {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 210px;
  height: 88px;
}

.loader-brand span {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--red);
  font-family: var(--script);
  font-size: 4.2rem;
  line-height: 1;
  transform: rotate(-5deg);
}

.loader-brand strong {
  margin-left: 60px;
  font-family: var(--heading);
  font-size: 2rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#overlay-text {
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--heading);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes loadingLine {
  0%, 100% { transform: scaleX(0.12); opacity: 0.3; }
  50% { transform: scaleX(0.8); opacity: 1; }
}

:focus-visible {
  outline: 2px solid #ff5555;
  outline-offset: 4px;
}

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

@media (max-width: 1100px) {
  :root {
    --shell: min(100% - 64px, 980px);
  }

  .navbar {
    padding: 0 32px;
  }

  .intro__main {
    grid-template-columns: 1fr;
  }

  .intro__statement {
    max-width: 500px;
  }

  .section-heading {
    grid-template-columns: 130px minmax(0, 1.25fr) minmax(240px, 0.7fr);
    gap: 30px;
  }

  .section-heading--location,
  .section-heading--contact {
    grid-template-columns: 130px 1fr;
  }

  .service-workbench {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .service-workbench.has-active-service {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .service-trigger {
    grid-template-columns: 42px minmax(0, 1fr) 32px;
  }

  .service-trigger__summary {
    display: none;
  }

  .service-panel__inner {
    padding-left: 62px;
  }

  .service-checklist {
    grid-template-columns: 1fr;
  }

  .manifesto__inner {
    grid-template-columns: 130px 1fr;
  }

  .manifesto__facts {
    grid-column: 2;
  }

  .location-layout {
    gap: 42px;
  }

  .location-info {
    padding-left: 35px;
  }

  .contact-direct {
    grid-template-columns: minmax(240px, 0.5fr) minmax(0, 1fr);
    gap: 65px;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: calc(100% - 40px);
  }

  .navbar,
  .navbar.scrolled {
    height: 70px;
    padding: 0 20px;
  }

  .nav-toggle {
    z-index: 2;
    display: block;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 100px 30px 50px;
    visibility: hidden;
    background: rgba(5, 9, 16, 0.98);
    opacity: 0;
    transform: translateY(-18px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .nav-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu > a:not(.nav-contact) {
    font-size: clamp(2.2rem, 10vw, 4rem);
    line-height: 1;
  }

  .nav-contact {
    margin-top: 18px;
    font-size: 0.9rem;
  }

  .intro {
    min-height: 690px;
  }

  .intro__inner {
    padding: 110px 0 120px;
  }

  .intro__topline p:last-child {
    display: none;
  }

  .brand-title__rony {
    top: -43px;
  }

  .brand-title__auto {
    font-size: clamp(5.7rem, 20vw, 9rem);
  }

  .intro__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .section {
    padding: 95px 0;
  }

  .section-heading,
  .section-heading--location,
  .section-heading--contact {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 60px;
  }

  .section-lead {
    max-width: 600px;
  }

  .service-workbench,
  .service-workbench.has-active-service {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .service-visual {
    position: relative;
    top: 0;
    width: min(100%, 460px);
    margin: 0 auto;
  }

  .service-item > .service-visual {
    width: calc(100% - 62px);
    margin: 0 0 38px 62px;
  }

  .service-trigger {
    grid-template-columns: 42px minmax(0, 1fr) 32px;
    gap: 18px;
    min-height: 124px;
  }

  .service-trigger__summary {
    display: block;
    grid-column: 2 / -1;
    max-width: 520px;
    margin-top: -7px;
  }

  .service-trigger__icon {
    grid-column: 3;
    grid-row: 1;
  }

  .service-panel__inner {
    padding-right: 0;
  }

  .service-checklist {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .manifesto {
    padding: 95px 0;
  }

  .manifesto__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .manifesto__facts {
    grid-column: auto;
  }

  .location-layout {
    grid-template-columns: 1fr;
  }

  .map-wrap {
    min-height: 440px;
  }

  .location-info {
    padding: 45px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .contact-direct {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 42px 0;
  }

  .footer__main > p {
    text-align: right;
  }

  .footer-top {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 600px) {
  :root {
    --shell: calc(100% - 32px);
  }

  #canvas {
    filter: blur(2px) brightness(1.09) saturate(0.8);
  }

  .nav-logo {
    width: 158px;
    height: 57px;
  }

  .navbar.scrolled .nav-logo {
    width: 148px;
    height: 53px;
  }

  .intro__inner {
    justify-content: flex-end;
    gap: 70px;
    padding-bottom: 120px;
  }

  .intro__topline {
    position: absolute;
    top: 105px;
  }

  .brand-title__rony {
    top: -37px;
    font-size: 4.25rem;
  }

  .brand-title__auto {
    font-size: clamp(4.8rem, 23vw, 7.2rem);
  }

  .brand-title__tagline {
    margin-top: 13px;
    padding-right: 0;
    font-size: 0.58rem;
    letter-spacing: 0.13em;
  }

  .intro__statement {
    padding-left: 17px;
    font-size: 1.05rem;
  }

  .intro__footer > p {
    display: none;
  }

  .intro__actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }

  .button {
    width: 100%;
  }

  .text-link {
    align-self: flex-start;
  }

  .intro__services {
    justify-content: flex-start;
    padding: 0 16px;
    overflow: hidden;
    white-space: nowrap;
  }

  .intro__services span:nth-of-type(n+4),
  .intro__services i:nth-of-type(n+4) {
    display: none;
  }

  .section-heading h2,
  .manifesto h2 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .service-visual {
    width: min(100%, 390px);
  }

  .service-item > .service-visual {
    width: calc(100% - 42px);
    margin: 0 0 32px 42px;
  }

  .service-visual__top,
  .service-visual__bottom {
    min-height: 46px;
    font-size: 0.55rem;
  }

  .service-visual__bottom span {
    max-width: 180px;
    line-height: 1.4;
  }

  .service-trigger {
    grid-template-columns: 30px minmax(0, 1fr) 28px;
    gap: 12px;
    min-height: 0;
    padding: 25px 0;
  }

  .service-line__number {
    padding-top: 7px;
  }

  .service-trigger__name strong {
    font-size: clamp(2rem, 11vw, 2.7rem);
  }

  .service-trigger__name small {
    font-size: 0.53rem;
  }

  .service-trigger__summary {
    grid-column: 2 / -1;
    font-size: 0.73rem;
  }

  .service-trigger__icon {
    width: 26px;
    height: 26px;
  }

  .service-panel__inner {
    padding-left: 42px;
  }

  .service-item.is-active .service-panel__inner {
    padding-bottom: 32px;
  }

  .service-checklist {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .map-wrap {
    min-height: 355px;
  }

  .location-info address {
    margin-bottom: 45px;
  }

  .contact-detail {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
  }

  .contact-detail strong,
  .contact-detail a {
    font-size: 1.2rem;
  }

  .footer__main {
    grid-template-columns: 1fr;
  }

  .footer__main > p {
    text-align: left;
  }

  .footer-top {
    grid-column: auto;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 20px 0;
  }
}

/* O carrossel mantém a transição porque sua rotação automática é conteúdo solicitado. */
@media (prefers-reduced-motion: reduce) {
  .service-atlas {
    transition-duration: 0.48s, 0.48s, 0.55s !important;
  }
}
