/* ============================================================
   Ei, Doc! — home visual layer
   Escopo: somente index.html
   ============================================================ */

:root{
  --home-bg:#F4F6F1;
  --home-panel:#FFFFFF;
  --home-soft:#EEF4EA;
  --home-soft-2:#F8FAF6;
  --home-line:#DCE4D8;
  --home-green:#42941F;
  --home-green-dark:#2F7217;
  --home-ink:#161616;
  --home-muted:#62695F;
  --home-shadow:0 22px 70px rgba(34,54,25,.09);
}

body{background:var(--home-bg)}

/* header */
.top{
  background:rgba(244,246,241,.88);
  border-bottom:1px solid rgba(22,22,22,.08);
  backdrop-filter:blur(18px);
  box-shadow:0 1px 0 rgba(255,255,255,.65) inset;
}
.top .wrap{max-width:1240px;height:72px;padding:0 32px}
.top .brand img{height:29px}
.topnav{gap:8px}
.topnav a{
  padding:9px 12px;
  border-radius:999px;
  font-size:14.5px;
  color:#51594F;
  transition:background .18s ease,color .18s ease;
}
.topnav a:hover{background:#E6EDE1;color:var(--home-ink)}

/* global home width/rhythm */
.hero-culture .wrap,
.ecosystem-section .wrap,
#perguntas .wrap,
footer .wrap{max-width:1240px;padding-left:32px;padding-right:32px}

.hero-culture{
  position:relative;
  overflow:hidden;
  padding:clamp(76px,9vw,132px) 0 clamp(74px,8vw,112px);
  background:
    radial-gradient(circle at 88% 16%,rgba(66,148,31,.12),transparent 30%),
    linear-gradient(180deg,#F7F9F4 0%,#EEF4EA 100%);
  border-top:0;
}
.hero-culture::before{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  right:-180px;
  bottom:-220px;
  border:1px solid rgba(66,148,31,.16);
  border-radius:50%;
  box-shadow:0 0 0 70px rgba(66,148,31,.035),0 0 0 140px rgba(66,148,31,.02);
  pointer-events:none;
}
.hero-culture-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(360px,.78fr);
  gap:clamp(54px,7vw,100px);
  align-items:center;
}
.hero-culture-copy{max-width:760px}
.brand-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 24px;
  padding:8px 12px;
  border:1px solid rgba(66,148,31,.24);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:var(--home-green-dark);
  font-weight:600;
  letter-spacing:.08em;
}
.hero-culture h1{
  max-width:11.7ch;
  font-size:clamp(48px,6vw,78px);
  line-height:.98;
  letter-spacing:-.045em;
  text-wrap:balance;
}
.hero-culture .lede{
  max-width:62ch;
  margin-top:28px;
  font-size:clamp(19px,2vw,23px);
  line-height:1.5;
  color:#4F584C;
}
.hero-culture-note{
  max-width:62ch;
  margin:0 0 28px;
  padding-left:18px;
  border-left:3px solid var(--home-green);
  color:#3E463B;
  font-size:16.5px;
  line-height:1.65;
}
.hero-scroll-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 20px;
  border-radius:999px;
  background:var(--home-ink);
  color:#FFF;
  text-decoration:none;
  font-weight:700;
  box-shadow:0 12px 30px rgba(22,22,22,.12);
  transition:transform .18s ease,box-shadow .18s ease;
}
.hero-scroll-link:hover{color:#FFF;transform:translateY(-2px);box-shadow:0 16px 34px rgba(22,22,22,.16)}
.hero-author{
  max-width:58ch;
  margin:30px 0 0;
  padding-top:18px;
  border-top:1px solid rgba(22,22,22,.12);
  color:#687064;
  font-size:14.5px;
  line-height:1.55;
}
.hero-author strong{color:var(--home-ink)}

/* principles panel */
.culture-panel{
  position:relative;
  padding:clamp(26px,3vw,38px);
  border:1px solid rgba(37,81,21,.16);
  border-radius:24px;
  background:rgba(255,255,255,.86);
  box-shadow:var(--home-shadow);
  overflow:hidden;
}
.culture-panel::after{
  content:"EI.DOC";
  position:absolute;
  right:-8px;
  top:18px;
  font-family:"Bricolage Grotesque",sans-serif;
  font-size:64px;
  font-weight:700;
  letter-spacing:-.05em;
  color:rgba(66,148,31,.045);
  pointer-events:none;
}
.culture-panel-head{position:relative;z-index:1;padding-bottom:22px;border-bottom:1px solid var(--home-line)}
.culture-panel-head .mono{margin:0 0 10px;color:var(--home-green-dark);font-weight:600}
.culture-panel-head h2{max-width:13ch;font-size:clamp(30px,3vw,42px);line-height:1.02}
.culture-principles{position:relative;z-index:1;display:grid}
.culture-principle{
  display:grid;
  grid-template-columns:52px 1fr;
  gap:18px;
  padding:22px 0;
  border-bottom:1px solid var(--home-line);
}
.culture-principle:last-child{border-bottom:0;padding-bottom:0}
.culture-number{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:14px;
  background:var(--home-soft);
  color:var(--home-green-dark);
  font-family:"IBM Plex Mono",monospace;
  font-size:12px;
  font-weight:600;
}
.culture-principle h3{margin-bottom:7px;font-size:19px}
.culture-principle p{margin:0;color:var(--home-muted);font-size:15px;line-height:1.55}

/* ecosystem */
.ecosystem-section{
  padding:clamp(78px,9vw,124px) 0;
  background:#FFF;
  border-top:0;
}
.ecosystem-intro{
  display:grid;
  grid-template-columns:minmax(0,.7fr) minmax(420px,1fr);
  column-gap:70px;
  align-items:end;
  margin-bottom:44px;
}
.ecosystem-intro .mono{grid-column:1/-1;margin:0 0 13px;color:var(--home-green-dark);font-weight:600}
.ecosystem-intro h2{font-size:clamp(38px,4.8vw,62px);line-height:1;max-width:10ch}
.ecosystem-intro .lede{margin:0;align-self:end;color:#5B6358;font-size:18px;line-height:1.6}

.ecosystem-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.ecosystem-card{
  position:relative;
  min-height:300px;
  padding:30px;
  border:1px solid #DDE4D9;
  border-radius:22px;
  background:#F9FAF7;
  color:var(--home-ink);
  text-decoration:none;
  overflow:hidden;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
a.ecosystem-card:hover{
  transform:translateY(-5px);
  border-color:#BFD0B8;
  box-shadow:0 22px 52px rgba(35,55,28,.09);
  color:var(--home-ink);
}
.ecosystem-card::after{
  content:"";
  position:absolute;
  width:170px;
  height:170px;
  right:-80px;
  top:-85px;
  border-radius:50%;
  background:rgba(66,148,31,.07);
}
.ecosystem-card .tag{
  position:relative;
  z-index:1;
  display:inline-flex;
  margin-bottom:24px;
  padding:7px 10px;
  border-radius:999px;
  background:#EDF3E9;
  color:var(--home-green-dark);
  font-family:"IBM Plex Mono",monospace;
  font-size:10.5px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.ecosystem-card h3{position:relative;z-index:1;margin-bottom:12px;font-size:clamp(26px,2.5vw,36px)}
.ecosystem-card>p{position:relative;z-index:1;max-width:48ch;margin:0;color:#5A6257;font-size:16.5px;line-height:1.6}
.ecosystem-link{
  position:absolute;
  z-index:1;
  left:30px;
  bottom:28px;
  font-weight:700;
  color:var(--home-green-dark);
}

.ecosystem-card-caderno{
  min-height:390px;
  background:var(--home-ink);
  border-color:var(--home-ink);
  color:#FFF;
  box-shadow:0 24px 58px rgba(22,22,22,.14);
}
.ecosystem-card-caderno::after{background:rgba(144,217,111,.08)}
.ecosystem-card-caderno .tag{background:rgba(150,219,119,.12);color:#BEE7AB}
.ecosystem-card-caderno h3{color:#FFF}
.ecosystem-card-caderno>p{color:#D7DDD3}
.ecosystem-card-caderno .sendfox-embed{position:relative;z-index:2;max-width:none;margin-top:24px}
.ecosystem-card-caderno .sendfox-embed iframe,
.ecosystem-card-caderno .sendfox-embed form{width:100%;max-width:100%}
.ecosystem-form-note{position:relative!important;z-index:2!important;margin:12px 0 0!important;color:#AEB6AA!important;font-size:12.5px!important}
.ecosystem-form-note a{color:#FFF}

.ecosystem-card-douto{
  background:linear-gradient(145deg,#EAF4E5 0%,#F7FAF5 100%);
  border-color:#C7DDBD;
}
.ecosystem-card-douto::before{
  content:"D";
  position:absolute;
  right:18px;
  bottom:-38px;
  font-family:"Bricolage Grotesque",sans-serif;
  font-size:180px;
  font-weight:700;
  line-height:1;
  color:rgba(66,148,31,.055);
}

.editorial-continuity{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:36px;
  margin-top:20px;
  padding:26px 30px;
  border:1px solid #DDE4D9;
  border-radius:18px;
  background:#F5F7F2;
}
.editorial-continuity .mono{margin:0 0 7px;color:var(--home-green-dark)}
.editorial-continuity h3{margin-bottom:4px;font-size:24px}
.editorial-continuity p{margin:0;color:#626A5F;font-size:15px}
.editorial-continuity>a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid #BBC9B5;
  background:#FFF;
  color:var(--home-ink);
  text-decoration:none;
  font-weight:700;
}
.editorial-continuity>a:hover{border-color:var(--home-green);color:var(--home-green-dark)}

/* institutional Q&A */
#perguntas{
  padding:clamp(74px,8vw,108px) 0;
  background:#EBF1E7;
  border-top:0;
}
#perguntas .wrap{display:flex;justify-content:center}
#perguntas .prose{
  width:100%;
  max-width:900px;
  padding:clamp(34px,5vw,58px);
  border:1px solid #D0DDD0;
  border-radius:24px;
  background:#FFF;
  box-shadow:0 20px 55px rgba(35,55,28,.07);
}
#perguntas .prose h2{margin-top:48px;font-size:clamp(30px,3.4vw,42px)}
#perguntas .prose h2:first-child{margin-top:0}
#perguntas .resposta{
  margin-top:16px;
  padding:16px 0 16px 20px;
  border-left:4px solid var(--home-green);
  color:#2D342B;
  font-size:18px;
  line-height:1.65;
}
#perguntas .prose p:not(.resposta){color:#626A5F;font-size:16px;line-height:1.7}

/* footer */
footer{
  margin-top:0;
  padding:52px 0 70px;
  background:#111510;
  border-top:0;
}
footer .foot-grid{align-items:center}
footer .brand img{filter:brightness(0) invert(1);opacity:.95}
footer .foot-nav a{color:#BFC7BC}
footer .foot-nav a:hover{color:#FFF}
footer .legal{color:#8F998B}
footer .legal a{color:#C8D0C5}

/* embed containment */
.ecosystem-card-caderno iframe{border-radius:12px!important;overflow:hidden}

@media(max-width:980px){
  .top .wrap,
  .hero-culture .wrap,
  .ecosystem-section .wrap,
  #perguntas .wrap,
  footer .wrap{padding-left:24px;padding-right:24px}
  .hero-culture-grid{grid-template-columns:1fr;gap:46px}
  .hero-culture-copy{max-width:820px}
  .hero-culture h1{max-width:13ch}
  .culture-panel{max-width:820px}
  .ecosystem-intro{grid-template-columns:1fr;gap:18px}
  .ecosystem-intro .mono{grid-column:1}
  .ecosystem-intro h2{max-width:none}
  .ecosystem-intro .lede{max-width:66ch}
}

@media(max-width:720px){
  .top .wrap{height:64px}
  .topnav a{padding:7px 8px}
  .hero-culture{padding:58px 0 66px}
  .hero-culture h1{font-size:clamp(42px,12vw,60px);max-width:none}
  .hero-culture .lede{font-size:18px}
  .culture-panel{padding:24px 20px;border-radius:20px}
  .culture-principle{grid-template-columns:44px 1fr;gap:14px}
  .ecosystem-section{padding:68px 0}
  .ecosystem-grid{grid-template-columns:1fr}
  .ecosystem-card{min-height:280px;padding:24px;border-radius:18px}
  .ecosystem-link{left:24px;bottom:24px}
  .ecosystem-card-caderno{min-height:auto}
  .editorial-continuity{align-items:flex-start;flex-direction:column;padding:24px}
  #perguntas{padding:58px 0}
  #perguntas .prose{padding:28px 22px;border-radius:18px}
}

@media(max-width:520px){
  .top .wrap,
  .hero-culture .wrap,
  .ecosystem-section .wrap,
  #perguntas .wrap,
  footer .wrap{padding-left:18px;padding-right:18px}
  .brand-kicker{font-size:10px}
  .hero-culture h1{font-size:42px}
  .hero-scroll-link{width:100%}
  .culture-panel-head h2{max-width:none}
  .culture-principle{grid-template-columns:1fr}
  .culture-number{width:38px;height:38px}
  .ecosystem-card{padding:22px}
  .ecosystem-link{position:static;display:inline-flex;margin-top:26px}
  .ecosystem-card-caderno{padding-bottom:22px}
  footer .foot-grid{gap:24px}
  footer .foot-nav{gap:12px 16px}
}
