/* ================================================================
   MCA Montañola — Design System
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hind:wght@400;600;700&display=swap');

:root {
  --navy:      #0A0A0A;
  --navy2:     #141414;
  --teal:      #5BAF9B;
  --teal-dark: #3D8C7A;
  --white:     #ffffff;
  --off:       #F8F9FB;
  --gray:      #f0f1f4;
  --text:      #1A1A2E;
  --muted:     #555;
  --muted2:    #888;
  --border:    #E0DDD8;
  --font:      'Hind', -apple-system, sans-serif;
  --header-h:  68px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  /* overflow-x: hidden quebraria position:fixed no iOS Safari — usar clip */
  overflow-x: clip;
  overscroll-behavior-x: none;
  /* Impede pan horizontal por toque — evita que iOS desloque a página lateralmente */
  touch-action: pan-y;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font); font-weight: 700; line-height: 1.1; color: var(--navy); }
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4 { color: var(--text); }
p { line-height: 1.75; color: var(--muted); }

/* ── Layout helpers ─────────────────────────────────────────────── */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 48px; }
.section { width: 100%; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: opacity .2s, border-color .2s, color .2s;
  line-height: 1;
}
.btn-teal  { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-teal:hover { opacity: .85; }
.btn-navy  { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { opacity: .85; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; }
.btn-ghost-dk { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost-dk:hover { border-color: var(--navy); }

/* ── Header ─────────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--navy);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  /* gray text in original logo is ~#888; brighten slightly so it reads on #0A0A0A */
  filter: brightness(1.35);
}

nav.main-nav { display: flex; align-items: center; gap: 32px; }
nav.main-nav a {
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
}
nav.main-nav a:hover,
nav.main-nav a.active { color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.header-icon-link {
  display: flex;
  align-items: center;
  color: var(--teal);
  transition: color .2s;
  line-height: 0;
}
.header-icon-link:hover { color: #fff; }
.header-icon-link svg { width: 18px; height: 18px; display: block; }

.toggle-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.75);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .2s;
  line-height: 1.4;
}
.toggle-btn:hover { border-color: var(--teal); color: var(--teal); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.8);
  transition: all .3s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--navy);
  padding: 24px 24px 32px;
  flex-direction: column;
  gap: 0;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--teal); }
.mobile-nav .mobile-toggles { display: flex; gap: 8px; padding-top: 20px; }

/* Page offset for fixed header */
.page-body { padding-top: var(--header-h); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  background: var(--navy);
}
/* imagem de fundo */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg .hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: grayscale(100%);
  display: block;
}
/* overlay escuro para legibilidade do texto */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(10,10,10,.82) 0%,
    rgba(10,10,10,.60) 55%,
    rgba(10,10,10,.30) 100%
  );
}
/* conteúdo acima do overlay */
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: var(--teal);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: 18px;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hero h2 {
  color: rgba(255,255,255,.9);
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.5;
  letter-spacing: .01em;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.hero p {
  color: rgba(255,255,255,.55);
  font-size: clamp(.95rem, 1.6vw, 1.2rem);
  max-width: 600px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* ── Split sections ─────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.split-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
}
.photo-col {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

/* ── 3-col dark service blocks ──────────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.svc-block { padding: 64px 48px; }
.svc-block h2 {
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 18px;
}
.svc-block p {
  font-size: .9rem;
  line-height: 1.8;
}

/* ── Stats bar ──────────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: 80px 0;
}
.stats-heading {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 300;
  line-height: 1.35;
  text-align: center;
  margin-bottom: 52px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stat-item {
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-icon {
  width: 44px;
  height: 44px;
  color: var(--teal);
  margin-bottom: 16px;
  opacity: .85;
}
.stat-num {
  color: var(--teal);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}
.stat-label {
  color: rgba(255,255,255,.45);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ── Testimonials ───────────────────────────────────────────────── */
.testimonials { background: var(--gray); padding: 80px 0; }
.testimonials h2 { text-align: center; font-size: clamp(1.4rem,2.2vw,1.9rem); margin-bottom: 52px; }
.carousel-wrap { position: relative; overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform .5s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  padding: 0 56px;
}

/* ── Testimonial card ───────────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  padding: 48px 52px;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--teal);
  box-shadow: 0 6px 32px rgba(0,0,0,.08);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -18px;
  left: 36px;
  font-size: 10rem;
  line-height: 1;
  color: var(--teal);
  opacity: .10;
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}
.testimonial-stars {
  color: #F5A623;
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  color: var(--text);
  font-size: .98rem;
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 32px;
  position: relative;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.author-info strong {
  display: block;
  color: var(--navy);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
html.dark .author-info strong { color: var(--text); }
.author-info span {
  color: var(--teal);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Carousel dots ──────────────────────────────────────────────── */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  padding-bottom: 4px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--teal);
  opacity: .3;
  cursor: pointer;
  padding: 0;
  transition: opacity .3s, transform .3s;
}
.carousel-dot.active {
  opacity: 1;
  transform: scale(1.35);
}

