:root {
  --beige: #E1DBC9;
  --slate: #6B7B84;
  --brown: #5E4B3B;
  --pine: #2D4530;
  --charcoal: #3C3C3C;
  --beige-light: #F0EDE4;
  --beige-dark: #CEC8B5;
  --pine-light: #3d5c42;
  --brown-light: #7a6250;
  --white: #faf9f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s, -webkit-backdrop-filter 0.4s;
}

nav.scrolled {
  background: rgba(250, 249, 246, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(93, 75, 59, 0.12);
}

.nav-logo svg {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E1DBC9;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.4s;
}

nav.scrolled .nav-links a {
  color: var(--charcoal);
  opacity: 0.75;
}

.nav-social {
  display: flex;
  align-items: center;
  color: #E1DBC9;
  transition: color 0.4s, opacity 0.2s;
  opacity: 0.85;
}

nav.scrolled .nav-social {
  color: var(--charcoal);
  opacity: 0.75;
}

.nav-social:hover {
  opacity: 1;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  background: var(--slate);
  color: var(--beige-light) !important;
  opacity: 1 !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: #5a6971;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 123, 132, 0.25);
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--pine);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  mix-blend-mode: normal;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 4rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2rem;
}

.hero-badges {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.1s;
}

.badge {
  background: rgba(225, 219, 201, 0.12);
  border: 1px solid rgba(225, 219, 201, 0.25);
  color: var(--beige);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  font-weight: 400;
}

.hero-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--beige-light);
  margin-bottom: 1.8rem;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.2s;
}

.hero-headline em {
  font-style: italic;
  color: var(--beige-dark);
}

.hero-desc {
  /*  margin: 0 auto 2.8rem;*/
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(225, 219, 201, 0.7);
  max-width: 520px;
  margin-bottom: 2.8rem;
  font-weight: 300;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.35s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.5s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--beige);
  color: var(--pine);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border-radius: 2px;
  text-decoration: none;
  text-align: center;
  transition: background 0.25s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--beige-light);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid rgba(225, 219, 201, 0.4);
  color: var(--beige);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.btn-ghost:hover {
  border-color: rgba(225, 219, 201, 0.8);
  background: rgba(225, 219, 201, 0.06);
}

/* Hero right: decorative */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  animation: fadeIn 1.2s ease both;
  animation-delay: 0.5s;
}

.hero-ring-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
}

.hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(225, 219, 201, 0.18);
  animation: slowSpin 30s linear infinite;
}

.hero-ring:nth-child(2) {
  inset: 24px;
  border-color: rgba(225, 219, 201, 0.1);
  animation-direction: reverse;
  animation-duration: 20s;
}

.hero-ring:nth-child(3) {
  inset: 54px;
  border-color: rgba(225, 219, 201, 0.08);
  animation-duration: 40s;
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-ring-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--beige);
  transform: translateX(-50%) translateY(-3px);
  opacity: 0.6;
}

.hero-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px;
}

.hero-center-num {
  font-family: 'Inter', sans-serif;
  font-size: 4.5rem;
  font-weight: 300;
  color: var(--beige);
  line-height: 1;
}

.hero-center-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(225, 219, 201, 0.55);
  margin-top: 0.4rem;
}

.hero-center-divider {
  width: 30px;
  height: 1px;
  background: rgba(225, 219, 201, 0.3);
  margin: 1rem auto;
}

/* ── SECTION BASE ── */
section {
  padding: 7rem 4rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--pine);
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
}

.section-title em {
  font-style: italic;
  color: var(--pine);
}

/* ── SEÇÃO INSTITUCIONAL UNIFICADA ── */
.institucional-unified {
  background-color: var(--beige-light);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.topo-lines {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 50%;
  height: 120%;
  background-image: url('../gallery/topo.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
  transition: transform 0.1s ease-out;
  will-change: transform;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%);
  mask-image: linear-gradient(to right, transparent, black 15%);
}

.topo-lines-secondary {
  position: absolute;
  top: -15%;
  left: 55%;
  width: 45%;
  height: 130%;
  background-image: url('../gallery/topo.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.1;
  transition: transform 0.1s ease-out;
  will-change: transform;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%);
  mask-image: linear-gradient(to right, transparent, black 10%);
}

/* ── QUEM SOMOS ── */
#quem-somos {
  background: transparent;
  padding-bottom: 0;
  position: relative;
  z-index: 2;
}

.about-logo-video {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  border-radius: 4px;
}

