/* =========================================================
   CRIARE3D — design tokens
   ========================================================= */
:root{
  --navy-deep:   #0E2236;
  --navy:        #163955;
  --navy-soft:   #1E4A6B;
  --teal-light:  #8CC6D6;
  --teal-deep:   #5A838E;
  --olive:       #A3A341;
  --olive-deep:  #80802F;
  --paper:       #F6F5F0;
  --paper-dim:   #ECEAE2;
  --ink:         #19222B;
  --muted:       #5B6672;
  --line:        rgba(20,40,55,0.12);
  --radius:      2px;

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body:    "IBM Plex Sans", "Segoe UI", sans-serif;

  --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  margin:0 0 .5em;
  font-weight:600;
  letter-spacing:-0.01em;
  color:var(--navy-deep);
}
p{ margin:0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* =========================================================
   Signature motif: hex-facet edges (echoes the logo cube)
   ========================================================= */
.facet{
  clip-path: polygon(8% 0%, 100% 0%, 100% 92%, 92% 100%, 0% 100%, 0% 8%);
}
.facet-tr{
  clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 0 100%);
}

.eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-display);
  font-size:.78rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--olive-deep);
  font-weight:600;
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:15px; height:18px;
  background: url("img/Logo-icon.png") center/contain no-repeat;
  clip-path:none;
}

/* layer-line divider — references FDM printing building up line by line */
.layer-rule{
  height:6px;
  width:100%;
  background-repeat:no-repeat;
  background-image: repeating-linear-gradient(
    to right,
    var(--teal-light) 0 18px,
    transparent 18px 26px
  );
  opacity:.55;
}

/* =========================================================
   Header / nav
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(246,245,240,.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-display);
}
.brand img{ height:38px; width:auto; }
.nav-links{
  display:flex;
  gap:34px;
}
.nav-links a{
  font-size:.92rem;
  font-weight:500;
  color:var(--navy);
  position:relative;
  padding:4px 0;
}
.nav-links a::after{
  content:"";
  position:absolute; left:0; bottom:-2px;
  width:0; height:2px;
  background:var(--olive);
  transition:width .25s ease;
}
.nav-links a:hover::after{ width:100%; }

.nav-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--navy-deep);
  color:#fff !important;
  padding:10px 20px;
  font-size:.86rem;
  font-weight:600;
  letter-spacing:.02em;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 25%);
  transition:background .2s ease;
}
.nav-cta:hover{ background:var(--olive-deep); }

.nav-toggle{ display:none; }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative;
  min-height:88vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  color:#fff;
}
.hero-slide{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity 1.4s ease;
}
.hero-slide.is-active{ opacity:1; }
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(14,34,54,.55) 0%, rgba(14,34,54,.55) 35%, rgba(14,34,54,.92) 100%);
  z-index:1;
}
.hero-content{
  position:relative; z-index:2;
  padding:0 0 84px;
  max-width:760px;
}
.hero .eyebrow{ color:var(--teal-light); }
.hero .eyebrow::before{
  content:"";
  width:18px; height:22px;
  background: url("img/Logo-icon.png") center/contain no-repeat;
  clip-path:none;
}

.hero h1{
  color:#fff;
  font-size:clamp(2.2rem, 5vw, 3.6rem);
  line-height:1.05;
  max-width:14ch;
  min-height:2.2em;
}
.hero p.lede{
  color:rgba(255,255,255,.84);
  font-size:1.08rem;
  max-width:48ch;
  margin-bottom:28px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 26px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:.92rem;
  letter-spacing:.01em;
  border:1px solid transparent;
  cursor:pointer;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%, 0 22%);
}
.btn-primary{ background:var(--olive); color:#19220a; }
.btn-primary:hover{ background:var(--teal-light); }
.btn-ghost{
  background:transparent;
  border:1px solid rgba(255,255,255,.55);
  color:#fff;
}
.btn-ghost:hover{ border-color:#fff; background:rgba(255,255,255,.08); }

.hero-dots{
  position:absolute; right:28px; bottom:28px; z-index:3;
  display:flex; gap:8px;
}
.hero-dots button{
  width:24px; height:3px;
  background:rgba(255,255,255,.35);
  border:none; padding:0; cursor:pointer;
}
.hero-dots button.is-active{ background:var(--olive); }

/* =========================================================
   Three pillars band (Quem somos / O que fazemos / Missão)
   ========================================================= */