/* ── Carousel buttons ───────────────────────────────────────────── */
.carousel-btn {
  position: absolute;
  top: 42%; transform: translateY(-50%);
  background: none; border: none;
  color: var(--teal); font-size: 2.2rem;
  cursor: pointer; padding: 0 8px; z-index: 2;
  line-height: 1;
  opacity: .6;
  transition: opacity .2s;
}
.carousel-btn:hover { opacity: 1; }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* ── CTA Diagnóstico ─────────────────────────────────────────────── */
.cta-diag {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.cta-diag-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-diag-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
}
.cta-diag-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,.88) 0%,
    rgba(10,10,10,.65) 55%,
    rgba(10,10,10,.25) 100%
  );
}
.cta-diag-content {
  position: relative;
  z-index: 1;
  padding: 80px 72px;
  max-width: 680px;
  display: flex;
  flex-direction: column;
}
.cta-diag-content h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 20px;
}
.cta-diag-content p {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 32px;
}
.cta-diag-checks {
  list-style: none;
  padding: 0;
  margin: 0 0 0;
}
.cta-diag-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.85);
  font-size: .92rem;
  margin-bottom: 14px;
}
.cta-diag-checks .check-mark {
  color: var(--teal);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.cta-chatbot-pointer {
  position: fixed;
  bottom: 29px;
  right: 140px;
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .35s, transform .35s;
  pointer-events: none;
}
.cta-chatbot-pointer.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: none;
}
.cta-chatbot-pointer .pointer-label {
  color: var(--teal);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cta-chatbot-pointer .pointer-finger {
  width: 30px;
  height: 30px;
  color: var(--teal);
  display: block;
  flex-shrink: 0;
  animation: nudge-right 1.1s ease-in-out infinite;
}
@keyframes nudge-right {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(10px); }
}

/* ── Team grid ──────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.team-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
}
.team-info {
  background: var(--white);
  padding: 28px 28px 32px;
  border-bottom: 1px solid var(--border);
}
html.dark .team-info { background: var(--navy2); }
.team-info h3 { font-size: .95rem; margin-bottom: 4px; }
.team-role {
  color: var(--teal); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; display: block;
}
.team-info p { font-size: .82rem; line-height: 1.65; margin-bottom: 14px; }
.team-info a { color: var(--teal); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ── Capability cards (Sobre) ───────────────────────────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.cap-card img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 24px; }
.cap-card h3 {
  font-size: .9rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 10px;
}
.cap-card p { font-size: .88rem; line-height: 1.75; }

/* ── Sector tags ────────────────────────────────────────────────── */
.sector-section { background: var(--gray); padding: 72px 0; }
.sector-label {
  color: var(--teal); font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; display: block;
}
.sector-tags {
  color: var(--muted); font-size: clamp(.95rem,1.5vw,1.1rem); line-height: 2.2;
}

/* ── Accordion ──────────────────────────────────────────────────── */
details.acc { border-top: 1px solid var(--border); }
details.acc + details.acc { margin-top: 0; }
details.acc summary {
  list-style: none; cursor: pointer;
  padding: 16px 0;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted2);
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; color: var(--teal); }
details.acc[open] summary::after { content: "−"; }
.acc-body { padding: 4px 0 24px; }
.acc-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 20px;
}
.acc-col-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 14px; display: block;
}
html.dark .acc-col-title { color: var(--text); }
.acc-col ul { display: flex; flex-direction: column; gap: 9px; }
.acc-col li {
  color: var(--muted); font-size: .85rem; line-height: 1.55;
  padding-left: 16px; position: relative;
}
.acc-col li::before { content: "·"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ── Pillar sections (Serviços) ─────────────────────────────────── */
.pillar { padding: 80px 0 72px; border-bottom: 1px solid var(--border); }
.pillar-bg-gray { background: var(--gray); }
.pillar-bg-white { background: var(--white); }

.pillar-keyword {
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(0,0,0,.07);
  margin-bottom: -8px;
  user-select: none;
}
html.dark .pillar-keyword { color: rgba(255,255,255,.05); }

.pillar-title {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700; margin-bottom: 12px; margin-top: 28px;
}
.pillar-subtitle { font-size: .95rem; line-height: 1.75; max-width: 660px; margin-bottom: 0; }

.bullet-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 52px;
}
.bullet-col { padding-right: 44px; border-right: 1px solid var(--border); }
.bullet-col:last-child { padding-right: 0; padding-left: 44px; border-right: none; }
.bullet-col:nth-child(2) { padding: 0 44px; }
.bullet-col-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 20px; display: block;
}
html.dark .bullet-col-title { color: var(--text); }
.bullet-col ul { display: flex; flex-direction: column; gap: 11px; }
.bullet-col li {
  color: var(--muted); font-size: .87rem; line-height: 1.55;
  padding-left: 18px; position: relative;
}
.bullet-col li::before {
  content: "→"; position: absolute; left: 0;
  color: var(--teal); font-weight: 700; font-size: .85rem;
}