#quem-somos .container {
  padding-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #555;
  font-weight: 300;
  margin-top: 2rem;
}

.about-visual {
  position: relative;
}

.about-card {
  background: var(--pine);
  color: var(--beige);
  padding: 3rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(225, 219, 201, 0.06);
}

.about-card::after {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(225, 219, 201, 0.04);
}

.about-stat {
  margin-bottom: 2.5rem;
}

.about-stat:last-child {
  margin-bottom: 0;
}

.about-stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--beige);
  line-height: 1;
}

.about-stat-label {
  font-size: 0.8rem;
  color: rgba(225, 219, 201, 0.6);
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
  font-weight: 300;
}

.about-stat-divider {
  width: 100%;
  height: 1px;
  background: rgba(225, 219, 201, 0.15);
  margin: 1.5rem 0;
}

/* ── LIDER ── */
#lider {
  background: transparent;
  padding-top: 4rem;
  position: relative;
  z-index: 2;
}

.leader-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  grid-template-areas:
    "info photo"
    "link photo";
  gap: 0 6.5rem;
  align-items: center;
}

.leader-photo-frame {
  grid-area: photo;
  position: relative;
}

.leader-info {
  grid-area: info;
  align-self: end;
  padding-bottom: 0.5rem;
}

.linkedin-btn {
  grid-area: link;
  align-self: start;
  justify-self: start;
  margin-top: 0 !important;
}

.leader-photo-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
}

.leader-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* overlay com degradê */
.leader-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;

  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0.3),
      transparent);
}


/*.leader-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--pine) 0%, var(--pine-light) 50%, var(--slate) 100%);
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
*/
.leader-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(225, 219, 201, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(93, 75, 59, 0.3) 0%, transparent 50%);
}

.leader-overlay-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(225, 219, 201, 0.7);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.leader-photo-name {
  position: relative;
  z-index: 1;
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  color: var(--beige);
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
}

.leader-accent-line {
  position: absolute;
  left: -20px;
  top: 40px;
  width: 3px;
  height: 80px;
  background: var(--brown);
  border-radius: 2px;
}

.leader-info {
  padding-left: 0;
}

.leader-name {
  font-family: 'Inter', sans-serif;
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.15;
  margin: 1.5rem 0 0.5rem;
}

.leader-title {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 2rem;
  font-weight: 400;
}

.leader-bio p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #555;
  font-weight: 300;
  margin-top: 2rem;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #6B7B84;
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 2rem;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
}

.linkedin-btn:hover {
  background: #5a6971;
  transform: translateY(-2px);
}

.linkedin-btn:hover {
  background: #556875;
}

/* ── SOLUÇÕES ── */
#solucoes {
  background: #5E4B3B;
}

#solucoes .section-label {
  color: var(--beige-dark);
}

#solucoes .section-label::before {
  background: var(--beige-dark);
}

#solucoes .section-title {
  color: var(--beige-light);
}

#solucoes .section-title em {
  color: var(--beige-dark);
}

.solucoes-intro {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(225, 219, 201, 0.55);
  max-width: 680px;
  font-weight: 300;
  margin: 1.5rem 0 4rem;
}

.solucoes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: rgba(225, 219, 201, 0.08);
}

.solucao-card {
  background: rgba(0, 0, 0, 0.2);
  padding: 3rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: default;
}

.solucao-card:hover {
  background: rgba(0, 0, 0, 0.35);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.solucao-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--pine-light);
  transition: height 0.4s ease;
}

.solucao-card:hover::before {
  height: 100%;
}

.solucao-num {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(225, 219, 201, 0.08);
  position: absolute;
  top: 1rem;
  right: 2rem;
  line-height: 1;
}

.solucao-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.solucao-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--beige);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.solucao-desc {
  font-size: 0.82rem;
  color: rgba(225, 219, 201, 0.45);
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.solucao-toggle {
  background: transparent;
  border: 1px solid rgba(225, 219, 201, 0.3);
  color: var(--beige-dark);
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.solucao-toggle:hover {
  background: rgba(225, 219, 201, 0.05);
  border-color: var(--beige);
  color: var(--beige);
}

.solucao-toggle .toggle-icon {
  font-size: 1.1rem;
  font-weight: 300;
  transition: transform 0.3s;
}

.solucao-card.open .solucao-toggle {
  background: rgba(225, 219, 201, 0.1);
  border-color: var(--beige);
  color: var(--beige);
}

.solucao-card.open .toggle-icon {
  transform: rotate(45deg);
}

.solucao-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.4s;
  opacity: 0;
}

.solucao-card.open .solucao-list {
  max-height: 600px;
  margin-top: 2rem;
  opacity: 1;
}

.solucao-list li {
  font-size: 0.82rem;
  color: var(--white);
  font-weight: 300;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(225, 219, 201, 0.08);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.solucao-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pine-light);
  flex-shrink: 0;
}

