/* ==============================================
   RESET & BASE
   ============================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white:      #FFFFFF;
  --blue-main:  #0B2D78;
  --blue-light: #4392C5;
  --blue-deep:  #071D4F;
  --bg-alt:     #F4F6FA;
  --silver:     #AEB8CC;
  --text:       #071D4F;
  --shadow:     0 4px 24px rgba(11,45,120,0.10);
  --radius:     10px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================================
   TYPOGRAPHY
   ============================================== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn--wpp {
  background: var(--blue-main);
  color: white;
}
.btn--wpp:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.btn--hero {
  background: white;
  color: var(--blue-main);
  font-size: 0.95rem;
  padding: 18px 36px;
  margin-top: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn--hero:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.btn--primary {
  background: var(--blue-main);
  color: white;
}
.btn--primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.btn--wpp-lg {
  background: #25D366;
  color: white;
  font-size: 1rem;
  padding: 20px 44px;
}
.btn--wpp-lg:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.4);
}

.btn--insta {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: white;
  font-size: 0.9rem;
  padding: 14px 28px;
}
.btn--insta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253,29,29,0.25);
}

/* ==============================================
   SECTION HEADER
   ============================================== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-sub {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  margin-top: 0.75rem;
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--blue-light);
  margin: 0 auto;
}

/* ==============================================
   HEADER
   ============================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 29, 79, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(67, 146, 197, 0.12);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(7, 29, 79, 0.99);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

.header__logo {
  flex-shrink: 0;
}

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

.header__nav {
  display: flex;
  gap: 2.25rem;
  margin-left: auto;
}

.header__nav a {
  color: rgba(255,255,255,0.8);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

.header__nav a:hover {
  color: var(--blue-light);
}

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  margin-left: auto;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ==============================================
   HERO
   ============================================== */
.hero {
  background: var(--blue-deep);
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(7, 29, 79, 0.82) 0%,
    rgba(7, 29, 79, 0.60) 55%,
    rgba(7, 29, 79, 0.35) 100%
  );
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  flex: 1;
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.hero__tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.25rem;
}

.hero__title {
  color: white;
}

.hero__sub {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin-top: 1.5rem;
  line-height: 1.75;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: rotate(5deg) translateY(0px); }
  50%       { transform: rotate(5deg) translateY(-14px); }
}

.glass-card {
  width: 240px;
  height: 240px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 4s ease-in-out infinite;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(67,146,197,0.2);
  border-radius: 14px;
  pointer-events: none;
}

.glass-card__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
}

.glass-card__logo {
  width: 150px;
  filter: drop-shadow(0 4px 16px rgba(67,146,197,0.35));
}

.hero__stats {
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 1;
}

.hero__stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3rem;
}

.stat__num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.stat__label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 5px;
  letter-spacing: 0.3px;
  text-align: center;
}

.stat__divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* ==============================================
   SERVIÇOS
   ============================================== */
.servicos {
  padding: 6rem 0 5rem;
  background: var(--white);
}

.servicos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.servico-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid transparent;
  transition: var(--transition);
}

.servico-card:hover {
  border-color: rgba(67,146,197,0.25);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  background: white;
}

.servico-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}

.servico-card h3 {
  margin-bottom: 0.5rem;
  color: var(--blue-deep);
}

.servico-card p {
  font-size: 0.88rem;
  color: #5a6275;
  line-height: 1.65;
}

.servicos__cta {
  text-align: center;
  margin-top: 3rem;
}

/* ==============================================
   GALERIA
   ============================================== */
.galeria {
  padding: 6rem 0;
  background: var(--blue-deep);
}

.galeria .section-tag { color: var(--blue-light); }
.galeria .section-title { color: white; }
.galeria .divider { background: var(--blue-light); }
.galeria .section-sub { color: rgba(255,255,255,0.55); }

/* --- Pares Antes/Depois --- */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 3rem;
}

.before-after__card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.before-after__img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.before-after__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.before-after__img-wrap:hover img {
  transform: scale(1.06);
}

.before-after__img-wrap:hover .galeria__item__overlay {
  opacity: 1;
}

.before-after__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
}

.before-after__label--antes {
  background: rgba(245,200,66,0.12);
}

.before-after__label--depois {
  background: rgba(67,146,197,0.15);
}

.before-after__badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}

.before-after__label--antes .before-after__badge {
  background: rgba(245,200,66,0.25);
  color: #f5c842;
}

.before-after__label--depois .before-after__badge {
  background: rgba(67,146,197,0.3);
  color: #79c9f5;
}

.before-after__num {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* --- CTA "Confira outros projetos" --- */
.galeria__outros-cta {
  text-align: center;
  margin: 2rem 0;
}

/* --- Galeria regular --- */
.galeria__regular-header {
  margin-bottom: 1rem;
}

.galeria__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.galeria__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
}

.galeria__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.galeria__item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7,29,79,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.galeria__item__overlay i {
  color: white;
  font-size: 1.75rem;
}

