/* =========================================================
   CSC Group — Design system extraído do branding institucional
   Paleta: cream #F3F2EA · charcoal #242625 · olive #4F5950
   Tipografia: Manrope (display) + Inter (texto)
   ========================================================= */

:root {
  --cream:        #F3F2EA;
  --cream-2:      #EDEBE0;
  --beige:        #DDDCD5;
  --beige-2:      #BFBFB8;
  --stone:        #A4A59E;
  --olive:        #4F5950;
  --olive-deep:   #3A413A;
  --olive-dark:   #2F3530;
  --ink:          #242625;
  --ink-soft:     #3D403E;
  --accent:       #56593C;
  --white:        #FFFFFF;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(36,38,37,.06);
  --shadow:    0 18px 50px -20px rgba(36,38,37,.25);
  --shadow-lg: 0 30px 80px -30px rgba(36,38,37,.35);

  --container: 1200px;
  --gutter:    clamp(20px, 4vw, 48px);

  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
ul  { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p  { color: var(--ink-soft); }

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

/* ---------- Eyebrow / shared bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--olive);
}
.eyebrow.light { color: var(--cream); }
.eyebrow.light::before { background: var(--cream); }

.section { padding: clamp(70px, 9vw, 130px) 0; }
.section-alt { background: var(--cream-2); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 strong { color: var(--olive); font-weight: 700; }
.section-sub { font-size: 1.1rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--olive);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-block { width: 100%; margin-top: 18px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(243, 242, 234, .82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: rgba(36,38,37,.08);
  background: rgba(243, 242, 234, .94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: -.01em; }
.brand-tag  { font-size: .7rem; color: var(--olive); letter-spacing: .14em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
}
.nav-links a:not(.cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 1px;
  width: 0;
  background: var(--olive);
  transition: width .3s var(--ease);
}
.nav-links a:not(.cta):hover::after { width: 100%; }

.nav-links .cta {
  padding: 10px 22px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  transition: background .25s var(--ease);
}
.nav-links .cta:hover { background: var(--olive); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: clamp(80px, 12vw, 160px);
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 110% -10%, rgba(79,89,80,.18), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(86,89,60,.15), transparent 60%),
    var(--cream);
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(36,38,37,.025) 0 1px, transparent 1px 26px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 880px; }

.hero h1 {
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: normal;
  color: var(--olive);
  position: relative;
  display: inline-block;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 14px;
  background: rgba(79,89,80,.18);
  z-index: -1;
  border-radius: 4px;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 640px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 60px);
  max-width: 700px;
  padding-top: 32px;
  border-top: 1px solid rgba(36,38,37,.12);
}
.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--ink);
}
.hero-meta span {
  font-size: .82rem;
  color: var(--olive);
  letter-spacing: .04em;
}

/* =========================================================
   SOBRE
   ========================================================= */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.grid-2 h2 strong { color: var(--olive); }
.grid-2 p { font-size: 1.05rem; margin-bottom: 18px; }

/* =========================================================
   MISSÃO, VISÃO E VALORES
   ========================================================= */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 70px;
}
.mvv-card {
  background: var(--cream);
  border: 1px solid rgba(36,38,37,.08);
  padding: 36px 32px;
  border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .25s var(--ease);
}
.mvv-card:hover {
  transform: translateY(-4px);
  border-color: var(--olive);
  box-shadow: var(--shadow);
}
.mvv-label {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--olive);
  padding: 6px 14px;
  background: rgba(79,89,80,.1);
  border-radius: 999px;
  margin-bottom: 18px;
  font-weight: 600;
}
.mvv-card h3 { margin-bottom: 12px; }

.values-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(36,38,37,.12);
  border-bottom: 1px solid rgba(36,38,37,.12);
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
}
.value-item {
  padding: 36px 28px;
  border-right: 1px solid rgba(36,38,37,.08);
  transition: background .3s var(--ease);
  position: relative;
}
.value-item:last-child { border-right: 0; }
.value-item:hover { background: var(--cream-2); }
.value-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--olive);
  display: block;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.value-item h4 { margin-bottom: 8px; }
.value-item p { font-size: .92rem; }

/* =========================================================
   SERVIÇOS
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 38px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--ease), background .35s var(--ease), color .35s var(--ease);
  border: 1px solid rgba(36,38,37,.06);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-deep) 100%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover {
  transform: translateY(-6px);
  color: var(--cream);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover h3,
.service-card:hover p { color: var(--cream); }
.service-card:hover .service-icon {
  background: rgba(255,255,255,.12);
  color: var(--cream);
  border-color: rgba(255,255,255,.2);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--olive);
  border: 1px solid rgba(36,38,37,.06);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.service-icon svg { width: 28px; height: 28px; }

.service-card h3 { margin-bottom: 12px; transition: color .35s var(--ease); }
.service-card p  { font-size: .98rem; transition: color .35s var(--ease); }

/* =========================================================
   BIG NUMBERS
   ========================================================= */
.numbers {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.numbers::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 0% 0%, rgba(79,89,80,.5), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(86,89,60,.35), transparent 60%);
  pointer-events: none;
}
.numbers .section-head h2 { color: var(--cream); }
.numbers .section-head h2 strong { color: var(--beige-2); }
.numbers .eyebrow { color: var(--beige-2); }
.numbers .eyebrow::before { background: var(--beige-2); }