/* ── PROVA SOCIAL ── */
#prova-social {
  background: var(--beige);
}

.stats-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 5rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--pine);
  line-height: 1.1;
  line-height: 1;
}

.stat-desc {
  font-size: 0.88rem;
  color: var(--brown);
  font-weight: 400;
  margin-top: 0.6rem;
  line-height: 1.5;
}

.stats-divider {
  width: 100%;
  height: 1px;
  background: rgba(45, 69, 48, 0.15);
  margin-bottom: 3.5rem;
}

.stats-tagline {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  color: var(--charcoal);
  max-width: 700px;
  margin: 0 auto 3.5rem;
  line-height: 1.5;
}

.clients-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-light);
  text-align: center;
  margin-bottom: 1.5rem;
}

.clients-track {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  position: relative;
}

.clients-track::before,
.clients-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 1;
}

.clients-track::before {
  left: 0;
  background: linear-gradient(to right, var(--beige), transparent);
}

.clients-track::after {
  right: 0;
  background: linear-gradient(to left, var(--beige), transparent);
}

.clients-inner {
  display: flex;
  width: max-content;
  animation: scrollClients 80s linear infinite;
  will-change: transform;
  /* Safari Rendering Fixes */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

@keyframes scrollClients {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.client-chip {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(45, 69, 48, 0.12);
  border-radius: 100px;
  padding: 0.55rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── CASES ── */
#cases {
  background: var(--white);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.case-card {
  position: relative;
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 3rem 2.5rem;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
  border: none;
  cursor: pointer;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, 
    rgba(0, 15, 10, 0.98) 0%, 
    rgba(0, 15, 10, 0.85) 40%, 
    rgba(0, 15, 10, 0.4) 100%
  );
  z-index: 1;
}

.case-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--beige-light);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.case-title {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.case-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(225, 219, 201, 0.8);
  text-transform: uppercase;
  margin-bottom: 2.2rem;
}

.case-client {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.8rem;
}

.case-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #fff;
  font-weight: 300;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* ── FAQ ── */
#faq {
  background: var(--beige-light);
}

.faq-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 6rem;
  align-items: start;
}

.faq-sidebar {
  top: 7rem;
}

.faq-sidebar p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #666;
  font-weight: 300;
  margin-top: 1.5rem;
}

.faq-items {
  margin-top: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid rgba(45, 69, 48, 0.12);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--pine);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(45, 69, 48, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  font-size: 1rem;
  color: var(--pine);
}

.faq-item.open .faq-toggle {
  background: var(--pine);
  border-color: var(--pine);
  color: white;
}

.faq-answer {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #666;
  font-weight: 300;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding-bottom 0.3s;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

/* ── CTA FINAL ── */
#contato {
  background: linear-gradient(rgba(45, 69, 48, 0.85), rgba(45, 69, 48, 0.85)), url('../gallery/cta-bg.webp') center/cover no-repeat fixed;
  padding: 7rem 4rem;
}

.cta-grid {
  display: grid;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-left .section-label {
  color: var(--beige-dark);
}

.cta-left .section-label::before {
  background: var(--beige-dark);
}

.cta-left .section-title {
  color: var(--beige-light);
}

.cta-left .section-title em {
  color: var(--beige-dark);
}

.cta-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(225, 219, 201, 0.6);
  font-weight: 300;
  margin: 1.8rem 0 2.5rem;
}

.cta-btns {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cta-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(225, 219, 201, 0.15);
  border-radius: 4px;
  padding: 2.5rem;
}

.form-row {
  display: grid;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(225, 219, 201, 0.5);
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(225, 219, 201, 0.15);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--beige);
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(225, 219, 201, 0.25);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(225, 219, 201, 0.45);
}

.form-field select option {
  background: #5E4B3B;
  color: var(--beige);
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.form-submit {
  width: 100%;
  background: var(--beige);
  color: var(--pine);
  border: none;
  padding: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--beige-light);
}

.form-privacy {
  font-size: 0.72rem;
  color: rgba(225, 219, 201, 0.3);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.6;
}

