/* CHP — Chuengue e Pires | v4 */

:root {
  --navy-950: #0a0f18;
  --navy-900: #0f1623;
  --navy-800: #151d2e;
  --navy-700: #1c2739;
  --gold-500: #e8a820;
  --gold-400: #f0bc3a;
  --gold-300: #f5cc5c;
  --whatsapp: #25d366;
  --whatsapp-hover: #20bd5a;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #eef1f5;
  --gray-300: #a8b2c1;
  --gray-500: #6b7789;
  --font-display: "League Spartan", sans-serif;
  --font-body: "Roboto", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 5rem;
  --container-max: 1120px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy-900);
  background: var(--white);
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(var(--container-max), 100%);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px))
    max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.section-desc {
  margin-top: 1rem;
  max-width: min(52ch, 100%);
  color: var(--gray-500);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-950);
  box-shadow: 0 4px 24px rgba(232, 168, 32, 0.35);
}

.btn-primary:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 168, 32, 0.45);
}

.btn-gold {
  background: #ebb02d;
  color: #000000;
  border-radius: 0;
  padding: 1rem 2.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 24px rgba(235, 176, 45, 0.45);
}

.btn-gold:hover {
  background: #f0bc3a;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(235, 176, 45, 0.55);
}

.btn-primary--wa {
  position: relative;
  isolation: isolate;
  background: var(--whatsapp);
  color: var(--white);
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35);
  animation: btn-primary-pulse 2s var(--ease-out) infinite;
}

.btn-primary--wa::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--whatsapp);
  z-index: -1;
  animation: btn-primary-pulse-ring 2s var(--ease-out) infinite;
}

.btn-primary--wa svg {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
  fill: var(--white);
}

.btn-primary--wa:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
  animation-play-state: paused;
}

.btn-primary--wa:hover::before {
  animation-play-state: paused;
}

@keyframes btn-primary-pulse {
  0%,
  100% {
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35);
  }

  50% {
    box-shadow: 0 4px 36px rgba(37, 211, 102, 0.6);
  }
}

@keyframes btn-primary-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  70%,
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.btn-wa {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-wa svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: currentColor;
}

.btn-wa:hover {
  background: var(--whatsapp-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp svg {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
  fill: currentColor;
}

.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border: 2px solid rgba(15, 22, 35, 0.2);
}

.btn-outline:hover {
  border-color: var(--gold-500);
  color: var(--gold-500);
  transform: translateY(-2px);
}

/* ── Navegação parcial ── */

body.is-navigating #page-content {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* ── Header ── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 22, 35, 0.08);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(15, 22, 35, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 2.75rem;
  width: auto;
}

.logo__text {
  display: none;
  flex-direction: column;
  line-height: 1.2;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy-900);
}

.logo__tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: color 0.2s;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--navy-900);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--whatsapp);
  color: var(--white) !important;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.nav__cta-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: currentColor;
}

.nav__cta:hover {
  background: var(--whatsapp-hover);
  color: var(--white) !important;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  z-index: 99;
  box-shadow: -8px 0 32px rgba(15, 22, 35, 0.08);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-900);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(15, 22, 35, 0.08);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--gold-500);
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../bg.webp") center / cover no-repeat;
  transform: scale(1) translateZ(0);
  backface-visibility: hidden;
  animation: hero-bg-zoom 40s ease-in-out infinite alternate;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.35) 0%,
      transparent 28%,
      transparent 62%,
      rgba(255, 255, 255, 0.45) 100%
    );
  pointer-events: none;
}

.hero__grid-bg {
  display: none;
}

.hero__glow {
  display: none;
}

@keyframes hero-bg-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg {
    animation: none;
    transform: scale(1);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: calc(var(--header-h) + 3rem) 4rem;
  min-width: 0;
}

.hero__content {
  min-width: 0;
  max-width: min(56rem, 100%);
  width: 100%;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 11vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  text-shadow:
    0 0 32px rgba(255, 255, 255, 0.95),
    0 2px 12px rgba(255, 255, 255, 0.85);
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  color: var(--gold-500);
}

.hero__subtitle {
  margin-top: 1.5rem;
  margin-inline: auto;
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  color: var(--navy-800);
  text-shadow:
    0 0 24px rgba(255, 255, 255, 0.95),
    0 1px 8px rgba(255, 255, 255, 0.8);
  max-width: min(58ch, 100%);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.hero__actions .btn {
  padding: 1.1rem 2.25rem;
  font-size: 0.95rem;
}

.hero__actions .btn-primary--wa {
  font-size: 1.15rem;
}

.hero__actions .btn-primary--wa svg {
  width: 1.45rem;
  height: 1.45rem;
}

.hero__actions .btn-outline {
  background: var(--gold-500);
  color: var(--navy-950);
  border: 2px solid var(--gold-500);
  box-shadow: 0 4px 24px rgba(232, 168, 32, 0.35);
}

.hero__actions .btn-outline:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  color: var(--navy-950);
  box-shadow: 0 8px 32px rgba(232, 168, 32, 0.45);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(15, 22, 35, 0.15);
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--gold-500);
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

