* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0b0b0b;
  color: #fff;
  overflow-x: hidden;
}

:root {
  --fixed-header-h: 88px;
}

body.no-scroll {
  overflow: hidden;
}

.text-overlay,
.portfolio-content,
.pin-content {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border-radius: 18px;
}

.text-overlay,
.portfolio-content,
.pin-content {
  padding: 18px 20px;
}

@media (max-width: 720px) {
  .text-overlay,
  .portfolio-content,
  .pin-content {
    padding: 16px 16px;
    border-radius: 16px;
  }
}

.section h2,
.section h3 {
  font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 600;
}

.hero-logo {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 1;
}

.hero-logo img {
  height: 288px;
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 720px) {
  .hero-logo {
    padding: 6px 0;
  }

  .hero-logo img {
    height: 240px;
  }
}

.section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-margin-top: calc(var(--fixed-header-h) + 12px);
}

/* BACKGROUND "CONGELADO" (efeito pinned) */
.portfolio,
.pin,
.final {
  background-attachment: fixed;
}

.maquinas::before {
  background-attachment: fixed;
}

/* TEXTO APARECENDO AOS POUCOS NO SCROLL */
.scroll-fade {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.985);
  filter: blur(10px);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform, filter;
}

/* Variações de transição por section */
.scroll-fade[data-fx="fade-up"] {
  transform: translate3d(0, 26px, 0) scale(0.985);
}

.scroll-fade[data-fx="splash"] {
  transform: translate3d(0, 18px, 0) scale(0.96);
}

.scroll-fade[data-fx="slide"] {
  transform: translate3d(-18px, 10px, 0) scale(0.985);
}

.scroll-fade[data-fx="fade"] {
  transform: none;
  filter: none;
}

.scroll-fade.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: none;
}

@media (prefers-reduced-motion: reduce), (max-width: 720px) {
  .portfolio,
  .pin,
  .final {
    background-attachment: scroll;
  }

  .maquinas::before {
    background-attachment: scroll;
  }

  .scroll-fade {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.hero {
  background: #000;
  overflow: visible;
  height: 220vh;
  display: block;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--fixed-header-h);
  display: grid;
  grid-template-rows: auto 1fr;
}

/* HERO: não cortar texto em telas pequenas (mobile/altura baixa) */
@media (max-width: 720px), (max-height: 760px) {
  .hero {
    height: auto;
    min-height: 100svh;
  }

  .hero-sticky {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
    grid-template-rows: auto;
  }

  .hero-content {
    justify-content: flex-start;
    padding: 18px 16px 32px;
    transform: none;
  }
}

@media (max-width: 720px) {
  :root {
    --fixed-header-h: 84px;
  }

  .section {
    height: auto;
    min-height: 100svh;
    padding: calc(var(--fixed-header-h) + 18px) 16px 64px;
  }

  .text-overlay,
  .portfolio-content,
  .pin-content,
  .final-content {
    width: 100%;
    max-width: 100%;
  }

  .testimonials-viewport {
    width: 100%;
  }

  .final-title {
    font-size: clamp(2.3rem, 8vw, 3.1rem);
  }
}

@media (max-width: 720px) and (max-height: 740px) {
  .hero-logo img {
    height: 190px;
  }

  .hero p.hero-tagline {
    font-size: 1.75rem !important;
  }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(30, 30, 30, 0.55), rgba(0, 0, 0, 0.9));
  z-index: 1;
}

.hero-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 24px;
  z-index: 4;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
}

.hero-header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  position: relative;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hero-phones {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.hero-phone {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.hero-phone:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 720px) {
  .hero-header {
    padding: 12px 14px;
  }

  .hero-header-inner {
    flex-direction: column;
    justify-content: center;
    width: 100%;
    gap: 10px;
  }

  .hero-nav {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 2px;
  }

  .hero-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-nav {
    scrollbar-width: none;
  }

  .hero-phones {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }

  .hero-nav-link {
    font-size: 0.9rem;
    padding: 7px 9px;
    white-space: nowrap;
  }

  .hero-phone {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    padding: 7px 10px;
  }
}

.hero-nav-link {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.hero-nav-link:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 24px 24px;
  will-change: transform;
}

.hero h1 {
  font-size: 4rem;
  letter-spacing: 2px;
}

.hero-title-scale {
  display: inline-block;
  transform-origin: center;
  will-change: transform;
}

.hero p {
  margin-top: 1rem;
  font-size: 1.2rem;
  opacity: 0.8;
}

.hero p.hero-tagline {
  font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 2.6rem !important;
  letter-spacing: 0.2px;
  opacity: 0.9;
  line-height: 1.15;
}

@media (max-width: 720px) {
  .hero p.hero-tagline {
    font-size: 2.05rem !important;
  }
}

.hero-scroll-copy {
  width: min(860px, 100%);
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  will-change: transform, opacity;
}

/* PARALLAX */
.image-section {
  overflow: hidden;
  background: #000;
}

.image-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(90% 70% at 50% 35%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.78)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35) 35%, rgba(0, 0, 0, 0.78));
  pointer-events: none;
 }