.form-privacy a {
  color: rgba(225, 219, 201, 0.5);
  text-decoration: underline;
}

/* ── FOOTER ── */
footer {
  background: #1a1a1a;
  padding: 3rem 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-logo svg {
  height: 28px;
  filter: brightness(0) invert(0.8);
}

.footer-social {
  display: flex;
  gap: 1.2rem;
}

.footer-social a {
  color: var(--beige);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--white);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.6;
  font-weight: 300;
}

.footer-contact {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: right;
  line-height: 1.6;
  font-weight: 300;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: var(--slate);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(107, 123, 132, 0.35);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  animation: floatBounce 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.1);
  background: #5a6971;
  box-shadow: 0 12px 32px rgba(107, 123, 132, 0.5);
}

@keyframes floatBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .cases-grid, .stats-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  nav {
    padding: 1.2rem 1.5rem;
  }

  .nav-cta {
    padding: 0.5rem 1rem !important;
    font-size: 0.72rem !important;
  }

  .nav-toggle {
    display: block !important;
    color: #E1DBC9;
  }

  nav.scrolled .nav-toggle {
    color: var(--charcoal);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .nav-links.mobile-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  nav.scrolled .nav-links {
    background: rgba(250, 249, 246, 0.98);
  }

  nav .nav-links a {
    color: #E1DBC9;
    font-size: 1.1rem;
  }

  nav.scrolled .nav-links a {
    color: var(--charcoal);
  }

  nav .nav-social {
    color: #E1DBC9;
  }

  nav.scrolled .nav-social {
    color: var(--charcoal);
  }

  .nav-cta {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.72rem !important;
  }

  section {
    padding: 5rem 1.5rem;
  }

  #hero .hero-content {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem 4rem;
  }

  .hero-visual {
    display: none;
  }

  .about-grid,
  .leader-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    grid-template-areas: none;
  }

  .leader-info,
  .leader-photo-frame,
  .linkedin-btn {
    grid-area: auto;
  }

  .linkedin-btn {
    margin-top: 1rem !important;
    width: fit-content;
  }

  .solucoes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 2rem 1.5rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact {
    text-align: center;
  }

  .topo-lines {
    height: 120%;
    width: 140%;
    top: -5%;
    left: -20%;
    mask-image: none;
    -webkit-mask-image: none;
    background-size: cover;
  }
}

/* ── SMALL TABLET & MOBILE ── */
@media (max-width: 768px) {
  .solucoes-grid,
  .cases-grid,
  .stats-top,
  .stats-bottom {
    grid-template-columns: 1fr !important;
  }

  section {
    padding: 4rem 1.2rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.8;
}

.client-logo {
  height: 120px;
  width: 180px; /* Largura fixa para garantir cálculo matemático perfeito do loop */
  object-fit: contain;
  transition: all 0.3s;
  margin: 0 1.5rem; /* Espaçamento total de 3rem entre logos */
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .client-logo {
    height: 100px;
    width: 150px;
    margin: 0 1rem;
  }
}

.client-logo {
  /* Safari Performance Fix */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.client-logo:hover {
  filter: brightness(0.8) opacity(0.8);
}

.cta-btns {
  align-items: center;
}

.cta-btns a {
  justify-content: center;
  width: 100%;
  max-width: 320px;
}

.hero-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  text-align: left;
  width: 100%;
}

.leader-photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.leader-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  padding: 1.5rem;
  text-align: left;
  z-index: 2;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }

  #contato {
    background-attachment: scroll;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .faq-sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .nav-logo img {
    height: 32px !important;
  }

  .nav-right-group {
    gap: 0.6rem !important;
  }

  .nav-cta {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.65rem !important;
  }

  nav {
    padding: 1rem 1.2rem !important;
  }

  .hero-badges {
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .badge {
    font-size: 0.62rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (max-width: 900px) {

  /* Fix horizontal overflow on hero elements */
  body,
  html {
    overflow-x: hidden;
  }

  .hero-headline {
    font-size: 2.2rem !important;
    word-break: break-word;
    line-height: 1.25;
    margin-top: 1rem;
  }

  .hero-actions {
    flex-direction: column !important;
    padding: 0;
    width: 100%;
    gap: 1rem;
    align-items: flex-start;
  }

  .hero-actions a {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center;
    text-align: center;
  }

  .hero-badges {
    gap: 0.6rem !important;
  }

  .badge {
    font-size: 0.65rem !important;
    white-space: normal;
  }
}