.hero__stat-label {
  margin-top: 0.5rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gold-500);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bob 2.5s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--gold-500), transparent);
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── About ── */

.about {
  padding: 6rem 0;
  background: var(--white);
}

.about__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about__content p {
  margin-top: 1.25rem;
  color: var(--gray-500);
}

.about__content p + p {
  margin-top: 1rem;
}

.about__features {
  display: grid;
  gap: 1.25rem;
}

.about__feature {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--gray-100);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 4px 4px 0;
  transition: transform 0.3s var(--ease-out);
}

.about__feature:hover {
  transform: translateX(4px);
}

.about__feature-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 168, 32, 0.12);
  color: var(--gold-500);
  border-radius: 2px;
  font-size: 1.1rem;
}

.about__feature h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
}

.about__feature p {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ── Services ── */

.services {
  padding: 6rem 0;
  background: var(--gray-50);
  position: relative;
}

.services .section-title {
  color: var(--navy-900);
}

.services .section-desc {
  color: var(--gray-500);
}

.services__header {
  position: relative;
  margin-bottom: 3.5rem;
}

.services__grid {
  position: relative;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.service-card {
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(15, 22, 35, 0.08);
  border-radius: 4px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), background 0.3s;
  box-shadow: 0 4px 20px rgba(15, 22, 35, 0.04);
}

.service-card:hover {
  border-color: rgba(232, 168, 32, 0.4);
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(15, 22, 35, 0.08);
}

.service-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-800);
  border-radius: 4px;
  margin-bottom: 1rem;
}

.service-card__thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: var(--navy-800);
  cursor: zoom-in;
  overflow: hidden;
}

.service-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.service-card__thumb-hint {
  position: absolute;
  inset: auto 0 0;
  padding: 0.5rem;
  background: linear-gradient(transparent, rgba(10, 15, 24, 0.75));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.service-card__thumb:hover img,
.service-card:hover .service-card__thumb img {
  transform: scale(1.05);
}

.service-card__thumb:hover .service-card__thumb-hint,
.service-card:hover .service-card__thumb-hint {
  opacity: 1;
  transform: translateY(0);
}

.service-card__media--gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  aspect-ratio: unset;
}

.service-card__media--gallery .service-card__thumb {
  aspect-ratio: 4 / 3;
  height: auto;
}

.service-card__body {
  padding: 2rem;
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(232, 168, 32, 0.2);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.services:not(.is-expanded) .service-card:nth-child(n+7) {
  display: none;
}

.services__more {
  position: relative;
  text-align: center;
  margin-top: 2.5rem;
}

/* ── Portfolio ── */

.portfolio {
  padding: 6rem 0;
  background: var(--white);
}

.portfolio--preview {
  padding-bottom: 5rem;
}

.portfolio--full {
  padding-top: 2rem;
  padding-bottom: 6rem;
}

.portfolio__more {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── Página do portfólio ── */

.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: var(--white);
  position: relative;
  border-bottom: 1px solid rgba(15, 22, 35, 0.08);
}

.page-hero__inner {
  position: relative;
  max-width: 40rem;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-top: 0.25rem;
}

.page-hero__desc {
  margin-top: 1rem;
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 48ch;
}

.page-hero .btn {
  margin-top: 1.75rem;
}

.page-portfolio .nav a.active {
  color: var(--navy-900);
}

.portfolio__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.portfolio__galleries {
  min-height: 12rem;
}

.portfolio__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.portfolio__collection {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--navy-800);
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
}

.portfolio__collection img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.portfolio__collection:hover img,
.portfolio__collection:focus-visible img {
  transform: scale(1.06);
}

.portfolio__collection .portfolio__overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(10, 15, 24, 0.92) 0%, rgba(10, 15, 24, 0.15) 55%);
}

.portfolio__gallery-detail {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.portfolio__gallery-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.portfolio__gallery-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.portfolio__back {
  appearance: none;
  border: 1px solid rgba(15, 22, 35, 0.12);
  background: var(--white);
  color: var(--navy-900);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.portfolio__back:hover,
.portfolio__back:focus-visible {
  border-color: var(--gold-500);
  color: var(--gold-600);
}

.portfolio__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--navy-800);
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
}

.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.portfolio__item:hover img {
  transform: scale(1.06);
}

.portfolio__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 24, 0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.35s;
}

.portfolio__item:hover .portfolio__overlay,
.portfolio__item:focus-visible .portfolio__overlay {
  opacity: 1;
}