/* ── Methodology steps ──────────────────────────────────────────── */
.method-section { background: var(--navy); padding: 80px 0; }
.method-label {
  color: rgba(255,255,255,.3); font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; display: block;
}
.method-section h2 { color: #fff; font-size: clamp(1.3rem,2.2vw,1.9rem); margin-bottom: 52px; }
.method-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.method-step { padding-right: 36px; border-right: 1px solid rgba(255,255,255,.1); }
.method-step:last-child { padding-right: 0; padding-left: 36px; border-right: none; }
.method-step:nth-child(2),
.method-step:nth-child(3) { padding: 0 36px; }
.method-num {
  color: var(--teal); font-size: 2.5rem; font-weight: 700; line-height: 1;
  margin-bottom: 14px; display: block;
}
.method-step h3 {
  color: #fff; font-size: .88rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}
.method-step p { color: rgba(255,255,255,.48); font-size: .83rem; line-height: 1.7; }

/* ── Delivery formats ───────────────────────────────────────────── */
.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.delivery-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.delivery-info { padding: 36px 40px; border: 1px solid var(--border); border-top: none; }
.delivery-info h3 {
  font-size: .88rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}
.delivery-info p { font-size: .87rem; line-height: 1.75; margin-bottom: 18px; }
.delivery-info a { color: var(--teal); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.delivery-dark { background: var(--navy); border-color: var(--navy); }
.delivery-dark h3 { color: var(--teal); }
.delivery-dark p { color: rgba(255,255,255,.6); }

/* ── Contact form ───────────────────────────────────────────────── */
.form-section {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 580px;
}
.form-info { background: var(--navy); padding: 80px 64px; display: flex; flex-direction: column; justify-content: center; }
.form-info h2 { color: #fff; font-size: clamp(1.3rem,2.2vw,1.9rem); margin-bottom: 16px; }
.form-info > p { color: rgba(255,255,255,.6); font-size: .93rem; line-height: 1.75; margin-bottom: 40px; }
.form-checks { display: flex; flex-direction: column; gap: 10px; }
.form-check { display: flex; align-items: center; gap: 12px; }
.form-check span:first-child { color: var(--teal); font-size: .95rem; }
.form-check span:last-child { color: rgba(255,255,255,.55); font-size: .86rem; }
.form-divider { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 32px 0; }
.form-contact-item { margin-bottom: 16px; }
.form-contact-label {
  color: rgba(255,255,255,.35); font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 4px;
}
.form-contact-val { color: rgba(255,255,255,.65); font-size: .9rem; }
.form-contact-val a { color: var(--teal); font-weight: 700; }

.form-panel { background: var(--white); padding: 80px 64px; display: flex; flex-direction: column; justify-content: center; }
html.dark .form-panel { background: var(--off); }

form.contact-form { display: flex; flex-direction: column; gap: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: var(--navy); margin-bottom: 6px; text-transform: uppercase;
}
html.dark .form-group label { color: var(--text); }
/* Estilos de input apenas para formulários em fundo CLARO (ex: .form-panel em serviços)
   — NÃO afeta o formulário do contato (fundo escuro), que usa .form-input diretamente */
.form-panel .form-group input,
.form-panel .form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 0;
  font-size: .93rem; font-family: var(--font);
  background: var(--white); color: var(--text);
  outline: none; transition: border-color .2s;
  appearance: none;
}
html.dark .form-panel .form-group input,
html.dark .form-panel .form-group textarea {
  background: var(--navy2); border-color: rgba(255,255,255,.15); color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: 8px; }
.form-success {
  background: #E8F8F0; border: 1.5px solid #00A878; border-radius: 0;
  padding: 18px 22px; color: #0D5C3A; font-size: .9rem; margin-bottom: 20px;
  display: none;
}
.form-success.visible { display: block; }
.form-error {
  background: #FEF0F0; border: 1.5px solid #E05C5C;
  padding: 12px 18px; color: #8B1A1A; font-size: .88rem; margin-bottom: 14px;
  display: none;
}
.form-error.visible { display: block; }

/* ── Section: Split CTA ─────────────────────────────────────────── */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; overflow: hidden; }
.cta-left {
  background: var(--teal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 64px;
  gap: 32px;
}

/* intro text */
.cycle-intro {
  color: rgba(0,0,0,.75);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.1;
  margin: 0;
  width: 100%;
  max-width: 340px;
}
.ci-l, .ci-c, .ci-r { display: block; }
.ci-l { text-align: left; }
.ci-c {
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: -2px 0;
}
.ci-r { text-align: right; }

/* cycle diagram image */
.cycle-diagram-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
}
.cta-right {
  background: var(--navy);
  padding: 80px 64px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.cta-right .section-label {
  color: var(--teal);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .15em;
}
.cta-heading {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 300;
  line-height: 1.3;
  margin: 0;
}
.cta-highlight {
  color: var(--teal);
  font-size: 1.2em;
  font-weight: 300;
}
.cta-desc {
  color: rgba(255,255,255,.6);
  font-size: clamp(.9rem, 1.3vw, 1.05rem);
  line-height: 1.75;
  margin: 0;
  max-width: 480px;
}
.cta-link {
  color: var(--teal);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .2s;
}
.cta-link:hover { opacity: .75; }

/* ── Implementação full-bleed ────────────────────────────────────── */
.impl-section {
  position: relative;
  overflow: hidden;
  padding: 68px 0;
  background: var(--navy);
}
.impl-bg { position: absolute; inset: 0; z-index: 0; }
.impl-bg .impl-photo-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: grayscale(100%);
}
.impl-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to left,
    rgba(10,10,10,.88) 0%,
    rgba(10,10,10,.65) 50%,
    rgba(10,10,10,.15) 100%);
}
.impl-content {
  position: relative; z-index: 2;
  margin-left: auto;
  max-width: 440px;
  text-align: right;
}
.impl-eyebrow {
  color: var(--teal);
  font-size: clamp(.85rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: .04em;
  margin: 0 0 20px;
}
.impl-heading {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.25;
  margin: 0 0 36px;
}
.impl-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.impl-list li {
  color: rgba(255,255,255,.8);
  font-size: clamp(.9rem, 1.3vw, 1.05rem);
  padding-right: 20px;
  position: relative;
}
.impl-list li::after {
  content: '';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 2px;
  background: var(--teal);
}

/* ── Dois blocos lado a lado ─────────────────────────────────────── */
.two-col-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  overflow: hidden;
}
.tcol-left {
  background: var(--navy);
  padding: 72px 64px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; word-break: break-word;
}
.tcol-right {
  background: var(--teal);
  padding: 72px 64px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; word-break: break-word;
}
.tcol-title {
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin: 0;
}
.tcol-highlight {
  color: var(--teal);
  font-size: 1.2em;
  font-weight: 300;
}
.tcol-title--teal {
  color: rgba(0,0,0,.85);
}
.tcol-highlight-white {
  color: #fff;
  font-size: 1.2em;
  font-weight: 300;
}
.tcol-body {
  color: rgba(0,0,0,.80);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
  margin: 0;
}
.tcol-body--dark {
  color: rgba(255,255,255,.55);
  margin-top: 28px;
}

