/* ===================== TOKENS ===================== */
:root {
  --azul: #0B2E6D;
  --azul-800: #0d356f;
  --azul-700: #16468f;
  --laranja: #F56A00;
  --laranja-600: #d95f00;
  --branco: #FFFFFF;
  --cinza: #FAFAFA;
  --cinza-borda: #ECEEF1;
  --texto: #222222;
  --texto-sec: #666666;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 46, 109, .06), 0 1px 3px rgba(11, 46, 109, .04);
  --shadow-md: 0 10px 30px rgba(11, 46, 109, .08);
  --shadow-lg: 0 20px 50px rgba(11, 46, 109, .12);
  --max: 1200px;
  --ease: cubic-bezier(.16, .84, .44, 1);
  --transition-base: .32s var(--ease);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--branco);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--texto);
  background: var(--branco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4 {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--azul);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base), color var(--transition-base);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.btn--primary {
  background: var(--laranja);
  color: var(--branco);
  box-shadow: 0 8px 20px rgba(245, 106, 0, .25);
}

.btn--primary:hover {
  background: var(--laranja-600);
  transform: translate3d(0, -4px, 0)scale(1.02);
  box-shadow: 0 12px 26px rgba(245, 106, 0, .32);
}

.btn--ghost {
  background: rgba(255, 255, 255, .1);
  color: var(--branco);
  border: 1.5px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .18);
  transform: translate3d(0, -2px, 0);
  border-color: var(--branco);
}

/* ===================== HEADER ===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

.header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--cinza-borda);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.header__logo img {
  height: 42px;
  width: auto;
}

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

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

.nav__link {
  font-size: .95rem;
  font-weight: 500;
  color: var(--texto);
  position: relative;
  padding: 4px 0;
  transition: color .28s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--laranja);
  transition: width .28s var(--ease);
}

.nav__link:hover {
  color: var(--azul);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  padding: 11px 22px;
}

.nav__toggle {
  display: none;
  color: var(--azul);
  padding: 6px;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  animation: heroBreathing 18s ease-in-out infinite alternate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 46, 109, .82) 0%, rgba(11, 46, 109, .55) 45%, rgba(11, 46, 109, .25) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: var(--header-h);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(245, 106, 0, .95);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero__title {
  color: var(--branco);
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero__text {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 560px;
  margin-bottom: 36px;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero .container {
  max-width: 1450px;
  padding-inline: 48px;
}

.hero__content {
  max-width: 620px;
}

/* ===================== SECTIONS ===================== */
.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section--alt {
  background: var(--cinza);
}

.section__head {
  max-width: 680px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.section__eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--laranja);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section__subtitle {
  color: var(--texto-sec);
  font-size: 1.08rem;
  text-wrap: pretty;
}

/* ===================== APLICAÇÕES ===================== */
.apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.apps .app-card:nth-child(1),
.apps .app-card:nth-child(2) {
  grid-column: span 3 / span 3;
}

@media (min-width: 900px) {
  .apps .app-card:nth-child(1) {
    grid-column: span 2;
  }

  .apps .app-card:nth-child(2) {
    grid-column: span 1;
  }

  .apps .app-card:nth-child(3),
  .apps .app-card:nth-child(4),
  .apps .app-card:nth-child(5) {
    grid-column: span 1;
  }
}

.app-card {
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.app-card:hover {
  transform: translate3d(0, -10px, 0)scale(1.015);
  box-shadow: 0 26px 52px rgba(11, 46, 109, .12), 0 10px 24px rgba(11, 46, 109, .08);
  border-color: transparent;
}

.app-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--cinza);
}

.app-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
  will-change: transform;
}

.app-card:hover .app-card__media img {
  transform: scale(1.04);
}

.app-card__body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.app-card__title {
  font-size: 1.3rem;
  font-weight: 700;
}

.app-card__text {
  color: var(--texto-sec);
  font-size: .98rem;
  flex: 1;
}

.app-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--azul);
  font-weight: 600;
  font-size: .95rem;
  transition: gap .25s var(--ease), color .25s var(--ease);
}

.app-card__link:hover {
  color: var(--laranja);
  gap: 16px;
}

/* ===================== FEATURES ===================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  will-change: transform;
}

.feature:hover {
  transform: translate3d(0, -8px, 0);
  box-shadow: 0 20px 42px rgba(11, 46, 109, .10), 0 8px 18px rgba(11, 46, 109, .05);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: rgba(11, 46, 109, .07);
  color: var(--azul);
  transition: transform .32s var(--ease), background .32s var(--ease);
  will-change: transform;
}

.feature:hover .feature__icon {
  transform: translate3d(0, -4px, 0)scale(1.08);
}

.feature__title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature__text {
  color: var(--texto-sec);
  font-size: .97rem;
}

/* ===================== SOBRE ===================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.about__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__content .section__eyebrow {
  margin-bottom: 12px;
}

.about__content .section__title {
  margin-bottom: 20px;
}

.about__text {
  color: var(--texto-sec);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.about__content .btn {
  margin-top: 10px;
}

/* ===================== GALERIA ===================== */
.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}

.filter {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--texto-sec);
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  transition: color .28s var(--ease), background .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease);
  will-change: transform;
}

.filter:hover {
  color: var(--azul);
  border-color: var(--azul);
  transform: translate3d(0, -1px, 0);
}