.portfolio__overlay h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  text-transform: capitalize;
}

.portfolio__overlay span {
  font-size: 0.78rem;
  color: var(--gold-400);
  margin-top: 0.25rem;
}

.portfolio__loading,
.portfolio__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
  font-size: 1rem;
}

.portfolio__loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--gray-100);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Lightbox ── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 15, 24, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: min(900px, 100%);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox__close:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}

.lightbox__caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  text-align: center;
}

/* ── WhatsApp float ── */

.whatsapp-float {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 150;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  isolation: isolate;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  animation: whatsapp-pulse-shadow 2s var(--ease-out) infinite;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: whatsapp-pulse-ring 2s var(--ease-out) infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  animation-play-state: paused;
}

.whatsapp-float:hover::before {
  animation-play-state: paused;
}

.whatsapp-float svg {
  position: relative;
  z-index: 1;
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}

@keyframes whatsapp-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }

  70%,
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

@keyframes whatsapp-pulse-shadow {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  }

  50% {
    box-shadow: 0 4px 28px rgba(37, 211, 102, 0.65);
  }
}

/* ── Contact ── */

.contact {
  padding: 6rem 0;
  background: var(--white);
}

.contact__grid {
  display: grid;
  gap: 3rem;
}

.contact__info {
  display: grid;
  gap: 1.25rem;
}

.contact__card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border: 1px solid rgba(15, 22, 35, 0.08);
  border-radius: 4px;
  color: var(--navy-900);
  transition: transform 0.3s var(--ease-out);
}

.contact__card:hover {
  transform: translateY(-2px);
}

.contact__card-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 168, 32, 0.15);
  color: var(--gold-500);
  border-radius: 2px;
  font-size: 1.2rem;
}

.contact__card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact__card h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.35rem;
}

.contact__card a,
.contact__card p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

.contact__card a:hover {
  color: var(--gold-400);
}