/* ── Clientes / Logos ───────────────────────────────────────────── */
/* ── Clients Carousel ───────────────────────────────────────────── */
.clients-section {
  background: #EBEBEB;
  padding: 10px 0;
  border-top: 15px solid #999999;
  border-bottom: 15px solid #999999;
  overflow: hidden;
  transform: translateZ(0); /* iOS Safari: força compositing layer p/ clipar a animação */
}
/* fade nas bordas */
.clients-section::before,
.clients-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.clients-section { position: relative; }
.clients-section::before {
  left: 0;
  background: linear-gradient(to right, #EBEBEB 20%, transparent);
}
.clients-section::after {
  right: 0;
  background: linear-gradient(to left, #EBEBEB 20%, transparent);
}
/* trilha animada — duplicada no HTML para loop sem costura.
   background OBRIGATÓRIO: transform cria contexto de composição isolado,
   então mix-blend-mode precisa ver o mesmo cinza do fundo da seção */
.clients-section .carousel-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  background: #EBEBEB;
  padding: 0;
  animation: clients-scroll 45s linear infinite;
  transition: none;
}
.clients-section .carousel-track:hover { animation-play-state: paused; }
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.client-item img {
  height: 47px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.6;
  transition: filter .3s, opacity .3s;
}
/* hover: revela a cor original */
.client-item img:hover {
  filter: none !important;
  opacity: 1;
}
.client-item img.logo-has-bg:hover,
.client-item img.logo-strong-bg:hover,
.client-item img.logo-dark-bg:hover,
.client-item img.logo-bg-gray:hover {
  filter: none !important;
  mix-blend-mode: normal;
  opacity: 1;
}
/* fundo branco: multiply apaga o branco sem brightness (evita caixa residual) */
.client-item img.logo-has-bg {
  filter: grayscale(1) contrast(4);
  mix-blend-mode: multiply;
  opacity: 0.82;
}
/* fundo branco + elementos sutis */
.client-item img.logo-strong-bg {
  filter: grayscale(1) contrast(8);
  mix-blend-mode: multiply;
  opacity: 0.85;
}
/* fundo escuro: inverte + threshold binário */
.client-item img.logo-dark-bg {
  filter: grayscale(1) invert(1) contrast(999);
  mix-blend-mode: multiply;
  opacity: 1;
}
/* logo com fundo próprio: mantém o retângulo, só dessatura
   (GAMP com fundo azul navy, Parauapebas colorido, etc.) */
.client-item img.logo-bg-gray {
  filter: grayscale(1) contrast(1.15) brightness(1.05);
  border-radius: 6px;
  opacity: 0.82;
  height: 60px;
  max-width: 140px;
}

/* Logo com preenchimento claro (ex: Splash) — mostra em cor, não converte bem p/ silhueta */
.client-item img.logo-light-fill {
  filter: grayscale(1) opacity(0.85);
}
.client-item img.logo-light-fill:hover {
  filter: none !important;
  opacity: 1;
}

/* ── Challenges split ───────────────────────────────────────────── */
.chall-text { background: var(--gray); padding: 80px 64px; display: flex; flex-direction: column; justify-content: center; }
.chall-text h3 { font-size: clamp(1.1rem,1.8vw,1.5rem); margin-bottom: 28px; }
.challenge-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.challenge-list li {
  color: var(--muted); font-size: .93rem;
  padding-left: 20px; position: relative; line-height: 1.55;
}
.challenge-list li::before { content: "→"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ── Section titles ─────────────────────────────────────────────── */
.section-title-block { background: var(--white); padding: 72px 0 56px; text-align: center; }
html.dark .section-title-block { background: var(--off); }
.section-title-block h2 { font-size: clamp(1.4rem,2.5vw,2.1rem); }


/* ── Sobre — Identity (preto) ───────────────────────────────────── */
.identity-section {
  background: var(--navy);
  padding: 96px 0;
}
.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 56px;
}
.identity-statement h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.identity-highlight { color: var(--teal); }
.identity-body p {
  color: rgba(255,255,255,.72);
  font-size: .98rem;
  line-height: 1.8;
}

/* ── Sobre — História (verde) ───────────────────────────────────── */
.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 48px;
}
.historia-narrative p {
  font-size: .98rem;
  color: rgba(0,0,0,.72);
  line-height: 1.8;
}
.historia-milestones {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.milestone-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.milestone-item:last-child { border-bottom: none; }
.milestone-year {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  min-width: 48px;
  line-height: 1.6;
}
.milestone-text {
  font-size: .88rem;
  color: rgba(0,0,0,.65);
  line-height: 1.6;
}

/* ── Sobre — Valores (preto) ────────────────────────────────────── */
.valores-section {
  background: var(--navy);
  padding: 96px 0;
}
.valores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 56px;
}
.valor-item {
  padding: 0 36px 0 0;
  border-right: 1px solid rgba(255,255,255,.1);
  margin-right: 36px;
}
.valor-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.valor-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
  letter-spacing: .02em;
}
.valor-text {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
}