.filter.is-active {
  background: var(--azul);
  color: var(--branco);
  border-color: var(--azul);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery__item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  background: var(--branco);
  cursor: zoom-in;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.gallery__item:hover {
  transform: translate3d(0, -6px, 0) scale(1.02);
  box-shadow: 0 20px 40px rgba(11, 46, 109, .12);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
  will-change: transform;
}

.gallery__item:hover img {
  transform: scale(1.045);
}

.gallery__item.is-hidden {
  display: none;
}

/* ===================== LOCALIZAÇÃO ===================== */
.location {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
}

.location__map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  display: block;
}

.location__info {
  background: var(--azul);
  color: var(--branco);
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location__title {
  color: var(--branco);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.location__line {
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
}

.location__contacts {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.location__contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--branco);
  font-weight: 600;
  transition: color .2s var(--ease);
}

.location__contact:hover {
  color: var(--laranja);
}

.location__cta {
  margin-top: 4px;
}

/* ===================== FAQ ===================== */
.faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq__item {
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow .32s var(--ease), border-color .32s var(--ease), transform .32s var(--ease);
  will-change: transform;
}

.faq__item.is-open {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translate3d(0, -2px, 0);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  text-align: left;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--azul);
}

.faq__chevron {
  flex-shrink: 0;
  color: var(--laranja);
  transition: transform .3s var(--ease);
}

.faq__item.is-open .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}

.faq__answer p {
  padding: 0 26px 24px;
  color: var(--texto-sec);
  font-size: 1rem;
}

.faq__cta {
  text-align: center;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.faq__cta p {
  color: var(--texto-sec);
  font-size: 1.1rem;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--azul);
  color: rgba(255, 255, 255, .85);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr;
  gap: 40px;
}

.footer__logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer__tagline {
  color: rgba(255, 255, 255, .7);
  max-width: 280px;
  font-size: .98rem;
}

.footer__title {
  color: var(--branco);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  color: rgba(255, 255, 255, .75);
  font-size: .96rem;
  transition: color .2s var(--ease);
  width: fit-content;
}

.footer__link:hover {
  color: var(--laranja);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0;
  font-size: .88rem;
  color: rgba(255, 255, 255, .6);
}

.footer__bottom .container {
  text-align: center;
}

/* ===================== WHATSAPP FLOAT ===================== */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--azul);
  color: var(--branco);
  padding: 14px 20px 14px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(11, 46, 109, .35);
  transition: transform .32s var(--ease), background .32s var(--ease), box-shadow .32s var(--ease);
  will-change: transform;
}

.wa-float:hover {
  transform: translate3d(0, -4px, 0);
  background: var(--laranja);
  box-shadow: 0 18px 34px rgba(11, 46, 109, .34);
}

.wa-float__label {
  font-weight: 600;
  font-size: .95rem;
}

/* ===================== REVEAL ANIM ===================== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 38px, 0);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .app-card,
  .feature,
  .gallery__item,
  .btn,
  .app-card img,
  .gallery__item img {
    transition: none !important;
    transform: none !important;
    transform-origin: center;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--branco);
    border-bottom: 1px solid var(--cinza-borda);
    padding: 12px 24px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s var(--ease), opacity .35s var(--ease);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: 15px 4px;
    border-bottom: 1px solid var(--cinza-borda);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-top: 16px;
    width: 100%;
  }

  .nav__toggle {
    display: inline-flex;
  }

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

  .about__media {
    order: -1;
  }

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

  .apps {
    grid-template-columns: repeat(2, 1fr);
  }

  .apps .app-card:nth-child(n) {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    min-height: 88vh;
  }

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

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

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .location__info {
    padding: 32px 26px;
  }

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

  .footer__brand {
    grid-column: auto;
  }

  .wa-float__label {
    display: none;
  }

  .wa-float {
    padding: 15px;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1;
  }
}

/* ===================== MENU ATIVO ===================== */

.nav__link.is-active {
  color: var(--azul);
}

.nav__link.is-active::after {
  width: 100%;
}


/* ===================== LIGHTBOX ===================== */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(3px);
}

.lightbox__dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 1400px);
  height: min(90vh, 900px);
  z-index: 2;
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 60px);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  transform: scale(.96);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  opacity: 1;
}

.lightbox.is-open .lightbox__image {
  transform: scale(1);
}

.lightbox__caption {

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  width: 100%;

  margin-top: 18px;

  color: #fff;

  font-size: .95rem;

}

.lightbox__counter {

  opacity: .75;

  font-size: .85rem;

  white-space: nowrap;

}

.lightbox__caption-text {

  flex: 1;

  text-align: center;

}

.lightbox__close,
.lightbox__prev,
.lightbox__next {

  position: absolute;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  border-radius: 999px;

  background: rgba(255, 255, 255, .12);

  color: #fff;

  backdrop-filter: blur(8px);

  transition:
    background .2s var(--ease),
    transform .2s var(--ease);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, .22);
  transform: scale(1.05);
}

.lightbox__close {
  top: -8px;
  right: -8px;

  font-size: 28px;
  line-height: 1;
}

.lightbox__prev {
  left: -70px;

  font-size: 28px;
}

.lightbox__next {
  right: -70px;

  font-size: 28px;
}

.lightbox__close:focus-visible,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lightbox__image.is-changing {

  opacity: 0;

  transform: scale(.985);

}

@media (max-width: 900px) {

  .lightbox__prev {
    left: 12px;
  }

  .lightbox__next {
    right: 12px;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
  }

  .lightbox__dialog {
    width: 100%;
    height: 100%;
    padding: 20px;
  }

}

@keyframes heroBreathing {

  from {
    scale: 1;
  }

  to {
    scale: 1.018;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero__bg {
    animation: none;
    transform-origin: center;
  }
}