.galeria__item:hover img {
  transform: scale(1.06);
}

.galeria__item:hover .galeria__item__overlay {
  opacity: 1;
}

.galeria__more {
  text-align: center;
  margin-top: 2.5rem;
}

/* ==============================================
   LIGHTBOX
   ============================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.lightbox__close:hover { opacity: 1; }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,0.18); }

/* ==============================================
   INSTAGRAM
   ============================================== */
.instagram-cta {
  padding: 6rem 0;
  background: var(--bg-alt);
}

.instagram-cta .section-tag { color: var(--blue-light); }
.instagram-cta .section-title { color: var(--blue-deep); }
.instagram-cta .divider { background: var(--blue-light); }

.insta-title {
  text-align: center;
}

.insta-reel-wrap {
  display: flex;
  justify-content: center;
}

.insta-reel-frame {
  width: 400px;
  max-width: 100%;
  height: 620px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(11,45,120,0.15);
}

.insta-reel-frame iframe {
  display: block;
  width: 100%;
  height: 900px;
  border: none;
  /* desloca o iframe pra cima escondendo o header do Instagram (~56px) */
  transform: translateY(-56px);
}

.insta-cta__btn-wrap {
  text-align: center;
  margin-top: 2rem;
}

/* ==============================================
   QUEM SOMOS
   ============================================== */
.quem-somos {
  padding: 6rem 0;
  background: var(--white);
}

.quem-somos__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.quem-somos__img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quem-somos__text .section-tag,
.quem-somos__text .section-title {
  text-align: left;
}

.quem-somos__text .divider {
  margin: 1rem 0;
}

.quem-somos__text p {
  color: #5a6275;
  line-height: 1.8;
  margin-top: 1rem;
}

.quem-somos__text .btn--primary {
  margin-top: 2rem;
}

/* ==============================================
   CTA BANNER
   ============================================== */
.cta-banner {
  background: linear-gradient(140deg, var(--blue-main) 0%, var(--blue-deep) 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(67,146,197,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.cta-banner__secondary {
  margin-top: 1.25rem;
  margin-bottom: 0;
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
}

.cta-banner__secondary a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  transition: color var(--transition);
}

.cta-banner__secondary a:hover {
  color: white;
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background: var(--blue-deep);
  padding-top: 4.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__brand img {
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

.footer__links h4,
.footer__contact h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.25rem;
}

.footer__links a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: white; }

.footer__contact a,
.footer__contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
  line-height: 1.5;
}
.footer__contact a:hover { color: white; }

.footer__contact i {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue-light);
}

.footer__bottom {
  padding: 1.5rem 0;
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
}

.footer__dev {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__dev a {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__dev a:hover {
  color: rgba(255,255,255,0.7);
}

.footer__dev-cta {
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 20px;
  padding: 4px 12px !important;
  font-size: 0.75rem !important;
  white-space: nowrap;
}

/* ==============================================
   FLOATING WHATSAPP
   ============================================== */
.wpp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 998;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.wpp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(37,211,102,0.58);
}

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

  .hero__inner {
    gap: 2.5rem;
  }

  .glass-card {
    width: 200px;
    height: 200px;
  }

  .stat { padding: 0 2rem; }
}

/* ==============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================== */
@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(7,29,79,0.98);
    flex-direction: column;
    padding: 1.5rem 24px 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
  }

  .header__nav.open {
    display: flex;
  }

  .header__nav a {
    font-size: 1rem;
  }

  .header__toggle {
    display: flex;
  }

  .header__inner .btn--wpp {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__visual {
    display: none;
  }

  .hero__sub br {
    display: none;
  }

  .hero__stats-inner {
    flex-wrap: wrap;
    gap: 1.5rem 0;
    padding: 1.75rem 24px;
  }

  .stat { padding: 0.5rem 1.25rem; }

  .stat__divider { display: none; }

  .servicos {
    padding: 5rem 0 4rem;
  }

  .servicos__cta {
    display: flex;
    justify-content: center;
  }

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

  .quem-somos__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .quem-somos__img img {
    height: 320px;
  }

  .quem-somos__text .section-tag,
  .quem-somos__text .section-title {
    text-align: center;
  }

  .quem-somos__text .divider {
    margin: 1rem auto;
  }

  .quem-somos__text .btn--primary {
    display: flex;
    width: 100%;
    justify-content: center;
  }

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

  .cta-banner {
    padding: 5rem 0;
  }
}

/* ==============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================== */
@media (max-width: 480px) {
  .stat__num {
    font-size: 1.5rem;
  }

  .hero__stats-inner {
    justify-content: space-around;
  }

  .btn--hero {
    width: 100%;
    justify-content: center;
  }

  .btn--wpp-lg {
    width: 100%;
    justify-content: center;
  }

  .before-after {
    gap: 8px;
  }

  .before-after__label {
    padding: 7px 10px;
  }

  .before-after__num {
    display: none;
  }
}