/* ── Certificações ──────────────────────────────────────────────── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: rgba(0,0,0,.1);
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px;
  padding: 32px 36px;
}
.cert-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.cert-logo svg { width: 100%; height: 100%; }
.cert-badge-label {
  display: inline-block;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: .6;
  margin-bottom: 6px;
}
.cert-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.cert-desc {
  font-size: .85rem;
  color: rgba(0,0,0,.6);
  line-height: 1.7;
}
/* Card solitário na última linha — centraliza sob o grid */
.cert-grid .cert-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 12px);
  margin: 0 auto;
}

/* ── Serviços — Fases de Atuação (preto) ────────────────────────── */
.fases-section {
  background: var(--navy);
  padding: 96px 0;
}
.fases-grid {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: start;
  margin-top: 56px;
}
.fase-item {
  padding: 40px 48px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.fase-item:last-child { border-right: none; }
.fase-title {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--teal);
  text-transform: lowercase;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}
.fase-text {
  color: rgba(255,255,255,.72);
  font-size: .95rem;
  line-height: 1.75;
}
.fase-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 36px;
  color: var(--teal);
  opacity: .7;
}
.fase-arrow svg { width: 28px; height: 44px; }

/* ── Serviços — Áreas de Atuação (verde) ────────────────────────── */
.areas-section {
  background: var(--teal);
  padding: 96px 0;
}
.areas-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  margin-bottom: 48px;
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.area-item {
  padding: 40px 36px;
  border-right: 1px solid rgba(0,0,0,.12);
}
.area-item:last-child { border-right: none; }
.area-icon {
  width: 36px;
  height: 36px;
  color: rgba(0,0,0,.65);
  margin-bottom: 20px;
}
.area-icon svg { width: 100%; height: 100%; }
.area-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}
.area-text {
  font-size: .88rem;
  color: rgba(0,0,0,.65);
  line-height: 1.7;
}

/* ── Serviços — Formatos de Entrega (preto) ─────────────────────── */
.formatos-section {
  background: var(--navy);
  padding: 96px 0;
}
.formatos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
}
.formato-item {
  padding: 48px 48px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.formato-item:last-child { border-right: none; }
.formato-icon {
  width: 40px;
  height: 40px;
  color: var(--teal);
  margin-bottom: 24px;
}
.formato-icon svg { width: 100%; height: 100%; }
.formato-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: lowercase;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}
.formato-text {
  font-size: .92rem;
  color: rgba(255,255,255,.7);
  line-height: 1.75;
}