.numbers-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid rgba(243,242,234,.12);
  padding-top: 50px;
}
.number-card {
  padding: 0 28px;
  border-right: 1px solid rgba(243,242,234,.12);
}
.number-card:last-child { border-right: 0; }
.num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 14px;
}
.number-card h4 { color: var(--cream); margin-bottom: 4px; }
.number-card p  { color: rgba(243,242,234,.65); font-size: .9rem; }

/* =========================================================
   ESTRUTURA DO GRUPO
   ========================================================= */
.group-structure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 30px;
}
.group-node {
  background: var(--cream);
  border: 1px solid rgba(36,38,37,.1);
  border-radius: var(--radius);
  padding: 28px 38px;
  text-align: center;
  min-width: 260px;
  transition: transform .35s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.group-node:hover {
  transform: translateY(-3px);
  border-color: var(--olive);
  box-shadow: var(--shadow);
}
.group-node.holding {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.group-node.holding h3 { color: var(--cream); }
.group-node.holding .node-label { color: var(--beige-2); background: rgba(243,242,234,.12); }
.node-label {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--olive);
  background: rgba(79,89,80,.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 600;
}
.group-node h3 { margin-bottom: 4px; }
.group-node p  { font-size: .9rem; }

.group-connector {
  width: 1px;
  height: 40px;
  background: rgba(36,38,37,.2);
}
.group-children {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 720px;
}

/* =========================================================
   CLIENTES
   ========================================================= */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(36,38,37,.08);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}
.client-logo {
  padding: 38px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(36,38,37,.08);
  border-bottom: 1px solid rgba(36,38,37,.08);
  transition: background .3s var(--ease), transform .3s var(--ease);
  min-height: 140px;
}
.client-logo img {
  max-height: 60px;
  width: auto;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .35s var(--ease), opacity .35s var(--ease), transform .35s var(--ease);
}
.client-logo:hover {
  background: var(--cream-2);
}
.client-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

/* =========================================================
   CTA / CONTATO
   ========================================================= */
.cta-band {
  background:
    radial-gradient(800px 500px at 20% 30%, rgba(86,89,60,.5), transparent 60%),
    linear-gradient(135deg, var(--olive-deep) 0%, var(--ink) 100%);
  color: var(--cream);
}
.cta-band h2 { color: var(--cream); margin-bottom: 16px; }
.cta-band p  { color: rgba(243,242,234,.8); max-width: 460px; }

.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}

.contact-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.contact-card h3 { margin-bottom: 24px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 8px; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(36,38,37,.08);
}
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list span {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
}
.contact-list a, .contact-list p {
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 500;
}
.contact-list a:hover { color: var(--olive); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(243,242,234,.7);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
}
.brand-footer .brand-name { color: var(--cream); }
.brand-footer .brand-tag  { color: var(--beige-2); }
.footer-desc { margin-top: 18px; max-width: 320px; font-size: .95rem; color: rgba(243,242,234,.6); }
.site-footer h5 {
  color: var(--cream);
  margin-bottom: 18px;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-footer ul li {
  margin-bottom: 10px;
  font-size: .95rem;
}
.site-footer a:hover { color: var(--cream); }

.footer-bottom {
  border-top: 1px solid rgba(243,242,234,.1);
  padding: 24px 0;
  font-size: .82rem;
  color: rgba(243,242,234,.55);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================================================
   ANIMAÇÕES (scroll reveal)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation: none !important; transition-duration: .01ms !important; }
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--gutter) 24px;
    background: var(--cream);
    border-top: 1px solid rgba(36,38,37,.08);
    box-shadow: var(--shadow);
  }
  .nav-links.open a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(36,38,37,.06);
  }
  .nav-links.open a.cta {
    margin-top: 12px;
    text-align: center;
    border-bottom: 0;
  }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .mvv-grid      { grid-template-columns: 1fr 1fr; }
  .mvv-grid .mvv-card:last-child { grid-column: 1 / -1; }
  .values-list   { grid-template-columns: 1fr 1fr; }
  .value-item:nth-child(2) { border-right: 0; }
  .value-item:nth-child(1),
  .value-item:nth-child(2) { border-bottom: 1px solid rgba(36,38,37,.08); }

  .numbers-grid  { grid-template-columns: repeat(3, 1fr); gap: 30px 0; }
  .number-card:nth-child(3) { border-right: 0; }
  .number-card:nth-child(n+4) { border-top: 1px solid rgba(243,242,234,.12); padding-top: 30px; }

  .clients-grid  { grid-template-columns: repeat(3, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .cta-inner     { grid-template-columns: 1fr; }
  .grid-2        { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding-top: 140px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-meta { grid-template-columns: 1fr; gap: 22px; text-align: left; }
  .hero-actions .btn { flex: 1; }

  .services-grid { grid-template-columns: 1fr; }
  .mvv-grid      { grid-template-columns: 1fr; }
  .mvv-grid .mvv-card:last-child { grid-column: auto; }
  .values-list   { grid-template-columns: 1fr; }
  .value-item    { border-right: 0; border-bottom: 1px solid rgba(36,38,37,.08); }
  .value-item:last-child { border-bottom: 0; }

  .numbers-grid  { grid-template-columns: 1fr; gap: 26px; }
  .number-card   { border-right: 0; padding: 0 4px; }
  .number-card:not(:first-child) { border-top: 1px solid rgba(243,242,234,.12); padding-top: 26px; }

  .clients-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr; gap: 36px; }
  .contact-card  { padding: 28px; }

  .brand-tag { display: none; }
}
