:root {
  --navy: #08121a;
  --navy-2: #101c25;
  --graphite: #162451;
  --steel: #aeb8c1;
  --steel-dark: #687582;
  --paper: #f5f5f4;
  --white: #ffffff;
  --black: #05090d;
  --line: rgba(255,255,255,.18);
  --container: min(1180px, calc(100% - 48px));
  --shadow: 0 24px 65px rgba(5,10,15,.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #15202a; background: var(--paper); font-family: "Inter", sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: var(--container); margin-inline: auto; }

.site-header {
  position: absolute;
  z-index: 1000;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(4,11,16,.76);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 104px; display: flex; align-items: center; gap: 34px; }
.brand { flex: 0 0 138px; display: block; }
.brand img { width: 132px; height: 78px; object-fit: cover; object-position: center; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 34px; }
.main-nav a { color: #f5f7f8; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.main-nav a:hover { color: var(--steel); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 9px; border: 0; background: transparent; }
.menu-toggle span { display: block; height: 2px; margin: 6px 0; background: #fff; transition: .2s; }

.button {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-outline { color: white; border-color: rgba(255,255,255,.6); background: rgba(3,8,12,.18); }
.button-outline:hover { background: rgba(255,255,255,.09); }
.button-metal {
  color: #fff;
  border-color: #8f9aa4;
  background: linear-gradient(135deg, #7b8791 0%, #bcc4ca 48%, #66727c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.header-button { margin-left: 6px; min-height: 42px; padding-inline: 20px; }

.hero {
  position: relative;
  min-height: 640px;
  padding: 150px 0 64px;
  display: grid;
  align-items: center;
  color: white;
  background-image: url('https://images.unsplash.com/photo-1625047509248-ec889cbff17f?auto=format&fit=crop&w=2000&q=90');
  background-size: cover;
  background-position: center 45%;
  overflow: hidden;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,11,16,.98) 0%, rgba(5,13,20,.92) 38%, rgba(5,12,18,.62) 68%, rgba(4,10,15,.78) 100%),
    linear-gradient(0deg, rgba(4,10,14,.88) 0%, transparent 55%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 42px; }
.hero-copy { max-width: 610px; }
.eyebrow { margin: 0 0 18px; display: flex; align-items: center; gap: 14px; color: #c6ccd1; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow span { width: 54px; height: 1px; background: #aeb6bd; }
.hero h1, .section h2 { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(62px, 6.3vw, 96px); line-height: .94; letter-spacing: .015em; color: #e8ecef; text-shadow: 0 8px 26px rgba(0,0,0,.36); }
.hero-text { max-width: 520px; margin: 24px 0 30px; color: #ecf0f2; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-logo { display: grid; place-items: center; }
.hero-logo img { width: min(440px, 92%); height: auto; filter: drop-shadow(0 24px 35px rgba(0,0,0,.44)); mix-blend-mode: screen; }

.features { position: relative; z-index: 5; background: linear-gradient(120deg, #151f27, #26323c 50%, #111920); color: white; border-top: 1px solid rgba(255,255,255,.22); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.features article { min-height: 98px; padding: 22px 28px; display: flex; align-items: center; gap: 17px; border-right: 1px solid rgba(255,255,255,.2); }
.features article:last-child { border-right: 0; }
.feature-icon { width: 48px; font-size: 34px; color: #c4cbd0; text-align: center; }
.features strong, .features span { display: block; }
.features strong { font-size: 14px; text-transform: uppercase; }
.features span { margin-top: 4px; color: #d1d6da; font-size: 12px; }

.section { padding: 90px 0; }
.services-section { background: linear-gradient(180deg, #fafafa, #eeeeed); }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 64px; margin-bottom: 38px; }
.section-heading.compact { align-items: center; }
.section-kicker { margin: 0 0 12px; text-transform: uppercase; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.section-kicker.light { color: #c3cbd1; }
.section-heading h2, .about-copy h2, .contact-copy h2 { margin: 0; color: #17222b; font-size: clamp(44px, 5vw, 68px); line-height: .96; letter-spacing: .015em; }
.section-heading > p { margin: 0; color: #3f4a53; font-size: 14px; line-height: 1.6; }
.heading-line { display: block; width: 30px; height: 4px; margin-top: 16px; background: #17222b; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 370px; overflow: hidden; color: white; background-image: var(--photo); background-size: cover; background-position: center; box-shadow: 0 12px 28px rgba(15,24,31,.12); }
.service-card:hover { transform: translateY(-5px); transition: .25s ease; }
.service-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,11,16,.12) 0%, rgba(5,12,18,.88) 68%, #061019 100%); }
.service-icon { position: absolute; top: 116px; left: 20px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(4,10,14,.38); }
.service-content { position: absolute; inset: auto 20px 20px; }
.service-card h3 { margin: 0 0 10px; font-family: "Barlow Condensed"; font-size: 29px; line-height: .96; text-transform: uppercase; }
.service-card p { min-height: 70px; margin: 0; color: #f1f3f4; font-size: 13px; line-height: 1.5; }
.service-card a { display: block; margin-top: 12px; text-align: right; font-size: 28px; }

.about-section { color: white; background: #0a131a; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.about-image { position: relative; }
.about-image::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid #7d8992; z-index: 0; }
.about-image img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(.55) contrast(1.08); }
.about-copy h2, .contact-copy h2 { color: white; }
.about-copy > p:not(.section-kicker), .contact-copy > p:not(.section-kicker) { color: #b9c2c8; line-height: 1.7; }
.about-copy ul { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.about-copy li { padding: 10px 0 10px 22px; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; }
.about-copy li::before { content: "›"; position: absolute; left: 0; color: #c4ccd2; }

.gallery-section { background: #ececeb; }
.gallery-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 16px; }
.gallery-grid img { width: 100%; height: 310px; object-fit: cover; filter: grayscale(.45) contrast(1.05); }
.gallery-grid img:first-child { height: 420px; grid-row: span 2; }

.contact-section { background: linear-gradient(135deg, #0a1218, #19252e); color: white; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.contact-details { margin-top: 34px; }
.contact-details p { display: flex; justify-content: space-between; gap: 30px; padding: 18px 0; margin: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.contact-details span { color: #aeb7bd; text-align: right; }
.contact-form { padding: 34px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); }
.contact-form label { display: grid; gap: 8px; margin-bottom: 18px; color: #d8dde0; font-size: 13px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 15px; border: 1px solid rgba(255,255,255,.18); color: white; background: #071017; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #aeb9c2; }

.site-footer { padding: 28px 0; color: #9aa5ad; background: #04090d; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner img { width: 90px; height: 70px; object-fit: cover; }
.footer-inner p { margin: 0; font-size: 12px; }
.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 1200; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: white; background: #20b65b; box-shadow: 0 14px 28px rgba(0,0,0,.3); font-size: 24px; }

.reveal { opacity: 0; transform: translateY(22px); transition: .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .header-button { display: none; }
  .main-nav { gap: 22px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr .75fr; }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 28px, 1180px); }
  .site-header { position: absolute; }
  .header-inner { min-height: 92px; justify-content: space-between; }
  .brand { flex-basis: 105px; }
  .brand img { width: 104px; height: 66px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; top: 92px; left: 14px; right: 14px; display: grid; gap: 0; padding: 8px; border: 1px solid rgba(255,255,255,.15); background: #08121a; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s; }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }

  .hero { min-height: 720px; padding: 128px 0 38px; background-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,11,16,.96), rgba(5,12,18,.80)), linear-gradient(0deg, #050c11 0%, transparent 65%); }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-copy { text-align: left; }
  .eyebrow { font-size: 12px; }
  .hero h1 { font-size: clamp(52px, 17vw, 72px); }
  .hero-text { font-size: 15px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-logo img { width: 250px; margin-top: 4px; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .features article { min-height: 105px; padding: 18px 14px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .features article:nth-child(2) { border-right: 0; }
  .features article:nth-child(n+3) { border-bottom: 0; }
  .features strong { font-size: 12px; }
  .features span { font-size: 10px; }

  .section { padding: 72px 0; }
  .section-heading, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-heading h2, .about-copy h2, .contact-copy h2 { font-size: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; }
  .service-icon { top: 90px; }
  .service-card p { min-height: 0; max-width: 85%; }
  .about-grid { gap: 52px; }
  .about-copy ul { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img, .gallery-grid img:first-child { height: 260px; grid-row: auto; }
  .contact-details p { flex-direction: column; gap: 6px; }
  .contact-details span { text-align: left; }
  .contact-form { padding: 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Localização e identidade atualizadas */
.brand img,
.footer-inner img {
  object-fit: contain;
  object-position: center;
}
.brand img {
  width: 132px;
  height: 82px;
}
.footer-inner img {
  width: 118px;
  height: 92px;
}
.whatsapp-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.floating-whatsapp .whatsapp-icon {
  width: 32px;
  height: 32px;
}
.location-section {
  background: linear-gradient(180deg, #f7f7f6 0%, #e8e9e9 100%);
}
.location-summary {
  display: grid;
  justify-items: start;
  gap: 18px;
}
.location-summary p {
  margin: 0;
  color: #39444d;
  font-size: 14px;
  line-height: 1.65;
}
.button-dark {
  color: #fff;
  border-color: #2b3944;
  background: linear-gradient(135deg, #0b141b, #26333d);
}
.map-frame {
  overflow: hidden;
  border: 1px solid rgba(18, 31, 41, .18);
  box-shadow: 0 20px 50px rgba(8, 18, 26, .16);
  background: #d9dcde;
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}
@media (max-width: 760px) {
  .brand img { width: 102px; height: 70px; }
  .footer-inner img { width: 116px; height: 96px; }
  .location-summary { justify-items: stretch; }
  .location-summary .button { width: 100%; }
  .map-frame iframe { height: 360px; }
}

/* =========================================================
   MOVIMENTO E INTERAÇÕES AO ROLAR
   ========================================================= */
html { scroll-behavior: smooth; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #7f8b94, #f4f7f9, #7f8b94);
  box-shadow: 0 0 12px rgba(224, 232, 238, .5);
  pointer-events: none;
}

.site-header {
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease, transform .35s ease;
}

.site-header.scrolled {
  background: rgba(5, 12, 17, .88);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero {
  background-position: center calc(50% + var(--hero-parallax, 0px));
  will-change: background-position;
}

.hero-copy,
.hero-logo {
  will-change: transform, opacity;
}

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  filter: blur(5px);
  transition:
    opacity .78s cubic-bezier(.22, 1, .36, 1),
    transform .78s cubic-bezier(.22, 1, .36, 1),
    filter .78s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal { transform: translate3d(0, 42px, 0) scale(.985); }
.reveal-left { transform: translate3d(-46px, 22px, 0); }
.reveal-right { transform: translate3d(46px, 22px, 0); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.features article {
  transition: background-color .3s ease, transform .3s ease;
}

.features article:hover {
  background: rgba(255, 255, 255, .045);
  transform: translateY(-4px);
}

.feature-icon {
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), color .3s ease;
}

.features article:hover .feature-icon {
  transform: scale(1.14) rotate(-5deg);
  color: #fff;
}

.service-card {
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  transform: perspective(900px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
  transform-style: preserve-3d;
  transition: transform .22s ease, box-shadow .3s ease;
  will-change: transform;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255,255,255,.2), transparent 33%);
  transition: opacity .25s ease;
}

.service-card:hover {
  transform: perspective(900px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)) translateY(-8px);
  box-shadow: 0 24px 48px rgba(5, 13, 19, .24);
}

.service-card:hover::after { opacity: 1; }
.service-card .service-content,
.service-card .service-icon { position: relative; z-index: 3; transform: translateZ(26px); }

.about-image,
.gallery-grid img,
.map-frame {
  overflow: hidden;
}

.about-image img,
.gallery-grid img {
  transition: transform .75s cubic-bezier(.22, 1, .36, 1), filter .45s ease;
}

.about-image:hover img,
.gallery-grid img:hover {
  transform: scale(1.055);
  filter: contrast(1.06) brightness(1.04);
}

.heading-line {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .8s .2s cubic-bezier(.22, 1, .36, 1);
}

.visible .heading-line,
.section-heading.visible .heading-line {
  transform: scaleX(1);
}

.floating-whatsapp {
  animation: whatsappPulse 2.7s ease-in-out infinite;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(0,0,0,.28), 0 0 0 0 rgba(37, 211, 102, .34); }
  50% { box-shadow: 0 10px 26px rgba(0,0,0,.28), 0 0 0 11px rgba(37, 211, 102, 0); }
}

@media (max-width: 760px) {
  .hero-copy,
  .hero-logo {
    transform: none !important;
    opacity: 1 !important;
  }

  .reveal-left,
  .reveal-right { transform: translate3d(0, 30px, 0); }

  .service-card,
  .service-card:hover {
    transform: none;
  }
}



/* ===== Movimento reforçado após a hero ===== */
.slide-in {
  opacity: 0;
  visibility: hidden;
  filter: blur(7px);
  transition:
    opacity 1.05s cubic-bezier(.16, 1, .3, 1),
    transform 1.05s cubic-bezier(.16, 1, .3, 1),
    filter 1.05s cubic-bezier(.16, 1, .3, 1),
    visibility 0s linear 1.05s;
  transition-delay: var(--slide-delay, 0ms);
  will-change: opacity, transform, filter;
}

.slide-in[data-slide="left"]  { transform: translate3d(-90px, 0, 0); }
.slide-in[data-slide="right"] { transform: translate3d(90px, 0, 0); }
.slide-in[data-slide="up"]    { transform: translate3d(0, 70px, 0); }
.slide-in[data-slide="zoom"]  { transform: translate3d(0, 35px, 0) scale(.93); }

.slide-in.is-inview {
  opacity: 1;
  visibility: visible;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: var(--slide-delay, 0ms);
}

/* Evita conflito entre o efeito de entrada e o efeito 3D dos cards. */
.service-card.slide-in:not(.is-inview) {
  transform: translate3d(0, 70px, 0) scale(.93);
}
.service-card.slide-in.is-inview {
  transform: perspective(900px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
}
.service-card.slide-in.is-inview:hover {
  transform: perspective(900px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)) translateY(-8px);
}

/* WhatsApp: pulsação + anéis + brilho de atenção */
.floating-whatsapp {
  isolation: isolate;
  overflow: visible;
  animation: whatsappFloat 2.4s ease-in-out infinite, whatsappGlow 1.8s ease-in-out infinite alternate;
}

.floating-whatsapp::before,
.floating-whatsapp::after {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 2px solid rgba(37, 211, 102, .72);
  border-radius: 50%;
  opacity: 0;
  animation: whatsappRing 2.4s ease-out infinite;
}

.floating-whatsapp::after {
  animation-delay: 1.2s;
}

.floating-whatsapp .whatsapp-icon {
  animation: whatsappIconBeat 1.55s ease-in-out infinite;
  filter: drop-shadow(0 0 7px rgba(255,255,255,.42));
}

@keyframes whatsappFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes whatsappGlow {
  from { box-shadow: 0 12px 28px rgba(0,0,0,.32), 0 0 10px rgba(37,211,102,.35); }
  to   { box-shadow: 0 16px 34px rgba(0,0,0,.36), 0 0 25px rgba(37,211,102,.90); }
}

@keyframes whatsappRing {
  0% { transform: scale(.82); opacity: .72; }
  75%, 100% { transform: scale(1.55); opacity: 0; }
}

@keyframes whatsappIconBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.14); }
  30% { transform: scale(1); }
  45% { transform: scale(1.10); }
  60% { transform: scale(1); }
}

@media (max-width: 760px) {
  .slide-in[data-slide="left"],
  .slide-in[data-slide="right"] { transform: translate3d(0, 55px, 0); }
  .slide-in.is-inview { transform: translate3d(0, 0, 0) scale(1); }
}



/* Garantia de prioridade para as animações de entrada */
body .slide-in { opacity: 0; }
body .slide-in.is-inview { opacity: 1; visibility: visible; filter: none; transform: translate3d(0,0,0) scale(1); }