/* ── Serviços — Tech & Stack ────────────────────────────────────── */
.tech-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: var(--navy);
}
.tech-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tech-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
}
.tech-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to right,
    rgba(10,10,10,.92) 0%,
    rgba(10,10,10,.80) 55%,
    rgba(10,10,10,.60) 100%);
}
.tech-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-top: 56px;
}
.tech-heading {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 28px;
}
.tech-heading-accent { color: var(--teal); }
.tech-body {
  color: rgba(255,255,255,.68);
  font-size: .95rem;
  line-height: 1.8;
}
.tech-pillars { display: flex; flex-direction: column; gap: 0; }
.tech-pillar-item {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.tech-pillar-item:last-child { border-bottom: none; }
.tech-pillar-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
  letter-spacing: .03em;
}
.tech-pillar-text {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}
.tech-pillar-text strong { color: rgba(255,255,255,.9); }

.stack-section {
  background: var(--teal);
  padding: 96px 0;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-top: 48px;
}
.stack-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stack-grid--4 { grid-template-columns: repeat(4, 1fr); }
.stack-group-title {
  font-size: .78rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-tags span {
  background: rgba(0,0,0,.12);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────────────────── */
#site-footer {
  background: var(--navy);
  padding: 20px 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.07);
}
#site-footer p {
  color: rgba(255,255,255,.35); font-size: .75rem;
}

/* ── Lang display ────────────────────────────────────────────────── */
.pt { display: inline; } .en { display: none; }
.pt-b { display: block; } .en-b { display: none; }
html.lang-en .pt  { display: none; }  html.lang-en .en  { display: inline; }
html.lang-en .pt-b{ display: none; }  html.lang-en .en-b{ display: block; }

/* ── Contato ─────────────────────────────────────────────────────── */
.contato-section {
  background: var(--navy);
  padding: 96px 0;
}
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 56px;
}
.contato-form-wrap h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 32px;
  line-height: 1.25;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-group { margin-bottom: 24px; }
.form-label,
.form-group .form-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55) !important;
  margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  padding: 14px 18px;
  transition: border-color .2s, background .2s;
  outline: none;
  box-sizing: border-box;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255,255,255,.3); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal);
  background: rgba(91,175,155,.08);
}
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,.45)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-select option { background: #1a1a1a; color: #fff; }
.form-textarea { resize: vertical; min-height: 140px; }
.form-submit { margin-top: 8px; }
.form-feedback {
  margin-top: 16px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--teal);
  min-height: 24px;
}
.form-feedback.error { color: #e05a5a; }

.contato-info-wrap { padding-top: 8px; }
.contato-info-wrap h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.25;
}
.contato-info-lead {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 48px;
}
.contato-info-items { display: flex; flex-direction: column; gap: 32px; }
.contato-info-item { display: flex; align-items: flex-start; gap: 20px; }
.contato-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(91,175,155,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.contato-info-icon svg { width: 20px; height: 20px; }
.contato-info-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 4px;
}
.contato-info-value { font-size: .95rem; color: #fff; line-height: 1.5; }
.contato-info-value a { color: var(--teal); text-decoration: none; transition: color .2s; }
.contato-info-value a:hover { color: #fff; }

/* ── Legal — Termos & Privacidade ────────────────────────────────── */
.legal-section {
  background: #0d0d0d;
  padding: 72px 0 120px;
}
.legal-intro {
  font-size: .95rem;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 64px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 72px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 88px;
}
.legal-toc-title {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.legal-toc ul { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin-bottom: 4px; }
.legal-toc a {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  line-height: 1.7;
  display: block;
  transition: color .2s;
}
.legal-toc a:hover { color: var(--teal); }
.legal-toc a.toc-sub {
  padding-left: 14px;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
}
.legal-toc a.toc-sub:hover { color: var(--teal); }
.legal-body h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  scroll-margin-top: 96px;
}
.legal-updated {
  font-size: .72rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .05em;
  margin-bottom: 36px;
  display: block;
}
.legal-body h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--teal);
  margin: 36px 0 10px;
  letter-spacing: .02em;
  scroll-margin-top: 96px;
}
.legal-body p {
  font-size: .88rem;
  line-height: 1.95;
  color: rgba(255,255,255,.65);
  margin-bottom: 14px;
}
.legal-body ul {
  padding-left: 18px;
  margin-bottom: 14px;
}
.legal-body ul li {
  font-size: .88rem;
  line-height: 1.85;
  color: rgba(255,255,255,.65);
  margin-bottom: 3px;
}
.legal-body strong { color: rgba(255,255,255,.88); }
.legal-body a { color: var(--teal); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: .84rem;
}
.legal-table th {
  text-align: left;
  padding: 10px 16px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.legal-table td {
  padding: 10px 16px;
  color: rgba(255,255,255,.6);
  border-bottom: 1px solid rgba(255,255,255,.05);
  vertical-align: top;
}
.legal-sep {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 64px 0;
}
.legal-highlight {
  background: rgba(91,175,155,.08);
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  padding: 14px 20px;
  margin: 20px 0;
}
.legal-highlight p { margin-bottom: 0; color: rgba(255,255,255,.75); }
/* Footer link */
.footer-link {
  color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color .2s;
}
.footer-link:hover { color: var(--teal); }

/* ── Parceiros tecnológicos ─────────────────────────────────────── */
.parceiros-section {
  background: var(--navy);
  padding: 80px 0;
}
.parceiros-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  text-align: center;
  margin-bottom: 56px;
}
.parceiros-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.parceiro-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.55);
  transition: color .25s;
}
.parceiro-item:hover { color: rgba(255,255,255,.9); }
.parceiro-svg {
  flex-shrink: 0;
  height: 28px;
  width: auto;
  display: block;
}
.parceiro-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.parceiro-sub {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .65;
  margin-top: 1px;
}
.parceiro-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

