/* =========================================================
   ATHENS — HUB DE PROJETOS
   Design tokens — v2: white/grey, editorial, Poppins + Inter
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root{
  /* brand colors */
  --navy:        #0D1B2A;
  --terracotta:  #9C4A3B;
  --terracotta-dark:#7E3B2F;

  /* neutrals — white/grey per brief */
  --white:       #FFFFFF;
  --grey-band:   #F5F5F4;
  --grey-border: #E4E2DF;
  --text-body:   #3D4650;
  --text-muted:  #767F87;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', -apple-system, sans-serif;

  --container: 1160px;
  --header-h: 84px;
  --radius: 6px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
p{ margin: 0 0 1em; }
p:last-child{ margin-bottom: 0; }

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.55em;
  letter-spacing: -0.01em;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
}

.eyebrow{
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.2em;
}

:focus-visible{
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.85em;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary{
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.btn-primary:hover{ background: var(--terracotta-dark); border-color: var(--terracotta-dark); }

.btn-outline{
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover{
  background: var(--navy);
  color: var(--white);
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  z-index: 100;
  border-bottom: 1px solid var(--grey-border);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled{
  box-shadow: 0 4px 18px rgba(13,27,42,0.06);
}
.header-inner{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img{ height: 28px; width: auto; }

.main-nav{
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.main-nav a{
  color: var(--navy);
  font-size: 0.96rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.82;
  transition: opacity .15s ease, color .15s ease;
}
.main-nav a:hover{ opacity: 1; color: var(--terracotta); }
.main-nav a.is-active{ color: var(--terracotta); opacity: 1; }

/* =========================================================
   SUBPAGES — breadcrumb, page hero, services grid
   ========================================================= */
.breadcrumb{
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.6em;
}
.breadcrumb a{ color: var(--text-muted); }
.breadcrumb a:hover{ color: var(--terracotta); }
.breadcrumb .sep{ margin: 0 0.5em; opacity: 0.5; }

.page-hero{
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(40px, 6vw, 64px);
}
.page-hero h1{ font-size: clamp(2rem, 2vw + 1.3rem, 2.9rem); }
.page-hero .lead{
  color: var(--text-muted);
  max-width: 64ch;
  font-size: 1.08rem;
  margin-top: 0.6em;
}

.intro-text p{ color: var(--text-body); font-size: 1.05rem; max-width: 68ch; }
.intro-text p + p{ margin-top: 1.3em; }

.services h2{
  font-size: clamp(1.7rem, 1.3vw + 1.2rem, 2.3rem);
  max-width: 20ch;
}
.services-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 2.8rem;
  align-items: start;
}
.services-grid .card{ padding: 2rem 1.7rem; }
.services-grid .card h3{ font-size: 1.05rem; margin-bottom: 0.7em; }
.services-grid .card > p{ font-size: 0.89rem; line-height: 1.6; margin-bottom: 1.6em; }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   SECTIONS — base rhythm (alternating white / grey bands)
   ========================================================= */
main{ padding-top: var(--header-h); }

section{ padding: clamp(56px, 8vw, 112px) 0; }
section[id]{ scroll-margin-top: calc(var(--header-h) + 16px); }

.section--white{ background: var(--white); }
.section--band{ background: var(--grey-band); }
.section--rule{ border-top: 1px solid var(--grey-border); }

/* one deliberately dark section — used once, for Atuação, like the reference site */
.section--navy{ background: var(--navy); color: #C9CFD6; }
.section--navy h2{ color: var(--white); }
.section--navy .card{
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.14);
}
.section--navy .card h3{ color: var(--white); }
.section--navy .card > p{ color: #A7AFB9; }
.section--navy .card ul{ border-top-color: rgba(255,255,255,0.14); }
.section--navy .card li{ color: #D7DBE0; border-bottom-color: rgba(255,255,255,0.14); }
.section--navy .card-link{ color: var(--white); }
.section--navy .card-link:hover{ color: var(--terracotta); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  padding-top: clamp(100px, 15vw, 176px);
  padding-bottom: clamp(96px, 13vw, 168px);
  background:
    linear-gradient(110deg, rgba(13,27,42,0.93) 0%, rgba(13,27,42,0.84) 34%, rgba(13,27,42,0.5) 66%, rgba(13,27,42,0.28) 100%),
    url('../assets/hero-building.jpg') center 32% / cover no-repeat;
  color: #E7EAEE;
}
.hero .eyebrow{ color: var(--terracotta); }
.hero h1{
  font-weight: 700;
  font-size: clamp(2.3rem, 2.6vw + 1.3rem, 3.6rem);
  max-width: 16ch;
  color: #FFFFFF;
}
.hero .lead{
  font-size: clamp(1.05rem, 0.3vw + 1rem, 1.2rem);
  max-width: 52ch;
  color: #D7DCE1;
  margin-top: 1.3em;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2.3em;
}
.hero .btn-outline{
  border-color: #FFFFFF;
  color: #FFFFFF;
}
.hero .btn-outline:hover{
  background: #FFFFFF;
  color: var(--navy);
}

/* =========================================================
   ATUAÇÃO — two-front cards
   ========================================================= */
.atuacao h2{
  font-size: clamp(1.8rem, 1.3vw + 1.2rem, 2.4rem);
  max-width: 18ch;
}
.cards-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 2.8rem;
  align-items: start;
}
.card{
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 2.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(13,27,42,0.1);
}
.section--navy .card:hover{
  box-shadow: 0 16px 36px rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.28);
}
.card h3{ font-size: 1.35rem; }
.card > p{ color: var(--text-muted); margin-bottom: 1.6em; }
.card ul{
  border-top: 1px solid var(--grey-border);
  margin-bottom: 1.8em;
}
.card li{
  padding: 0.95em 0;
  border-bottom: 1px solid var(--grey-border);
  font-size: 0.97rem;
}
.card-link{
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--navy);
  border-bottom: 1.5px solid var(--terracotta);
  padding-bottom: 2px;
}
.card-link:hover{ color: var(--terracotta); }

/* icon-only arrow variant, used on single-service cards (no list) */
.card-arrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--grey-border);
  border-radius: 50%;
  color: var(--terracotta);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.card-arrow svg{ width: 15px; height: 15px; }
.card-arrow:hover{
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
  transform: translateX(2px);
}
.section--navy .card-arrow{ border-color: rgba(255,255,255,0.22); }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto{
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(48px, 6vw, 84px);
}
.manifesto-heading{
  font-size: clamp(1.5rem, 1.1vw + 1.15rem, 2rem);
  max-width: 24ch;
}
.manifesto-text{
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 62ch;
  color: var(--text-muted);
}

/* =========================================================
   MÉTODO — genuine 3-step sequence
   ========================================================= */
.metodo h2{
  font-size: clamp(1.8rem, 1.3vw + 1.2rem, 2.4rem);
  max-width: 20ch;
}
.steps{
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}
.step{
  padding-top: 1.4rem;
  border-top: 2px solid var(--grey-border);
}
.step-num{
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--terracotta);
  margin-bottom: 0.9em;
}
.step h3{ font-size: 1.15rem; }
.step p{ color: var(--text-muted); font-size: 0.97rem; }

/* =========================================================
   OPERAÇÃO
   ========================================================= */
.operacao h2{
  font-size: clamp(1.8rem, 1.5vw + 1.1rem, 2.5rem);
  max-width: 18ch;
}
.operacao-lead{
  color: var(--navy);
  font-weight: 500;
  font-size: 1.12rem;
  max-width: 54ch;
}
.operacao p:not(.operacao-lead){
  color: var(--text-muted);
  max-width: 62ch;
  font-size: 1.02rem;
}

/* =========================================================
   SOBRE — plain editorial text, no stat block
   ========================================================= */
.sobre h2{ font-size: clamp(1.7rem, 1.1vw + 1.1rem, 2.1rem); }
.sobre p{ color: var(--text-muted); max-width: 62ch; }
.sobre p + p{ margin-top: 1.1em; }

/* =========================================================
   CLIENTES / LOGOS
   ========================================================= */
.clientes h2{
  font-size: clamp(1.5rem, 1vw + 1rem, 1.9rem);
}
.clientes > .container > p{
  color: var(--text-muted);
  max-width: 64ch;
}
.logos-grid{
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.logo-slot{
  background: var(--white);
  border: 1px solid var(--grey-border);
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.logo-slot img{
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.85);
  opacity: 0.85;
  transition: filter .25s ease, opacity .25s ease;
}
.logo-slot:hover img{ filter: grayscale(0); opacity: 1; }

/* =========================================================
   CONTATO
   ========================================================= */
.contato h2{ font-size: clamp(1.8rem, 1.3vw + 1.2rem, 2.4rem); }
.contato-info{
  margin: 1.6em 0 2.2em;
  display: flex;
  flex-direction: column;
  gap: 0.65em;
}
.contato-info li{ font-size: 1.04rem; color: var(--text-body); }
.contato-info a:hover{ color: var(--terracotta); }
.contato-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: var(--navy);
  padding: 44px 0;
}
.footer-inner{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer-logo{ height: 22px; width: auto; }
.footer-inner p{
  color: #9AA4AE;
  font-size: 0.85rem;
  margin: 0;
  max-width: 70ch;
}

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.whatsapp-float{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  background: var(--terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(13,27,42,0.22);
  z-index: 90;
  transition: background-color .2s ease, transform .2s ease;
}
.whatsapp-float:hover{ background: var(--terracotta-dark); transform: translateY(-2px); }
.whatsapp-float svg{ width: 26px; height: 26px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .cards-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; gap: 2rem; }
  .logos-grid{ grid-template-columns: repeat(3, 1fr); }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px){
  .main-nav{
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    border-bottom: 1px solid var(--grey-border);
  }
  .main-nav.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a{ padding: 14px 0; width: 100%; border-bottom: 1px solid var(--grey-border); }
  .nav-toggle{ display: block; }
  .logos-grid{ grid-template-columns: repeat(2, 1fr); }
  .services-grid{ grid-template-columns: 1fr; }
}