.pillars{
  background:var(--navy-deep);
  color:#fff;
}
.pillars-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
}
.pillar{
  padding:54px 36px;
  border-left:1px solid rgba(255,255,255,.1);
}
.pillar:first-child{ border-left:none; }
.pillar .num{
  font-family:var(--font-display);
  font-size:.78rem;
  letter-spacing:.18em;
  color:var(--teal-light);
  margin-bottom:14px;
  display:block;
}
.pillar h3{ color:#fff; font-size:1.25rem; }
.pillar p{ color:rgba(255,255,255,.72); font-size:.96rem; margin-bottom:0; }

/* =========================================================
   Section basics
   ========================================================= */
.section{ padding:96px 0; }
.section-tight{ padding:72px 0; }
.section-head{
  max-width:640px;
  margin-bottom:54px;
}
.section-head h2{
  font-size:clamp(1.7rem,3vw,2.4rem);
}
.section-head p{ color:var(--muted); font-size:1.05rem; margin-bottom:0; }

.bg-paper-dim{ background:var(--paper-dim); }

/* =========================================================
   Services
   ========================================================= */
.services-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.service-card{
  background:var(--paper);
  padding:34px 30px;
  display:flex;
  flex-direction:column;
  min-height:280px;
}
.service-card .icon{
  width:15px; height:18px;
  margin-bottom:20px;
  background:none;
  clip-path:none;
}
.service-card h3{
  font-size:1.08rem;
  margin-bottom:10px;
}
.service-card p{
  color:var(--muted);
  font-size:.92rem;
  margin-bottom:0;
}
.service-card.featured{
  background:var(--navy-deep);
  color:#fff;
}
.service-card.featured h3{ color:#fff; }
.service-card.featured p{ color:rgba(255,255,255,.72); }
.service-card .icon{
  width:36px; height:42px;
  margin-bottom:20px;
  background:none;
  clip-path:none;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.card-header h3 {
  margin: 0;
}
/* Service showcase (image + text rows) */
.showcase{
  display:flex;
  flex-direction:column;
  gap:96px;
  margin-top:96px;
}
.showcase-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
}
.showcase-row.reverse .showcase-media{ order:2; }
.showcase-row.reverse .showcase-text{ order:1; }
.showcase-media img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  clip-path: polygon(6% 0%, 100% 0%, 100% 94%, 94% 100%, 0% 100%, 0% 6%);
}
.showcase-text .tag{
  font-family:var(--font-display);
  font-size:.76rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--teal-deep);
  font-weight:600;
  margin-bottom:10px;
  display:block;
}
.showcase-text h3{ font-size:1.55rem; }
.showcase-text p{ color:var(--muted); }

/* =========================================================
   Sobre
   ========================================================= */
.about{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:70px;
  align-items:start;
}
.about-portrait{
  position:sticky; top:110px;
}
.about-portrait .frame{
  width:230px;
  border-radius:50%;
  overflow:hidden;
  border:3px solid var(--olive);
  margin-bottom:22px;
}
.about-portrait h4{ font-size:1.1rem; margin-bottom:2px; }
.about-portrait .role{
  color:var(--teal-deep);
  font-size:.88rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.about-text p{ color:var(--ink); font-size:1.02rem; }

.stat-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:40px;
  padding-top:36px;
  border-top:1px solid var(--line);
}
.stat strong{
  display:block;
  font-family:var(--font-display);
  font-size:2.1rem;
  color:var(--navy-deep);
  line-height:1;
  margin-bottom:6px;
}
.stat span{
  font-size:.84rem;
  color:var(--muted);
}

/* =========================================================
   Materials strip
   ========================================================= */
.materials{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}
.materials li{
  font-family:var(--font-display);
  font-size:.82rem;
  font-weight:600;
  letter-spacing:.04em;
  padding:8px 16px;
  border:1px solid var(--navy-soft);
  color:var(--navy);
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band{
  position:relative;
  color:#fff;
  background:var(--navy-deep) url("img/hero3.webp") center/cover fixed;
  padding:110px 0;
}
.cta-band::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(14,34,54,.9), rgba(14,34,54,.82));
}
.cta-inner{
  position:relative; z-index:1;
  max-width:640px;
}
.cta-inner h2{ color:#fff; font-size:clamp(1.7rem,3.4vw,2.5rem); }
.cta-inner p{ color:rgba(255,255,255,.78); font-size:1.05rem; }
.cta-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top:24px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background:var(--navy-deep);
  color:rgba(255,255,255,.65);
  padding:60px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:40px;
  padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand img{ height:34px; }
.footer-col h5{
  font-family:var(--font-display);
  color:#fff;
  font-size:.82rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  margin-bottom:16px;
}
.footer-col li{ margin-bottom:10px; font-size:.92rem; }
.footer-col a:hover{ color:var(--teal-light); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:24px;
  font-size:.82rem;
  flex-wrap:wrap;
  gap:10px;
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{ opacity:1; transform:none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .pillars-grid{ grid-template-columns:1fr; }
  .pillar{ border-left:none; border-top:1px solid rgba(255,255,255,.1); }
  .pillar:first-child{ border-top:none; }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .showcase-row, .showcase-row.reverse{
    grid-template-columns:1fr;
  }
  .showcase-row.reverse .showcase-media,
  .showcase-row.reverse .showcase-text{ order:initial; }
  .about{ grid-template-columns:1fr; }
  .about-portrait{ position:static; display:flex; align-items:center; gap:20px; }
  .about-portrait .frame{ width:110px; margin-bottom:0; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width: 720px){
  .nav-links{
    position:fixed; inset:64px 0 0 0;
    background:var(--paper);
    flex-direction:column;
    padding:30px 28px;
    gap:22px;
    transform:translateX(100%);
    transition:transform .3s ease;
  }
  .nav-links.is-open{ transform:translateX(0); }
  .nav-toggle{
    display:flex;
    flex-direction:column;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
    padding:8px;
  }
  .nav-toggle span{ width:22px; height:2px; background:var(--navy-deep); }
  .nav-cta{ display:none; }
  .services-grid{ grid-template-columns:1fr; }
  .stat-row{ grid-template-columns:1fr; gap:18px; }
  .footer-grid{ grid-template-columns:1fr; gap:30px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .section{ padding:64px 0; }
}