/* ── Closing CTA ─────────────────────────────────────────────────── */
.closing-section {
  background: var(--teal);
  padding: 96px 0;
  text-align: center;
}
.closing-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 24px;
}
.closing-section p {
  font-size: 1.05rem;
  color: rgba(0,0,0,.65);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  .split, .cta-split, .chall-split, .form-section { grid-template-columns: 1fr; }
  .two-col-split { grid-template-columns: 1fr; min-height: unset; }
  .tcol-left, .tcol-right { padding: 48px 28px; }
  .photo-col { min-height: 280px; order: -1; }
  .svc-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 28px 24px; }
  .stat-item:last-child { border-bottom: none; }
  .cta-diag-content { padding: 48px 28px; }
  .cta-chatbot-pointer { display: none; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .cap-grid { grid-template-columns: 1fr; gap: 48px; }
  .bullet-cols, .method-grid { grid-template-columns: 1fr; }
  .tech-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cert-grid { grid-template-columns: 1fr; }
  .cert-card { flex-direction: column; gap: 16px; }
  .identity-grid, .historia-grid { grid-template-columns: 1fr; gap: 40px; }
  .valores-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .valor-item { border-right: none; padding-right: 0; margin-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 32px; }
  .valor-item:last-child { border-bottom: none; padding-bottom: 0; }
  .fases-grid { grid-template-columns: 1fr; }
  .fase-arrow { transform: rotate(90deg); padding: 8px 0; }
  .fase-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 40px 24px; }
  .fase-item:last-child { border-bottom: none; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .area-item:nth-child(2) { border-right: none; }
  .area-item:nth-child(3) { border-right: 1px solid rgba(0,0,0,.12); }
  .area-item:nth-child(3), .area-item:nth-child(4) { border-top: 1px solid rgba(0,0,0,.12); }
  .formatos-grid { grid-template-columns: 1fr; }
  .formato-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .formato-item:last-child { border-bottom: none; }
  .bullet-col, .bullet-col:nth-child(2), .bullet-col:last-child {
    padding: 0 0 32px; border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .bullet-col:last-child { border-bottom: none; padding-bottom: 0; }
  .method-step, .method-step:nth-child(2), .method-step:nth-child(3), .method-step:last-child {
    padding: 0 0 32px; border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .method-step:last-child { border-bottom: none; padding-bottom: 0; }
  .delivery-grid { grid-template-columns: 1fr; }
  .delivery-info { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
  .split-col, .chall-text, .form-info, .form-panel, .cta-left, .cta-right { padding: 56px 32px; }
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .acc-cols { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; gap: 48px; }
  .parceiros-logos { gap: 40px; }
  .parceiro-divider { display: none; }
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .legal-toc { position: static; display: none; }
  #sticky-bar { flex-direction: column; gap: 8px; padding: 10px 16px; }
  #sticky-bar p { text-align: center; font-size: .8rem; }
}
@media (max-width: 540px) {
  .team-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 64px; }
  .hero-btns { flex-direction: column; }
  .carousel-slide { padding: 0 32px; }
  .testimonial-card { padding: 32px 28px; }
  .parceiros-logos { gap: 28px; }
  .parceiro-name { font-size: .9rem; }
  .parceiro-svg { height: 22px; }
}

/* ================================================================
   Chatbot FAB (Floating Action Button)
   ================================================================ */
.chatbot-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10001;
  border: none;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  outline: none;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.chatbot-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.28), 0 3px 12px rgba(0,0,0,.2);
  background: #f4f4f4;
}
.chatbot-fab:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.chatbot-fab--open {
  background: var(--navy2);
  transform: scale(1.05);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-open .chatbot-fab:not(.chatbot-fab--open) {
  bottom: 180px;
}
.chatbot-fab-icon {
  width: 34px;
  height: 34px;
  pointer-events: none;
  object-fit: contain;
  border-radius: 6px;
}
/* badge "IA" no canto superior direito do botão */
.chatbot-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--teal);
  color: #fff;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 2px 5px;
  border-radius: 8px;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
@media (max-width: 540px) {
  .chatbot-fab { bottom: 20px; right: 18px; width: 52px; height: 52px; }
  .chatbot-fab-icon { width: 26px; height: 26px; }
}

