:root {
  --navy: #1f4068;
  --deep: #12284a;
  --royal: #1f3f93;
  --blue: #2a67b1;
  --sky: #dcebfb;
  --mist: #f3f8fe;
  --white: #ffffff;
  --ink: #12284a;
  --muted: #465b78;
  --line: #d5e2f1;
  --display: "Besley", Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; color: var(--navy); text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.75rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; }
p { margin: 0; }
a { color: var(--blue); }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.contact :focus-visible { outline-color: #fff; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); color: var(--muted); max-width: 34ch; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  background: var(--navy); color: #fff; border: 2px solid var(--navy);
  border-radius: 999px; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s;
}
.btn:hover { background: var(--deep); border-color: var(--deep); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(18, 40, 74, .55); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--sky); border-color: var(--navy); color: var(--deep); box-shadow: none; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }

/* Topo */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(18, 40, 74, .5); }
.nav__in { width: min(1160px, 100% - 32px); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--navy); font-family: var(--display); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.brand img { width: 38px; height: auto; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: .95rem; transition: background .2s; }
.nav__links a:hover { background: var(--sky); }

/* Abertura */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(24px, 4vw, 56px)) 0 clamp(32px, 4vw, 56px); background: radial-gradient(1100px 600px at 85% 10%, var(--sky) 0%, rgba(220, 235, 251, 0) 65%), var(--white); }
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero h1 { margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__logo img { width: min(100%, 400px); margin-inline: auto; will-change: transform; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.facts { list-style: none; padding: 0; margin-top: clamp(32px, 4vw, 56px); margin-bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--navy); }
.facts li { padding: 16px 20px 0 0; display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-family: var(--display); font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--navy); line-height: 1.15; font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: 1rem; }

/* Fachada: cresce conforme o scroll */
.scene { --p: 1; height: 160vh; background: var(--white); }
.scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 2.4vh, 24px); overflow: hidden; }
.scene__title { text-align: center; padding-inline: 20px; font-size: clamp(1.7rem, 4vw, 3.25rem); }
.scene__fig { margin: 0; width: calc(64% + 36% * var(--p)); border-radius: calc(36px * (1 - var(--p))); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(18, 40, 74, .6); will-change: width; }
.scene__fig img { width: 100%; aspect-ratio: 2400 / 1086; max-height: 62vh; object-fit: cover; }
.scene__cap { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.4rem); color: var(--navy); text-align: center; padding-inline: 20px; opacity: calc(var(--p) * 2 - .6); transform: translateY(calc((1 - var(--p)) * 16px)); }

/* Seções */
.sec { padding: clamp(44px, 6vw, 84px) 0; }
.sec--tint { background: var(--mist); }
.sec h2 { margin-bottom: clamp(22px, 3vw, 36px); }

/* Serviços */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; overflow: hidden; background: var(--mist); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 8px; transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -30px rgba(18, 40, 74, .55); }
.card p { color: var(--muted); }
.card--main { grid-column: 1 / -1; background: var(--navy); border-color: var(--navy); min-height: 240px; justify-content: flex-end; padding-right: min(340px, 40%); }
.card--main h3 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
.card--main p { color: #dbe8f8; font-size: 1.15rem; max-width: 42ch; }
.card--main img { position: absolute; right: clamp(16px, 4vw, 56px); bottom: 24px; width: min(240px, 30%); filter: brightness(0) invert(1); opacity: .95; }
.tag { align-self: flex-start; background: #fff; color: var(--navy); font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 6px; }
.card--biz { background: var(--sky); border-color: #bcd6f3; }
.link { margin-top: auto; padding-top: 8px; font-family: var(--display); font-weight: 700; color: var(--navy); overflow-wrap: anywhere; text-underline-offset: 4px; }
.link:hover { color: var(--blue); }

/* Passos */
.steps { list-style: none; padding: 0; margin: 0 0 clamp(24px, 3vw, 36px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 2.4vw, 28px); }
.steps__n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* Mapa */
.map-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.map { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--mist); min-height: 360px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.info { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; }
.info dl { margin: 0; display: grid; gap: 16px; }
.info dt { font-family: var(--display); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.info dd { margin: 0; font-size: 1.15rem; color: var(--ink); }

/* Faixa de azulejos, como na fachada */
.tiles { height: 56px; background: conic-gradient(var(--royal) 25%, #fff 0 50%, var(--royal) 0 75%, #fff 0) 0 0 / 56px 56px; }

/* Contato */
.contact { background: var(--navy); color: #fff; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: #a9cbf1; }
.contact__grid { display: grid; grid-template-columns: 1.3fr auto; gap: clamp(24px, 5vw, 72px); align-items: center; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact__list span { display: block; font-size: 1rem; color: #c5dbf5; margin-bottom: 2px; }
.contact__list a { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.2; color: #fff; text-decoration: none; display: inline-block; padding: 2px 0; background: linear-gradient(#fff, #fff) 0 100% / 0 3px no-repeat; transition: background-size .35s var(--ease); }
.contact__list a:hover { background-size: 100% 3px; }
.contact__list .contact__mail { font-size: clamp(1.05rem, 2.4vw, 1.75rem); overflow-wrap: anywhere; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; color: var(--navy); text-decoration: none; text-align: center; border-radius: 28px; padding: 24px 28px 26px; width: min(100%, 320px); transition: transform .35s var(--ease); }
.qr:hover { transform: translateY(-4px) rotate(-1deg); }
.qr img { width: 240px; height: 240px; margin-bottom: 8px; }
.qr strong { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.qr span { color: var(--muted); font-size: 1rem; }

/* Rodapé */
.foot { background: var(--deep); color: #c5dbf5; padding: 28px 0; font-size: .95rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.foot strong { color: #fff; font-family: var(--display); }

/* Entrada dos elementos ao rolar */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__in { justify-content: space-between; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__logo { order: -1; }
  .hero__logo img { width: min(52vw, 220px); margin-inline: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .card--main { padding-right: clamp(20px, 2.4vw, 28px); min-height: 0; padding-top: 124px; }
  .card--main img { top: 18px; bottom: auto; right: 20px; width: 96px; }
  .card--main .tag { position: absolute; top: 22px; left: 20px; }
  .map-grid, .contact__grid { grid-template-columns: 1fr; }
  .map, .map iframe { min-height: 300px; }
  .qr { margin-inline: auto; }
  .scene { height: auto; padding: 8px 0 12px; }
  .scene__sticky { position: static; height: auto; padding-top: 0; gap: 14px; }
  .scene__fig { width: calc(82% + 18% * var(--p)); border-radius: calc(22px * (1 - var(--p))); }
  .tiles { height: 40px; background-size: 40px 40px; }
}

/* Celular */
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .nav__in { gap: 10px; }
  .brand { font-size: .95rem; gap: 7px; min-width: 0; }
  .brand img { width: 30px; flex: none; }
  .btn--sm { padding: 8px 13px; font-size: .85rem; white-space: nowrap; flex: none; }
  .hero__logo img { width: 170px; }
  .actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li { padding-right: 12px; }
}
@media (max-width: 385px) {
  .brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* Quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .scene { height: auto; padding: 40px 0; }
  .scene__sticky { position: static; height: auto; padding-top: 0; }
}

@media print {
  .nav, .scene, .tiles { display: none; }
  .js .rv { opacity: 1; transform: none; }
}