.contact__directions {
  display: inline-block;
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.contact__directions:hover {
  color: var(--gold-400);
}

.contact__form-wrap {
  padding: 2rem;
  background: var(--gray-100);
  border-radius: 4px;
  border-top: 3px solid var(--gold-500);
}

.contact__map {
  margin-top: 3rem;
  border-radius: 4px;
  overflow: hidden;
  border-top: 3px solid var(--gold-500);
  box-shadow: 0 4px 24px rgba(10, 15, 24, 0.08);
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

@media (min-width: 768px) {
  .contact__map iframe {
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .contact__map iframe {
    height: 450px;
  }
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(232, 168, 32, 0.15);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.form-alert--error {
  background: #fdecea;
  color: #7f1d1d;
  border-left: 3px solid #dc2626;
}

/* ── Footer ── */

.footer {
  padding: 3rem 0 1.5rem;
  background: var(--white);
  border-top: 1px solid rgba(15, 22, 35, 0.1);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.footer__logo img {
  height: 3rem;
  margin-inline: auto;
}

.footer__logo p {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  letter-spacing: 0.06em;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: color 0.2s;
}

.footer__links-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.footer__links a:hover {
  color: var(--gold-500);
}

.footer__copy {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 22, 35, 0.08);
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer__copy p {
  margin: 0;
}

.footer__legal {
  margin-bottom: 0.5rem;
}

/* ── Stats (Desempenho) ── */

.stats {
  padding: 6rem 0;
  background: var(--gray-50);
  position: relative;
}

.stats .section-title {
  color: var(--navy-900);
}

.stats .section-desc {
  color: var(--gray-500);
}

.stats__header {
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}

.stats__header .section-desc {
  margin-inline: auto;
}

.stats__grid {
  position: relative;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.stat-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid rgba(15, 22, 35, 0.08);
  border-radius: 4px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(15, 22, 35, 0.04);
}

.stat-card:hover {
  border-color: rgba(232, 168, 32, 0.4);
  transform: translateY(-4px);
}

.stat-card__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--gold-500);
  line-height: 1;
}

.stat-card__label {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.stat-card p {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── Team ── */

.team {
  padding: 6rem 0;
  background: var(--white);
}

.team__header {
  margin-bottom: 3rem;
  text-align: center;
}

.team__header .section-desc {
  margin-inline: auto;
}

.team__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.team-card {
  padding: 2rem;
  background: var(--gray-100);
  border-radius: 4px;
  border-top: 3px solid var(--gold-500);
  text-align: center;
  transition: transform 0.3s var(--ease-out);
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-card__avatar {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 168, 32, 0.12);
  color: var(--gold-500);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
}

.team-card__role {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--gold-500);
  font-weight: 500;
}

.team-card p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ── Avaliações (carrossel) ── */

.reviews {
  padding: 6rem 0;
  background: var(--gray-50);
  overflow: hidden;
}

.reviews__header {
  margin-bottom: 3rem;
  text-align: center;
}

.reviews__header .section-desc {
  margin-inline: auto;
}

.reviews__carousel {
  position: relative;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.reviews__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
  animation: reviews-scroll 80s linear infinite;
}

.reviews__carousel:hover .reviews__track,
.reviews__carousel:focus-within .reviews__track {
  animation-play-state: paused;
}

@keyframes reviews-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.review-card {
  flex: 0 0 min(22rem, 85vw);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(21, 29, 46, 0.06);
  box-shadow: 0 8px 32px rgba(10, 15, 24, 0.06);
}

.review-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.review-card__avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(232, 168, 32, 0.15);
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.review-card__author {
  flex: 1;
  min-width: 0;
}

.review-card__name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.3;
}

.review-card__meta {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.35;
}

.review-card__source {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.85;
}

.review-card__source svg {
  width: 100%;
  height: 100%;
  display: block;
}

.review-card__rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.review-card__stars {
  display: inline-flex;
  gap: 0.1rem;
}

.review-card__star {
  width: 1rem;
  height: 1rem;
  fill: #fbbc04;
}

.review-card__date {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.review-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--navy-800);
}

.review-card__text p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.reviews__footnote {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.reviews__footnote a {
  color: var(--navy-900);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.reviews__footnote a:hover {
  color: var(--gold-500);
}

/* ── About page ── */

.about-page {
  padding: 5rem 0;
  background: var(--white);
}

.about-page--dark {
  background: var(--gray-50);
}

.about-page--dark .section-title {
  color: var(--navy-900);
}

.about-page--dark .about-page__timeline p {
  color: var(--gray-500);
}

.about-page--gray {
  background: var(--gray-100);
}

.about-page__intro {
  max-width: 48rem;
}

.about-page__text p {
  margin-top: 1.25rem;
  color: var(--gray-500);
}

.about-page__timeline p {
  margin-top: 1.25rem;
  color: var(--gray-500);
}

.about-page__timeline p:first-child {
  margin-top: 0;
}

.about-page__mv-grid {
  display: grid;
  gap: 2rem;
}

.about-page__card {
  padding: 2.5rem;
  background: var(--gray-100);
  border-radius: 4px;
  border-left: 4px solid var(--gold-500);
}

.about-page__card p {
  margin-top: 1rem;
  color: var(--gray-500);
}

.about-page__quote {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(232, 168, 32, 0.3);
  border-left: 4px solid var(--gold-500);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  font-style: normal;
  line-height: 1.5;
}

.about-page__values-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.about-page__values-header .section-desc {
  margin-inline: auto;
}

.about-page__values-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.about-page__value {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 4px;
  border-bottom: 3px solid var(--gold-500);
}

.about-page__value h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
}

.about-page__value p {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--gray-500);
}

.about-page--cta {
  background: var(--gray-50);
  text-align: center;
  border-top: 1px solid rgba(15, 22, 35, 0.08);
}

.about-page__cta .section-title {
  color: var(--navy-900);
}

.about-page__cta p {
  margin-top: 1rem;
  color: var(--gray-500);
}

.about-page__cta .btn {
  margin-top: 2rem;
}

.page-about .nav a.active {
  color: var(--navy-900);
}

/* ── Reveal animations ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ── */

@media (max-width: 767px) {
  .header__inner {
    display: grid;
    grid-template-columns: 2.5rem 1fr 2.5rem;
    align-items: center;
  }

  .logo {
    grid-column: 2;
    justify-self: center;
    justify-content: center;
  }

  .logo__text {
    display: flex;
  }

  .menu-toggle {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 639px) {
  .hero__inner {
    gap: 2rem;
    padding-block: calc(var(--header-h) + 2rem) 3rem;
  }

  .hero__subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  }

  .hero__stat-num {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .hero__stat-label {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__scroll {
    display: none;
  }

  .section-title {
    overflow-wrap: break-word;
  }

  .page-hero__title {
    overflow-wrap: break-word;
  }

  .about,
  .services,
  .portfolio,
  .contact,
  .stats,
  .team,
  .reviews,
  .about-page {
    padding-block: 4rem;
  }
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-page__values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo__text {
    display: flex;
  }

  .hero__title {
    font-size: clamp(3.5rem, 7vw, 5rem);
    line-height: 1.08;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-page__mv-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .portfolio__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer__logo img {
    margin-inline: 0;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: clamp(4.25rem, 5.5vw, 7rem);
    line-height: 1.05;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-page__values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reviews__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    max-width: var(--container-max);
    margin-inline: auto;
    justify-content: center;
    padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
  }

  .reviews__carousel {
    mask-image: none;
    -webkit-mask-image: none;
  }
}