/* ── Cookie Consent Banner ──────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #111;
  color: #e8e8e8;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -2px 20px rgba(0,0,0,.45);
  font-size: .85rem;
  line-height: 1.5;
  border-top: 1px solid rgba(91,175,155,.3);
}
#cookie-banner a { color: var(--teal); text-decoration: underline; }
.cookie-text { flex: 1; margin: 0; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 8px 22px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
  transition: opacity .15s;
}
.btn-cookie-accept:hover { opacity: .85; }
.btn-cookie-decline {
  background: transparent;
  color: #aaa;
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: .82rem;
  transition: color .15s, border-color .15s;
}
.btn-cookie-decline:hover { color: #eee; border-color: rgba(255,255,255,.5); }
@media (max-width: 640px) {
  #cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cookie-btns { width: 100%; }
  .btn-cookie-accept, .btn-cookie-decline { flex: 1; text-align: center; }
}

/* ── Chat Panel ──────────────────────────────────────────────────── */
.mca-chat {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 360px;
  max-height: 560px;
  background: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.55), 0 2px 12px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  z-index: 10002;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  border: 1px solid rgba(255,255,255,.08);
}
.mca-chat--open {
  opacity: 1;
  pointer-events: auto;
}
/* Header */
.mca-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--navy2);
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.mca-chat-header-info { display: flex; align-items: center; gap: 10px; }
.mca-chat-avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--teal); }
.mca-chat-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mca-chat-title {
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.mca-chat-status {
  font-size: .72rem;
  color: #aaa;
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.mca-status-dot {
  width: 7px; height: 7px;
  background: #4CAF50;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}
.mca-chat-close {
  background: none; border: none; cursor: pointer;
  color: #888; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s;
  min-width: 44px; min-height: 44px;
  flex-shrink: 0;
}
.mca-chat-close:hover { color: #fff; }
.mca-chat-close svg { width: 18px; height: 18px; }
/* Messages */
.mca-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.mca-msg { display: flex; }
.mca-msg--user  { justify-content: flex-end; }
.mca-msg--assistant { justify-content: flex-start; }
.mca-msg-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .84rem;
  line-height: 1.55;
}
.mca-msg--user .mca-msg-bubble {
  background: var(--teal);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.mca-msg--assistant .mca-msg-bubble {
  background: #2a2a2a;
  color: #e8e8e8;
  border-bottom-left-radius: 4px;
}
.mca-msg-bubble strong { color: #fff; }
.mca-chat-link {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}
.mca-chat-link:hover { opacity: .8; }
/* Typing indicator */
.mca-msg--typing .mca-msg-bubble {
  display: flex; align-items: center; gap: 4px; padding: 12px 16px;
}
.mca-msg--typing .mca-msg-bubble span {
  width: 6px; height: 6px;
  background: #888;
  border-radius: 50%;
  animation: typing-bounce .9s infinite;
}
.mca-msg--typing .mca-msg-bubble span:nth-child(2) { animation-delay: .15s; }
.mca-msg--typing .mca-msg-bubble span:nth-child(3) { animation-delay: .30s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30%            { transform: translateY(-5px); opacity: 1; }
}
/* Limite de mensagens */
.mca-msg--limit { justify-content: center; }
.mca-msg-bubble--limit {
  background: rgba(91,175,155,.15);
  border: 1px solid rgba(91,175,155,.4);
  color: #b0d9d0;
  border-radius: 10px;
  text-align: center;
  font-size: .8rem;
  max-width: 90%;
}
.mca-msg-bubble--limit a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}
.mca-msg-bubble--limit a:hover { text-decoration: underline; }
/* Input */
.mca-chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.07);
  background: var(--navy2);
  flex-shrink: 0;
}
.mca-chat-input {
  flex: 1;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font);
  font-size: .84rem;
  padding: 9px 12px;
  resize: none;
  outline: none;
  line-height: 1.45;
  max-height: 120px;
  transition: border-color .15s;
}
.mca-chat-input::placeholder { color: #666; }
.mca-chat-input:focus { border-color: var(--teal); }
.mca-chat-send {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--teal);
  border: none; border-radius: 50%;
  cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s, transform .15s;
}
.mca-chat-send:hover { opacity: .85; transform: scale(1.07); }
.mca-chat-send svg { width: 16px; height: 16px; }
/* Footer */
.mca-chat-footer {
  font-size: .68rem;
  color: #555;
  text-align: center;
  padding: 6px 0 8px;
  margin: 0;
  background: var(--navy2);
  flex-shrink: 0;
}
.mca-chat-footer a { color: #666; }
/* Mobile */
@media (max-width: 480px) {
  .mca-chat {
    bottom: 0; left: 12px; right: auto;
    width: min(78vw, 300px);
    max-height: 75vh;
    max-height: 75svh;
    border-radius: 16px 16px 0 0;
    box-sizing: border-box;
  }
  .mca-chat-header-info {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  .mca-chat-input {
    min-width: 0;
    /* iOS Safari faz zoom automático em inputs com font-size < 16px,
       deslocando toda a viewport. 16px desativa esse comportamento. */
    font-size: 16px;
    touch-action: manipulation;
  }
  .mca-chat-input-wrap {
    touch-action: pan-y;
  }
}