.parallax {
  position: absolute;
  top: -6%;
  right: 0;
  bottom: -6%;
  left: 0;
  background-image: url("assets/images/image2.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transform-origin: center;
  will-change: transform;
  z-index: 0;
}

.text-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
}

/* SERVICES (Parallax section content) */
.services-content {
  width: min(980px, calc(100% - 48px));
  max-width: none;
  text-align: left;
}

.services-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}

.services-title {
  font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.3vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.services-lead {
  margin-top: 12px;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.92;
  max-width: 70ch;
}

.services-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.service-title {
  font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}

.service-desc {
  margin-top: 8px;
  opacity: 0.9;
  line-height: 1.5;
  font-size: 0.98rem;
}

.service-bullets {
  margin-top: 12px;
  padding-left: 18px;
  opacity: 0.92;
  line-height: 1.5;
  font-size: 0.95rem;
}

.service-bullets li {
  margin-top: 6px;
}

.services-footnote {
  margin-top: 14px;
  opacity: 0.85;
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .services-content {
    width: 100%;
    text-align: center;
  }

  .services-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .service-bullets {
    text-align: left;
  }
}

.portfolio {
  background-image: url("assets/images/portfoliobackground.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.portfolio-content {
  width: min(1100px, calc(100% - 48px));
  text-align: center;
}

.portfolio-grid {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-item {
  appearance: none;
  -webkit-appearance: none;
  height: 170px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.portfolio-item:disabled {
  cursor: default;
  opacity: 0.6;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.5);
}

.lightbox-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(1100px, 95vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (min-width: 720px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-item {
    height: 210px;
  }
}

.pin {
  background: #111 url("assets/images/image4.png") center / cover no-repeat;
}

.maquinas {
  background: #0e0e0e;
  overflow: hidden;
}

.maquinas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/images/image3.png");
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.maquinas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

.maquinas .text-overlay {
  z-index: 2;
}

.machines-content {
  width: min(980px, calc(100% - 48px));
  max-width: none;
  text-align: left;
  position: relative;
  z-index: 2;
}

.machines-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.95;
}

.machines-title {
  margin-top: 14px;
  font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(2.0rem, 3.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0.2px;
}

.machines-lead {
  margin-top: 10px;
  opacity: 0.9;
  max-width: 72ch;
  line-height: 1.6;
}

.machines-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.machine-card {
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.machine-card::before {
  content: "";
  display: block;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
}

.machine-card-head {
  padding: 14px 14px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.machine-title {
  font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.machine-meta {
  opacity: 0.85;
  font-size: 0.95rem;
}

.machine-desc {
  padding: 10px 14px 0;
  opacity: 0.9;
  line-height: 1.5;
}

.machine-bullets {
  padding: 12px 14px 16px 32px;
  opacity: 0.92;
  line-height: 1.5;
}

.machine-bullets li {
  margin-top: 6px;
}

@media (max-width: 960px) {
  .machines-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .machines-content {
    width: 100%;
    text-align: center;
  }

  .machine-card-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .machine-bullets {
    text-align: left;
  }
}

.maquinas-list {
  margin-top: 14px;
  text-align: left;
  width: min(720px, 100%);
  padding-left: 18px;
  opacity: 0.92;
}

.maquinas-list li {
  margin: 10px 0;
  line-height: 1.5;
}

.pin-content {
  text-align: center;
  max-width: 980px;
  width: min(980px, calc(100% - 48px));
}

.testimonials {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.testimonials-viewport {
  width: min(900px, calc(100vw - 140px));
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 10px;
  display: flex;
  justify-content: center;
}

.testimonial-card {
  width: min(820px, 100%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.testimonial-photo {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.testimonial-body {
  text-align: left;
}

.testimonial-name {
  font-size: 1.1rem;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}

.testimonial-text {
  opacity: 0.92;
  line-height: 1.5;
}

.testimonials-nav {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.testimonials-nav:hover {
  background: rgba(0, 0, 0, 0.38);
}

.testimonials-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 720px) {
  .testimonials {
    gap: 10px;
  }

  .testimonials-viewport {
    width: min(900px, calc(100vw - 110px));
  }

  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.final {
  background: #000 url("assets/images/image5.png") center / cover no-repeat;
  flex-direction: column;
}

.final-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-title {
  font-size: clamp(3.7rem, 3.3vw, 5.2rem);
  letter-spacing: 0.4px;
  line-height: 1.05;
}

.cta {
  margin-top: 2rem;
  padding: 15px 40px;
  border: none;
  background: white;
  color: black;
  font-size: 1rem;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.985);
  filter: blur(10px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.delay {
  transition-delay: 0.3s;
}

.section-gap {
  width: 100%;
  height: 40px;
  background: #e0e0e0;
  display: block;
}

.site-footer {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  pointer-events: none;
}


.footer-socials {
  position: fixed;
  left: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  pointer-events: auto;
}

.footer-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s;
}

.footer-fab.facebook svg {
  width: 32px;
  height: 32px;
}
.footer-fab.instagram svg {
  width: 32px;
  height: 32px;
}
.footer-fab:hover {
  transform: scale(1.08);
}

.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #25d366;
  border: none;
  z-index: 1000;
  pointer-events: auto;
}

.whatsapp-fab svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

.whatsapp-fab:hover svg {
  opacity: 1;
}
